1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555 |
- /*
- * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
- *
- * Permission to use, copy, modify, and/or distribute this software for
- * any purpose with or without fee is hereby granted, provided that the
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
- /**
- * DOC: declares vendor commands interfacing with linux kernel
- */
- #ifndef _WLAN_QCA_VENDOR_H_
- #define _WLAN_QCA_VENDOR_H_
- /* Vendor id to be used in vendor specific command and events
- * to user space.
- * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
- * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
- * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
- * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
- */
- #define QCA_NL80211_VENDOR_ID 0x001374
- #ifndef BIT
- #define BIT(x) (1U << (x))
- #endif
- /**
- * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
- *
- * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
- * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
- * Sub commands 2 to 8 are not used
- * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
- * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
- * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
- * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
- * NAN Request/Response and NAN Indication messages. These messages are
- * interpreted between the framework and the firmware component. While
- * sending the command from userspace to the driver, payload is not
- * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
- * is used when receiving vendor events in userspace from the driver.
- * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
- * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
- * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
- * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
- * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
- * results
- * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
- * results
- * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
- * results
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
- * channels
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
- * results
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
- * available. Used when report_threshold is reached in scan cache.
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
- * result. Used to report scan results when each probe rsp. is received,
- * if report_events enabled in wifi_scan_cmd_params.
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
- * Indicates progress of scanning state-machine.
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
- * ap found
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
- * bssid
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
- * hotlist bssid
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
- * change
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
- * significant change
- * ap found
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
- * significant change
- * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: This command is used to enable TDLS
- * capability or to form a session with the specified peer.
- * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
- * indicates to enable TDLS capability on the interface.
- * If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in
- * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
- * form a TDLS session with the specified peer MAC address.
- * The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_tdls_enable.
- * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS
- * capability or to terminate the session with the specified peer.
- * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
- * indicates to disable TDLS capability on the interface.
- * If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in
- * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
- * terminate TDLS session with the specified peer MAC address.
- * The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_tdls_disable.
- * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS
- * status at the interface level or with the specific peer.
- * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
- * indicates the TDLS status query is at interface level.
- * If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in
- * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
- * get TDLS session status with the specified peer MAC address.
- * The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_tdls_get_status.
- * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result
- * of the TDLS session request with the peer sent by userspace in
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE.
- * The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_tdls_state.
- * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
- * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
- * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
- * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
- * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
- * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
- * roaming and auth information.
- * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
- *
- * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
- * invoke the ACS function in device and pass selected channels to
- * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
- * driver.
- * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
- * started CAC on DFS channel
- * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
- * completed the CAC check on DFS channel
- * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
- * check was aborted by the driver
- * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
- * driver completed NOP
- * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
- * driver detected radar signal on the current operating channel
- * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
- * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to
- * configure various wiphy or interface level configurations. Attributes
- * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one
- * or more configuration attributes with a single command. The driver
- * accepts the command only if all the configurations are known, otherwise
- * it rejects the command. The driver returns success only if processing of
- * all the configurations succeeds. The driver continues to process all the
- * configurations even if processing of some configurations failed and
- * returns the last error occurred while processing the failed
- * configurations.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to
- * get the current values of the various wiphy or interface level
- * configurations. Attributes are defined in enum
- * qca_wlan_vendor_attr_config. Userspace needs to specify the
- * configuration attributes for which it wants to get the values in the
- * command, there is no significance for the value sent in the attribute
- * unless explicitly specified in the corresponding configuration
- * attribute documentation. The driver accepts the command only if all the
- * configurations are known, otherwise it rejects the command. The driver
- * returns success only if fetching of all configuration values succeeds
- * and indicates the configuration values in corresponding attributes in
- * the response. The driver continues to process all the configurations
- * even if processing of some configurations failed and returns the last
- * error occurred while processing the failed configurations.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
- * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
- * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
- * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
- * extscan reset ssid hotlist
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
- * reset passpoint list
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
- * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
- * passpoint network found
- * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
- * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
- * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
- * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
- * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
- * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
- list
- * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
- * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
- * to the host driver. This command sets the band through either
- * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
- * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
- * refers enum qca_set_band as unsigned integer values and
- * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
- * values. Also, the acceptable values for
- * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
- * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
- * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
- * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
- * implementations configure using both the attributes, the configurations
- * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
- * precedence.
- * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
- * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
- * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
- * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
- * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
- * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
- * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
- * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
- * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
- * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
- * start the P2P Listen Offload function in device and pass the listen
- * channel, period, interval, count, number of device types, device
- * types and vendor information elements to device driver and firmware.
- * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
- * indicate stop request/response of the P2P Listen Offload function in
- * device. As an event, it indicates either the feature stopped after it
- * was already running or feature has actually failed to start.
- * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
- * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
- * beaconing, this sub command provides the driver, the frequencies on the
- * 5 GHz to check for any radar activity. Driver selects one channel from
- * this priority list provided through
- * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
- * to check for radar activity on it. If no radar activity is detected
- * during the channel availability check period, driver internally switches
- * to the selected frequency of operation. If the frequency is zero, driver
- * internally selects a channel. The status of this conditional switch is
- * indicated through an event using the same sub command through
- * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
- * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
- * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
- * indication period and threshold for MAC layer counters.
- * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
- * in the host driver. The different TDLS configurations are defined
- * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
- * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
- * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
- * (SAR) power limits. A critical regulation for FCC compliance, OEMs
- * require methods to set SAR limits on TX power of WLAN/WWAN.
- * enum qca_vendor_attr_sar_limits attributes are used with this command.
- * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
- * configuration of vendor ACS.
- * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
- * requisite information leading to a power save failure. The information
- * carried as part of this event is represented by the
- * enum qca_attr_chip_power_save_failure attributes.
- * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
- * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
- * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
- * statistics are represented by the enum qca_attr_nud_stats_get
- * attributes.
- * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
- * the BSS transition status, whether accept or reject, for a list of
- * candidate BSSIDs provided by the userspace. This uses the vendor
- * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
- * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
- * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
- * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
- * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
- * the driver shall specify array of
- * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
- * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
- * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
- * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
- * specific QCA module. The trace levels are represented by
- * enum qca_attr_trace_level attributes.
- * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
- * Protocol antenna limit in different modes. See enum
- * qca_wlan_vendor_attr_brp_ant_limit_mode.
- * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
- * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
- * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
- * identifying the operation in success case. In failure cases an
- * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
- * describing the reason for the failure is returned.
- * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
- * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
- * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
- * be stopped.
- * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
- * specific interface. This can be used to modify some of the low level
- * scan parameters (off channel dwell time, home channel time) in the
- * driver/firmware. These parameters are maintained within the host
- * driver.
- * This command is valid only when the interface is in the connected
- * state.
- * These scan parameters shall be reset by the driver/firmware once
- * disconnected. The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_active_tos.
- * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
- * driver has detected an internal failure. This event carries the
- * information indicating the reason that triggered this detection. The
- * attributes for this command are defined in
- * enum qca_wlan_vendor_attr_hang.
- * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
- * of spectral parameters used. The spectral scan parameters are specified
- * by enum qca_wlan_vendor_attr_spectral_scan.
- * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
- * for spectral scan functionality. The debug stats are specified by
- * enum qca_wlan_vendor_attr_spectral_diag_stats.
- * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
- * scan system capabilities. The capabilities are specified
- * by enum qca_wlan_vendor_attr_spectral_cap.
- * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
- * status of spectral scan. The status values are specified
- * by enum qca_wlan_vendor_attr_spectral_scan_status.
- * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
- * peer pending packets. Specify the peer MAC address in
- * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
- * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
- * in enum qca_wlan_vendor_attr_flush_pending.
- * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
- * RF Operating Parameter (RROP) information. The attributes for this
- * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
- * intended for use by external Auto Channel Selection applications.
- * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
- * (SAR) power limits. This is a companion to the command
- * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
- * settings currently in use. The attributes returned by this command are
- * defined by enum qca_vendor_attr_sar_limits.
- * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
- * the WLAN hardware MAC's associated with each WLAN netdev interface.
- * This works both as a query (user space asks the current mode) or event
- * interface (driver advertizing the current mode to the user space).
- * Driver does not trigger this event for temporary hardware mode changes.
- * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
- * channel change etc ) are updated with this event. Attributes for this
- * interface are defined in enum qca_wlan_vendor_attr_mac.
- * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
- * per peer per TID. Attributes for this command are define in
- * enum qca_wlan_set_qdepth_thresh_attr
- * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
- * guide for WLAN driver. Request to suspend of driver and FW if the
- * temperature is higher than the suspend threshold; resume action is
- * requested to driver if the temperature is lower than the resume
- * threshold. In user poll mode, request temperature data by user. For test
- * purpose, getting thermal shutdown configuration parameters is needed.
- * Attributes for this interface are defined in
- * enum qca_wlan_vendor_attr_thermal_cmd.
- * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
- * driver. Thermal temperature and indication of resume completion are
- * reported as thermal events. The attributes for this command are defined
- * in enum qca_wlan_vendor_attr_thermal_event.
- * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
- * test configuration. Attributes for this command are defined in
- * enum qca_wlan_vendor_attr_wifi_test_config.
- * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
- * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
- * carried a payload which was a binary blob of data. The command was not
- * extendable to send more information. The newer version carries the
- * legacy blob encapsulated within an attribute and can be extended with
- * additional vendor attributes that can enhance the NAN command
- * interface.
- * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
- * configure parameters per peer to capture Channel Frequency Response
- * (CFR) and enable Periodic CFR capture. The attributes for this command
- * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
- * can also be used to send CFR data from the driver to userspace when
- * netlink events are used to send CFR data.
- * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
- * The returned firmware state is specified in the attribute
- * QCA_WLAN_VENDOR_ATTR_FW_STATE.
- * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
- * is used by host driver to flush per-peer cached statistics to user space
- * application. This interface is used as an event from host driver to
- * user space application. Attributes for this event are specified in
- * enum qca_wlan_vendor_attr_peer_stats_cache_params.
- * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
- * sent as event from host driver.
- * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
- * improve the success rate of Zigbee joining network.
- * Due to PTA master limitation, zigbee joining network success rate is
- * low while wlan is working. Wlan host driver need to configure some
- * parameters including Zigbee state and specific WLAN periods to enhance
- * PTA master. All this parameters are delivered by the NetLink attributes
- * defined in "enum qca_mpta_helper_vendor_attr".
- * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
- * implement Beacon frame reporting feature.
- *
- * Userspace can request the driver/firmware to periodically report
- * received Beacon frames whose BSSID is same as the current connected
- * BSS's MAC address.
- *
- * In case the STA seamlessly (without sending disconnect indication to
- * userspace) roams to a different BSS, Beacon frame reporting will be
- * automatically enabled for the Beacon frames whose BSSID is same as the
- * MAC address of the new BSS. Beacon reporting will be stopped when the
- * STA is disconnected (when the disconnect indication is sent to
- * userspace) and need to be explicitly enabled by userspace for next
- * connection.
- *
- * When a Beacon frame matching configured conditions is received, and if
- * userspace has requested to send asynchronous beacon reports, the
- * driver/firmware will encapsulate the details of the Beacon frame in an
- * event and send it to userspace along with updating the BSS information
- * in cfg80211 scan cache, otherwise driver will only update the cfg80211
- * scan cache with the information from the received Beacon frame but
- * will not send any active report to userspace.
- *
- * The userspace can request the driver/firmware to stop reporting Beacon
- * frames. If the driver/firmware is not able to receive Beacon frames
- * due to other Wi-Fi operations such as off-channel activities, etc.,
- * the driver/firmware will send a pause event to userspace and stop
- * reporting Beacon frames. Whether the beacon reporting will be
- * automatically resumed or not by the driver/firmware later will be
- * reported to userspace using the
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
- * reporting shall be resumed for all the cases except either when
- * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
- * in the command which triggered the current beacon reporting or during
- * any disconnection case as indicated by setting
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
- * driver.
- *
- * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
- * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
- * flag not set, the next first
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
- * shall be considered as un-pause event.
- *
- * All the attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_beacon_reporting_params.
- * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
- * interop issues with the DUT. This sub command is used to transfer the
- * ap info between driver and user space. This works both as a command
- * or event. As a command, it configs the stored list of aps from user
- * space to firmware; as an event, it indicates the ap info detected by
- * firmware to user space for persistent storage. The attributes defined
- * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
- * parameters.
- * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
- * binary blobs from application/service to firmware. The attributes
- * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
- * deliver the parameters.
- * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
- * to send/receive avoid frequency data using
- * enum qca_wlan_vendor_attr_avoid_frequency_ext.
- * This new command is alternative to existing command
- * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
- * is using stream of bytes instead of structured data using vendor
- * attributes. User space sends unsafe frequency ranges to the driver using
- * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
- * reception of this command, the driver shall check if an interface is
- * operating on an unsafe frequency and the driver shall try to move to a
- * safe channel when needed. If the driver is not able to find a safe
- * channel the interface can keep operating on an unsafe channel with the
- * TX power limit derived based on internal configurations like
- * regulatory/SAR rules.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
- * add the STA node details in driver/firmware. Attributes for this event
- * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
- * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
- * coex chain mode from application/service.
- * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
- * to deliver the parameters.
- * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
- * get information of a station from driver to userspace. This command can
- * be used in both STA and AP modes. For STA mode, it provides information
- * of the current association when in connected state or the last
- * association when in disconnected state. For AP mode, only information
- * of the currently connected stations is available. This command uses
- * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
- * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
- * Host drivers can request the user space entity to set the SAR power
- * limits with this event. Accordingly, the user space entity is expected
- * to set the SAR power limits. Host drivers can retry this event to the
- * user space for the SAR power limits configuration from user space. If
- * the driver does not get the SAR power limits from user space for all
- * the retried attempts, it can configure a default SAR power limit.
- * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
- * is used to update the information about the station from the driver to
- * userspace. Uses attributes from enum
- * qca_wlan_vendor_attr_update_sta_info.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
- * The host driver initiates the disconnection for scenarios such as beacon
- * miss, NUD failure, peer kick out, etc. The disconnection indication
- * through cfg80211_disconnected() expects the reason codes from enum
- * ieee80211_reasoncode which does not signify these various reasons why
- * the driver has triggered the disconnection. This event will be used to
- * send the driver specific reason codes by the host driver to userspace.
- * Host drivers should trigger this event and pass the respective reason
- * code immediately prior to triggering cfg80211_disconnected(). The
- * attributes used with this event are defined in enum
- * qca_wlan_vendor_attr_driver_disconnect_reason.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
- * add/delete TSPEC for each AC. One command is for one specific AC only.
- * This command can only be used in STA mode and the STA must be
- * associated with an AP when the command is issued. Uses attributes
- * defined in enum qca_wlan_vendor_attr_config_tspec.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
- * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
- * the host driver. The band configurations obtained are referred through
- * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
- * assessment.
- * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
- * used to update SSID information in hostapd when it is updated in the
- * driver. Uses the attribute NL80211_ATTR_SSID.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
- * the driver to send opaque data from the firmware to userspace. The
- * driver sends an event to userspace whenever such data is received from
- * the firmware.
- *
- * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
- * send this opaque data for this event.
- *
- * The format of the opaque data is specific to the particular firmware
- * version and there is no guarantee of the format remaining same.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
- * The host driver selects Tx VDEV, and notifies user. The attributes
- * used with this event are defined in enum
- * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
- * This event contains Tx VDEV group information contains other VDEVs
- * interface index and status information.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
- * configure the concurrent session policies when multiple interfaces
- * are (getting) active. The attributes used by this command are defined
- * in enum qca_wlan_vendor_attr_concurrent_policy.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
- * to query usable channels for different interface types such as STA,
- * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
- * channels in the response based on country code, different static
- * configurations, concurrency combinations, etc. The attributes used
- * with this command are defined in
- * enum qca_wlan_vendor_attr_usable_channels.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
- * to get DFS radar history from the driver to userspace. The driver
- * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
- * array of nested entries.
- * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
- * enable/disable mDNS offload to the firmware. The attributes used with
- * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
- * important debug events that are required for various issues. The
- * attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_diag.
- * This command is defined for temporary usage until this interface is
- * moved to the existing diag infra with cnss diag events. This command
- * will be deprecated soon and it is not recommended to do any further
- * enhancements to this command.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
- * to set packet monitor mode that aims to send the specified set of TX and
- * RX frames on the current client interface to an active monitor interface.
- * If this Monitor mode is set, the driver will send the configured frames,
- * from the interface on which the command is issued, to an active monitor
- * interface. The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_set_monitor_mode.
- *
- * Though the monitor mode is configured for the respective data/mgmt/ctrl
- * frames, it is up to the respective WLAN driver/firmware/hardware designs
- * to consider the possibility of sending these frames over the monitor
- * interface. For example, the control frames are handled with in the
- * hardware and thus passing such frames over the monitor interface is left
- * to the respective designs.
- *
- * Also, this monitor mode is governed to behave accordingly in
- * suspend/resume states. If the firmware handles any of such frames
- * in suspend state without waking up the host and if the monitor mode
- * is configured to notify all such frames, then the firmware is expected
- * to resume the host and forward the respective frames to the monitor
- * interface. Please note that such a request to get the frames over the
- * monitor interface will have a definite power implications.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
- * as a request to set the driver/firmware with the parameters to trigger
- * the roaming events, and also used by the driver/firmware to pass on the
- * various roam events to userspace.
- * Applicable only for the STA mode. The attributes used with this command
- * are defined in enum qca_wlan_vendor_attr_roam_events.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
- * rate mask config for a list of phy types. Userspace shall provide
- * an array of the vendor attributes defined in
- * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
- * when two interfaces are active on the same band, using two different
- * home channels, and only supported by a single radio. In this scenario
- * the device must split the use of the radio between the two interfaces.
- * The percentage of time allocated to a given interface is the quota.
- * Depending on the configuration, the quota can either be fixed or
- * dynamic.
- *
- * When used as an event, the device will report the quota type, and for
- * all interfaces operating in MCC it will report the current quota.
- * When used as a command, the device can be configured for a specific
- * quota type, and in the case of a fixed quota, the quota to apply to one
- * of the interfaces.
- *
- * Applications can use the event to do TX bitrate control based on the
- * information, and can use the command to explicitly set the quota to
- * enhance performance in specific scenarios.
- *
- * The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_mcc_quota.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
- * user space that the driver is ready for operations again after
- * recovering from internal failures. This occurs following a failure
- * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
- * get the WLAN radio combinations matrix supported by the device which
- * provides the device simultaneous radio configurations such as
- * standalone, dual band simultaneous, and single band simultaneous.
- *
- * The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_radio_combination_matrix.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
- * security negotiation and key generation to user space.
- *
- * When used as an event, the driver requests userspace to trigger the PASN
- * authentication or dropping of a PTKSA for the indicated peer devices.
- * When used as a command response, userspace indicates a consolidated
- * status report for all the peers that were requested for.
- *
- * The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_pasn.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
- * secure ranging context such as TK and LTF keyseed for each peer
- * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
- *
- * The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_secure_ranging_ctx.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
- * enable/disable offload processing in firmware during system/runtime
- * suspend for CoAP messages (see RFC7252: The Constrained Application
- * Protocol) and fetch information of the CoAP messages cached during
- * offload processing.
- *
- * The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_coap_offload.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
- * (add, remove, or change) a Stream Classification Service (SCS) rule.
- *
- * The attributes used with this event are defined in
- * enum qca_wlan_vendor_attr_scs_rule_config.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
- * supported by the WLAN firmware.
- *
- * The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_sar_capability.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
- * (SR) feature. This command is used by userspace to configure SR
- * parameters to the driver and to get the SR related parameters and
- * statistics with synchronous responses from the driver.
- * The driver also uses this command to send asynchronous events to
- * userspace to indicate suspend/resume of SR feature and changes
- * in SR parameters.
- *
- * The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_sr.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
- * notify application layer about the primary netdev of an MLO connection.
- * In some implementations, MLO has multiple netdevs out of which one
- * netdev is designated as primary to provide a unified interface to the
- * bridge. In those implementations this event is sent on every MLO peer
- * connection. User applications on an AP MLD will use this event to get
- * info for all the links from non-AP MLD that were negotiated to be used
- * for the ML association.
- *
- * The attributes used with this event are defined in
- * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
- * driver to notify different AFC events to userspace. The attributes used
- * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
- * userspace to deliver AFC response data to driver. The attributes used
- * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
- * operate in doze mode.
- *
- * Userspace uses this command to configure the AP interface to enter or
- * exit from doze mode. The driver sends this event after it enters or
- * exits the doze mode with the updated AP doze mode settings.
- *
- * The attributes used with this subcommand are defined in
- * enum qca_wlan_vendor_attr_dozed_ap.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
- * to get the status of local packet capture of monitor mode. The monitor
- * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
- * subcommand.
- *
- * The attributes used with this command are defined in enum
- * qca_wlan_vendor_attr_get_monitor_mode.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
- * get roam information from the driver to user space. It provides the
- * latest several instances of roam information cached in the driver.
- * The command is only used for STA mode. The attributes used with this
- * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
- * configure and fetch the state information of the MLO links affiliated
- * with the STA interface. The attributes used with this command are
- * defined in enum qca_wlan_vendor_attr_mlo_link_state.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
- * vendor subcommand to trigger channel utilization measurement on entire
- * channel width of the connected channel(s). For MLO connection, connected
- * channel utilization measurement shall be done on all the MLO links.
- * The driver may use regular scan or wideband energy detection feature
- * based on the hardware capability for connected channel(s) utilization
- * measurement. The driver indicates the connected channel(s) utilization
- * measurement completion as an asynchronous event with this command ID to
- * userspace. Upon receiving this event, userspace can use
- * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
- * connected channel(s) and can derive the channel utilization percentage
- * (CU) of each 20 MHz sub-channel of the entire connected channel using
- * %NL80211_CMD_GET_SURVEY response.
- * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
- * This command is only used for STA mode.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
- * used as an event to notify the userspace of TID-to-link map changes
- * negotiated by the driver or updated by associated AP MLD with Beacon,
- * Probe Response, or Action frames. The attributes used with this command
- * are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
- *
- * Note that the attribute
- * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
- * the current connected AP MLD address.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
- * of STA MLD setup links due to AP MLD removing the corresponding
- * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
- * links are removed during Multi-Link reconfiguration, the driver shall
- * use %NL80211_CMD_DISCONNECT instead of this command since it is a
- * connection drop. The attributes used with this command are defined in
- * enum qca_wlan_vendor_attr_link_reconfig.
- * Note that the attribute
- * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
- * the current connected AP MLD address.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
- * the driver with MLO link id information on which to transmit the TDLS
- * discovery response frame on the configured MLO BSS link when the
- * local station is connected in MLO mode. This command is sent to the
- * driver prior to the TDLS discovery response management transmit
- * operation and is followed immediately by the TDLS discovery response
- * management frame transmit command.
- *
- * The driver saves the configured MLO link id information and uses it for
- * the following TDLS discovery response frame transmission on the
- * configured MLO BSS link and the link id information is cleared in the
- * driver after the TDLS discovery response frame is successfully
- * transmitted. This behavior is independent of the TDLS peer STA connection
- * mode (MLO or non-MLO).
- *
- * Uses the attributes defined in
- * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH: This vendor subcommand is
- * used to configure and indicate the audio transport switch in both
- * command and event paths. This is used when two or more audio transports
- * (ex: WLAN and bluetooth) are available between peers.
- *
- * If the driver needs to perform operations like scan, connection,
- * roaming, RoC etc. and AP concurrency policy is set to either
- * QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO or
- * QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING, the driver sends
- * audio transport switch event to userspace. Userspace application upon
- * receiving the event, can try to switch to requested audio transport.
- * The userspace uses this command to send the status of transport
- * switching (either confirm or reject) to the driver using this
- * subcommand. The driver continues with the pending operation either upon
- * receiving the command from userspace or after waiting for timeout since
- * sending the event to userspace. The driver can request userspace to
- * switch to WLAN upon availability of WLAN audio transport once after the
- * concurrent operations are completed.
- *
- * Userspace can also request audio transport switch from non-WLAN to WLAN
- * using this subcommand to the driver. The driver can accept or reject
- * depending on other concurrent operations in progress. The driver returns
- * success if it can allow audio transport when it receives the command or
- * appropriate kernel error code otherwise. Userspace indicates the audio
- * transport switch from WLAN to non-WLAN using this subcommand and the
- * driver can do other concurrent operations without needing to send any
- * event to userspace. This subcommand is used by userspace only when the
- * driver advertises support for
- * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
- *
- * The attributes used with this command are defined in enum
- * qca_wlan_vendor_attr_audio_transport_switch.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to
- * configure, retrieve, and report per-link transmit latency statistics.
- *
- * The attributes used with this subcommand are defined in
- * enum qca_wlan_vendor_attr_tx_latency.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_RECONFIG_REMOVE_COMPLETE_EVENT: This vendor
- * subcommand is used to send event to the user space once the MLD remove
- * link process is completed in the API mlme_ext_vap_down and the event
- * is sent through wlan_cfg80211_reconfig_remove_complete_event.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO: Vendor command is used to
- * query transmit power information on STA interface from the driver for a
- * connected AP. The attributes included in response are defined in
- * enum qca_wlan_vendor_attr_tpc_links. In case of MLO STA, multiple links
- * TPC info may be returned. The information includes regulatory maximum
- * transmit power limit, AP local power constraint advertised from AP's
- * Beacon and Probe Response frames. For PSD power mode, the information
- * includes PSD power levels for each subchannel of operating bandwidth.
- * The information is driver calculated power limits based on the current
- * regulatory domain, AP local power constraint, and other IEs. The
- * information will be set to target. Target will decide the final TX power
- * based on this and chip specific power conformance test limits (CTL), and
- * SAR limits.
- *
- * @QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT: Event indication from the
- * driver to user space which is carrying firmware page fault related
- * summary report. The attributes for this command are defined in
- * enum qca_wlan_vendor_attr_fw_page_fault_report.
- */
- enum qca_nl80211_vendor_subcmds {
- QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
- QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
- QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
- QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
- QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
- QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
- QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
- QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
- QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
- QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
- QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
- QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
- QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
- QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
- /* Get Concurrency Matrix */
- QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
- QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
- QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
- QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
- /* Deprecated */
- QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
- QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
- QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
- /* Off loaded DFS events */
- QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
- QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
- QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
- QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
- QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
- QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
- QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
- QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
- QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
- QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
- /* Wi-Fi Configuration subcommands */
- QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
- QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
- QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
- QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
- QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
- QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
- QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
- QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
- /* NS Offload enable/disable cmd */
- QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
- QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
- QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
- QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
- QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
- /* OCB commands */
- QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
- QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
- QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
- QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
- QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
- QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
- QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
- QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
- QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
- /* subcommand to get link properties */
- QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
- /* LFR Subnet Detection */
- QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
- /* DBS subcommands */
- QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
- QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
- /* Vendor setband command */
- QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
- /* Vendor scan commands */
- QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
- QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
- /* OTA test subcommand */
- QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
- /* Tx power scaling subcommands */
- QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
- /* Tx power scaling in db subcommands */
- QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
- QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
- QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
- QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
- QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
- QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
- QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
- QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
- QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
- QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
- QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
- QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
- /* FTM/indoor location subcommands */
- QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
- QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
- QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
- QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
- QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
- QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
- QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
- QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
- QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
- /* Encrypt/Decrypt command */
- QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
- QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
- /* DMG low level RF sector operations */
- QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
- QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
- QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
- QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
- /* Configure the TDLS mode from user space */
- QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
- QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
- /* Vendor abort scan command */
- QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
- /* Set Specific Absorption Rate(SAR) Power Limits */
- QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
- /* External Auto channel configuration setting */
- QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
- QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
- QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
- QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
- QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
- /* Set the trace level for QDF */
- QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
- QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
- QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
- QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
- QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
- QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
- QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
- QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
- QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
- QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
- QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
- QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
- QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
- QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
- QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
- QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
- QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
- /* Wi-Fi test configuration subcommand */
- QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
- QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
- QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
- QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
- QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
- QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
- QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
- QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
- QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
- QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
- QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
- QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
- QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
- QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
- QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
- QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
- QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
- QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
- QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
- QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
- QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
- QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
- QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
- QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
- QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
- QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
- QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
- QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
- QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
- QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
- QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
- QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
- QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
- QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
- /* 206..212 - reserved for QCA */
- QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
- QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
- QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
- QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
- QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
- QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
- QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
- QCA_NL80211_VENDOR_SUBCMD_SR = 220,
- QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
- QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
- QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
- QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
- QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
- QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
- QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
- QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
- QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
- QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
- QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
- QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232,
- QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233,
- QCA_NL80211_VENDOR_SUBCMD_RECONFIG_REMOVE_COMPLETE_EVENT = 234,
- QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237,
- QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238,
- };
- enum qca_wlan_vendor_tos {
- QCA_WLAN_VENDOR_TOS_BK = 0,
- QCA_WLAN_VENDOR_TOS_BE = 1,
- QCA_WLAN_VENDOR_TOS_VI = 2,
- QCA_WLAN_VENDOR_TOS_VO = 3,
- };
- /**
- * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
- */
- enum qca_wlan_vendor_attr_active_tos {
- QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
- /* Type Of Service - Represented by qca_wlan_vendor_tos */
- QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
- /* Flag attribute representing the start (attribute included) or stop
- * (attribute not included) of the respective TOS.
- */
- QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
- QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
- };
- enum qca_wlan_vendor_hang_reason {
- /* Unspecified reason */
- QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
- /* No Map for the MAC entry for the received frame */
- QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
- /* peer deletion timeout happened */
- QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
- /* peer unmap timeout */
- QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
- /* Scan request timed out */
- QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
- /* Consecutive Scan attempt failures */
- QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
- /* Unable to get the message buffer */
- QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
- /* Current command processing is timedout */
- QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
- /* Timeout for an ACK from FW for suspend request */
- QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
- /* Timeout for an ACK from FW for resume request */
- QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
- /* Transmission timeout for consecutive data frames */
- QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
- /* Timeout for the TX completion status of data frame */
- QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
- /* DXE failure for tx/Rx, DXE resource unavailability */
- QCA_WLAN_HANG_DXE_FAILURE = 12,
- /* WMI pending commands exceed the maximum count */
- QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
- /* Timeout for peer STA connection accept command's response from the
- * FW in AP mode. This command is triggered when a STA (peer) connects
- * to AP (DUT).
- */
- QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
- /* Timeout for the AP connection accept command's response from the FW
- * in STA mode. This command is triggered when the STA (DUT) connects
- * to an AP (peer).
- */
- QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
- /* Timeout waiting for the response to the MAC HW mode change command
- * sent to FW as a part of MAC mode switch among DBS (Dual Band
- * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
- * Channel Concurrency) mode.
- */
- QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
- /* Timeout waiting for the response from FW to configure the MAC HW's
- * mode. This operation is to configure the single/two MACs in either
- * SCC/MCC/DBS mode.
- */
- QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
- /* Timeout waiting for response of VDEV start command from the FW */
- QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
- /* Timeout waiting for response of VDEV restart command from the FW */
- QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
- /* Timeout waiting for response of VDEV stop command from the FW */
- QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
- /* Timeout waiting for response of VDEV delete command from the FW */
- QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
- /* Timeout waiting for response of peer all delete request command to
- * the FW on a specific VDEV.
- */
- QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
- /* WMI sequence mismatch between WMI command and Tx completion */
- QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
- /* Write to Device HAL register failed */
- QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
- /* No credit left to send the wow_wakeup_from_sleep to firmware */
- QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
- /* Bus failure */
- QCA_WLAN_HANG_BUS_FAILURE = 26,
- /* tasklet/credit latency found */
- QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
- /* MSDU buffers received in REO error ring, exceeding certain
- * threshold
- */
- QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
- /* Vdev SM is out of sync and connect req received
- * when already connected
- */
- QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
- /* Stats request timeout */
- QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
- /* Leak in TX descriptor for a packet */
- QCA_WLAN_HANG_TX_DESC_LEAK = 31,
- /* Scheduler watchdog timeout */
- QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
- /* Failed to send self peer deletion cmd to firmware */
- QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
- /* Received del self sta without del bss */
- QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
- /* Recovery needed when sending flush completion to userspace */
- QCA_WLAN_HANG_FLUSH_LOGS = 35,
- /* Host wakeup because of page fault */
- QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
- };
- /**
- * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor
- * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT.
- *
- * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data
- * associated with the firmware page fault that is expected to contain the
- * required dump to analyze frequent page faults.
- * NLA_BINARY attribute, the maximum size is QDF_HANG_EVENT_DATA_SIZE
- */
- enum qca_wlan_vendor_attr_fw_page_fault_report {
- QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST,
- QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX =
- QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_hang - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_HANG.
- */
- enum qca_wlan_vendor_attr_hang {
- QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
- /*
- * Reason for the Hang - Represented by enum
- * qca_wlan_vendor_hang_reason.
- */
- QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
- /* The binary blob data associated with the hang reason specified by
- * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
- * contain the required dump to analyze the reason for the hang.
- * NLA_BINARY attribute, the max size is 1024 bytes.
- */
- QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
- QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_HANG_MAX =
- QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
- };
- /**
- * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
- * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
- * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
- * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
- level needs to be updated.
- * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
- * to be set.
- * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
- * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
- */
- enum qca_vendor_attr_set_trace_level {
- QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
- /*
- * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
- * attributes.
- */
- QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
- QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
- QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
- QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
- QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_get_station - Sub commands used by
- * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
- * station information. The information obtained through these
- * commands signify the current info in connected state and
- * latest cached information during the connected state , if queried
- * when in disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
- */
- enum qca_wlan_vendor_attr_get_station {
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
- QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
- * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
- * Used in STA mode. This attribute represents the list of channel center
- * frequencies in MHz (u32) the station has learnt during the last connection
- * or roaming attempt. This information shall not signify the channels for
- * an explicit scan request from the user space. Host drivers can update this
- * information to the user space in both connected and disconnected state.
- * In the disconnected state this information shall signify the channels
- * scanned in the last connection/roam attempt that lead to the disconnection.
- */
- enum qca_wlan_vendor_attr_update_sta_info {
- QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_802_11_mode - dot11 mode
- * @QCA_WLAN_802_11_MODE_11B: mode B
- * @QCA_WLAN_802_11_MODE_11G: mode G
- * @QCA_WLAN_802_11_MODE_11N: mode N
- * @QCA_WLAN_802_11_MODE_11A: mode A
- * @QCA_WLAN_802_11_MODE_11AC: mode AC
- * @QCA_WLAN_802_11_MODE_11AX: mode AX
- * @QCA_WLAN_802_11_MODE_11BE: mode BE
- * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
- */
- enum qca_wlan_802_11_mode {
- QCA_WLAN_802_11_MODE_11B,
- QCA_WLAN_802_11_MODE_11G,
- QCA_WLAN_802_11_MODE_11N,
- QCA_WLAN_802_11_MODE_11A,
- QCA_WLAN_802_11_MODE_11AC,
- QCA_WLAN_802_11_MODE_11AX,
- QCA_WLAN_802_11_MODE_11BE,
- QCA_WLAN_802_11_MODE_INVALID,
- };
- /**
- * enum qca_wlan_auth_type - Authentication key management type
- * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
- * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
- * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
- * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
- * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
- * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
- * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
- * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
- * @QCA_WLAN_AUTH_TYPE_FT: ft key
- * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
- * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
- * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
- * @QCA_WLAN_AUTH_TYPE_WAI: wai key
- * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
- * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
- * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
- * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
- * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
- * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
- * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
- * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
- * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
- * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
- * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
- * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
- * @QCA_WLAN_AUTH_TYPE_OWE: owe key
- * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
- * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
- */
- enum qca_wlan_auth_type {
- QCA_WLAN_AUTH_TYPE_INVALID,
- QCA_WLAN_AUTH_TYPE_OPEN,
- QCA_WLAN_AUTH_TYPE_SHARED,
- QCA_WLAN_AUTH_TYPE_WPA,
- QCA_WLAN_AUTH_TYPE_WPA_PSK,
- QCA_WLAN_AUTH_TYPE_WPA_NONE,
- QCA_WLAN_AUTH_TYPE_RSN,
- QCA_WLAN_AUTH_TYPE_RSN_PSK,
- QCA_WLAN_AUTH_TYPE_FT,
- QCA_WLAN_AUTH_TYPE_FT_PSK,
- QCA_WLAN_AUTH_TYPE_SHA256,
- QCA_WLAN_AUTH_TYPE_SHA256_PSK,
- QCA_WLAN_AUTH_TYPE_WAI,
- QCA_WLAN_AUTH_TYPE_WAI_PSK,
- QCA_WLAN_AUTH_TYPE_CCKM_WPA,
- QCA_WLAN_AUTH_TYPE_CCKM_RSN,
- QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
- QCA_WLAN_AUTH_TYPE_FT_SAE,
- QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
- QCA_WLAN_AUTH_TYPE_SAE,
- QCA_WLAN_AUTH_TYPE_FILS_SHA256,
- QCA_WLAN_AUTH_TYPE_FILS_SHA384,
- QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
- QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
- QCA_WLAN_AUTH_TYPE_DPP_RSN,
- QCA_WLAN_AUTH_TYPE_OWE,
- QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
- QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
- };
- /**
- * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
- * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
- * Get the standard NL attributes Nested with this attribute.
- * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
- * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
- * NL80211_ATTR_STA_INFO
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
- * Get the standard NL attributes Nested with this attribute.
- * Ex : Query HT/VHT Capability advertised by the AP.
- * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
- * Number of successful Roam attempts before a
- * disconnect, Unsigned 32 bit value
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
- * Authentication Key Management Type used for the connected session.
- * Signified by enum qca_wlan_auth_type
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
- * connected Session, signified by enum qca_wlan_802_11_mode
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
- * HS20 Indication Element
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
- * Status Code Corresponding to the Association Failure.
- * Unsigned 32 bit value.
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
- * Max phy rate of remote station
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
- * TX packets to remote station
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
- * TX bytes to remote station
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
- * RX packets from remote station
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
- * RX bytes from remote station
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
- * Last TX rate with remote station
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
- * Last RX rate with remote station
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
- * Remote station enable/disable WMM
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
- * Remote station connection mode
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
- * Remote station AMPDU enable/disable
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
- * Remote station TX Space-time block coding enable/disable
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
- * Remote station RX Space-time block coding enable/disable
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
- * Remote station channel width
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
- * Remote station short GI enable/disable
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
- * containing the raw information elements from Beacon frames. Represents
- * the Beacon frames of the current BSS in the connected state. When queried
- * in the disconnected state, these IEs correspond to the last connected BSSID.
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
- * disconnect reason for the last disconnection if the disconnection is
- * triggered from the host driver. The values are referred from
- * enum qca_disconnect_reason_codes. If the disconnect is from
- * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
- * Applicable in AP mode only. It contains the raw information elements
- * from assoc request frame of the given peer station. User queries with the
- * mac address of peer station when it disconnects. Host driver sends
- * assoc request frame of the given station. Host driver doesn't provide
- * the IEs when the peer station is still in connected state.
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
- * sending HE operation info.
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2: Attribute
- * type for remote channel width greater than 160 MHz.
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION: Attribute type for
- * sending EHT operation info.
- * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
- *
- */
- enum qca_wlan_vendor_attr_get_station_info {
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
- };
- /**
- * qca_chip_power_save_failure_reason: Power save failure reason
- * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
- * due to protocol/module.
- * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
- * due to hardware
- */
- enum qca_chip_power_save_failure_reason {
- QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
- QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
- };
- /**
- * qca_attr_chip_power_save_failure: attributes to vendor subcmd
- * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
- * information leading to the power save failure.
- * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
- * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
- * represented by enum qca_chip_power_save_failure_reason
- * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
- * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
- */
- enum qca_attr_chip_power_save_failure {
- QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
- QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
- /* keep last */
- QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
- QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
- QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
- };
- /* enum's to provide TDLS capabilities */
- enum qca_wlan_vendor_attr_get_tdls_capabilities {
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
- };
- /* Compatibility defines for previously used subcmd names.
- * These values should not be used in any new implementation.
- */
- #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
- QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
- enum qca_wlan_vendor_attr {
- QCA_WLAN_VENDOR_ATTR_INVALID = 0,
- /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
- QCA_WLAN_VENDOR_ATTR_DFS = 1,
- /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
- QCA_WLAN_VENDOR_ATTR_NAN = 2,
- /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
- QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
- /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
- QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
- /*
- * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
- * by enum qca_roaming_policy.
- */
- QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
- QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
- /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
- QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
- QCA_WLAN_VENDOR_ATTR_TEST = 8,
- /*
- * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
- * Unsigned 32-bit value.
- */
- QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
- /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
- * value for this attribute are only till QCA_SETBAND_2G. This attribute
- * is deprecated. Recommendation is to use
- * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
- * using both the attributes, the ones configured through
- * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
- */
- QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
- /* Dummy (NOP) attribute for 64 bit padding */
- QCA_WLAN_VENDOR_ATTR_PAD = 13,
- /*
- * Unique FTM session cookie (Unsigned 64 bit). Specified in
- * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
- * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
- * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
- */
- QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
- /*
- * Indoor location capabilities, returned by
- * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
- * see enum qca_wlan_vendor_attr_loc_capa.
- */
- QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
- /*
- * Array of nested attributes containing information about each peer
- * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
- * for supported attributes for each peer.
- */
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
- /*
- * Array of nested attributes containing measurement results for
- * one or more peers, reported by the
- * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
- * See enum qca_wlan_vendor_attr_peer_result for list of supported
- * attributes.
- */
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
- /* Flag attribute for enabling or disabling responder functionality. */
- QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
- /*
- * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
- * command to specify the LCI report that will be sent by
- * the responder during a measurement exchange. The format is
- * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
- */
- QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
- /*
- * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
- * command to specify the location civic report that will
- * be sent by the responder during a measurement exchange.
- * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
- */
- QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
- /*
- * Session/measurement completion status code,
- * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
- * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
- * see enum qca_vendor_attr_loc_session_status.
- */
- QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
- /*
- * Initial dialog token used by responder (0 if not specified),
- * unsigned 8 bit value.
- */
- QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
- /*
- * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
- * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
- * AOA measurements are needed as part of an FTM session.
- * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
- * enum qca_wlan_vendor_attr_aoa_type.
- */
- QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
- /*
- * A bit mask (unsigned 32 bit value) of antenna arrays used
- * by indoor location measurements. Refers to the antenna
- * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
- */
- QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
- /*
- * AOA measurement data. Its contents depends on the AOA measurement
- * type and antenna array mask:
- * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
- * phase of the strongest CIR path for each antenna in the measured
- * array(s).
- * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
- * values, phase and amplitude of the strongest CIR path for each
- * antenna in the measured array(s).
- */
- QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
- /*
- * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
- * to specify the chain number (unsigned 32 bit value) to inquire
- * the corresponding antenna RSSI value */
- QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
- /*
- * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
- * to report the specific antenna RSSI value (unsigned 32 bit value) */
- QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
- /* Frequency in MHz, various uses. Unsigned 32 bit value */
- QCA_WLAN_VENDOR_ATTR_FREQ = 28,
- /*
- * TSF timer value, unsigned 64 bit value.
- * May be returned by various commands.
- */
- QCA_WLAN_VENDOR_ATTR_TSF = 29,
- /*
- * DMG RF sector index, unsigned 16 bit number. Valid values are
- * 0..127 for sector indices or 65535 as special value used to
- * unlock sector selection in
- * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
- */
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
- /*
- * DMG RF sector type, unsigned 8 bit value. One of the values
- * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
- */
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
- /*
- * Bitmask of DMG RF modules for which information is requested. Each
- * bit corresponds to an RF module with the same index as the bit
- * number. Unsigned 32 bit number but only low 8 bits can be set since
- * all DMG chips currently have up to 8 RF modules.
- */
- QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
- /*
- * Array of nested attributes where each entry is DMG RF sector
- * configuration for a single RF module.
- * Attributes for each entry are taken from enum
- * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
- * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
- * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
- */
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
- /*
- * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
- * to report frame aggregation statistics to userspace.
- */
- QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
- QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
- /*
- * Unsigned 8-bit value representing MBO transition reason code as
- * provided by the AP used by subcommand
- * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
- * specified by the userspace in the request to the driver.
- */
- QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
- /*
- * Array of nested attributes, BSSID and status code, used by subcommand
- * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
- * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
- * The userspace space specifies the list/array of candidate BSSIDs in
- * the order of preference in the request. The driver specifies the
- * status code, for each BSSID in the list, in the response. The
- * acceptable candidates are listed in the order preferred by the
- * driver.
- */
- QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
- /*
- * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
- * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
- */
- QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
- /*
- * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
- * to define the number of antennas to use for BRP.
- * different purpose in each ANT_LIMIT_MODE:
- * DISABLE - ignored
- * EFFECTIVE - upper limit to number of antennas to be used
- * FORCE - exact number of antennas to be used
- * unsigned 8 bit value
- */
- QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
- /*
- * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
- * to report the corresponding antenna index to the chain RSSI value
- */
- QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
- /*
- * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
- * to report the specific antenna EVM value (unsigned 32 bit value).
- * With a determinate group of antennas, the driver specifies the
- * EVM value for each antenna ID, and application extract them
- * in user space.
- */
- QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
- /*
- * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
- * wlan firmware current state. FW state is an unsigned 8 bit value,
- * one of the values in enum qca_wlan_vendor_attr_fw_state.
- */
- QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
- /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
- * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
- * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
- * This attribute shall consider the bitmask combinations to define
- * the respective Band combinations and always takes precedence over
- * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
- */
- QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
- /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
- * This field describes the maximum number of links supported by the
- * chip for MLO association.
- * This is an optional attribute.
- */
- QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44,
- /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES.
- * This field describes the maximum number of Simultaneous Transmit
- * and Receive (STR) links used in Multi-Link Operation.
- * The maximum number of STR links used can be different
- * from the maximum number of radios supported by the chip.
- * This is a static configuration of the chip.
- * This is an optional attribute.
- */
- QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
- };
- enum qca_wlan_vendor_attr_extscan_config_params {
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
- /*
- * Attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
- */
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
- = 2,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
- = 3,
- /*
- * Attributes for input params used by
- * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
- */
- /* Unsigned 32-bit value; channel frequency */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
- /* Unsigned 32-bit value; dwell time in ms. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
- /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
- /* Unsigned 8-bit value; channel class */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
- /* Unsigned 8-bit value; bucket index, 0 based */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
- /* Unsigned 8-bit value; band. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
- /* Unsigned 32-bit value; desired period, in ms. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
- /* Unsigned 8-bit value; report events semantics. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
- /*
- * Unsigned 32-bit value. Followed by a nested array of
- * EXTSCAN_CHANNEL_SPEC_* attributes.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
- /*
- * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
- * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
- /* Unsigned 32-bit value; base timer period in ms. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
- /*
- * Unsigned 32-bit value; number of APs to store in each scan in the
- * BSSID/RSSI history buffer (keep the highest RSSI APs).
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
- /*
- * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
- * up AP.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
- = 16,
- /*
- * Unsigned 8-bit value; number of scan bucket specs; followed by a
- * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
- * of the array is determined by NUM_BUCKETS.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
- /*
- * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
- * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
- /* Unsigned 8-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
- = 19,
- /* Unsigned 32-bit value; maximum number of results to be returned. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
- = 20,
- /* An array of 6 x unsigned 8-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
- /* Signed 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
- /* Signed 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
- /*
- * Number of hotlist APs as unsigned 32-bit value, followed by a nested
- * array of AP_THRESHOLD_PARAM attributes and values. The size of the
- * array is determined by NUM_AP.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
- /*
- * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
- * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
- /* Unsigned 32-bit value; number of samples for averaging RSSI. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
- = 27,
- /* Unsigned 32-bit value; number of samples to confirm AP loss. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
- = 28,
- /* Unsigned 32-bit value; number of APs breaching threshold. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
- /*
- * Unsigned 32-bit value; number of APs. Followed by an array of
- * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
- /* Unsigned 32-bit value; number of samples to confirm AP loss. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
- = 31,
- /*
- * Unsigned 32-bit value. If max_period is non zero or different than
- * period, then this bucket is an exponential backoff bucket.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
- /* Unsigned 32-bit value. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
- /*
- * Unsigned 32-bit value. For exponential back off bucket, number of
- * scans to perform for a given period.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
- /*
- * Unsigned 8-bit value; in number of scans, wake up AP after these
- * many scans.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
- = 35,
- /*
- * Attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
- */
- /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
- = 36,
- /*
- * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
- * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
- * size of the array is determined by NUM_SSID.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
- /*
- * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
- * attributes.
- * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
- /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
- /* Unsigned 8-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
- /* Signed 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
- /* Signed 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
- /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
- };
- enum qca_wlan_vendor_attr_extscan_results {
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
- /*
- * Unsigned 32-bit value; must match the request Id supplied by
- * Wi-Fi HAL in the corresponding subcmd NL msg.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
- /*
- * Unsigned 32-bit value; used to indicate the status response from
- * firmware/driver for the vendor sub-command.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
- /*
- * EXTSCAN Valid Channels attributes */
- /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
- /*
- * An array of NUM_CHANNELS x unsigned 32-bit value integers
- * representing channel numbers.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
- /* EXTSCAN Capabilities attributes */
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
- = 7,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
- = 8,
- /* Signed 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
- = 9,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
- = 11,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
- = 12,
- /*
- * EXTSCAN Attributes used with
- * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
- */
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
- /*
- * EXTSCAN attributes used with
- * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
- */
- /*
- * An array of NUM_RESULTS_AVAILABLE x
- * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
- /* Unsigned 64-bit value; age of sample at the time of retrieval */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
- /* 33 x unsigned 8-bit value; NULL terminated SSID */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
- /* An array of 6 x unsigned 8-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
- /* Unsigned 32-bit value; channel frequency in MHz */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
- /* Signed 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
- /* Unsigned 16-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
- /* Unsigned 16-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
- /* Unsigned 32-bit value; size of the IE DATA blob */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
- /*
- * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
- * information elements found in the beacon; this data should be a
- * packed list of wifi_information_element objects, one after the
- * other.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
- /*
- * Unsigned 8-bit value; set by driver to indicate more scan results are
- * available.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
- /*
- * EXTSCAN attributes for
- * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
- */
- /* Unsigned 8-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
- /*
- * EXTSCAN attributes for
- * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
- */
- /*
- * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
- * to indicate number of results.
- * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
- * list of results.
- */
- /*
- * EXTSCAN attributes for
- * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
- */
- /* An array of 6 x unsigned 8-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
- = 30,
- /* Unsigned 32-bit value. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
- = 31,
- /*
- * A nested array of signed 32-bit RSSI values. Size of the array is
- * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
- = 32,
- /*
- * EXTSCAN attributes used with
- * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
- */
- /*
- * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
- * to indicate number of extscan cached results returned.
- * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
- * the list of extscan cached results.
- */
- /*
- * An array of NUM_RESULTS_AVAILABLE x
- * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
- /* Unsigned 32-bit value; a unique identifier for the scan unit. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
- /*
- * Unsigned 32-bit value; a bitmask w/additional information about scan.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
- /*
- * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
- * to indicate number of wifi scan results/bssids retrieved by the scan.
- * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
- * list of wifi scan results returned for each cached result block.
- */
- /*
- * EXTSCAN attributes for
- * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
- */
- /*
- * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
- * number of results.
- * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
- * list of wifi scan results returned for each
- * wifi_passpoint_match_result block.
- * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
- */
- /*
- * EXTSCAN attributes for
- * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
- */
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
- = 36,
- /*
- * A nested array of
- * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
- * attributes. Array size =
- * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
- /* Unsigned 32-bit value; network block id for the matched network */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
- /*
- * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
- * list of wifi scan results returned for each
- * wifi_passpoint_match_result block.
- */
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
- /*
- * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
- * ANQP data in the information_element format.
- */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
- /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
- /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
- /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
- = 43,
- /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
- = 44,
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
- QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
- };
- /**
- * enum qca_vendor_interop_issues_ap_type - interop issues type
- * This enum defines the valid set of values of interop issues type. These
- * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
- *
- * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
- * when the STA's Qpower feature is enabled.
- */
- enum qca_vendor_interop_issues_ap_type {
- QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
- QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
- };
- /**
- * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
- * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
- *
- * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
- * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
- * 32-bit unsigned value, The type defined in enum
- * qca_vendor_interop_issues_ap_type are used.
- * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
- * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
- * it is present and mandatory for the command but is not used for
- * the event since only a single BSSID is reported in an event.
- * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
- * 6-byte MAC address. It is used within the nested
- * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
- * and without such encapsulation in the event case.
- * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
- * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
- */
- enum qca_vendor_attr_interop_issues_ap {
- QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
- QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
- QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
- QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
- QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
- };
- #ifdef WLAN_FEATURE_LINK_LAYER_STATS
- enum qca_wlan_vendor_attr_ll_stats_set {
- QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
- QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
- };
- /**
- * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
- * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
- *
- * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
- *
- * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
- * radio statistics.
- *
- * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
- * statistics within radio statistics.
- *
- * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
- * radio statistics.
- *
- * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
- *
- * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
- * within interface statistics.
- *
- * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
- * interface statistics.
- *
- * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
- * (min, max, avg) statistics within AC statistics.
- *
- * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
- * on this interface.
- *
- * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
- * statistics depending on the peer_mac.
- */
- enum qca_wlan_ll_stats_clr_req_bitmap {
- QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
- QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
- QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
- QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
- QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
- QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
- QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
- QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
- QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
- QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
- };
- enum qca_wlan_vendor_attr_ll_stats_clr {
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
- /* Unsigned 32bit bitmap for clearing statistics, specified
- * in the enum qca_wlan_ll_stats_clr_req_bitmap.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
- /* Unsigned 8 bit value: Request to stop statistics collection */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
- /* Unsigned 32 bit bitmap: Response from the driver
- * for the cleared statistics
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
- /* Unsigned 8 bit value: Response from driver/firmware
- * for the stop request
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
- };
- /**
- * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
- * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
- *
- * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
- *
- * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
- *
- * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
- *
- * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
- */
- enum qca_wlan_ll_stats_get_req_bitmap {
- QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
- QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
- QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
- QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
- };
- enum qca_wlan_vendor_attr_ll_stats_get {
- QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
- /* Unsigned 32 bit value provided by the caller issuing the GET stats
- * command. When reporting the stats results, the driver uses the same
- * value to indicate which GET request the results correspond to.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
- /* Unsigned 32 bit value - bit mask to identify what statistics are
- * requested for retrieval specified in the enum
- * qca_wlan_ll_stats_get_req_bitmap
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
- QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
- };
- enum qca_wlan_vendor_attr_ll_stats_results {
- QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
- /*
- * For Multi Link Operation (MLO) connection, per-link statistics will
- * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
- * cumulative statistics will be sent outside of
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
- * compatibility with legacy user space. Attributes which don't have
- * explicit documentation for MLO will be sent only outside of
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
- * don't depend on whether the connection is MLO capable or not, e.g.,
- * radio and channel specific attributes.
- */
- /* Unsigned 32bit value. Used by the driver; must match the request id
- * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
- /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
- * nested within the interface stats.
- */
- /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
- * Type = enum wifi_interface_mode.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
- /* Interface MAC address. An array of 6 Unsigned int8 */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
- /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
- * AUTHENTICATING, etc. valid for STA, CLI only.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
- /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
- /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
- /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
- /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
- * address of the AP. An array of 6 unsigned 8 bit values
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
- /* Country string advertised by AP. An array of 3 unsigned 8 bit
- * values.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
- /* Country string for this association. An array of 3 unsigned 8 bit
- * values.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
- /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
- * be nested within the interface stats.
- * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
- * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
- * indicate the aggregate of all links outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
- * indicate value of the MLO link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- * These attributes indicate the link specific value inside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
- /* Unsigned int 32 value corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
- /* Unsigned int 32 value corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
- /* Unsigned int 32 value corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
- /* Unsigned int 32 value corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
- /* Unsigned int 32 value corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
- /* Unsigned int 32 value corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
- /* Unsigned int 32 value corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
- /* Unsigned int 32 value corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
- /* Unsigned int 32 value corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
- /* Unsigned int 32 values corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
- /* Unsigned int 32 values corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
- /* Unsigned int 32 values corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
- /* Unsigned int 32 values corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
- /* Unsigned int 32 values corresponding to respective AC */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
- /* Unsigned 32 bit value. Number of peers */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
- /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
- * nested within the interface stats.
- */
- /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
- /* MAC addr corresponding to respective peer. An array of 6 unsigned
- * 8 bit values.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
- /* Unsigned int 32 bit value representing capabilities corresponding
- * to respective peer.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
- /* Unsigned 32 bit value. Number of rates */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
- /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
- * are nested within the rate stat.
- */
- /* Wi-Fi Rate - separate attributes defined for individual fields */
- /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
- /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
- /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
- /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
- * in the units of 0.5 Mbps HT/VHT it would be MCS index
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
- /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
- /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
- * nested within the peer info stats.
- */
- /* Unsigned int 32 bit value. Number of successfully transmitted data
- * packets, i.e., with ACK received corresponding to the respective
- * rate.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
- /* Unsigned int 32 bit value. Number of received data packets
- * corresponding to the respective rate.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
- /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
- * received corresponding to the respective rate.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
- /* Unsigned int 32 bit value. Total number of data packet retries for
- * the respective rate.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
- /* Unsigned int 32 bit value. Total number of short data packet retries
- * for the respective rate.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
- /* Unsigned int 32 bit value. Total number of long data packet retries
- * for the respective rate.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
- /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
- * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
- * of the MLO link.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
- /* Unsigned 32 bit value. Total number of msecs the radio is awake
- * accruing over time.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
- /* Unsigned 32 bit value. Total number of msecs the radio is
- * transmitting accruing over time.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
- /* Unsigned 32 bit value. Total number of msecs the radio is in active
- * receive accruing over time.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
- /* Unsigned 32 bit value. Total number of msecs the radio is awake due
- * to all scan accruing over time.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
- /* Unsigned 32 bit value. Total number of msecs the radio is awake due
- * to NAN accruing over time.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
- /* Unsigned 32 bit value. Total number of msecs the radio is awake due
- * to GSCAN accruing over time.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
- /* Unsigned 32 bit value. Total number of msecs the radio is awake due
- * to roam scan accruing over time.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
- /* Unsigned 32 bit value. Total number of msecs the radio is awake due
- * to PNO scan accruing over time.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
- /* Unsigned 32 bit value. Total number of msecs the radio is awake due
- * to Hotspot 2.0 scans and GAS exchange accruing over time.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
- /* Unsigned 32 bit value. Number of channels. */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
- /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
- * be nested within the channel stats.
- */
- /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
- /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
- * indicate the primary frequency of the channel when
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
- * on which the MLO link is operating.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
- /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
- /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
- /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
- * nested within the radio stats.
- */
- /* Unsigned int 32 bit value representing total number of msecs the
- * radio is awake on that channel accruing over time, corresponding to
- * the respective channel.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
- /* Unsigned int 32 bit value representing total number of msecs the CCA
- * register is busy accruing over time corresponding to the respective
- * channel.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
- /* Signifies the nested list of channel attributes
- * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
- /* Signifies the nested list of peer info attributes
- * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
- * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
- * indicate on which link the peer is connected.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
- /* Signifies the nested list of rate info attributes
- * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
- /* Signifies the nested list of wmm info attributes
- * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
- /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
- * that more stats, e.g., peers or radio, are to follow in the next
- * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
- * Otherwise, it is set to 0.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
- /* Unsigned 64 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
- /* Unsigned 32 bit value */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
- /* Unsigned 32 bit value */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
- /* Number of msecs the radio spent in transmitting for each power level
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
- /* Unsigned 32 bit value. For an MLO connection, indicates the value of
- * the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
- /* Unsigned int 32 value.
- * Pending MSDUs corresponding to respective AC.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
- /* u32 value representing total time in milliseconds for which the radio
- * is transmitting on this channel. This attribute will be nested
- * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
- /* u32 value representing total time in milliseconds for which the radio
- * is receiving all 802.11 frames intended for this device on this
- * channel. This attribute will be nested within
- * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
- /* u8 value representing the channel load percentage. Possible values
- * are 0-100.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
- /* u8 value representing the time slicing duty cycle percentage.
- * Possible values are 0-100. For an MLO connection, indicates the value
- * of the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
- /* Unsigned 32 bit value. The number of Beacon frames which are received
- * from the associated AP and indicate buffered unicast frame(s) for us
- * in the TIM element. For an MLO connection, indicates the value of the
- * link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
- /* Unsigned 32 bit value. The total number of Beacon frames received
- * from the associated AP that have wrongly indicated buffered unicast
- * traffic in the TIM element for us.
- * Below scenarios will be considered as wrong TIM element beacon:
- * 1) The related TIM element is set in the beacon for STA but STA
- * doesn’t receive any unicast data after this beacon.
- * 2) The related TIM element is still set in the beacon for STA
- * after STA has indicated power save exit by QoS Null Data frame.
- * For an MLO connection, indicates the value of the link with the best
- * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
- * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
- /* Signed 32 bit value. It represents the noise floor calibration value.
- * Possible values are -120~-50 dBm. For an MLO connection, indicates
- * the value of the link with the best RSSI outside
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
- * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
- /* Attribute used for padding for 64-bit alignment */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
- /* Unsigned u8 value, link ID of an MLO link. Used inside nested
- * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
- * link ID of the MLO link for which the statistics are embedded in the
- * nested attribute. Used inside nested attribute
- * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
- * link ID of the peer.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
- /* A nested array of attributes for each MLO link, each containing
- * per-link statistics of a multi link connection. The attributes used
- * inside this nested attribute are defined in enum
- * qca_wlan_vendor_attr_ll_stats_results.
- *
- * For non-MLO connection, this attribute is not present and the
- * statistics will be sent outside this attribute (without nesting).
- *
- * For MLO connection, this attribute is present and also cumulative
- * statistics of all the links will be sent outside of this attribute
- * to be compatible with legacy user space.
- */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
- QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
- };
- enum qca_wlan_vendor_attr_ll_stats_type {
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
- /* keep last */
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
- QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
- };
- #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
- /**
- * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
- *
- * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
- * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
- * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
- * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
- */
- enum qca_wlan_vendor_attr_get_supported_features {
- QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
- QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
- QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
- *
- * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
- * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
- * value
- * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
- * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
- */
- enum qca_wlan_vendor_attr_set_scanning_mac_oui {
- QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
- QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
- QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
- * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
- * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
- * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
- * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
- * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
- * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
- */
- enum qca_wlan_vendor_scan_priority {
- QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
- QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
- QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
- QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
- QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
- };
- /**
- * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
- *
- * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
- * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
- * with frequencies to be scanned (in MHz)
- * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
- * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
- * rates to be included
- * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
- * at non CCK rate in 2GHz band
- * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
- * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
- * driver for the specific scan request
- * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
- * request decoded as in enum scan_status
- * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
- * scan flag is set
- * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
- * randomisation
- * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
- * specific BSSID to scan for.
- * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
- * microseconds. This is a common value which applies across all
- * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
- * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
- * other scan requests. It is a u32 attribute and takes values from enum
- * qca_wlan_vendor_scan_priority. This is an optional attribute.
- * If this attribute is not configured, the driver shall use
- * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
- */
- enum qca_wlan_vendor_attr_scan {
- QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
- QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
- QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
- QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
- QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
- QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
- QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
- QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
- QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
- QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
- QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
- QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
- QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
- QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
- QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
- QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
- };
- /**
- * enum scan_status - Specifies the valid values the vendor scan attribute
- * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
- * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
- * new scan results
- * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
- */
- enum scan_status {
- VENDOR_SCAN_STATUS_NEW_RESULTS,
- VENDOR_SCAN_STATUS_ABORTED,
- VENDOR_SCAN_STATUS_MAX,
- };
- /**
- * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
- *
- * NL attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
- * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
- * Unsigned 32-bit value
- * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
- * Unsigned 32-bit value
- * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
- * array of SET_SIZE x Unsigned 32bit values representing concurrency
- * combinations
- * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
- * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
- */
- enum qca_wlan_vendor_attr_get_concurrency_matrix {
- QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
- = 1,
- QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
- QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
- QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
- QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
- *
- * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
- * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
- * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
- * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
- */
- enum qca_wlan_vendor_attr_set_no_dfs_flag {
- QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
- QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
- QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
- };
- /**
- * enum qca_vendor_attr_wisa_cmd
- * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
- * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
- * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
- * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
- * WISA setup vendor commands
- */
- enum qca_vendor_attr_wisa_cmd {
- QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_WISA_MODE,
- QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_WISA_MAX =
- QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
- };
- enum qca_roaming_policy {
- QCA_ROAMING_NOT_ALLOWED,
- QCA_ROAMING_ALLOWED_WITHIN_ESS,
- };
- /**
- * enum qca_roam_reason - Represents the reason codes for roaming. Used by
- * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
- *
- * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
- * reasons.
- *
- * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
- * the configured threshold.
- *
- * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
- * beacon misses from the then connected AP.
- *
- * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
- * by the connected AP.
- *
- * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
- * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
- * not poor.
- *
- * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
- * or environment being very noisy / congested.
- *
- * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
- * from the user (user space).
- *
- * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
- * connected AP.
- *
- * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
- * breaching out the configured threshold.
- *
- * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
- * transition request.
- *
- * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
- * there is no data activity with the AP and the current rssi falls below a
- * certain threshold.
- *
- * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
- * deauthentication or disassociation frames received from the connected AP.
- *
- * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
- * scan that happens when there is no candidate AP found during the poor
- * RSSI scan trigger.
- *
- * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
- * results obtained from an external scan (not aimed at roaming).
- *
- * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
- * connection is established when the station is connected in 2.4 Ghz band.
- *
- * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
- * failures to the connected AP.
- */
- enum qca_roam_reason {
- QCA_ROAM_REASON_UNKNOWN,
- QCA_ROAM_REASON_PER,
- QCA_ROAM_REASON_BEACON_MISS,
- QCA_ROAM_REASON_POOR_RSSI,
- QCA_ROAM_REASON_BETTER_RSSI,
- QCA_ROAM_REASON_CONGESTION,
- QCA_ROAM_REASON_USER_TRIGGER,
- QCA_ROAM_REASON_BTM,
- QCA_ROAM_REASON_BSS_LOAD,
- QCA_ROAM_REASON_WTC,
- QCA_ROAM_REASON_IDLE,
- QCA_ROAM_REASON_DISCONNECTION,
- QCA_ROAM_REASON_PERIODIC_TIMER,
- QCA_ROAM_REASON_BACKGROUND_SCAN,
- QCA_ROAM_REASON_BT_ACTIVITY,
- QCA_ROAM_REASON_STA_KICKOUT,
- };
- /**
- * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
- * Indicates the status of re-association requested by user space for
- * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
- * Type u16.
- * Represents the status code from AP. Use
- * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
- * real status code for failures.
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
- * This attribute indicates that the old association was maintained when
- * a re-association is requested by user space and that re-association
- * attempt fails (i.e., cannot connect to the requested BSS, but can
- * remain associated with the BSS with which the association was in
- * place when being requested to roam). Used along with
- * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
- * re-association status. Type flag.
- * This attribute is applicable only for re-association failure cases.
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
- * seq number
- * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
- * representing the reasons for the roaming. Defined by enum
- * qca_roam_reason.
- */
- enum qca_wlan_vendor_attr_roam_auth {
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
- /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
- * of the roamed AP for MLO roaming.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
- /* A nested attribute containing per-link information of all the links
- * of MLO connection done while roaming. The attributes used inside this
- * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
- QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
- * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
- *
- * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
- * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
- * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
- */
- enum qca_wlan_vendor_attr_mlo_links {
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_wifi_config - wifi config
- *
- * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
- * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
- * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
- * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
- * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
- * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
- */
- enum qca_wlan_vendor_attr_wifi_config {
- QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
- QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
- QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
- QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_epno_type - the type of request to the EPNO command
- * @QCA_WLAN_EPNO: epno type request
- * @QCA_WLAN_PNO: pno type request
- */
- enum qca_wlan_epno_type {
- QCA_WLAN_EPNO,
- QCA_WLAN_PNO
- };
- /**
- * enum qca_wlan_vendor_attr_pno_config_params - pno config params
- *
- * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
- *
- * NL attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
- * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
- * Unsigned 32-bit value; pno passpoint number of networks
- * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
- * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
- * attributes. Array size =
- * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
- * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
- * Unsigned 32-bit value; network id
- * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
- * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
- * realm, 0 if unspecified.
- * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
- * An array of 16 x Unsigned 32-bit value; roaming consortium ids
- * to match, 0 if unspecified.
- * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
- * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
- * unspecified.
- *
- * NL attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
- * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
- * Unsigned 32-bit value; set pno number of networks
- * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
- * Array of nested
- * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
- * attributes. Array size =
- * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
- * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
- * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
- * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
- * Signed 8-bit value; threshold for considering this SSID as found,
- * required granularity for this threshold is 4dBm to 8dBm
- * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
- * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
- * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
- * Unsigned 8-bit value; auth bit field for matching WPA IE
- * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
- * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
- *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
- * Nested attribute to send the channel list
- *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
- * Unsigned 32-bit value; indicates the Interval between PNO scan
- * cycles in msec
- *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
- * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
- *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
- * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
- * This attribute is obsolete now.
- *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
- * Signed 32-bit value; the maximum score that a network
- * can have before bonuses
- *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
- * Signed 32-bit value; only report when there is a network's
- * score this much higher han the current connection
- *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
- * Signed 32-bit value; score bonus for all networks with
- * the same network flag
- *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
- * Signed 32-bit value; score bonus for networks that are not open
- *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
- * Signed 32-bit value; 5GHz RSSI score bonus applied to all
- * 5GHz networks
- *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
- * Unsigned 32-bit value, representing the PNO Request ID
- * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
- * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
- */
- enum qca_wlan_vendor_attr_pno_config_params {
- QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
- QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
- QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
- QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
- QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
- QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
- QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
- QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
- QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
- QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
- QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
- QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
- QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
- QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
- QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
- QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
- QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
- QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
- QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
- QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
- QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
- QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
- QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_PNO_MAX =
- QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
- };
- /**
- * enum qca_scan_freq_list_type: Frequency list types
- *
- * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
- * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
- * a preferred frequency list for roaming.
- *
- * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
- * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
- * a specific frequency list for roaming.
- */
- enum qca_scan_freq_list_type {
- QCA_PREFERRED_SCAN_FREQ_LIST = 1,
- QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
- };
- /**
- * enum qca_roam_scan_scheme: scan scheme
- *
- * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
- * Indicates the driver to not scan on a Roam Trigger scenario, but
- * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
- * disconnect from the current connected AP by notifying a failure
- * code in the BTM response.
- *
- * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
- * trigger partial frequency scans. These frequencies are the ones learnt
- * or maintained by the driver based on the probability of finding the
- * BSSID's in the ESS for which the roaming is triggered.
- *
- * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
- * trigger the scan on all the valid frequencies to find the better
- * candidates to roam.
- */
- enum qca_roam_scan_scheme {
- QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
- QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
- QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
- };
- /**
- * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
- *
- * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
- * List of frequencies in MHz to be considered for a roam scan.
- *
- * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
- * Type of frequency list scheme being configured/gotten as defined by the
- * enum qca_scan_freq_list_type.
- */
- enum qca_vendor_attr_scan_freq_list_scheme {
- QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
- QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
- /* keep last */
- QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
- QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
- QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
- };
- /*
- * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
- *
- * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
- * a bad packet error rates (PER).
- * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
- * based on beacon misses from the connected AP.
- * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
- * due to poor RSSI of the connected AP.
- * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
- * upon finding a BSSID with a better RSSI than the connected BSSID.
- * Also, set if the roam has to be triggered due to the high RSSI of the
- * current connected AP (better than
- * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
- * the current BSSID need not be poor.
- * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
- * by triggering a periodic scan to find a better AP to roam.
- * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
- * when the connected channel environment is too noisy/congested.
- * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
- * when BTM Request frame is received from the connected AP.
- * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
- * when the channel utilization is goes above the configured threshold.
- * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
- * based on the request from the user (space).
- * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
- * device receives Deauthentication/Disassociation frame from connected
- * AP.
- * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
- * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
- * is determined to be a poor one.
- * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
- * based on continuous TX Data Frame failures to the connected AP.
- * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
- * based on the scan results obtained from an external scan (not
- * triggered to aim roaming)
- *
- * Set the corresponding roam trigger reason bit to consider it for roam
- * trigger.
- * Userspace can set multiple bits and send to the driver. The driver shall
- * consider all of them to trigger/initiate a roam scan.
- */
- enum qca_vendor_roam_triggers {
- QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
- QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
- QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
- QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
- QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
- QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
- QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
- QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
- QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
- QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
- QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
- QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
- QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
- };
- /*
- * enum qca_vendor_roam_fail_reasons: Defines the various roam
- * fail reasons. This enum value is used in
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
- *
- * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
- * able to trigger the scan.
- * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
- * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
- * scan.
- * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
- * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
- * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
- * status code.
- * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
- * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
- * frame.
- * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
- * with error status code.
- * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
- * received.
- * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
- * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
- * frame.
- * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
- * internally before transmission.
- * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
- * Request frame.
- * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
- * dropped internally.
- * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
- * times out.
- * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
- * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
- * internally.
- * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
- * M2 frame.
- * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
- * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
- * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
- * internally.
- * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
- * frame.
- * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
- * started for final beacon miss case.
- * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
- * received from the AP during roaming handoff.
- * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
- * or host is suspended and gives the indication of the last roamed AP only
- * when the Apps is resumed. If the Apps is resumed while the roaming is in
- * progress, this ongoing roaming is aborted and the last roamed AP is
- * indicated to host.
- * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
- * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
- * out.
- * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
- * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
- * current network conditions are fine.
- */
- enum qca_vendor_roam_fail_reasons {
- QCA_ROAM_FAIL_REASON_NONE = 0,
- QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
- QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
- QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
- QCA_ROAM_FAIL_REASON_HOST = 4,
- QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
- QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
- QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
- QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
- QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
- QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
- QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
- QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
- QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
- QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
- QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
- QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
- QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
- QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
- QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
- QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
- QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
- QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
- QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
- QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
- QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
- QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
- QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
- QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
- QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
- QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
- };
- /*
- * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
- * invoke fail reasons. This enum value is used in
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
- *
- * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
- * in roam invoke command.
- * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
- * enabled.
- * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
- * length is invalid.
- * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
- * in progress.
- * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
- * of the AP in the roam invoke command to firmware. This reason is sent by the
- * firmware when the given AP is configured to be ignored or SSID/security
- * does not match.
- * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
- * firmware internal reasons.
- * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
- * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
- * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
- * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
- * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
- * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
- */
- enum qca_vendor_roam_invoke_fail_reasons {
- QCA_ROAM_INVOKE_STATUS_NONE = 0,
- QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
- QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
- QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
- QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
- QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
- QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
- QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
- QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
- QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
- QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
- QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
- QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
- };
- /**
- * enum qca_vendor_attr_roam_candidate_selection_criteria:
- *
- * Each attribute carries a weightage in percentage (%).
- *
- * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
- * Represents the weightage to be given for the RSSI selection
- * criteria among other parameters.
- *
- * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
- * Represents the weightage to be given for the rate selection
- * criteria among other parameters.
- *
- * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
- * Represents the weightage to be given for the band width selection
- * criteria among other parameters.
- *
- * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
- * Represents the weightage to be given for the band selection
- * criteria among other parameters.
- *
- * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
- * Represents the weightage to be given for the NSS selection
- * criteria among other parameters.
- *
- * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
- * Represents the weightage to be given for the channel congestion
- * selection criteria among other parameters.
- *
- * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
- * Represents the weightage to be given for the beamforming selection
- * criteria among other parameters.
- *
- * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
- * Represents the weightage to be given for the OCE selection
- * criteria among other parameters.
- */
- enum qca_vendor_attr_roam_candidate_selection_criteria {
- QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
- QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
- QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
- QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
- QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
- QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
- QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
- QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
- /* keep last */
- QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
- QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
- QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
- };
- /**
- * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
- * The following attributes are used to set/get/clear the respective
- * configurations to/from the driver.
- * For the get, the attribute for the configuration to be queried shall
- * carry any of its acceptable values to the driver. In return, the driver
- * shall send the configured values within the same attribute to the user
- * space.
- *
- * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
- * Signifies to enable/disable roam control in driver.
- * 1-enable, 0-disable
- * Enable: Mandates the driver to do the further roams using the
- * configuration parameters set through
- * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
- * Disable: Disables the driver/firmware roaming triggered through
- * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
- * expected to continue with the default configurations.
- *
- * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
- * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
- * Roam control status is obtained through this attribute.
- *
- * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
- * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
- * is to be cleared in the driver.
- * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
- * and shall be ignored if used with other sub commands.
- * If this attribute is specified along with subcmd
- * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
- * all other attributes, if there are any.
- * If this attribute is not specified when the subcmd
- * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
- * clear the data corresponding to the attributes specified.
- *
- * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
- * list of frequencies and its type, represented by
- * enum qca_vendor_attr_scan_freq_list_scheme.
- * Frequency list and its type are mandatory for this attribute to set
- * the frequencies.
- * Frequency type is mandatory for this attribute to get the frequencies
- * and the frequency list is obtained through
- * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
- * Frequency list type is mandatory for this attribute to clear the
- * frequencies.
- *
- * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
- * Carries the value of scan period in seconds to set.
- * The value of scan period is obtained with the same attribute for get.
- * Clears the scan period in the driver when specified with clear command.
- * Scan period is the idle time in seconds between each subsequent
- * channel scans.
- *
- * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
- * Carries the value of full scan period in seconds to set.
- * The value of full scan period is obtained with the same attribute for
- * get.
- * Clears the full scan period in the driver when specified with clear
- * command. Full scan period is the idle period in seconds between two
- * successive full channel roam scans.
- *
- * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
- * Carries a bitmap of the roam triggers specified in
- * enum qca_vendor_roam_triggers.
- * The driver shall enable roaming by enabling corresponding roam triggers
- * based on the trigger bits sent with this attribute.
- * If this attribute is not configured, the driver shall proceed with
- * default behavior.
- * The bitmap configured is obtained with the same attribute for get.
- * Clears the bitmap configured in driver when specified with clear
- * command.
- *
- * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
- * weightage in percentage (%) to be given for each selection criteria.
- * Different roam candidate selection criteria are represented by
- * enum qca_vendor_attr_roam_candidate_selection_criteria.
- * The driver shall select the roam candidate based on corresponding
- * candidate selection scores sent.
- *
- * An empty nested attribute is used to indicate that no specific
- * preference score/criteria is configured (i.e., to disable this mechanism
- * in the set case and to show that the mechanism is disabled in the get
- * case).
- *
- * Userspace can send multiple attributes out of this enum to the driver.
- * Since this attribute represents the weight/percentage of preference for
- * the respective selection criteria, it is preferred to configure 100%
- * total weightage. The value in each attribute or cumulative weight of the
- * values in all the nested attributes should not exceed 100%. The driver
- * shall reject such configuration.
- *
- * If the weights configured through this attribute are less than 100%,
- * the driver shall honor the weights (x%) passed for the corresponding
- * selection criteria and choose/distribute rest of the weight (100-x)%
- * for the other selection criteria, based on its internal logic.
- *
- * The selection criteria configured is obtained with the same
- * attribute for get.
- *
- * Clears the selection criteria configured in the driver when specified
- * with clear command.
- *
- * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
- * Represents value of scan frequency scheme from
- * enum qca_roam_scan_scheme.
- *
- * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
- * signifying the RSSI threshold of the current connected AP, indicating
- * the driver to trigger roam only when the current connected AP's RSSI
- * is lesser than this threshold.
- *
- * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
- * signifying the RSSI threshold of the candidate AP, indicating
- * the driver to trigger roam only to the candidate AP with RSSI
- * better than this threshold. If RSSI thresholds for candidate APs found
- * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
- * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
- * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
- * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
- * will take precedence over the value configured using
- * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
- *
- * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
- * user triggered reason code to be sent to the AP in response to AP's
- * request to trigger the roam if the roaming cannot be triggered.
- * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
- *
- * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
- * Carries a bitmap of the roam triggers specified in
- * enum qca_vendor_roam_triggers.
- * Represents the roam triggers for which the specific scan scheme from
- * enum qca_roam_scan_scheme has to be applied.
- * It's an optional attribute. If this attribute is not configured, but
- * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
- * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
- * all the roams.
- * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
- * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
- * driver shall proceed with the default behavior.
- *
- * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
- * in dBm, signifying the RSSI threshold of the candidate AP found in
- * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
- * AP found in 2.4GHz band only if it's RSSI value is better than this
- * threshold. Optional attribute. If this attribute is not included, then
- * threshold value specified by the
- * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
- *
- * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
- * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
- * band. The driver/firmware shall trigger roaming to the candidate AP
- * found in 5GHz band only if it's RSSI value is better than this
- * threshold. Optional attribute. If this attribute is not included, then
- * threshold value specified by the
- * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
- *
- * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
- * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
- * band. The driver/firmware shall trigger roaming to the candidate AP
- * found in 6GHz band only if it's RSSI value is better than this
- * threshold. Optional attribute. If this attribute is not included, then
- * threshold value specified by the
- * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
- *
- * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
- * Carries bitmask value of bits from &enum qca_set_band and represents
- * all the bands in which roaming is allowed. The configuration is valid
- * until next disconnection. If this attribute is not present, the
- * existing configuration shall be used. By default, roaming is allowed
- * on all bands supported by local device. When the value is set to
- * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
- *
- * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
- * Optional parameter. RX link speed threshold to disable roaming.
- * If the current RX link speed is above the threshold, roaming is not
- * needed. If this attribute is not configured, or if it is set to 0, the
- * driver will not consider the RX link speed in the roaming decision.
- *
- * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
- * Optional parameter. This configuration delays hand-off (in msec) by the
- * specified duration to receive pending rx frames from current BSS.
- *
- * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
- * value.
- * During the roam scan, if there are no desired APs found in the partial
- * frequency list, an immediate full scan on all the supported frequencies
- * is initiated as a fallback. This flag controls the frequency list
- * creation for the full scan on the following lines.
- * 1 - Full scan to exclude the frequencies that were already scanned by
- * the previous partial scan.
- * 0 - Full scan to include all the supported frequencies irrespective of
- * the ones part of the earlier partial scan.
- * If this flag is not specified, a full scan shall include all the
- * supported frequencies irrespective of the ones part of an earlier
- * partial scan.
- *
- * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
- * value.
- * During the roam scan, if there are no desired APs found in the partial
- * frequency list, an immediate full scan on all the supported frequencies
- * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
- * frequencies, including all PSC frequencies by default. This attribute
- * controls the inclusion of the 6 GHz PSC frequencies for the full scan
- * as following.
- * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
- * prior discovery of any 6 GHz frequency support in the environment.
- * This discovery can happen through a prior RNR, 11k neighbor
- * request, 11v BTM request, host scan, etc.
- * 0 - Default behavior. Full scan to include all the supported 6 GHz
- * PSC frequencies regardless of whether 6 GHz BSSs have been
- * discovered.
- * The default behavior if this flag is not specified is to include all
- * the supported 6 GHz PSC frequencies in the roam full scan.
- *
- * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
- * This attribute signifies the RSSI offset that is added to low RSSI
- * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
- * high RSSI threshold. STA is expected to trigger roam if the current
- * connected AP's RSSI gets above this high RSSI threshold. STA's roam
- * attempt on high RSSI threshold aims to find candidates from other
- * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
- * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
- * for 2.4 GHz BSS).
- */
- enum qca_vendor_attr_roam_control {
- QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
- QCA_ATTR_ROAM_CONTROL_STATUS = 2,
- QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
- QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
- QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
- QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
- QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
- QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
- QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
- QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
- QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
- QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
- QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
- QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
- QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
- QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
- QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
- QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
- QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
- QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
- QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
- QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
- /* keep last */
- QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
- QCA_ATTR_ROAM_CONTROL_MAX =
- QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
- * Represents the different roam sub commands referred by
- * enum qca_wlan_vendor_roaming_subcmd.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
- * Represents the Request ID for the specific set of commands.
- * This also helps to map specific set of commands to the respective
- * ID / client. e.g., helps to identify the user entity configuring the
- * Blacklist BSSID and accordingly clear the respective ones with the
- * matching ID.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
- * 32-bit value.Represents the number of whitelist SSIDs configured.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
- * to carry the list of Whitelist SSIDs.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
- * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
- * represent the list of SSIDs to which the firmware/driver can consider
- * to roam to.
- *
- * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
- * comparing with a 2.4GHz BSSID. They are not applied when comparing two
- * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
- * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
- * value, RSSI threshold above which 5GHz RSSI is favored.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
- * value, RSSI threshold below which 5GHz RSSI is penalized.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
- * value, factor by which 5GHz RSSI is boosted.
- * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
- * value, factor by which 5GHz RSSI is penalized.
- * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
- * value, maximum boost that can be applied to a 5GHz RSSI.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
- * value, boost applied to current BSSID to ensure the currently
- * associated BSSID is favored so as to prevent ping-pong situations.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
- * value, RSSI below which "Alert" roam is enabled.
- * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
- * because the RSSI is low, or because many successive beacons have been
- * lost or other bad link conditions.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
- * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
- * firmware is hunting for a better BSSID or white listed SSID even though
- * the RSSI of the link is good. The parameters enabling the roaming are
- * configured through the PARAM_A_BAND_XX attrbutes.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
- * represents the BSSIDs preferred over others while evaluating them
- * for the roaming.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
- * 32-bit value. Represents the number of preferred BSSIDs set.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
- * address representing the BSSID to be preferred.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
- * 32-bit value, representing the modifier to be applied to the RSSI of
- * the BSSID for the purpose of comparing it with other roam candidate.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
- * represents the BSSIDs to get blacklisted for roaming.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
- * 32-bit value, represents the number of blacklisted BSSIDs.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
- * address representing the Blacklisted BSSID.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
- * indicates this BSSID blacklist as a hint to the driver. The driver can
- * select this BSSID in the worst case (when no other BSSIDs are better).
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
- * set/get/clear the roam control config as
- * defined @enum qca_vendor_attr_roam_control.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
- * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
- */
- enum qca_wlan_vendor_attr_roaming_config_params {
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
- QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
- QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_roaming_subcmd: Referred by
- * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
- *
- * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
- * configure the white list SSIDs. These are configured through
- * the following attributes.
- * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
- * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
- * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
- *
- * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
- * configure the Roam params. These parameters are evaluated on the extscan
- * results. Refers the attributes PARAM_A_BAND_XX above to configure the
- * params.
- *
- * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
- * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
- * to enable/disable Lazy roam.
- *
- * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
- * preference. Contains the attribute
- * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
- * preference.
- *
- * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
- *
- * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
- * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
- * set the same.
- *
- * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
- * roam control config to the driver with the attribute
- * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
- *
- * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
- * roam control config from driver with the attribute
- * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
- * For the get, the attribute for the configuration to be queried shall
- * carry any of its acceptable value to the driver. In return, the driver
- * shall send the configured values within the same attribute to the user
- * space.
- *
- * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
- * roam control config in the driver with the attribute
- * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
- * The driver shall continue with its default roaming behavior when data
- * corresponding to an attribute is cleared.
- */
- enum qca_wlan_vendor_roaming_subcmd {
- QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
- QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
- QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
- QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
- QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
- QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
- QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
- QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
- QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
- };
- /**
- * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
- *
- * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
- * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
- * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
- * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
- * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
- * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
- */
- enum qca_wlan_vendor_attr_get_wifi_info {
- QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
- QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
- QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
- /* KEEP LAST */
- QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
- QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
- };
- enum qca_wlan_vendor_attr_logger_results {
- QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
- /*
- * Unsigned 32-bit value; must match the request Id supplied by
- * Wi-Fi HAL in the corresponding subcmd NL msg.
- */
- QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
- /*
- * Unsigned 32-bit value; used to indicate the size of memory
- * dump to be allocated.
- */
- QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
- QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
- };
- /**
- * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
- * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
- */
- enum qca_wlan_vendor_channel_prop_flags {
- /* Bits 0, 1, 2, and 3 are reserved */
- /* Turbo channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
- /* CCK channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
- /* OFDM channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
- /* 2.4 GHz spectrum channel. */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
- /* 5 GHz spectrum channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
- /* Only passive scan allowed */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
- /* Dynamic CCK-OFDM channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
- /* GFSK channel (FHSS PHY) */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
- /* Radar found on channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
- /* 11a static turbo channel only */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
- /* Half rate channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
- /* Quarter rate channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
- /* HT 20 channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
- /* HT 40 with extension channel above */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
- /* HT 40 with extension channel below */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
- /* HT 40 intolerant */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
- /* VHT 20 channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
- /* VHT 40 with extension channel above */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
- /* VHT 40 with extension channel below */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
- /* VHT 80 channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
- /* HT 40 intolerant mark bit for ACS use */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
- /* Channel temporarily blocked due to noise */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
- /* VHT 160 channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
- /* VHT 80+80 channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
- /* HE 20 channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
- /* HE 40 with extension channel above */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
- /* HE 40 with extension channel below */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
- /* HE 40 intolerant */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
- };
- /**
- * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
- * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
- * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
- */
- enum qca_wlan_vendor_channel_prop_flags_2 {
- /* HE 40 intolerant mark bit for ACS use */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
- /* HE 80 channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
- /* HE 160 channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
- /* HE 80+80 channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
- };
- /**
- * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
- * each channel. This is used by
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
- */
- enum qca_wlan_vendor_channel_prop_flags_ext {
- /* Radar found on channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
- /* DFS required on channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
- /* DFS required on channel for 2nd band of 80+80 */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
- /* If channel has been checked for DFS */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
- /* Excluded in 802.11d */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
- /* Channel Switch Announcement received on this channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
- /* Ad-hoc is not allowed */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
- /* Station only channel */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
- /* DFS radar history for slave device (STA mode) */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
- /* DFS CAC valid for slave device (STA mode) */
- QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
- };
- /**
- * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
- * information to start/stop the NUD statistics collection.
- */
- enum qca_attr_nud_stats_set {
- QCA_ATTR_NUD_STATS_SET_INVALID = 0,
- /*
- * Flag to start/stop the NUD statistics collection.
- * Start - If included, Stop - If not included
- */
- QCA_ATTR_NUD_STATS_SET_START = 1,
- /* IPv4 address of the default gateway (in network byte order) */
- QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
- /*
- * Represents the data packet type to be monitored.
- * Host driver tracks the stats corresponding to each data frame
- * represented by these flags.
- * These data packets are represented by
- * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
- */
- QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
- /* keep last */
- QCA_ATTR_NUD_STATS_SET_LAST,
- QCA_ATTR_NUD_STATS_SET_MAX =
- QCA_ATTR_NUD_STATS_SET_LAST - 1,
- };
- /**
- * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
- * information to start / stop the NUD stats collection.
- * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
- * Bitmap to Flag to Start / Stop the NUD stats collection
- * Start - If included , Stop - If not included
- * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
- * IPv4 address of Default Gateway (in network byte order)
- * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
- * information to start / stop the NUD stats collection.
- * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
- * Flag to Start / Stop the NUD stats collection
- * Start - If included , Stop - If not included
- * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
- * IPv4 address of Default Gateway (in network byte order)
- * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
- * information to start / stop the NUD stats collection.
- * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
- * Flag to Start / Stop the NUD stats collection
- * Start - If included , Stop - If not included
- * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
- * IPv4 address of Default Gateway (in network byte order)
- */
- enum qca_attr_connectivity_check_stats_set {
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
- /* keep last */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
- };
- /**
- * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
- * data types for which the stats have to get collected.
- */
- enum qca_wlan_vendor_connectivity_check_pkt_flags {
- QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
- QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
- QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
- QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
- QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
- /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
- * to represent the stats of respective data type.
- */
- QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
- QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
- QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
- };
- enum qca_attr_connectivity_check_stats {
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
- /* Data packet type for which the stats are collected.
- * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
- */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
- /* ID corresponding to the DNS frame for which the respective DNS stats
- * are monitored (u32).
- */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
- /* source / destination port on which the respective proto stats are
- * collected (u32).
- */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
- /* IPv4/IPv6 address for which the destined data packets are
- * monitored. (in network byte order)
- */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
- /* Data packet Request count received from netdev */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
- /* Data packet Request count sent to lower MAC from upper MAC */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
- /* Data packet Request count received by lower MAC from upper MAC */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
- /* Data packet Request count successfully transmitted by the device */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
- /* Data packet Response count received by lower MAC */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
- /* Data packet Response count received by upper MAC */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
- /* Data packet Response count delivered to netdev */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
- /* Data Packet Response count that are dropped out of order */
- QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
- /* keep last */
- QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
- QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
- QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
- };
- /**
- * qca_attr_nud_stats_get: Attributes to vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
- * NUD statistics collected when queried.
- */
- enum qca_attr_nud_stats_get {
- QCA_ATTR_NUD_STATS_GET_INVALID = 0,
- /* ARP Request count from netdev */
- QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
- /* ARP Request count sent to lower MAC from upper MAC */
- QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
- /* ARP Request count received by lower MAC from upper MAC */
- QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
- /* ARP Request count successfully transmitted by the device */
- QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
- /* ARP Response count received by lower MAC */
- QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
- /* ARP Response count received by upper MAC */
- QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
- /* ARP Response count delivered to netdev */
- QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
- /* ARP Response count delivered to netdev */
- QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
- /*
- * Flag indicating if the station's link to the AP is active.
- * Active Link - If included, Inactive link - If not included
- */
- QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
- /*
- * Flag indicating if there is any duplicate address detected (DAD).
- * Yes - If detected, No - If not detected.
- */
- QCA_ATTR_NUD_STATS_IS_DAD = 10,
- /*
- * List of Data types for which the stats are requested.
- * This list does not carry ARP stats as they are done by the
- * above attributes. Represented by enum qca_attr_nud_data_stats.
- */
- QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
- /* keep last */
- QCA_ATTR_NUD_STATS_GET_LAST,
- QCA_ATTR_NUD_STATS_GET_MAX =
- QCA_ATTR_NUD_STATS_GET_LAST - 1,
- };
- enum qca_wlan_btm_candidate_status {
- QCA_STATUS_ACCEPT = 0,
- QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
- QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
- QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
- QCA_STATUS_REJECT_LOW_RSSI = 4,
- QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
- QCA_STATUS_REJECT_UNKNOWN = 6,
- };
- enum qca_wlan_vendor_attr_btm_candidate_info {
- QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
- /* 6-byte MAC address representing the BSSID of transition candidate */
- QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
- /*
- * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
- * returned by the driver. It says whether the BSSID provided in
- * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
- * the driver, if not it specifies the reason for rejection.
- * Note that the user-space can overwrite the transition reject reason
- * codes provided by driver based on more information.
- */
- QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
- };
- enum qca_attr_trace_level {
- QCA_ATTR_TRACE_LEVEL_INVALID = 0,
- /*
- * Nested array of the following attributes:
- * QCA_ATTR_TRACE_LEVEL_MODULE,
- * QCA_ATTR_TRACE_LEVEL_MASK.
- */
- QCA_ATTR_TRACE_LEVEL_PARAM = 1,
- /*
- * Specific QCA host driver module. Please refer to the QCA host
- * driver implementation to get the specific module ID.
- */
- QCA_ATTR_TRACE_LEVEL_MODULE = 2,
- /* Different trace level masks represented in the QCA host driver. */
- QCA_ATTR_TRACE_LEVEL_MASK = 3,
- /* keep last */
- QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
- QCA_ATTR_TRACE_LEVEL_MAX =
- QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_get_logger_features - value for logger
- * supported features
- * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
- * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
- * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
- * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
- *
- * enum values are used for NL attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
- */
- enum qca_wlan_vendor_attr_get_logger_features {
- QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
- QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_link_properties - link properties
- *
- * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
- * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
- * specify the number of spatial streams negotiated
- * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
- * to specify negotiated rate flags i.e. ht, vht and channel width
- * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
- * specify the operating frequency
- * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
- * (STA / AP ) for the connected link.
- * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
- * &struct nl80211_sta_flag_update for the respective connected link. MAC
- * address of the peer represented by
- * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
- * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
- * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
- */
- enum qca_wlan_vendor_attr_link_properties {
- QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
- QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
- QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
- QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
- QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
- /* KEEP LAST */
- QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
- QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
- *
- * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
- * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
- * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
- * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
- *
- * enum values are used for NL attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
- */
- enum qca_wlan_vendor_attr_nd_offload {
- QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
- QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_features - Vendor device/driver feature flags
- *
- * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
- * management offload, a mechanism where the station's firmware
- * does the exchange with the AP to establish the temporal keys
- * after roaming, rather than having the user space wpa_supplicant do it.
- * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
- * band selection based on channel selection results.
- * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
- * simultaneous off-channel operations.
- * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
- * Listen offload; a mechanism where the station's firmware takes care of
- * responding to incoming Probe Request frames received from other P2P
- * Devices whilst in Listen state, rather than having the user space
- * wpa_supplicant do it. Information from received P2P requests are
- * forwarded from firmware to host whenever the host processor wakes up.
- * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
- * specific features.
- * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
- * features.
- * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
- * specific features only. If a Device sets this bit but not the
- * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
- * this Device may not support all OCE AP functionalities but can support
- * only OCE STA-CFON functionalities.
- * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
- * managed regulatory.
- * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
- * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
- * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
- * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
- * and applying thermal configuration through
- * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
- * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
- * userspace.
- * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
- * With Adaptive 11r feature, access points advertise the vendor
- * specific IEs and MDE but do not include FT AKM in the RSNE.
- * The Adaptive 11r supported stations are expected to identify
- * such vendor specific IEs and connect to the AP in FT mode though
- * the profile is configured in non-FT mode.
- * The driver-based SME cases also need to have this support for
- * Adaptive 11r to handle the connection and roaming scenarios.
- * This flag indicates the support for the same to the user space.
- * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
- * concurrent network sessions on different Wi-Fi Bands. This feature
- * capability is attributed to the hardware's capability to support
- * the same (e.g., DBS).
- * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
- * responses for the respective TWT operations are asynchronous (separate)
- * event message) from the driver. If not specified, the responses are
- * synchronous (in vendor command reply) to the request. Each TWT
- * operation is specifically mentioned (against its respective)
- * documentation) to support either of these or both modes.
- * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
- * that the driver requires add/del virtual interface path using the
- * generic nl80211 commands for NDP interface create/delete and to
- * register/unregister the netdev instead of creating/deleting the NDP
- * interface using the vendor commands
- * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
- * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
- * (5.12 version onward), interface creation/deletion is not allowed using
- * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
- * during the register/unregister of netdev. Create and delete NDP
- * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
- * commands respectively if the driver advertises this capability set.
- * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
- * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
- * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
- * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
- * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
- * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
- * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
- * station mode supports secure RTT measurement exchange. If
- * NL80211_EXT_FEATURE_SECURE_RTT is set,
- * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
- * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
- * mode supports secure RTT measurement exchange. If
- * NL80211_EXT_FEATURE_SECURE_RTT is set,
- * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
- * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
- * the device in station mode supports protection of range negotiation and
- * measurement management frames. If
- * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
- * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
- * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
- * the device in AP mode supports protection of range negotiation and
- * measurement management frames. If
- * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
- * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
- * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
- * in AP mode supports configuring allowed frequency list for AP operation
- * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
- * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
- * that the device supports enhanced audio experience over WLAN feature.
- * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
- */
- enum qca_wlan_vendor_features {
- QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
- QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
- QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
- QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
- QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
- QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
- QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
- QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
- QCA_WLAN_VENDOR_FEATURE_TWT = 8,
- QCA_WLAN_VENDOR_FEATURE_11AX = 9,
- QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
- QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
- QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
- QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
- QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
- QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
- QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
- QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
- QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
- QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
- QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
- QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
- QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
- QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
- NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
- };
- /**
- * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
- * conditional channel switch
- * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
- * value
- * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
- * frequency list (an array of u32 values in host byte order)
- * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
- * conditional switch (u32)- 0: Success, Non-zero: Failure
- * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
- * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
- */
- enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
- QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
- QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
- /* Keep Last */
- QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
- QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
- };
- /**
- * enum wifi_logger_supported_features - values for supported logger features
- * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
- * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
- * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
- * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
- * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
- * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
- * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
- * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
- */
- enum wifi_logger_supported_features {
- WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
- WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
- WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
- WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
- WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
- WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
- WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
- WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
- WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
- };
- /**
- * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
- * capabilities features
- */
- enum qca_wlan_tdls_caps_features_supported {
- WIFI_TDLS_SUPPORT = (1 << (0)),
- WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
- WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
- /* Indicates if the TDLS session can be formed with the peer using
- * higher bandwidth than the bandwidth of the AP path.
- */
- WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
- };
- /**
- * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
- * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
- * Used with event to notify the primary channel number selected in ACS
- * operation.
- * Note: If both the driver and user-space application supports the 6 GHz band,
- * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
- * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
- * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
- * is still used if either of the driver or user space application doesn't
- * support the 6 GHz band.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
- * Used with event to notify the secondary channel number selected in ACS
- * operation.
- * Note: If both the driver and user-space application supports the 6 GHz band,
- * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
- * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
- * the driver or user space application doesn't support 6 GHz band.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
- * (a) Used with command to configure hw_mode from
- * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
- * (b) Also used with event to notify the hw_mode of selected primary channel
- * in ACS operation.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
- * Used with command to configure ACS operation for HT mode.
- * Disable (flag attribute not present) - HT disabled and
- * Enable (flag attribute present) - HT enabled.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
- * Used with command to configure ACS operation for HT40 mode.
- * Disable (flag attribute not present) - HT40 disabled and
- * Enable (flag attribute present) - HT40 enabled.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
- * Used with command to configure ACS operation for VHT mode.
- * Disable (flag attribute not present) - VHT disabled and
- * Enable (flag attribute present) - VHT enabled.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
- * mandatory with event.
- * If specified in command path, ACS operation is configured with the given
- * channel width (in MHz).
- * In event path, specifies the channel width of the primary channel selected.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
- * Used with command to configure channel list using an array of
- * channel numbers (u8).
- * Note: If both the driver and user-space application supports the 6 GHz band,
- * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
- * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
- * Used with event to notify the VHT segment 0 center channel number selected in
- * ACS operation.
- * Note: If both the driver and user-space application supports the 6 GHz band,
- * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
- * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
- * the driver or user space application doesn't support the 6 GHz band.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
- * Used with event to notify the VHT segment 1 center channel number selected in
- * ACS operation.
- * Note: If both the driver and user-space application supports the 6 GHz band,
- * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
- * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
- * the driver or user space application doesn't support the 6 GHz band.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
- * Used with command to configure the channel list using an array of channel
- * center frequencies in MHz (u32).
- * Note: If both the driver and user-space application supports the 6 GHz band,
- * the driver first parses the frequency list and if it fails to get a frequency
- * list, parses the channel list specified using
- * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
- * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
- * Used with event to notify the primary channel center frequency (MHz) selected
- * in ACS operation.
- * Note: If the driver supports the 6 GHz band, the event sent from the driver
- * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
- * Used with event to notify the secondary channel center frequency (MHz)
- * selected in ACS operation.
- * Note: If the driver supports the 6 GHz band, the event sent from the driver
- * includes this attribute along with
- * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
- * Used with event to notify the VHT segment 0 center channel frequency (MHz)
- * selected in ACS operation.
- * Note: If the driver supports the 6 GHz band, the event sent from the driver
- * includes this attribute along with
- * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
- * Used with event to notify the VHT segment 1 center channel frequency (MHz)
- * selected in ACS operation.
- * Note: If the driver supports the 6 GHz band, the event sent from the driver
- * includes this attribute along with
- * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
- * Used with command to notify the driver of EDMG request for ACS
- * operation.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
- * Used with event to notify the EDMG channel number selected in ACS
- * operation.
- * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
- * Used with event to notify the puncture pattern selected in ACS operation.
- * Encoding for this attribute will follow the convention used in the Disabled
- * Subchannel Bitmap field of the EHT Operation IE.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
- * Used with command to configure ACS operation for EHT mode.
- * Disable (flag attribute not present) - EHT disabled and
- * Enable (flag attribute present) - EHT enabled.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
- * Used with command to configure how older scan can be considered for ACS
- * scoring. In case scan was performed on partial set of channels configured
- * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
- * (in ms), then scan only remaining channels.
- */
- enum qca_wlan_vendor_attr_acs_offload {
- QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
- QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
- QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
- QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
- QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
- QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
- QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
- QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
- QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
- QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
- QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
- QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
- QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
- QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
- QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
- QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
- QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
- QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
- QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
- QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ACS_MAX =
- QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
- * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
- *
- * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
- * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
- * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
- * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
- * @QCA_ACS_MODE_IEEE80211ANY: all modes
- * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
- */
- enum qca_wlan_vendor_acs_hw_mode {
- QCA_ACS_MODE_IEEE80211B,
- QCA_ACS_MODE_IEEE80211G,
- QCA_ACS_MODE_IEEE80211A,
- QCA_ACS_MODE_IEEE80211AD,
- QCA_ACS_MODE_IEEE80211ANY,
- QCA_ACS_MODE_IEEE80211AX,
- };
- /**
- * enum qca_access_policy - access control policy
- *
- * Access control policy is applied on the configured IE
- * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
- * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
- *
- * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
- *» with the specific configuration (IE) set, i.e. allow all the
- *» connections which do not match the configuration.
- * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
- *» with the specific configuration (IE) set, i.e. deny all the
- *» connections which do not match the configuration.
- */
- enum qca_access_policy {
- QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
- QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
- };
- /**
- * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
- *
- * The valid values for the ignore assoc disallowed
- *
- * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
- * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
- *
- */
- enum qca_ignore_assoc_disallowed {
- QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
- QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
- };
- /* Attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
- * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
- */
- #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
- QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
- #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
- QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
- #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
- QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
- enum qca_wlan_vendor_attr_config {
- QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
- /*
- * Unsigned 32-bit value to set the DTIM period.
- * Whether the wifi chipset wakes at every dtim beacon or a multiple of
- * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
- * DTIM beacons.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
- /*
- * Unsigned 32-bit value to set the wifi_iface stats averaging factor
- * used to calculate statistics like average the TSF offset or average
- * number of frame leaked.
- * For instance, upon Beacon frame reception:
- * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
- * For instance, when evaluating leaky APs:
- * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
- /*
- * Unsigned 32-bit value to configure guard time, i.e., when
- * implementing IEEE power management based on frame control PM bit, how
- * long the driver waits before shutting down the radio and after
- * receiving an ACK frame for a Data frame with PM bit set.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
- /* Unsigned 32-bit value to change the FTM capability dynamically */
- QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
- /* Unsigned 16-bit value to configure maximum TX rate dynamically */
- QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
- /*
- * Unsigned 32-bit value to configure the number of continuous
- * Beacon Miss which shall be used by the firmware to penalize
- * the RSSI.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
- /*
- * Unsigned 8-bit value to configure the channel avoidance indication
- * behavior. Firmware to send only one indication and ignore duplicate
- * indications when set to avoid multiple Apps wakeups.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
- /*
- * 8-bit unsigned value to configure the maximum TX MPDU for
- * aggregation.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
- /*
- * 8-bit unsigned value to configure the maximum RX MPDU for
- * aggregation.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
- /*
- * 8-bit unsigned value to configure the Non aggregate/11g sw
- * retry threshold (0 disable, 31 max).
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
- /*
- * 8-bit unsigned value to configure the aggregate sw
- * retry threshold (0 disable, 31 max).
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
- /*
- * 8-bit unsigned value to configure the MGMT frame
- * retry threshold (0 disable, 31 max).
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
- /*
- * 8-bit unsigned value to configure the CTRL frame
- * retry threshold (0 disable, 31 max).
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
- /*
- * 8-bit unsigned value to configure the propagation delay for
- * 2G/5G band (0~63, units in us)
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
- /*
- * Unsigned 32-bit value to configure the number of unicast TX fail
- * packet count. The peer is disconnected once this threshold is
- * reached.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
- /*
- * Attribute used to set scan default IEs to the driver.
- *
- * These IEs can be used by scan operations that will be initiated by
- * the driver/firmware.
- *
- * For further scan requests coming to the driver, these IEs should be
- * merged with the IEs received along with scan request coming to the
- * driver. If a particular IE is present in the scan default IEs but not
- * present in the scan request, then that IE should be added to the IEs
- * sent in the Probe Request frames for that scan request.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
- /* Unsigned 32-bit attribute for generic commands */
- QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
- /* Unsigned 32-bit value attribute for generic commands */
- QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
- /* Unsigned 32-bit data attribute for generic command response */
- QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
- /*
- * Unsigned 32-bit length attribute for
- * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
- /*
- * Unsigned 32-bit flags attribute for
- * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
- /*
- * Unsigned 32-bit, defining the access policy.
- * See enum qca_access_policy. Used with
- * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
- /*
- * Sets the list of full set of IEs for which a specific access policy
- * has to be applied. Used along with
- * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
- * Zero length payload can be used to clear this access constraint.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
- /*
- * Unsigned 32-bit, specifies the interface index (netdev) for which the
- * corresponding configurations are applied. If the interface index is
- * not specified, the configurations are attributed to the respective
- * wiphy.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
- /*
- * 8-bit unsigned value to trigger QPower:
- * 1-Enable, 0-Disable
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
- /*
- * 8-bit unsigned value to configure the driver and below layers to
- * ignore the assoc disallowed set by APs while connecting
- * 1-Ignore, 0-Don't ignore
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
- /*
- * 32-bit unsigned value to trigger antenna diversity features:
- * 1-Enable, 0-Disable
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
- /* 32-bit unsigned value to configure specific chain antenna */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
- /*
- * 32-bit unsigned value to trigger cycle selftest
- * 1-Enable, 0-Disable
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
- /*
- * 32-bit unsigned to configure the cycle time of selftest
- * the unit is micro-second
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
- /* 32-bit unsigned value to set reorder timeout for AC_VO */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
- /* 32-bit unsigned value to set reorder timeout for AC_VI */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
- /* 32-bit unsigned value to set reorder timeout for AC_BE */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
- /* 32-bit unsigned value to set reorder timeout for AC_BK */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
- /* 6-byte MAC address to point out the specific peer */
- QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
- /* Backward compatibility with the original name */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
- QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
- /* 32-bit unsigned value to set window size for specific peer */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
- /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
- QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
- /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
- QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
- /*
- * 32-bit unsigned value to configure 5 or 10 MHz channel width for
- * station device while in disconnect state. The attribute use the
- * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
- * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
- * 10 MHz channel width, the station will not connect to a BSS using 20
- * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
- * clear this constraint.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
- /*
- * 32-bit unsigned value to configure the propagation absolute delay
- * for 2G/5G band (units in us)
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
- /* 32-bit unsigned value to set probe period */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
- /* 32-bit unsigned value to set stay period */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
- /* 32-bit unsigned value to set snr diff */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
- /* 32-bit unsigned value to set probe dwell time */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
- /* 32-bit unsigned value to set mgmt snr weight */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
- /* 32-bit unsigned value to set data snr weight */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
- /* 32-bit unsigned value to set ack snr weight */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
- /*
- * 32-bit unsigned value to configure the listen interval.
- * This is in units of beacon intervals. This configuration alters
- * the negotiated listen interval with the AP during the connection.
- * It is highly recommended to configure a value less than or equal to
- * the one negotiated during the association. Configuring any greater
- * value can have adverse effects (frame loss, AP disassociating STA,
- * etc.).
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
- /*
- * 8 bit unsigned value that is set on an AP/GO virtual interface to
- * disable operations that would cause the AP/GO to leave its operating
- * channel.
- *
- * This will restrict the scans to the AP/GO operating channel and the
- * channels of the other band, if DBS is supported.A STA/CLI interface
- * brought up after this setting is enabled, will be restricted to
- * connecting to devices only on the AP/GO interface's operating channel
- * or on the other band in DBS case. P2P supported channel list is
- * modified, to only include AP interface's operating-channel and the
- * channels of the other band if DBS is supported.
- *
- * These restrictions are only applicable as long as the AP/GO interface
- * is alive. If the AP/GO interface is brought down then this
- * setting/restriction is forgotten.
- *
- * If this variable is set on an AP/GO interface while a multi-channel
- * concurrent session is active, it has no effect on the operation of
- * the current interfaces, other than restricting the scan to the AP/GO
- * operating channel and the other band channels if DBS is supported.
- * However, if the STA is brought down and restarted then the new STA
- * connection will either be formed on the AP/GO channel or on the
- * other band in a DBS case. This is because of the scan being
- * restricted on these channels as mentioned above.
- *
- * 1-Disable offchannel operations, 0-Enable offchannel operations.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
- /*
- * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
- * on an interface.
- * 1 - Enable , 0 - Disable.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
- /*
- * 8 bit unsigned value to globally enable/disable scan
- * 1 - Enable, 0 - Disable.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
- /* 8-bit unsigned value to set the total beacon miss count */
- QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
- /*
- * Unsigned 32-bit value to configure the number of continuous
- * Beacon Miss which shall be used by the firmware to penalize
- * the RSSI for BTC.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
- /*
- * 8-bit unsigned value to configure the driver and below layers to
- * enable/disable all fils features.
- * 0-enable, 1-disable
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
- /* 16-bit unsigned value to configure the level of WLAN latency
- * module. See enum qca_wlan_vendor_attr_config_latency_level.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
- /*
- * 8-bit unsigned value indicating the driver to use the RSNE as-is from
- * the connect interface. Exclusively used for the scenarios where the
- * device is used as a test bed device with special functionality and
- * not recommended for production. This helps driver to not validate the
- * RSNE passed from user space and thus allow arbitrary IE data to be
- * used for testing purposes.
- * 1-enable, 0-disable.
- * Applications set/reset this configuration. If not reset, this
- * parameter remains in use until the driver is unloaded.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
- /*
- * 8-bit unsigned value to trigger green Tx power saving.
- * 1-Enable, 0-Disable
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
- /*
- * Attribute to configure disconnect IEs to the driver.
- * This carries an array of unsigned 8-bit characters.
- *
- * If this is configured, driver shall fill the IEs in disassoc/deauth
- * frame.
- * These IEs are expected to be considered only for the next
- * immediate disconnection (disassoc/deauth frame) originated by
- * the DUT, irrespective of the entity (user space/driver/firmware)
- * triggering the disconnection.
- * The host drivers are not expected to use the IEs set through
- * this interface for further disconnections after the first immediate
- * disconnection initiated post the configuration.
- * If the IEs are also updated through cfg80211 interface (after the
- * enhancement to cfg80211_disconnect), host driver is expected to
- * take the union of IEs from both of these interfaces and send in
- * further disassoc/deauth frames.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
- /* 8-bit unsigned value for ELNA bypass.
- * 0 - Disable eLNA bypass.
- * 1 - Enable eLNA bypass.
- * 2 - Reset eLNA bypass configuration, the driver should
- * revert to the default configuration of eLNA bypass.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
- /* 8-bit unsigned value. This attribute enables/disables the host driver
- * to send the Beacon Report response with failure reason for the
- * scenarios where STA cannot honor the Beacon report request from AP.
- * 1-Enable, 0-Disable.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
- /* 8-bit unsigned value. This attribute enables/disables the host driver
- * to send roam reason information in the reassociation request to the
- * AP. 1-Enable, 0-Disable.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
- /* 32-bit unsigned value to configure different PHY modes to the
- * driver/firmware. The possible values are defined in
- * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
- * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
- * the driver.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
- /* 8-bit unsigned value to configure the maximum supported channel width
- * for STA mode. If this value is configured when STA is in connected
- * state, it should not exceed the negotiated channel width. If it is
- * configured when STA is in disconnected state, the configured value
- * will take effect for the next immediate connection.
- * This configuration can be sent inside
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
- * supported channel width per-MLO link.
- *
- * This uses values defined in enum nl80211_chan_width.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
- /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
- * This attribute is only applicable for STA mode. When dynamic
- * bandwidth adjustment is disabled, STA will use static channel width
- * the value of which is negotiated during connection.
- * 1-enable (default), 0-disable
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
- /* 8-bit unsigned value to configure the maximum number of subframes of
- * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
- * it is decided by hardware.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
- /* 8-bit unsigned value to configure the maximum number of subframes of
- * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
- * it is decided by hardware.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
- /* 8-bit unsigned value. This attribute is used to dynamically
- * enable/disable the LDPC capability of the device. When configured in
- * the disconnected state, the updated configuration will be considered
- * for the immediately following connection attempt. If this
- * configuration is modified while the device is in the connected state,
- * the LDPC TX will be updated with this configuration immediately,
- * while the LDPC RX configuration update will take place starting from
- * the subsequent association attempt.
- * 1-Enable, 0-Disable.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
- /* 8-bit unsigned value. This attribute is used to dynamically
- * enable/disable the TX STBC capability of the device. When configured
- * in the disconnected state, the updated configuration will be
- * considered for the immediately following connection attempt. If the
- * connection is formed with TX STBC enabled and if this configuration
- * is disabled during that association, the TX will be impacted
- * immediately. Further connection attempts will disable TX STBC.
- * However, enabling the TX STBC for a connected session with disabled
- * capability is not allowed and will fail.
- * 1-Enable, 0-Disable.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
- /* 8-bit unsigned value. This attribute is used to dynamically
- * enable/disable the RX STBC capability of the device. When configured
- * in the disconnected state, the updated configuration will be
- * considered for the immediately following connection attempt. If the
- * configuration is modified in the connected state, there will be no
- * impact for the current association, but further connection attempts
- * will use the updated configuration.
- * 1-Enable, 0-Disable.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
- /* 8-bit unsigned value. This attribute is used to dynamically configure
- * the number of spatial streams. When configured in the disconnected
- * state, the updated configuration will be considered for the
- * immediately following connection attempt. If the NSS is updated after
- * the connection, the updated NSS value is notified to the peer using
- * the Operating Mode Notification/Spatial Multiplexing Power Save
- * frame. The updated NSS value after the connection shall not be
- * greater than the one negotiated during the connection. Any such
- * higher value configuration shall be returned with a failure.
- * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
- * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
- * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
- * configure the asymmetric NSS configuration (such as 1X2).
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
- /* 8-bit unsigned value to configure Optimized Power Management mode:
- * Modes are defined by enum qca_wlan_vendor_opm_mode.
- *
- * This attribute shall be configured along with
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
- * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
- /* 8-bit unsigned value. This attribute takes the QOS/access category
- * value represented by the enum qca_wlan_ac_type and expects the driver
- * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
- * is invalid for this attribute. This will override the DSCP value
- * configured in the frame with the intention to only upgrade the QOS.
- * That said, it is not intended to downgrade the QOS for the frames.
- * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
- * to disable.
- *
- * If only UDP frames of BE or BK access category needs to be upgraded
- * without changing the access category of VO or VI UDP frames, refer to
- * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
- *
- * This attribute is not recommended to be used as it blindly forces all
- * UDP packets to a higher access category which could impact the
- * traffic pattern of all apps using UDP and can cause unknown behavior.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
- /* 8-bit unsigned value. This attribute is used to dynamically configure
- * the number of chains to be used for transmitting data. This
- * configuration is allowed only when in connected state and will be
- * effective until disconnected. The driver rejects this configuration
- * if the number of spatial streams being used in the current connection
- * cannot be supported by this configuration.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
- /* 8-bit unsigned value. This attribute is used to dynamically configure
- * the number of chains to be used for receiving data. This
- * configuration is allowed only when in connected state and will be
- * effective until disconnected. The driver rejects this configuration
- * if the number of spatial streams being used in the current connection
- * cannot be supported by this configuration.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
- /* 8-bit unsigned value to configure ANI setting type.
- * See &enum qca_wlan_ani_setting for possible values.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
- /* 32-bit signed value to configure ANI level. This is used when
- * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
- * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
- * is invalid, the driver will return a failure.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
- /* 8-bit unsigned value. This attribute is used to dynamically configure
- * the number of spatial streams used for transmitting the data. When
- * configured in the disconnected state, the configured value will
- * be considered for the following connection attempt.
- * If the NSS is updated after the connection, the updated NSS value
- * is notified to the peer using the Operating Mode Notification/Spatial
- * Multiplexing Power Save frame.
- * The TX NSS value configured after the connection shall not be greater
- * than the value negotiated during the connection. Any such higher
- * value configuration shall be treated as invalid configuration by
- * the driver. This attribute shall be configured along with
- * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
- * configuration (such as 2X2 or 1X1) or the asymmetric
- * configuration (such as 1X2).
- * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
- * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
- * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
- /* 8-bit unsigned value. This attribute is used to dynamically configure
- * the number of spatial streams used for receiving the data. When
- * configured in the disconnected state, the configured value will
- * be considered for the following connection attempt.
- * If the NSS is updated after the connection, the updated NSS value
- * is notified to the peer using the Operating Mode Notification/Spatial
- * Multiplexing Power Save frame.
- * The RX NSS value configured after the connection shall not be greater
- * than the value negotiated during the connection. Any such higher
- * value configuration shall be treated as invalid configuration by
- * the driver. This attribute shall be configured along with
- * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
- * configuration (such as 2X2 or 1X1) or the asymmetric
- * configuration (such as 1X2).
- * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
- * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
- * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
- /*
- * 8-bit unsigned value. This attribute, when set, indicates whether the
- * specified interface is the primary STA interface when there are more
- * than one STA interfaces concurrently active.
- *
- * This configuration helps the firmware/hardware to support certain
- * features (e.g., roaming) on this primary interface, if the same
- * cannot be supported on the concurrent STA interfaces simultaneously.
- *
- * This configuration is only applicable for a single STA interface on
- * a device and gives the priority for it only over other concurrent STA
- * interfaces.
- *
- * If the device is a multi wiphy/soc, this configuration applies to a
- * single STA interface across the wiphys.
- *
- * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
- /*
- * 8-bit unsigned value. This attribute can be used to configure the
- * driver to enable/disable FT-over-DS feature. Possible values for
- * this attribute are 1-Enable and 0-Disable.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
- /*
- * 8-bit unsigned value. This attribute can be used to configure the
- * firmware to enable/disable ARP/NS offload feature. Possible values
- * for this attribute are 0-Disable and 1-Enable.
- *
- * This attribute is only applicable for STA/P2P-Client interface,
- * and is optional, default behavior is APR/NS offload Enable.
- *
- * This attribute can be set in disconncted and connected state, and
- * will restore to default behavior if interface is closed.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
- /*
- * 8-bit unsigned value. This attribute can be used to configure the
- * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
- * for this attribute are defined in the enum qca_dbam_config.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
- /* 8-bit unsigned value. This attribute takes the QoS/access category
- * value represented by the enum qca_wlan_ac_type and expects the driver
- * to upgrade the UDP frames of BE or BK access category to this access
- * category. This attribute will not modify UDP frames of VO or VI
- * access category. The value of QCA_WLAN_AC_ALL is invalid for this
- * attribute.
- *
- * This will override the DSCP value configured in the frame with the
- * intention to only upgrade the access category. That said, it is not
- * intended to downgrade the access category for the frames.
- * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
- * disabled, as BK is of the lowest priority and an upgrade to it does
- * not result in any changes for the frames.
- *
- * This attribute behavior is similar to
- * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
- * only UDP frames of BE or BK access category are upgraded and not
- * UDP frames of VI or VO access category.
- *
- * This attribute is not recommended to be used as it blindly forces all
- * UDP packets of BE or BK access category to a higher access category
- * which could impact the traffic pattern of all apps using UDP and can
- * cause unknown behavior.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
- /* 8-bit unsigned value to configure the driver to enable/disable the
- * periodic sounding for Tx beamformer functionality. The default
- * behavior uses algorithm to do sounding based on packet stats.
- *
- * 0 - Default behavior.
- * 1 - Enable the periodic sounding for Tx beamformer.
- * This attribute is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
- /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
- * Userspace sends this information to driver/firmware to configure
- * wfc state. Driver/Firmware uses this information to
- * optimize power savings, rate adaption, roaming, etc.
- *
- * 1 - wfc is on.
- * 0 - wfc is off.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
- /* 8-bit unsigned value to configure the driver to enable/disable the
- * EHT EML capability in management frame EHT capabilities.
- * 1 - Enable, 0 - Disable.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
- /* 8-bit unsigned value to configure the driver with EHT MLO max
- * simultaneous links to be used for MLO connection.
- * The range of the value is 0 to 14.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
- /* 8-bit unsigned value to configure the driver with EHT MLO maximum
- * number of links to be used for MLO connection.
- * The range of the value is 1 to 16.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
- /* 8-bit unsigned value to configure the driver with EHT MLO mode.
- * Uses enum qca_wlan_eht_mlo_mode values.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
- /* Nested attribute with frequencies in u32 attributes to configure a
- * list of allowed 20 MHz channel center frequencies in MHz for AP
- * operation. Whenever performing a channel selection operation, the
- * driver shall generate a new list based on this provided list by
- * filtering out channels that cannot be used at that time due to
- * regulatory or other constraints. The resulting list is used as the
- * list of all allowed channels, i.e., operation on any channel that is
- * not included is not allowed, whenever performing operations like ACS
- * and DFS.
- *
- * Userspace shall configure this before starting the AP and the
- * configuration is valid only from the next BSS start and until the
- * BSS is stopped. The driver shall clear this configuration when the
- * AP is stopped and fall back to the default behavior for subsequent
- * AP operation.
- *
- * The default behavior when this configuration is not applicable is the
- * driver can choose any of the channels supported by the hardware
- * except the channels that cannot be used due to regulatory or other
- * constraints.
- *
- * The driver shall reject this configuration if done after the AP is
- * started. This attribute can be used to specify user's choice of
- * frequencies and static puncture channel list, etc.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
- /* Nested attribute to indicate EHT MLO links to be forced active.
- * It contains link MAC address attributes. These nested attributes are
- * of the type NL80211_ATTR_MAC and are used to force enabling of the
- * MLO links corresponding to the indicated link MAC addresses.
- * Subsequently, the links corresponding to the link MAC addresses that
- * are not indicated are forced inactive.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
- /* 8-bit unsigned value to configure EMLSR mode entry or exit.
- * Uses enum qca_wlan_emlsr_mode values.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
- /* 8-bit unsigned value. This attribute is used to dynamically
- * enable/suspend trigger based UL MU transmission.
- * This is supported in STA mode and the device sends Operating
- * Mode Indication to inform the change as described in
- * IEEE Std 802.11ax-2021, 26.9.
- *
- * This attribute can be configured when the STA is associated
- * to an AP and the configuration is maintained until the current
- * association terminates.
- *
- * By default all UL MU transmissions are enabled.
- *
- * Uses enum qca_ul_mu_config values.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
- /* 8-bit unsigned value. Optionally specified along with
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
- * state. This configuration is applicable only for the current
- * connection. This configuration not allowed in disconnected state.
- * This configuration can be sent inside
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
- * supported channel width update type per-MLO link.
- *
- * valid values:
- * 0 - The maximum allowed bandwidth change is applicable for both Tx
- * and Rx paths. The driver shall conduct OMI operation as defined
- * in 26.9 (Operating mode indication) or OMN operation as
- * defined in 11.40 (Notification of operating mode
- * changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the
- * change in the maximum allowed operating bandwidth.
- * 1 - Limit the change in maximum allowed bandwidth only to Tx path.
- * In this case the driver doesn't need to conduct OMI/OMN
- * operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
- * expected to be less than the current connection maximum
- * negotiated bandwidth.
- * For example: Negotiated maximum bandwidth is 160 MHz and the new
- * maximum bandwidth configured is 80 MHz, now the driver limits
- * the maximum bandwidth to 80 MHz only in the Tx path.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
- /* 8-bit unsigned value to set EPCS (Emergency Preparedness
- * Communications Service) feature capability
- * 1 - Enable, 0 - Disable.
- *
- * This configuration is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
- /* 8-bit unsigned value to enable/disable EPCS priority access
- * 1 - Enable, 0 - Disable.
- * The EPCS priority access shall be enabled only when EPCS feature
- * capability is also enabled (see
- * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
- *
- * This configuration is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
- /* 8-bit unsigned value. Used to specify the MLO link ID of a link
- * that is being configured. This attribute must be included in each
- * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and
- * may be included without nesting to indicate the link that is the
- * target of other configuration attributes.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
- /* Array of nested links each identified by
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
- * enum qca_wlan_vendor_attr_config, explicit documentation shall be
- * added for the attributes in enum qca_wlan_vendor_attr_config to
- * support per-MLO link configuration through
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
- *
- * Userspace can configure a single link or multiple links with this
- * attribute by nesting the corresponding configuration attributes and
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
- *
- * Userspace can fetch the configuration attribute values for a single
- * link or multiple links with this attribute by nesting the
- * corresponding configuration attributes and
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
- *
- * For STA interface, this attribute is applicable only in connected
- * state when the current connection is MLO capable. The valid values of
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
- * connected AP MLD links.
- *
- * For AP interface, this configuration applicable only after adding
- * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
- * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
- * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
- * the AP interface.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
- /* 16-bit unsigned value to configure power save inactivity timeout in
- * milliseconds.
- *
- * STA enters into power save mode (PM=1) after TX/RX inactivity of time
- * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
- *
- * This attribute shall be configured along with
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
- * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
- /* 16-bit unsigned value to configure speculative wake interval in
- * milliseconds.
- *
- * STA speculatively wakes up to look for buffered data by AP at
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
- * entering into power save. If configured zero, STA wakes up at
- * upcoming DTIM beacon.
- *
- * This attribute shall be configured along with
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
- * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
- /*
- * 16-bit unsigned value to configure TX max A-MPDU count.
- *
- * For STA interface, this attribute is applicable only in connected
- * state, peer MAC address is not required to be provided.
- *
- * For AP interface, this attribute is applicable only in started
- * state and one of the associated peer STAs must be specified with
- * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
- * association, the peer MAC address provided is the link address of
- * the non-AP MLD.
- *
- * This attribute runtime configures the TX maximum aggregation size.
- * The value must be in range of 1 to BA window size for the specific
- * peer.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
- /*
- * 8-bit unsigned value to configure TID-to-link mapping negotiation
- * type.
- * Uses enum qca_wlan_ttlm_negotiation_support values.
- *
- * This value applies to the complete AP/non-AP MLD interface, and the
- * MLD advertises it within the Basic Multi-Link element in the
- * association frames. If a new value is configured during an active
- * connection, it will take effect in the subsequent associations and
- * is not reset during disconnection.
- *
- * This attribute is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
- /* 8-bit unsigned value
- *
- * This attribute configures a traffic shaping mode
- * applied during coex scenarios.
- * By default all coex traffic shaping modes are enabled,
- * i.e., shape WLAN traffic based on coex traffic pattern and priority.
- * To shape traffic, STA may enter in power save mode
- * and AP may send CTS-to-self frame.
- *
- * Uses enum qca_coex_traffic_shaping_mode values.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105,
- /* 8-bit unsigned value to configure BTM support.
- *
- * The attribute is applicable only for STA interface. Uses enum
- * qca_wlan_btm_support values. This configuration is not allowed in
- * connected state.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107,
- /* 16-bit unsigned value to configure client's keep-alive interval in
- * seconds. The driver will reduce the keep-alive interval to this
- * configured value if the AP advertises BSS maximum idle period and if
- * that BSS max idle period is larger than this configured value. If the
- * AP does not advertise a maximum value, the configured value will be
- * used as a keep-alive period for unprotected frames.
- *
- * This configuration is applicable only during the STA's current
- * association.
- */
- QCA_WLAN_VENDOR_ATTR_CONFIG_KEEP_ALIVE_INTERVAL = 108,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
- QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
- };
- /**
- * enum qca_ul_mu_config - UL MU configuration
- * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
- * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
- */
- enum qca_ul_mu_config {
- QCA_UL_MU_SUSPEND = 0,
- QCA_UL_MU_ENABLE = 1,
- };
- /**
- * enum qca_dbam_config - Specifies DBAM config mode
- * @QCA_DBAM_DISABLE: Firmware disables DBAM
- * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
- * internal criteria are met.
- * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
- */
- enum qca_dbam_config {
- QCA_DBAM_DISABLE = 0,
- QCA_DBAM_ENABLE = 1,
- QCA_DBAM_FORCE_ENABLE = 2,
- };
- /**
- * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
- * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
- * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
- * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
- * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
- * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
- * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
- */
- enum qca_wlan_vendor_attr_wifi_logger_start {
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
- };
- /*
- * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
- * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
- * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
- * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
- * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
- */
- enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
- QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
- };
- #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
- /**
- * enum wlan_offloaded_packets_control - control commands
- * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
- * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
- *
- */
- enum wlan_offloaded_packets_control {
- WLAN_START_OFFLOADED_PACKETS = 1,
- WLAN_STOP_OFFLOADED_PACKETS = 2
- };
- /**
- * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
- *
- * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
- * the offloaded data.
- * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
- * data.
- * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
- * indication.
- */
- enum qca_wlan_vendor_attr_data_offload_ind {
- QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
- QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
- QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
- QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
- */
- enum qca_wlan_vendor_attr_offloaded_packets {
- QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
- /* Takes valid value from the enum
- * qca_wlan_offloaded_packets_sending_control
- * Unsigned 32-bit value
- */
- QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
- /* Unsigned 32-bit value */
- QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
- /* array of u8 len: Max packet size */
- QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
- /* 6-byte MAC address used to represent source MAC address */
- QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
- /* 6-byte MAC address used to represent destination MAC address */
- QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
- /* Unsigned 32-bit value, in milli seconds */
- QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
- /* This optional unsigned 16-bit attribute is used for specifying
- * ethernet protocol type. If not specified ethertype defaults to IPv4.
- */
- QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
- QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
- };
- #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
- /**
- * enum qca_wlan_rssi_monitoring_control - rssi control commands
- * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
- * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
- * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
- */
- enum qca_wlan_rssi_monitoring_control {
- QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
- QCA_WLAN_RSSI_MONITORING_START,
- QCA_WLAN_RSSI_MONITORING_STOP,
- };
- /**
- * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
- * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
- * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
- * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
- * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
- * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
- * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
- * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
- * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
- */
- enum qca_wlan_vendor_attr_rssi_monitoring {
- QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
- QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
- QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
- QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
- /* attributes to be used/received in callback */
- QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
- QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
- QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_NDP.
- * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
- * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
- * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
- * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
- * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
- * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
- * address
- * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
- * created
- * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
- * NCS_SK_TYPE/PMK/SCID instead
- * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
- * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
- * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
- * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
- * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
- * code: accept/reject
- * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
- * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
- * driver
- * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
- * driver
- * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
- * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
- * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
- * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
- * PMKID
- * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
- * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
- * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
- * update:
- * BIT_0: NSS Update
- * BIT_1: Channel list update
- * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
- * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
- * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
- * 0:20 MHz,
- * 1:40 MHz,
- * 2:80 MHz,
- * 3:160 MHz
- * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
- * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
- * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
- * transport port used by NDP.
- * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
- * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
- * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
- * @QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
- * NDP remote peer supports NAN NDPE. 1:support 0:not support
- * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
- * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
- * A lower-case representation of the Service Name shall be used to
- * calculate the Service ID.
- * Array of u8: length is 6 bytes
- * This attribute is used and optional for ndp indication.
- * @QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES: Unsigned 8-bit value for Cipher
- * Suite
- * This attribute is used and optional in ndp request, ndp response, ndp
- * indication, and ndp confirm.
- * This attribute is used to indicate the Capabilities field of Cipher Suite
- * Information attribute (CSIA) of NDP frames as defined in Wi-Fi Aware
- * Specification v4.0, 9.5.21.2, Table 122.
- * Firmware can accept or ignore any of the capability bits.
- * @QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED: Indicate if the GTK protection is
- * required for NDP. NLA_FLAG attribute.
- * This attribute can be used in ndp request, ndp response, ndp indication, and
- * ndp confirm.
- * GTK protection required is indicated in the NDPE attribute of NAN action
- * frame (NAF) during NDP negotiation as defined in Wi-Fi Aware Specification
- * v4.0, 9.5.16.2.
- * If the device and peer supports GTKSA and if GTK protection required bit is
- * set in NDPE IE, devices will share GTK to each other in SKDA of Data Path
- * Security Confirm and Data Path Security Install frames of NDP negotiation to
- * send and receive protected group addressed data frames from each other.
- * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
- * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
- */
- enum qca_wlan_vendor_attr_ndp_params {
- QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
- QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
- QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
- QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
- QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
- QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
- QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
- QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
- QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
- QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
- QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
- QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
- QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
- QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
- QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
- QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
- QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
- QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
- QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
- QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
- QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
- QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
- QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
- QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
- QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
- QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
- QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
- QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
- QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
- QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
- QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
- QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
- QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
- QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for
- * QCA_NL80211_VENDOR_SUBCMD_NDP.
- * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
- * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
- * data path interface.
- * This command was initially designed to both create and start a NAN
- * data path interface. However, changes to Linux 5.12 no longer allow
- * interface creation via vendor commands. When the driver advertises
- * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
- * userspace must explicitly first create the interface using
- * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
- * to start the interface.
- * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
- * data path interface.
- * This command was initially designed to both stop and delete a NAN
- * data path interface. However, changes to Linux 5.12 no longer allow
- * interface deletion via vendor commands. When the driver advertises
- * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
- * userspace must explicitly delete the interface using
- * NL80211_CMD_DEL_INTERFACE after calling this command.
- * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
- * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
- * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
- * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
- * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
- * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
- * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
- * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
- * being received
- * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
- * update
- */
- enum qca_wlan_ndp_sub_cmd {
- QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
- QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
- QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
- QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
- QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
- QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
- QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
- QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
- QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
- QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
- QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
- QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
- };
- /**
- * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
- * information. These attributes are sent as part of
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
- * attributes correspond to a single channel.
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
- * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
- * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
- * regulatory transmission power
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
- * transmission power
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
- * transmission power
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
- * class id
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
- * antenna gain in dbm
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
- * center frequency in MHz.
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
- * segment 0 in center freq in MHz. (this is the legacy alias)
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
- * center frequency in MHz.
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
- * segment 1 in center freq in MHz. (this is the legacy alias)
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
- * flag indicating the AP power modes supported by the channel, as given by
- * enum qca_wlan_vendor_external_acs_chan_power_level.
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
- * attributes for each power mode. It takes attr as defined in enum
- * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
- * This indicates the overlapping 320 MHz center frequency in MHz, if the
- * given primary channel supports more than one 320 MHz channel bonding.
- *
- */
- enum qca_wlan_vendor_external_acs_event_chan_info_attr {
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
- /*
- * A bitmask (u32) with flags specified in
- * enum qca_wlan_vendor_channel_prop_flags_2.
- */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
- /*
- * Segment 0 in MHz (u32).
- *
- * For 20/40/80 MHz bandwidth, this indicates the channel center
- * frequency index for the 20/40/80 MHz operating channel.
- * For 160 MHz bandwidth, this indicates the channel center
- * frequency of the primary 80 MHz channel.
- * For 320 MHz bandwidth, indicates the channel center frequency
- * of the primary 160 MHz channel.
- *
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
- * is also maintained.
- */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
- /* Legacy alias for the Segment 0 attribute.
- *
- * VHT segment 0 in MHz (u32) and the attribute is mandatory.
- * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
- * along with
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
- *
- * If both the driver and user-space application supports the 6 GHz
- * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
- * is deprecated and
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
- * should be used.
- *
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
- * is still used if either of the driver or user space application
- * doesn't support the 6 GHz band.
- */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
- /*
- * Segment 1 in MHz (u32).
- *
- * For 20/40/80 MHz bandwidth, this is set to 0.
- * For 160 MHz bandwidth, indicates the channel center frequency of the
- * 160 MHz channel.
- * For 320 MHz bandwidth, indicates the channel center frequency of the
- * 320 MHz channel.
- *
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
- * is also maintained.
- */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
- /* Legacy alias for the Segment 1 attribute.
- *
- * VHT segment 1 in MHz (u32) and the attribute is mandatory.
- * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
- * along with
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
- *
- * If both the driver and user-space application supports the 6 GHz
- * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
- * is deprecated and
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
- * should be considered.
- *
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
- * is still used if either of the driver or user space application
- * doesn't support the 6 GHz band.
- */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
- /*
- * 16-bit attribute of bits indicating the AP power modes supported by
- * the channel (u16).
- * Note: Currently, only 3 bits are used in the attribute and each bit
- * corresponds to the power mode mentioned in enum
- * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
- * set if the associated mode is supported.
- */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
- = 14,
- /* Array of nested attributes for each power mode. It takes attr as
- * defined in enum
- * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
- */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
- /*
- * This indicates the overlapping 320 MHz center frequency in MHz
- * (u32), if the given primary channel supports more than one
- * 320 MHz channel bonding.
- *
- * Example:
- * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
- * center frequency (primary 160 MHz) is 6185 MHz and there can be two
- * possible segment 2 frequencies for this (320 MHz center
- * frequencies):
- *
- * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
- * from frequency 5945 MHz - 6265 MHz
- * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
- * from frequency 6105 MHz - 6425 MHz
- *
- * In this case,
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
- * return 6185 MHz.
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
- * return 6105 MHz.
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
- * will return 6265 MHz.
- */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
- = 16,
- /* keep last */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
- };
- /**
- * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
- * values that the vendor external ACS channel power attribute
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
- * take.
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
- * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
- */
- enum qca_wlan_vendor_external_acs_chan_power_level {
- QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
- };
- /**
- * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
- * attributes for power mode type and power values corresponding to that.
- * These attributes are sent as part of
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
- */
- enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
- /*
- * Power mode (u8) takes the values defined in enum
- * qca_wlan_vendor_external_acs_chan_power_mode
- */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
- = 1,
- /*
- * Indicates if power value is a PSD/EIRP value (flag). If flag is
- * present, it indicates a PSD value.
- */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
- /*
- * Power value (u32) PSD/EIRP as indicated by
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
- * for power mode corresponding to the
- * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
- * Units for PSD - dBm/MHz
- * Units for EIRP - dBm
- */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
- = 3,
- /* keep last */
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
- QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
- * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
- * driver.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
- * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
- * ACS need to be started
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
- * driver supports spectral scanning or not
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
- * offloaded to firmware.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
- * provides additional channel capability as part of scan operation.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
- * interface status is UP
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
- * interface. It takes one of nl80211_iftype values.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
- * of chan width. ACS logic should try to get a channel with specified width
- * if not found then look for lower values.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
- * a/b/g/n/ac.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
- * among which ACS should choose best frequency.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
- * driver which will have <channel(u8), weight(u8)> format as array of
- * nested values.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
- * for each channel. It takes attr as defined in
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
- * PCL mandatory, PCL preferred, etc.It uses values defined in enum
- * qca_wlan_vendor_attr_external_acs_policy.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
- * Operating Parameter (RROP) availability information (u16). It uses values
- * defined in enum qca_wlan_vendor_attr_rropavail_info.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
- * indicate if driver supports 6 GHz AFC trigger for External ACS.
- */
- enum qca_wlan_vendor_attr_external_acs_event {
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
- };
- enum qca_iface_type {
- QCA_IFACE_TYPE_STA,
- QCA_IFACE_TYPE_AP,
- QCA_IFACE_TYPE_P2P_CLIENT,
- QCA_IFACE_TYPE_P2P_GO,
- QCA_IFACE_TYPE_IBSS,
- QCA_IFACE_TYPE_TDLS,
- };
- /**
- * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
- * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
- * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
- * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
- * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
- * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
- * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
- */
- enum qca_wlan_vendor_attr_pcl_config {
- QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
- QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
- QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
- QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
- };
- enum qca_set_band {
- QCA_SETBAND_AUTO = 0,
- QCA_SETBAND_5G = BIT(0),
- QCA_SETBAND_2G = BIT(1),
- QCA_SETBAND_6G = BIT(2),
- };
- /**
- * enum set_reset_packet_filter - set packet filter control commands
- * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
- * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
- * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
- * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
- * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
- * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
- */
- enum set_reset_packet_filter {
- QCA_WLAN_SET_PACKET_FILTER = 1,
- QCA_WLAN_GET_PACKET_FILTER = 2,
- QCA_WLAN_WRITE_PACKET_FILTER = 3,
- QCA_WLAN_READ_PACKET_FILTER = 4,
- QCA_WLAN_ENABLE_PACKET_FILTER = 5,
- QCA_WLAN_DISABLE_PACKET_FILTER = 6,
- };
- /**
- * enum qca_wlan_vendor_attr_packet_filter - APF control commands
- * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
- * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
- * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
- * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
- * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
- * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
- * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
- * section in packet filter buffer
- */
- enum qca_wlan_vendor_attr_packet_filter {
- QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
- QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
- QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
- QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
- QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
- QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
- QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
- QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
- * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
- */
- enum qca_wlan_vendor_attr_wake_stats {
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
- /* Unsigned 32-bit value indicating the total count of wake event */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
- /* Array of individual wake count, each index representing wake reason
- */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
- /* Unsigned 32-bit value representing wake count array */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
- /* Unsigned 32-bit total wake count value of driver/fw */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
- /* Array of wake stats of driver/fw */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
- /* Unsigned 32-bit total wake count value of driver/fw */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
- /* Unsigned 32-bit total wake count value of packets received */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
- /* Unsigned 32-bit wake count value unicast packets received */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
- /* Unsigned 32-bit wake count value multicast packets received */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
- /* Unsigned 32-bit wake count value broadcast packets received */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
- /* Unsigned 32-bit wake count value of ICMP packets */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
- /* Unsigned 32-bit wake count value of ICMP6 packets */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
- /* Unsigned 32-bit value ICMP6 router advertisement */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
- /* Unsigned 32-bit value ICMP6 neighbor advertisement */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
- /* Unsigned 32-bit value ICMP6 neighbor solicitation */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
- /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
- /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
- /* Unsigned 32-bit wake count value of receive side multicast */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
- /* Unsigned 32-bit wake count value of a given RSSI breach */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
- /* Unsigned 32-bit wake count value of low RSSI */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
- /* Unsigned 32-bit value GSCAN count */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
- /* Unsigned 32-bit value PNO complete count */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
- /* Unsigned 32-bit value PNO match count */
- QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
- /* keep last */
- QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
- QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
- QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
- * configured by userspace to the driver/firmware. The values will be
- * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
- * The driver/firmware takes necessary actions requested by userspace
- * such as throttling wifi tx etc. in order to mitigate high temperature.
- *
- * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
- * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
- * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
- * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
- * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
- * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
- */
- enum qca_wlan_vendor_thermal_level {
- QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
- QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
- QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
- QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
- QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
- QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
- };
- /**
- * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
- * cmd value. Used for NL attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
- */
- enum qca_wlan_vendor_attr_thermal_cmd {
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
- /* The value of command, driver will implement different operations
- * according to this value. It uses values defined in
- * enum qca_wlan_vendor_attr_thermal_cmd_type.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
- /* Userspace uses this attribute to configure thermal level to the
- * driver/firmware, or get thermal level from the driver/firmware.
- * Used in request or response, u32 attribute,
- * possible values are defined in enum qca_wlan_vendor_thermal_level.
- */
- QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
- /* Userspace uses this attribute to configure the time in which the
- * driver/firmware should complete applying settings it received from
- * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
- * command type. Used in request, u32 attribute, value is in
- * milliseconds. A value of zero indicates to apply the settings
- * immediately. The driver/firmware can delay applying the configured
- * thermal settings within the time specified in this attribute if
- * there is any critical ongoing operation.
- */
- QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
- /* Nested attribute, driver/firmware uses this attribute to report
- * thermal stats of different thermal levels to userspace when requested
- * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
- * type. This attribute contains nested array of records of thermal
- * statistics of multiple levels. The attributes used inside this nested
- * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
- */
- QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
- };
- /**
- * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
- * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
- * thermal command types sent to driver.
- * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
- * get thermal shutdown configuration parameters for display. Parameters
- * responded from driver are defined in
- * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
- * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
- * get temperature. Host should respond with a temperature data. It is defined
- * in enum qca_wlan_vendor_attr_thermal_get_temperature.
- * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
- * suspend action.
- * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
- * resume action.
- * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
- * the driver/firmware.
- * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
- * thermal level from the driver/firmware. The driver should respond with a
- * thermal level defined in enum qca_wlan_vendor_thermal_level.
- * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
- * current thermal stats from the driver/firmware. The driver should respond
- * with stats of all thermal levels encapsulated in attribute
- * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
- * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
- * the current thermal stats all thermal levels maintained in the
- * driver/firmware and start counting from zero again.
- */
- enum qca_wlan_vendor_attr_thermal_cmd_type {
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
- QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
- };
- /**
- * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
- * to get chip temperature by user.
- * enum values are used for NL attributes for data used by
- * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
- * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
- */
- enum qca_wlan_vendor_attr_thermal_get_temperature {
- QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
- /* Temperature value (degree Celsius) from driver.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
- QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
- * report thermal events from driver to user space.
- * enum values are used for NL attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
- */
- enum qca_wlan_vendor_attr_thermal_event {
- QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
- /* Temperature value (degree Celsius) from driver.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
- /* Indication of resume completion from power save mode.
- * NLA_FLAG attribute.
- */
- QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
- /* Thermal level from the driver.
- * u32 attribute. Possible values are defined in
- * enum qca_wlan_vendor_thermal_level.
- */
- QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
- QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
- };
- /**
- * enum qca_vendor_element_id - QCA Vendor Specific element types
- *
- * These values are used to identify QCA Vendor Specific elements. The
- * payload of the element starts with the three octet OUI (OUI_QCA) and
- * is followed by a single octet type which is defined by this enum.
- *
- * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
- * This element can be used to specify preference order for supported
- * channels. The channels in this list are in preference order (the first
- * one has the highest preference) and are described as a pair of
- * (global) Operating Class and Channel Number (each one octet) fields.
- *
- * This extends the standard P2P functionality by providing option to have
- * more than one preferred operating channel. When this element is present,
- * it replaces the preference indicated in the Operating Channel attribute.
- * For supporting other implementations, the Operating Channel attribute is
- * expected to be used with the highest preference channel. Similarly, all
- * the channels included in this Preferred channel list element are
- * expected to be included in the Channel List attribute.
- *
- * This vendor element may be included in GO Negotiation Request, P2P
- * Invitation Request, and Provision Discovery Request frames.
- *
- * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
- * This element can be used for pre-standard publication testing of HE
- * before P802.11ax draft assigns the element ID. The payload of this
- * vendor specific element is defined by the latest P802.11ax draft.
- * Please note that the draft is still work in progress and this element
- * payload is subject to change.
- *
- * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
- * This element can be used for pre-standard publication testing of HE
- * before P802.11ax draft assigns the element ID. The payload of this
- * vendor specific element is defined by the latest P802.11ax draft.
- * Please note that the draft is still work in progress and this element
- * payload is subject to change.
- *
- * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
- * element).
- * This element can be used for pre-standard publication testing of HE
- * before P802.11ax draft assigns the element ID extension. The payload of
- * this vendor specific element is defined by the latest P802.11ax draft
- * (not including the Element ID Extension field). Please note that the
- * draft is still work in progress and this element payload is subject to
- * change.
- *
- * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
- * This element can be used for pre-standard publication testing of HE
- * before P802.11ax draft assigns the element ID extension. The payload of
- * this vendor specific element is defined by the latest P802.11ax draft
- * (not including the Element ID Extension field). Please note that the
- * draft is still work in progress and this element payload is subject to
- * change.
- *
- * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
- * This element can be used for pre-standard publication testing of HE
- * before P802.11ax draft assigns the element ID extension. The payload of
- * this vendor specific element is defined by the latest P802.11ax draft
- * (not including the Element ID Extension field). Please note that the
- * draft is still work in progress and this element payload is subject to
- * change.
- */
- enum qca_vendor_element_id {
- QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
- QCA_VENDOR_ELEM_HE_CAPAB = 1,
- QCA_VENDOR_ELEM_HE_OPER = 2,
- QCA_VENDOR_ELEM_RAPS = 3,
- QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
- QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
- };
- /**
- * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
- * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
- * Specify the TSF command. Possible values are defined in
- * &enum qca_tsf_cmd.
- * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
- * This attribute contains TSF timer value. This attribute is only available
- * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
- * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
- * This attribute contains SOC timer value at TSF capture. This attribute is
- * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
- * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
- * This attribute is used to provide TSF sync interval and only applicable when
- * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
- * driver will use the default value. Time unit is in milliseconds.
- */
- enum qca_vendor_attr_tsf_cmd {
- QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TSF_CMD,
- QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
- QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
- QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
- QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TSF_MAX =
- QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
- };
- /**
- * enum qca_tsf_cmd: TSF driver commands
- * @QCA_TSF_CAPTURE: Initiate TSF Capture
- * @QCA_TSF_GET: Get TSF capture value
- * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
- * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
- * will automatically send TSF report to the host. To query
- * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
- * initiated first.
- * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
- * will not automatically send TSF report to the host. If
- * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
- * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
- * operation needs to be initiated.
- * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
- * fetches TSF and host time mapping from the firmware with interval configured
- * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
- * interval value is not provided the driver will use the default value. The
- * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
- * command.
- * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
- */
- enum qca_tsf_cmd {
- QCA_TSF_CAPTURE,
- QCA_TSF_GET,
- QCA_TSF_SYNC_GET,
- QCA_TSF_AUTO_REPORT_ENABLE,
- QCA_TSF_AUTO_REPORT_DISABLE,
- QCA_TSF_SYNC_START,
- QCA_TSF_SYNC_STOP,
- };
- /**
- * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
- * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
- * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
- * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
- * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
- * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
- * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
- */
- enum qca_vendor_attr_get_preferred_freq_list {
- QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
- /* A 32-unsigned value; the interface type/mode for which the preferred
- * frequency list is requested (see enum qca_iface_type for possible
- * values); used in both south- and north-bound.
- */
- QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
- /* An array of 32-unsigned values; values are frequency (MHz); used
- * in north-bound only.
- */
- QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
- /* An array of nested values as per enum
- * qca_wlan_vendor_attr_pcl_config attribute.
- * Each element contains frequency (MHz), weight, and flag
- * bit mask indicating how the frequency should be used in P2P
- * negotiation.
- */
- QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
- QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
- };
- /**
- * enum qca_vendor_attr_probable_oper_channel - channel hint
- * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
- * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
- * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
- * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
- * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
- */
- enum qca_vendor_attr_probable_oper_channel {
- QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
- /* 32-bit unsigned value; indicates the connection/iface type likely to
- * come on this channel (see enum qca_iface_type).
- */
- QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
- /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
- QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
- QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
- * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
- * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
- * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
- * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
- */
- enum qca_wlan_vendor_attr_gw_param_config {
- QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
- QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
- QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
- QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
- QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
- };
- /**
- * enum drv_dbs_capability - DBS capability
- * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
- * @DRV_DBS_CAPABILITY_1X1: 1x1
- * @DRV_DBS_CAPABILITY_2X2: 2x2
- */
- enum drv_dbs_capability {
- DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
- DRV_DBS_CAPABILITY_1X1,
- DRV_DBS_CAPABILITY_2X2,
- };
- /**
- * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
- *
- * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
- */
- enum qca_vendor_attr_txpower_decr_db {
- QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
- /*
- * 8-bit unsigned value to indicate the reduction of TX power in dB for
- * a virtual interface.
- */
- QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
- QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
- };
- /**
- * enum qca_vendor_attr_ota_test - Enable OTA test
- * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
- * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
- * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
- * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
- */
- enum qca_vendor_attr_ota_test {
- QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
- /* 8-bit unsigned value to indicate if OTA test is enabled */
- QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
- QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
- };
- /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
- * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
- * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
- * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
- * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
- */
- enum qca_vendor_attr_txpower_scale {
- QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
- /* 8-bit unsigned value to indicate the scaling of tx power */
- QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
- QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
- };
- /**
- * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
- * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
- * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
- * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
- * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
- */
- enum qca_vendor_attr_txpower_scale_decr_db {
- QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
- /* 8-bit unsigned value to indicate the scaling of tx power */
- QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
- QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
- };
- /**
- * enum dfs_mode - state of DFS mode
- * @DFS_MODE_NONE: DFS mode attribute is none
- * @DFS_MODE_ENABLE: DFS mode is enabled
- * @DFS_MODE_DISABLE: DFS mode is disabled
- * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
- */
- enum dfs_mode {
- DFS_MODE_NONE,
- DFS_MODE_ENABLE,
- DFS_MODE_DISABLE,
- DFS_MODE_DEPRIORITIZE
- };
- /**
- * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
- * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
- * DFS mode for ACS operation from enum qca_acs_dfs_mode.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
- * channel number hint for ACS operation, if valid channel is specified then
- * ACS operation gives priority to this channel.
- * Note: If both the driver and user space application supports the 6 GHz band,
- * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
- * should be used.
- * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
- * is still used if either of the driver or user space application doesn't
- * support the 6 GHz band.
- *
- * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
- * Channel center frequency (MHz) hint for ACS operation, if a valid center
- * frequency is specified, ACS operation gives priority to this channel.
- */
- enum qca_wlan_vendor_attr_acs_config {
- QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
- QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
- QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
- QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
- QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
- */
- enum qca_wlan_vendor_attr_get_hw_capability {
- QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
- /*
- * Antenna isolation
- * An attribute used in the response.
- * The content of this attribute is encoded in a byte array. Each byte
- * value is an antenna isolation value. The array length is the number
- * of antennas.
- */
- QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
- /*
- * Request HW capability
- * An attribute used in the request.
- * The content of this attribute is a u32 array for one or more of
- * hardware capabilities (attribute IDs) that are being requested. Each
- * u32 value has a value from this
- * enum qca_wlan_vendor_attr_get_hw_capability
- * identifying which capabilities are requested.
- */
- QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
- QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
- * config params for sta roam policy
- * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
- * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
- * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
- * If sta should skip unsafe channels or not in scanning
- * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
- * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
- */
- enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
- QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
- QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
- QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
- QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
- };
- /* Attributes for FTM commands and events */
- /**
- * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
- *
- * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
- * enum qca_wlan_vendor_attr_loc_capa_flags.
- * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
- * of measurement sessions that can run concurrently.
- * Default is one session (no session concurrency).
- * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
- * peers that are supported in running sessions. For example,
- * if the value is 8 and maximum number of sessions is 2, you can
- * have one session with 8 unique peers, or 2 sessions with 4 unique
- * peers each, and so on.
- * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
- * of bursts per peer, as an exponent (2^value). Default is 0,
- * meaning no multi-burst support.
- * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
- * of measurement exchanges allowed in a single burst.
- * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
- * types. A bit mask (unsigned 32 bit value), each bit corresponds
- * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
- */
- enum qca_wlan_vendor_attr_loc_capa {
- QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
- QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
- QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
- QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
- QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
- QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
- QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
- QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
- *
- * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
- * can be configured as an FTM responder (for example, an AP that
- * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
- * will be supported if set.
- * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
- * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
- * will be supported if set.
- * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
- * supports immediate (ASAP) response.
- * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
- * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
- * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
- * requesting AOA measurements as part of an FTM session.
- */
- enum qca_wlan_vendor_attr_loc_capa_flags {
- QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
- QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
- QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
- QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
- QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
- };
- /**
- * enum qca_wlan_ani_setting - ANI setting type
- * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
- * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
- */
- enum qca_wlan_ani_setting {
- QCA_WLAN_ANI_SETTING_AUTO = 0,
- QCA_WLAN_ANI_SETTING_FIXED = 1,
- };
- /**
- * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
- *
- * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
- * Channel number on which Access Point should restart.
- * Note: If both the driver and user space application supports the 6 GHz band,
- * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
- * should be used.
- * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
- * is still used if either of the driver or user space application doesn't
- * support the 6 GHz band.
- *
- * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
- * Nested attribute to hold list of center frequencies on which AP is
- * expected to operate. This is irrespective of ACS configuration.
- * This list is a priority based one and is looked for before the AP is
- * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
- * co-exist in the system.
- *
- * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
- * Channel center frequency (MHz) on which the access point should restart.
- */
- enum qca_wlan_vendor_attr_sap_config {
- QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
- QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
- QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
- QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
- * a single peer in a measurement session.
- *
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
- * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
- * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
- * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
- * list of supported attributes.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
- * secure measurement.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
- * measurement every <value> bursts. If 0 or not specified,
- * AOA measurements will be disabled for this peer.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
- * the measurement frames are exchanged. Optional; if not
- * specified, try to locate the peer in the kernel scan
- * results cache and use frequency from there.
- */
- enum qca_wlan_vendor_attr_ftm_peer_info {
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
- * per-peer
- *
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
- * immediate (ASAP) response from peer.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
- * LCI report from peer. The LCI report includes the absolute
- * location of the peer in "official" coordinates (similar to GPS).
- * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
- * Location civic report from peer. The LCR includes the location
- * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
- * 11.24.6.7 for more information.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
- * request a secure measurement.
- * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
- */
- enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
- };
- /**
- * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
- *
- * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
- * to perform in a single burst.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
- * perform, specified as an exponent (2^value).
- * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
- * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
- * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
- * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
- */
- enum qca_wlan_vendor_attr_ftm_meas_param {
- QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
- QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
- QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
- QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
- QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
- QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
- *
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
- * peer.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
- * request for this peer.
- * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
- * to measurement results for this peer.
- * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
- * request failed and peer requested not to send an additional request
- * for this number of seconds.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
- * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
- * 9.4.2.22.10.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
- * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
- * 9.4.2.22.13.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
- * overridden some measurement request parameters. See
- * enum qca_wlan_vendor_attr_ftm_meas_param.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
- * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
- * results. Each entry is a nested attribute defined
- * by enum qca_wlan_vendor_attr_ftm_meas.
- */
- enum qca_wlan_vendor_attr_ftm_peer_result {
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_ftm_peer_result_status
- *
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
- * will be provided. Peer may have overridden some measurement parameters,
- * in which case overridden parameters will be report by
- * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
- * of performing the measurement request. No more results will be sent
- * for this peer in this session.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
- * failed, and requested not to send an additional request for number
- * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
- * attribute.
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
- * failed. Request was not sent over the air.
- */
- enum qca_wlan_vendor_attr_ftm_peer_result_status {
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
- };
- /**
- * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
- * for measurement result, per-peer
- *
- * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
- * measurement completed for this peer. No more results will be reported
- * for this peer in this session.
- */
- enum qca_wlan_vendor_attr_ftm_peer_result_flags {
- QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
- };
- /**
- * enum qca_vendor_attr_loc_session_status: Session completion status code
- *
- * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
- * successfully.
- * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
- * by request.
- * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
- * was invalid and was not started.
- * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
- * and did not complete normally (for example out of resources).
- */
- enum qca_vendor_attr_loc_session_status {
- QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
- QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
- QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
- QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
- };
- /**
- * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
- *
- * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
- * recorded by responder, in picoseconds.
- * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
- * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
- * initiator, in picoseconds.
- * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
- * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
- * initiator, in picoseconds.
- * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
- * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
- * responder, in picoseconds.
- * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
- * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
- * during this measurement exchange. Optional and will be provided if
- * the hardware can measure it.
- * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
- * responder. Not always provided.
- * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
- * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
- * responder. Not always provided.
- * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
- * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
- * initiator. Not always provided.
- * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
- * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
- * initiator. Not always provided.
- * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
- * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
- */
- enum qca_wlan_vendor_attr_ftm_meas {
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
- QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
- * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
- * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
- * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
- * of the social channels.
- * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
- * A 32-bit unsigned value; the P2P listen offload period (ms).
- * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
- * A 32-bit unsigned value; the P2P listen interval duration (ms).
- * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
- * A 32-bit unsigned value; number of interval times the Firmware needs
- * to run the offloaded P2P listen operation before it stops.
- * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
- * An array of unsigned 8-bit characters; vendor information elements.
- * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
- * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
- * A 32-bit unsigned value; a control flag to indicate whether listen
- * results need to be flushed to wpa_supplicant.
- * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
- * A 8-bit unsigned value; reason code for P2P listen offload stop
- * event.
- * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
- * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
- */
- enum qca_wlan_vendor_attr_p2p_listen_offload {
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
- QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_drv_info - WLAN driver info
- * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
- * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
- * between Firmware & Host.
- */
- enum qca_wlan_vendor_drv_info {
- QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
- *
- * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
- * CIR (channel impulse response) path for each antenna.
- * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
- * of the strongest CIR path for each antenna.
- */
- enum qca_wlan_vendor_attr_aoa_type {
- QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
- QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
- QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
- };
- /**
- * enum qca_wlan_vendor_attr_encryption_test - Attributes to
- * validate encryption engine
- *
- * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
- * This will be included if the request is for decryption; if not included,
- * the request is treated as a request for encryption by default.
- * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
- * indicating the key cipher suite. Takes same values as
- * NL80211_ATTR_KEY_CIPHER.
- * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
- * Key Id to be used for encryption
- * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
- * Key (TK) to be used for encryption/decryption
- * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
- * Packet number to be specified for encryption/decryption
- * 6 bytes for TKIP/CCMP/GCMP.
- * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
- * representing the 802.11 packet (header + payload + FCS) that
- * needs to be encrypted/decrypted.
- * Encrypted/decrypted response from the driver will also be sent
- * to userspace with the same attribute.
- */
- enum qca_wlan_vendor_attr_encryption_test {
- QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
- QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
- QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
- QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
- QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
- QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
- QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
- * sector for DMG RF sector operations.
- *
- * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
- * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
- */
- enum qca_wlan_vendor_attr_dmg_rf_sector_type {
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
- };
- /**
- * enum qca_wlan_vendor_attr_fw_state - State of firmware
- *
- * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
- * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
- */
- enum qca_wlan_vendor_attr_fw_state {
- QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
- QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
- QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
- };
- /**
- * BRP antenna limit mode
- *
- * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
- * antenna limit, BRP will be performed as usual.
- * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
- * antennas limit. the hardware may use less antennas than the
- * maximum limit.
- * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
- * use exactly the specified number of antennas for BRP.
- */
- enum qca_wlan_vendor_attr_brp_ant_limit_mode {
- QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
- QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
- QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
- QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
- };
- /**
- * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
- * DMG RF sector configuration for a single RF module.
- * The values are defined in a compact way which closely matches
- * the way it is stored in HW registers.
- * The configuration provides values for 32 antennas and 8 distribution
- * amplifiers, and together describes the characteristics of the RF
- * sector - such as a beam in some direction with some gain.
- *
- * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
- * of RF module for this configuration.
- * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
- * amplifier gain index. Unsigned 32 bit number containing
- * bits for all 32 antennas.
- * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
- * amplifier gain index. Unsigned 32 bit number containing
- * bits for all 32 antennas.
- * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
- * amplifier gain index. Unsigned 32 bit number containing
- * bits for all 32 antennas.
- * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
- * for first 16 antennas, 2 bits per antenna.
- * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
- * for last 16 antennas, 2 bits per antenna.
- * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
- * DTYPE values (3 bits) for each distribution amplifier, followed
- * by X16 switch bits for each distribution amplifier. There are
- * total of 8 distribution amplifiers.
- */
- enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
- QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
- * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
- * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
- * represents the different TDLS trigger modes.
- * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
- * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
- * of packets shall meet the criteria for implicit TDLS setup.
- * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
- * packets within a duration.
- * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
- * a TDLS setup.
- * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
- * a TDLS Discovery to the Peer.
- * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
- * discovery attempts to know the TDLS capability of the peer. A peer is
- * marked as TDLS not capable if there is no response for all the attempts.
- * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
- * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
- * number of TX / RX frames meet the criteria for TDLS teardown.
- * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
- * (u32) of Tx/Rx packets within a duration
- * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
- * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
- * corresponding to the RSSI of the peer below which a TDLS
- * setup is triggered.
- * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
- * corresponding to the RSSI of the peer above which
- * a TDLS teardown is triggered.
- */
- enum qca_wlan_vendor_attr_tdls_configuration {
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
- /* Attributes configuring the TDLS Implicit Trigger */
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
- QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
- * the driver.
- *
- * The following are the different values for
- * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
- *
- * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
- * initiate/teardown the TDLS connection to a respective peer comes
- * from the user space. wpa_supplicant provides the commands
- * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
- * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
- * setup/teardown to the eligible peer once the configured criteria
- * (such as TX/RX threshold, RSSI) is met. The attributes
- * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
- * the different configuration criteria for the TDLS trigger from the
- * host driver.
- * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
- * the TDLS setup / teardown through the implicit mode, only to the
- * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
- * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
- * External mode works on top of the implicit mode, thus the host Driver
- * is expected to be configured in TDLS Implicit mode too to operate in
- * External mode. Configuring External mode alone without Implicit
- * mode is invalid.
- *
- * All the above implementations work as expected only when the host driver
- * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
- * representing that the TDLS message exchange is not internal to the host
- * driver, but depends on wpa_supplicant to do the message exchange.
- */
- enum qca_wlan_vendor_tdls_trigger_mode {
- QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
- QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
- QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
- };
- /**
- * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
- * that is hard-coded in the Board Data File (BDF).
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
- * that is hard-coded in the Board Data File (BDF).
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
- * that is hard-coded in the Board Data File (BDF).
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
- * that is hard-coded in the Board Data File (BDF).
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
- * that is hard-coded in the Board Data File (BDF).
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
- * source of SAR power limits, thereby disabling the SAR power
- * limit feature.
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
- * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
- * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
- *
- * This enumerates the valid set of values that may be supplied for
- * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
- * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
- * the response to an instance of the
- * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
- */
- enum qca_vendor_attr_sar_limits_selections {
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
- };
- /**
- * enum qca_vendor_attr_sar_limits_spec_modulations -
- * SAR limits specification modulation
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
- * CCK modulation
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
- * OFDM modulation
- *
- * This enumerates the valid set of values that may be supplied for
- * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
- * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
- * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
- * command or in the response to an instance of the
- * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
- */
- enum qca_vendor_attr_sar_limits_spec_modulations {
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
- };
- /**
- * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
- *
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
- * select which SAR power limit table should be used. Valid
- * values are enumerated in enum
- * %qca_vendor_attr_sar_limits_selections. The existing SAR
- * power limit selection is unchanged if this attribute is not
- * present.
- *
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
- * which specifies the number of SAR power limit specifications
- * which will follow.
- *
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
- * limit specifications. The number of specifications is
- * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
- * specification contains a set of
- * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
- * specification is uniquely identified by the attributes
- * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
- * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
- * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
- * contains as a payload the attribute
- * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
- * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
- * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
- * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
- * needed based upon the value of
- * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
- *
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
- * indicate for which band this specification applies. Valid
- * values are enumerated in enum %nl80211_band (although not all
- * bands may be supported by a given device). If the attribute is
- * not supplied then the specification will be applied to all
- * supported bands.
- *
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
- * to indicate for which antenna chain this specification
- * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
- * attribute is not supplied then the specification will be
- * applied to all chains.
- *
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
- * value to indicate for which modulation scheme this
- * specification applies. Valid values are enumerated in enum
- * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
- * is not supplied then the specification will be applied to all
- * modulation schemes.
- *
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
- * value to specify the actual power limit value in units of 0.5
- * dBm (i.e., a value of 11 represents 5.5 dBm).
- * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
- * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
- *
- * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
- * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
- * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
- * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
- *
- * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
- * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
- */
- enum qca_vendor_attr_sar_limits {
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
- QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
- * offload which is an extension for LL_STATS.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
- * If MAC counters do not exceed the threshold, FW will report monitored
- * link layer counters periodically as this setting. The first report is
- * always triggered by this timer.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
- * For each MAC layer counter, FW holds two copies. One is the current value.
- * The other is the last report. Once a current counter's increment is larger
- * than the threshold, FW will indicate that counter to host even if the
- * monitoring timer does not expire.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
- * failure code.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
- * 1: TX packet discarded
- * 2: No ACK
- * 3: Postpone
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
- * Threshold for all monitored parameters. If per counter dedicated threshold
- * is not enabled, this threshold will take effect.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
- * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
- * Bit0: TX counter unit in MSDU
- * Bit1: TX counter unit in MPDU
- * Bit2: TX counter unit in PPDU
- * Bit3: TX counter unit in byte
- * Bit4: Dropped MSDUs
- * Bit5: Dropped Bytes
- * Bit6: MPDU retry counter
- * Bit7: MPDU failure counter
- * Bit8: PPDU failure counter
- * Bit9: MPDU aggregation counter
- * Bit10: MCS counter for ACKed MPDUs
- * Bit11: MCS counter for Failed MPDUs
- * Bit12: TX Delay counter
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
- * Bit0: MAC RX counter unit in MPDU
- * Bit1: MAC RX counter unit in byte
- * Bit2: PHY RX counter unit in PPDU
- * Bit3: PHY RX counter unit in byte
- * Bit4: Disorder counter
- * Bit5: Retry counter
- * Bit6: Duplication counter
- * Bit7: Discard counter
- * Bit8: MPDU aggregation size counter
- * Bit9: MCS counter
- * Bit10: Peer STA power state change (wake to sleep) counter
- * Bit11: Peer STA power save counter, total time in PS mode
- * Bit12: Probe request counter
- * Bit13: Other management frames counter
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
- * Bit0: Idle time
- * Bit1: TX time
- * Bit2: time RX in current bss
- * Bit3: Out of current bss time
- * Bit4: Wireless medium busy time
- * Bit5: RX in bad condition time
- * Bit6: TX in bad condition time
- * Bit7: time wlan card not available
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
- * Bit0: Per channel SNR counter
- * Bit1: Per channel noise floor counter
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
- * aggregation stats buffer length
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
- * buffer for ACKed MPDUs.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
- * buffer for failed MPDUs.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
- * length of delay stats array.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
- * flagged as retransmissions
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
- * flagged as duplicated
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
- * packets discarded
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
- * stats buffer.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
- * stats buffer.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
- * requests received
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
- * frames received
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
- * there is no TX, nor RX, nor interference.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
- * transmitting packets.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
- * for receiving.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
- * interference detected.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
- * receiving packets with errors.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
- * TX no-ACK.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
- * the chip is unable to work in normal conditions.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
- * receiving packets in current BSS.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
- * receiving packets not in current BSS.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
- * This is a container for per antenna signal stats.
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
- * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
- */
- enum qca_wlan_vendor_attr_ll_stats_ext {
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
- /* Attributes for configurations */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
- /* Peer STA power state change */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
- /* TX failure event */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
- /* MAC counters */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
- /* Sub-attributes for PEER_AC_TX */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
- /* Sub-attributes for PEER_AC_RX */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
- /* Sub-attributes for CCA_BSS */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
- /* sub-attribute for BSS_RX_TIME */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
- /* Sub-attributes for PEER_SIGNAL */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
- /* Sub-attributes for IFACE_BSS */
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
- QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
- * in priority order as decided after ACS operation in userspace.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
- * One of reason code from enum qca_wlan_vendor_acs_select_reason.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
- * Array of nested values for each channel with following attributes:
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
- * Note: If both the driver and user-space application supports the 6 GHz band,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
- * is still used if either of the driver or user space application doesn't
- * support the 6 GHz band.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
- * Primary channel number
- * Note: If both the driver and user-space application supports the 6 GHz band,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
- * is still used if either of the driver or user space application doesn't
- * support the 6 GHz band.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
- * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
- * Note: If both the driver and user-space application supports the 6 GHz band,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
- * is still used if either of the driver or user space application
- * doesn't support the 6 GHz band.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
- * VHT seg0 channel number
- * Note: If both the driver and user-space application supports the 6 GHz band,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
- * is still used if either of the driver or user space application
- * doesn't support the 6 GHz band.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
- * VHT seg1 channel number
- * Note: If both the driver and user-space application supports the 6 GHz band,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
- * To maintain backward compatibility,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
- * is still used if either of the driver or user space application
- * doesn't support the 6 GHz band.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
- * Takes one of enum nl80211_chan_width values.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
- * Array of nested values for each channel with following attributes:
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
- * Note: If user-space application has no support of the 6 GHz band, this
- * attribute is optional.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
- * Primary channel frequency in MHz
- * Note: If user-space application has no support of the 6 GHz band, this
- * attribute is optional.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
- * Secondary channel frequency in MHz used for HT 40 MHz channels.
- * Note: If user-space application has no support of the 6 GHz band, this
- * attribute is optional.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
- * VHT seg0 channel frequency in MHz
- * Note: If user-space application has no support of the 6GHz band, this
- * attribute is optional.
- *
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
- * VHT seg1 channel frequency in MHz
- * Note: If user-space application has no support of the 6 GHz band, this
- * attribute is optional.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
- * Puncture Bitmap for selected primary channel. Optional if no support
- * for EHT (IEEE 802.11be). Encoding for this attribute follows the
- * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
- * element.
- */
- enum qca_wlan_vendor_attr_external_acs_channels {
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
- /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
- */
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
- /* Array of nested values for each channel with following attributes:
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
- */
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
- /* This (u8) will hold values of one of enum nl80211_bands */
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
- /* Primary channel (u8) */
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
- /* Secondary channel (u8) used for HT 40 MHz channels */
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
- /* VHT seg0 channel (u8) */
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
- /* VHT seg1 channel (u8) */
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
- /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
- };
- /**
- * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
- * the ACS has to be triggered. These values are used by
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
- */
- enum qca_wlan_vendor_acs_select_reason {
- /* Represents the reason that the ACS triggered during the AP start */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
- /* Represents the reason that DFS found with the current channel */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
- /* Represents the reason that LTE co-exist in the current band. */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
- /* Represents the reason that generic, uncategorized interference has
- * been found in the current channel.
- */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
- /* Represents the reason that excessive 802.11 interference has been
- * found in the current channel.
- */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
- /* Represents the reason that generic Continuous Wave (CW) interference
- * has been found in the current channel.
- */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
- /* Represents the reason that Microwave Oven (MWO) interference has been
- * found in the current channel.
- */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
- /* Represents the reason that generic Frequency-Hopping Spread Spectrum
- * (FHSS) interference has been found in the current channel. This may
- * include 802.11 waveforms.
- */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
- /* Represents the reason that non-802.11 generic Frequency-Hopping
- * Spread Spectrum (FHSS) interference has been found in the current
- * channel.
- */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
- /* Represents the reason that generic Wideband (WB) interference has
- * been found in the current channel. This may include 802.11 waveforms.
- */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
- /* Represents the reason that non-802.11 generic Wideband (WB)
- * interference has been found in the current channel.
- */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
- /* Represents the reason that Jammer interference has been found in the
- * current channel.
- */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
- /* Represents the reason that ACS triggered by AFC */
- QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
- };
- /**
- * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
- *
- * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
- * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
- * to get the available value that this item can use.
- *
- * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
- * value to specify the gpio number.
- * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
- * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
- *
- * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
- * value to specify the gpio output level, please refer to enum qca_gpio_value
- * to get the available value that this item can use.
- * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
- * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
- *
- * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
- * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
- * to get the available value that this item can use.
- * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
- * %QCA_WLAN_VENDOR_GPIO_CONFIG and
- * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
- * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
- * attribute is present.
- *
- * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
- * value to specify the gpio interrupt mode, please refer to enum
- * qca_gpio_interrupt_mode to get the available value that this item can use.
- * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
- * %QCA_WLAN_VENDOR_GPIO_CONFIG and
- * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
- * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
- * attribute is present.
- *
- * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
- * value to specify the gpio direction, please refer to enum qca_gpio_direction
- * to get the available value that this item can use.
- * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
- * %QCA_WLAN_VENDOR_GPIO_CONFIG and
- * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
- * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
- * attribute is present.
- *
- * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
- * Value to specify the mux config. Meaning of a given value is dependent
- * on the target chipset and gpio pin. Must be of the range 0-15.
- * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
- * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
- *
- * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
- * Value to specify the drive, Refer to enum qca_gpio_drive.
- * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
- * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
- *
- * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
- * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
- * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
- * other parameters for the given GPIO will be obtained from internal
- * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
- * specified to indicate the GPIO pin being configured.
- */
- enum qca_wlan_gpio_attr {
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
- /* Unsigned 32-bit attribute for GPIO command */
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
- /* Unsigned 32-bit attribute for GPIO PIN number to configure */
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
- /* Unsigned 32-bit attribute for GPIO value to configure */
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
- /* Unsigned 32-bit attribute for GPIO pull type */
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
- /* Unsigned 32-bit attribute for GPIO interrupt mode */
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
- /* Unsigned 32-bit attribute for GPIO direction to configure */
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
- /* Unsigned 32-bit attribute for GPIO mux config */
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
- /* Unsigned 32-bit attribute for GPIO drive */
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
- /* Flag attribute for using internal gpio configuration */
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
- QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
- };
- /**
- * enum gpio_cmd_type - GPIO configuration command type
- * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
- * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
- */
- enum qca_gpio_cmd_type {
- QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
- QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
- };
- /**
- * enum qca_gpio_pull_type - GPIO pull type
- * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
- * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
- * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
- */
- enum qca_gpio_pull_type {
- QCA_WLAN_GPIO_PULL_NONE = 0,
- QCA_WLAN_GPIO_PULL_UP = 1,
- QCA_WLAN_GPIO_PULL_DOWN = 2,
- QCA_WLAN_GPIO_PULL_MAX,
- };
- /**
- * enum qca_gpio_direction - GPIO direction
- * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
- * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
- * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
- */
- enum qca_gpio_direction {
- QCA_WLAN_GPIO_INPUT = 0,
- QCA_WLAN_GPIO_OUTPUT = 1,
- QCA_WLAN_GPIO_DIR_MAX,
- };
- /**
- * enum qca_gpio_value - GPIO Value
- * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
- * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
- * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
- */
- enum qca_gpio_value {
- QCA_WLAN_GPIO_LEVEL_LOW = 0,
- QCA_WLAN_GPIO_LEVEL_HIGH = 1,
- QCA_WLAN_GPIO_LEVEL_MAX,
- };
- /**
- * enum gpio_interrupt_mode - GPIO interrupt mode
- * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
- * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
- * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
- * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
- * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
- * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
- * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
- */
- enum qca_gpio_interrupt_mode {
- QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
- QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
- QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
- QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
- QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
- QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
- QCA_WLAN_GPIO_INTMODE_MAX,
- };
- /**
- * enum gpio_drive - GPIO drive
- * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
- * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
- * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
- * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
- * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
- * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
- * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
- * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
- * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
- */
- enum qca_gpio_drive {
- QCA_WLAN_GPIO_DRIVE_2MA = 0,
- QCA_WLAN_GPIO_DRIVE_4MA = 1,
- QCA_WLAN_GPIO_DRIVE_6MA = 2,
- QCA_WLAN_GPIO_DRIVE_8MA = 3,
- QCA_WLAN_GPIO_DRIVE_10MA = 4,
- QCA_WLAN_GPIO_DRIVE_12MA = 5,
- QCA_WLAN_GPIO_DRIVE_14MA = 6,
- QCA_WLAN_GPIO_DRIVE_16MA = 7,
- QCA_WLAN_GPIO_DRIVE_MAX,
- };
- /**
- * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
- * MSDUQ depth threshold per peer per tid in the target
- *
- * Associated Vendor Command:
- * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
- */
- enum qca_wlan_set_qdepth_thresh_attr {
- QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
- /* 6-byte MAC address */
- QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
- /* Unsigned 32-bit attribute for holding the TID */
- QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
- /* Unsigned 32-bit attribute for holding the update mask
- * bit 0 - Update high priority msdu qdepth threshold
- * bit 1 - Update low priority msdu qdepth threshold
- * bit 2 - Update UDP msdu qdepth threshold
- * bit 3 - Update Non UDP msdu qdepth threshold
- * rest of bits are reserved
- */
- QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
- /* Unsigned 32-bit attribute for holding the threshold value */
- QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
- QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
- QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
- };
- /**
- * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
- * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
- * external ACS policies to select the channels w.r.t. the PCL weights.
- * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
- * their PCL weights.)
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
- * select a channel with non-zero PCL weight.
- * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
- * channel with non-zero PCL weight.
- *
- */
- enum qca_wlan_vendor_attr_external_acs_policy {
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
- QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
- };
- /**
- * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
- */
- enum qca_wlan_vendor_attr_spectral_scan {
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
- /*
- * Number of times the chip enters spectral scan mode before
- * deactivating spectral scans. When set to 0, chip will enter spectral
- * scan mode continuously. u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
- /*
- * Spectral scan period. Period increment resolution is 256*Tclk,
- * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
- /* Spectral scan priority. u32 attribute. */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
- /* Number of FFT data points to compute. u32 attribute. */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
- /*
- * Enable targeted gain change before starting the spectral scan FFT.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
- /* Restart a queued spectral scan. u32 attribute. */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
- /*
- * Noise floor reference number for the calculation of bin power.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
- /*
- * Disallow spectral scan triggers after TX/RX packets by setting
- * this delay value to roughly SIFS time period or greater.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
- /*
- * Number of strong bins (inclusive) per sub-channel, below
- * which a signal is declared a narrow band tone. u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
- /*
- * Specify the threshold over which a bin is declared strong (for
- * scan bandwidth analysis). u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
- /* Spectral scan report mode. u32 attribute. */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
- /*
- * RSSI report mode, if the ADC RSSI is below
- * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
- * then FFTs will not trigger, but timestamps and summaries get
- * reported. u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
- /*
- * ADC RSSI must be greater than or equal to this threshold (signed dB)
- * to ensure spectral scan reporting with normal error code.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
- /*
- * Format of frequency bin magnitude for spectral scan triggered FFTs:
- * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
- /*
- * Format of FFT report to software for spectral scan triggered FFTs.
- * 0: No FFT report (only spectral scan summary report)
- * 1: 2-dword summary of metrics for each completed FFT + spectral scan
- * report
- * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
- * bins (in-band) per FFT + spectral scan summary report
- * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
- * bins (all) per FFT + spectral scan summary report
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
- /*
- * Number of LSBs to shift out in order to scale the FFT bins.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
- /*
- * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
- * in dBm power. u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
- /*
- * Per chain enable mask to select input ADC for search FFT.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
- /*
- * An unsigned 64-bit integer provided by host driver to identify the
- * spectral scan request. This attribute is included in the scan
- * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
- * and used as an attribute in
- * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
- * specific scan to be stopped.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
- /* Skip interval for FFT reports. u32 attribute */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
- /* Set to report only one set of FFT results.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
- /* Debug level for spectral module in driver.
- * 0 : Verbosity level 0
- * 1 : Verbosity level 1
- * 2 : Verbosity level 2
- * 3 : Matched filterID display
- * 4 : One time dump of FFT report
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
- /* Type of spectral scan request. u32 attribute.
- * It uses values defined in enum
- * qca_wlan_vendor_attr_spectral_scan_request_type.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
- /* This specifies the frequency span over which spectral
- * scan would be carried out. Its value depends on the
- * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
- * the relation is as follows.
- * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
- * Not applicable. Spectral scan would happen in the
- * operating span.
- * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
- * Center frequency (in MHz) of the span of interest or
- * for convenience, center frequency (in MHz) of any channel
- * in the span of interest. For 80+80 MHz agile spectral scan
- * request it represents center frequency (in MHz) of the primary
- * 80 MHz span or for convenience, center frequency (in MHz) of any
- * channel in the primary 80 MHz span. If agile spectral scan is
- * initiated without setting a valid frequency it returns the
- * error code
- * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
- /* Spectral scan mode. u32 attribute.
- * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
- * If this attribute is not present, it is assumed to be
- * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
- /* Spectral scan error code. u32 attribute.
- * It uses values defined in enum
- * qca_wlan_vendor_spectral_scan_error_code.
- * This attribute is included only in failure scenarios.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
- /* 8-bit unsigned value to enable/disable debug of the
- * Spectral DMA ring.
- * 1-enable, 0-disable
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
- /* 8-bit unsigned value to enable/disable debug of the
- * Spectral DMA buffers.
- * 1-enable, 0-disable
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
- /* This specifies the frequency span over which spectral scan would be
- * carried out. Its value depends on the value of
- * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
- * follows.
- * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
- * Not applicable. Spectral scan would happen in the operating span.
- * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
- * This attribute is applicable only for agile spectral scan
- * requests in 80+80 MHz mode. It represents center frequency (in
- * MHz) of the secondary 80 MHz span or for convenience, center
- * frequency (in MHz) of any channel in the secondary 80 MHz span.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
- /* This attribute specifies the bandwidth to be used for Spectral scan
- * operation. This is an u8 attribute and uses the values in enum
- * nl80211_chan_width. This is an optional attribute.
- * If this attribute is not populated, the driver should configure the
- * Spectral scan bandwidth to the maximum value supported by the target
- * for the current operating bandwidth.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
- /* Spectral FFT recapture flag attribute, to enable/disable FFT
- * recapture. Recapture can only be enabled for Scan period greater
- * than 52us.
- * If this attribute is enabled, re-triggers will be enabled in uCode
- * when AGC gain changes.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
- */
- enum qca_wlan_vendor_attr_spectral_diag_stats {
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
- /* Number of spectral TLV signature mismatches.
- * u64 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
- /* Number of spectral phyerror events with insufficient length when
- * parsing for secondary 80 search FFT report. u64 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
- /* Number of spectral phyerror events without secondary 80
- * search FFT report. u64 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
- /* Number of spectral phyerror events with vht operation segment 1 id
- * mismatches in search fft report. u64 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
- /* Number of spectral phyerror events with vht operation segment 2 id
- * mismatches in search fft report. u64 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
- */
- enum qca_wlan_vendor_attr_spectral_cap {
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
- /* Flag attribute to indicate phydiag capability */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
- /* Flag attribute to indicate radar detection capability */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
- /* Flag attribute to indicate spectral capability */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
- /* Flag attribute to indicate advanced spectral capability */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
- /* Spectral hardware generation. u32 attribute.
- * It uses values defined in enum
- * qca_wlan_vendor_spectral_scan_cap_hw_gen.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
- /* Spectral bin scaling formula ID. u16 attribute.
- * It uses values defined in enum
- * qca_wlan_vendor_spectral_scan_cap_formula_id.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
- /* Spectral bin scaling param - low level offset.
- * s16 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
- /* Spectral bin scaling param - high level offset.
- * s16 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
- /* Spectral bin scaling param - RSSI threshold.
- * s16 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
- /* Spectral bin scaling param - default AGC max gain.
- * u8 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
- /* Flag attribute to indicate agile spectral scan capability
- * for 20/40/80 MHz modes.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
- /* Flag attribute to indicate agile spectral scan capability
- * for 160 MHz mode.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
- /* Flag attribute to indicate agile spectral scan capability
- * for 80+80 MHz mode.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
- /* Number of spectral detectors used for scan in 20 MHz.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
- /* Number of spectral detectors used for scan in 40 MHz.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
- /* Number of spectral detectors used for scan in 80 MHz.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
- /* Number of spectral detectors used for scan in 160 MHz.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
- /* Number of spectral detectors used for scan in 80+80 MHz.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
- /* Flag attribute to indicate agile spectral scan capability
- * for 320 MHz mode.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
- /* Number of spectral detectors used for scan in 320 MHz.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
- */
- enum qca_wlan_vendor_attr_spectral_scan_status {
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
- /* Flag attribute to indicate whether spectral scan is enabled */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
- /* Flag attribute to indicate whether spectral scan is in progress*/
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
- /* Spectral scan mode. u32 attribute.
- * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
- * If this attribute is not present, normal mode
- * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
- * requested.
- */
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_config_latency_level - Level for
- * wlan latency module.
- *
- * There will be various of Wi-Fi functionality like scan/roaming/adaptive
- * power saving which would causing data exchange out of service, this
- * would be a big impact on latency. For latency sensitive applications over
- * Wi-Fi are intolerant to such operations and thus would configure them
- * to meet their respective needs. It is well understood by such applications
- * that altering the default behavior would degrade the Wi-Fi functionality
- * w.r.t the above pointed WLAN operations.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
- * Default WLAN operation level which throughput orientated.
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
- * Use XR level to benefit XR (extended reality) application to achieve
- * latency and power by via constraint scan/roaming/adaptive PS.
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
- * Use low latency level to benefit application like concurrent
- * downloading or video streaming via constraint scan/adaptive PS.
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
- * Use ultra low latency level to benefit for gaming/voice
- * application via constraint scan/roaming/adaptive PS.
- */
- enum qca_wlan_vendor_attr_config_latency_level {
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
- /* legacy name */
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
- };
- /**
- * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
- * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
- * spectral scan request types.
- * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
- * set the spectral parameters and start scan.
- * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
- * only set the spectral parameters.
- * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
- * only start the spectral scan.
- */
- enum qca_wlan_vendor_attr_spectral_scan_request_type {
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
- QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
- };
- /**
- * qca_wlan_vendor_spectral_scan_mode: Attribute values for
- * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
- * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
- * spectral scan modes.
- * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
- * spectral scan in the current operating span.
- * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
- * spectral scan in the configured agile span.
- */
- enum qca_wlan_vendor_spectral_scan_mode {
- QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
- QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
- };
- /**
- * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
- * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
- * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
- * of a parameter is not supported.
- * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
- * mode is not supported.
- * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
- * has invalid value.
- * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
- * is not initialized.
- */
- enum qca_wlan_vendor_spectral_scan_error_code {
- QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
- QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
- QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
- QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
- };
- /**
- * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
- * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
- * spectral hardware generation.
- * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
- * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
- * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
- */
- enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
- QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
- QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
- QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
- };
- /**
- * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
- * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
- * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
- * Spectral bin scaling formula ID.
- * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
- * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
- * and RSSI threshold based formula.
- */
- enum qca_wlan_vendor_spectral_scan_cap_formula_id {
- QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
- QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
- };
- /**
- * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
- * RF Operating Parameter (RROP) information is available, and if so, at which
- * point in the application-driver interaction sequence it can be retrieved by
- * the application from the driver. This point may vary by architecture and
- * other factors. This is a u16 value.
- */
- enum qca_wlan_vendor_attr_rropavail_info {
- /* RROP information is unavailable. */
- QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
- /* RROP information is available and the application can retrieve the
- * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
- * event from the driver.
- */
- QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
- /* RROP information is available only after a vendor specific scan
- * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
- * successfully completed. The application can retrieve the information
- * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
- * the driver.
- */
- QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
- };
- /**
- * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
- * Representative RF Operating Parameter (RROP) information. It is sent for the
- * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
- * intended for use by external Auto Channel Selection applications. It provides
- * guidance values for some RF parameters that are used by the system during
- * operation. These values could vary by channel, band, radio, and so on.
- */
- enum qca_wlan_vendor_attr_rrop_info {
- QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
- /* Representative Tx Power List (RTPL) which has an array of nested
- * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
- */
- QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
- QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
- * entry instances in the Representative Tx Power List (RTPL). It provides
- * simplified power values intended for helping external Auto channel Selection
- * applications compare potential Tx power performance between channels, other
- * operating conditions remaining identical. These values are not necessarily
- * the actual Tx power values that will be used by the system. They are also not
- * necessarily the max or average values that will be used. Instead, they are
- * relative, summarized keys for algorithmic use computed by the driver or
- * underlying firmware considering a number of vendor specific factors.
- */
- enum qca_wlan_vendor_attr_rtplinst {
- QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
- /* Primary channel number (u8).
- * Note: If both the driver and user space application support the
- * 6 GHz band, this attribute is deprecated and
- * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
- * maintain backward compatibility,
- * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
- * driver or user space application or both do not support the 6 GHz
- * band.
- */
- QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
- /* Representative Tx power in dBm (s32) with emphasis on throughput. */
- QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
- /* Representative Tx power in dBm (s32) with emphasis on range. */
- QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
- /* Primary channel center frequency (u32) in MHz */
- QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
- QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
- QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_mac - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
- *
- * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
- * array of nested values as per attributes in
- * enum qca_wlan_vendor_attr_mac_mode_info.
- */
- enum qca_wlan_vendor_attr_mac {
- QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_MAC_MAX =
- QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
- * WiFi netdev interface on a respective MAC. Used by the attribute
- * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
- *
- * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
- * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
- * the connected Wi-Fi interface(u32).
- */
- enum qca_wlan_vendor_attr_mac_iface_info {
- QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
- QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
- * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
- * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
- *
- * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
- * MAC (u32)
- * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
- * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
- * in enum nl80211_band.
- * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
- * interfaces associated with this MAC. Represented by enum
- * qca_wlan_vendor_attr_mac_iface_info.
- */
- enum qca_wlan_vendor_attr_mac_info {
- QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
- QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
- QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
- * to get thermal status from driver/firmware.
- * enum values are used for NL attributes encapsulated inside
- * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
- *
- * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
- * of a thermal level in Celsius. u32 size.
- * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
- * of a thermal level in Celsius. u32 size.
- * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
- * thermal level in milliseconds. u32 size.
- * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
- * of times the temperature crossed into the temperature range defined by the
- * thermal level from both higher and lower directions. u32 size.
- */
- enum qca_wlan_vendor_attr_thermal_stats {
- QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
- QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
- QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
- QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
- QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
- };
- /**
- * enum he_fragmentation_val - HE fragmentation support values
- * Indicates level of dynamic fragmentation that is supported by
- * a STA as a recipient.
- * HE fragmentation values are defined as per 11ax spec and are used in
- * HE capability IE to advertise the support. These values are validated
- * in the driver to check the device capability and advertised in the HE
- * capability element.
- *
- * @HE_FRAG_DISABLE: no support for dynamic fragmentation
- * @HE_FRAG_LEVEL1: support for dynamic fragments that are
- * contained within an MPDU or S-MPDU, no support for dynamic fragments
- * within an A-MPDU that is not an S-MPDU.
- * @HE_FRAG_LEVEL2: support for dynamic fragments that are
- * contained within an MPDU or S-MPDU and support for up to one dynamic
- * fragment for each MSDU, each A-MSDU if supported by the recipient, and
- * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
- * MPDU or S-MPDU.
- * @HE_FRAG_LEVEL3: support for dynamic fragments that are
- * contained within an MPDU or S-MPDU and support for multiple dynamic
- * fragments for each MSDU and for each A-MSDU if supported by the
- * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
- * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
- */
- enum he_fragmentation_val {
- HE_FRAG_DISABLE,
- HE_FRAG_LEVEL1,
- HE_FRAG_LEVEL2,
- HE_FRAG_LEVEL3,
- };
- /**
- * enum he_mcs_config - HE MCS support configuration
- *
- * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
- * These values are used in driver to configure the HE MCS map to advertise
- * Tx/Rx MCS map in HE capability and these values are applied for all the
- * streams supported by the device. To configure MCS for different bandwidths,
- * vendor command needs to be sent using this attribute with appropriate value.
- * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
- * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
- * for HE_160_MCS0_11 send this command using HE MCS config attribute with
- * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
- *
- * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
- * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
- * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
- * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
- * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
- * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
- * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
- * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
- * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
- */
- enum he_mcs_config {
- HE_80_MCS0_7 = 0,
- HE_80_MCS0_9 = 1,
- HE_80_MCS0_11 = 2,
- HE_160_MCS0_7 = 4,
- HE_160_MCS0_9 = 5,
- HE_160_MCS0_11 = 6,
- HE_80p80_MCS0_7 = 8,
- HE_80p80_MCS0_9 = 9,
- HE_80p80_MCS0_11 = 10,
- };
- /**
- * enum qca_wlan_ba_session_config - BA session configuration
- *
- * Indicates the configuration values for BA session configuration attribute.
- *
- * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
- * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
- */
- enum qca_wlan_ba_session_config {
- QCA_WLAN_ADD_BA = 1,
- QCA_WLAN_DELETE_BA = 2,
- };
- /**
- * enum qca_wlan_ac_type - access category type
- *
- * Indicates the access category type value.
- *
- * @QCA_WLAN_AC_BE: BE access category
- * @QCA_WLAN_AC_BK: BK access category
- * @QCA_WLAN_AC_VI: VI access category
- * @QCA_WLAN_AC_VO: VO access category
- * @QCA_WLAN_AC_ALL: All ACs
- */
- enum qca_wlan_ac_type {
- QCA_WLAN_AC_BE = 0,
- QCA_WLAN_AC_BK = 1,
- QCA_WLAN_AC_VI = 2,
- QCA_WLAN_AC_VO = 3,
- QCA_WLAN_AC_ALL = 4,
- };
- /**
- * enum qca_wlan_he_ltf_cfg - HE LTF configuration
- *
- * Indicates the HE LTF configuration value.
- *
- * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
- * the mandatory HE-LTF based on the GI setting
- * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
- * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
- * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
- */
- enum qca_wlan_he_ltf_cfg {
- QCA_WLAN_HE_LTF_AUTO = 0,
- QCA_WLAN_HE_LTF_1X = 1,
- QCA_WLAN_HE_LTF_2X = 2,
- QCA_WLAN_HE_LTF_4X = 3,
- };
- /**
- * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
- *
- * Indicates the HE trigger frame MAC padding duration value.
- *
- * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
- * process the trigger frame.
- * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
- * trigger frame.
- * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
- * trigger frame.
- */
- enum qca_wlan_he_mac_padding_dur {
- QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
- QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
- QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
- };
- /**
- * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
- *
- * Indicates the HE Operating mode control channel width setting value.
- *
- * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
- * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
- * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
- * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
- */
- enum qca_wlan_he_om_ctrl_ch_bw {
- QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
- QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
- QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
- QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
- };
- /**
- * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
- *
- * Indicates the frame types to use for keep alive data.
- *
- * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
- * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
- * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
- */
- enum qca_wlan_keep_alive_data_type {
- QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
- QCA_WLAN_KEEP_ALIVE_DATA = 1,
- QCA_WLAN_KEEP_ALIVE_MGMT = 2,
- };
- /**
- * enum eht_mcs_config - EHT MCS support configuration
- *
- * Configures the EHT Tx/Rx MCS map in EHT Capability element.
- * These values are used in the driver to configure the EHT MCS map to advertise
- * Tx/Rx MCS map in EHT capability and these values are applied for all the
- * streams supported by the device.
- * @EHT_MCS0_7: EHT MCS 0 to 7 support
- * @EHT_MCS0_9: EHT MCS 0 to 9 support
- * @EHT_MCS0_11: EHT MCS 0 to 11 support
- * @EHT_MCS0_13: EHT MCS 0 to 13 support
- */
- enum eht_mcs_config {
- EHT_MCS0_7 = 0,
- EHT_MCS0_9 = 1,
- EHT_MCS0_11 = 2,
- EHT_MCS0_13 = 3,
- };
- /**
- * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
- * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
- * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
- * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
- * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
- * multi-link multi radio mode.
- * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
- * multi-link multi radio mode.
- */
- enum qca_wlan_eht_mlo_mode {
- QCA_WLAN_EHT_MODE_INVALID = 0,
- QCA_WLAN_EHT_MLSR = 1,
- QCA_WLAN_EHT_EMLSR = 2,
- QCA_WLAN_EHT_NON_STR_MLMR = 3,
- QCA_WLAN_EHT_STR_MLMR = 4,
- };
- /**
- * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
- * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
- * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
- */
- enum qca_wlan_emlsr_mode {
- QCA_WLAN_EMLSR_MODE_ENTER = 0,
- QCA_WLAN_EMLSR_MODE_EXIT = 1,
- };
- /**
- * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
- * support
- * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
- * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
- * both DL and UL
- * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
- * different link set
- */
- enum qca_wlan_ttlm_negotiation_support {
- QCA_WLAN_TTLM_DISABLE = 0,
- QCA_WLAN_TTLM_SAME_LINK_SET = 1,
- QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
- };
- /**
- * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode
- * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled
- * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled
- */
- enum qca_coex_traffic_shaping_mode {
- QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0,
- QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1,
- };
- /**
- * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
- * EHT operating mode control transmit request. These attributes are
- * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
- * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
- *
- * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
- * indicates the maximum number of spatial streams, NSS, that the STA
- * supports in reception for PPDU bandwidths less than or equal to 80 MHz
- * and is set to NSS - 1.
- *
- * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
- * indicates the operating channel width supported by the STA for both
- * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
- *
- * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
- * indicates the all trigger based UL MU operations by the STA.
- * 0 - UL MU operations are enabled by the STA.
- * 1 - All triggered UL MU transmissions are suspended by the STA.
- *
- * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
- * indicates the maximum number of space-time streams, NSTS, that
- * the STA supports in transmission and is set to NSTS - 1.
- *
- * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
- * combined with the UL MU Disable subfield and the recipient's setting
- * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
- * capabilities to determine which HE TB PPDUs are possible by the
- * STA to transmit.
- * 0 - UL MU data operations are enabled by the STA.
- * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
- * bit is not set, else UL MU Tx is suspended.
- *
- * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
- * Control subfield combined with the Rx NSS subfield in the OM Control subfield
- * indicates NSS - 1, where NSS is the maximum number of spatial streams that
- * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
- *
- * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
- * 320 MHz operating channel width supported by the EHT STA for both reception
- * and transmission.
- *
- * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
- * Control subfield combined with the Tx NSTS subfield in OM Control subfield
- * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
- * that the STA supports in transmission for PPDU bandwidths less than or equal
- * to 80 MHz.
- */
- enum qca_wlan_vendor_attr_omi_tx {
- QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
- QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
- QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
- QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
- QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
- QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
- QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
- QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_OMI_MAX =
- QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
- };
- /* deprecated legacy names */
- #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
- #define qca_wlan_vendor_attr_he_omi_tx \
- qca_wlan_vendor_attr_omi_tx
- #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
- QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
- #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
- QCA_WLAN_VENDOR_ATTR_OMI_MAX
- /**
- * enum qca_wlan_vendor_phy_mode - Different PHY modes
- * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
- *
- * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
- * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
- * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
- * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
- * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
- * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
- * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
- * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
- * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
- * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
- * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
- * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
- * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
- * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
- * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
- * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
- * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
- * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
- * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
- * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
- * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
- * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
- * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
- * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
- * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
- * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
- * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
- * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
- * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
- */
- enum qca_wlan_vendor_phy_mode {
- QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
- QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
- QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
- QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
- QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
- QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
- QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
- QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
- QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
- QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
- QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
- QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
- QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
- QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
- QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
- QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
- QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
- QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
- QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
- QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
- QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
- QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
- QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
- QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
- QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
- QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
- QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
- QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
- QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
- };
- /* Attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
- */
- enum qca_wlan_vendor_attr_wifi_test_config {
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
- /* 8-bit unsigned value to configure the driver to enable/disable
- * WMM feature. This attribute is used to configure testbed device.
- * 1-enable, 0-disable
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
- /* 8-bit unsigned value to configure the driver to accept/reject
- * the addba request from peer. This attribute is used to configure
- * the testbed device.
- * 1-accept addba, 0-reject addba
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
- /* 8-bit unsigned value to configure the driver to send or not to
- * send the addba request to peer.
- * This attribute is used to configure the testbed device.
- * 1-send addba, 0-do not send addba
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
- /* 8-bit unsigned value to indicate the HE fragmentation support.
- * Uses enum he_fragmentation_val values.
- * This attribute is used to configure the testbed device to
- * allow the advertised hardware capabilities to be downgraded
- * for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
- /* 8-bit unsigned value to indicate the HE MCS support.
- * Uses enum he_mcs_config values.
- * This attribute is used to configure the testbed device to
- * allow the advertised hardware capabilities to be downgraded
- * for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
- /* 8-bit unsigned value to configure the driver to allow or not to
- * allow the connection with WEP/TKIP in HT/VHT/HE modes.
- * This attribute is used to configure the testbed device.
- * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
- /* 8-bit unsigned value to configure the driver to add a
- * new BA session or delete the existing BA session for
- * given TID. ADDBA command uses the buffer size and tid
- * configuration if user specifies the values else default
- * value for buffer size is used for all tids if the tid
- * also not specified. For DEL_BA command TID value is
- * required to process the command.
- * Uses enum qca_wlan_ba_session_config values.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
- /* 16-bit unsigned value to configure the buffer size in addba
- * request and response frames.
- * This attribute is used to configure the testbed device.
- * The range of the value is 0 to 256.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
- /* 8-bit unsigned value to configure the buffer size in addba
- * request and response frames.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
- /* 8-bit unsigned value to configure the no ack policy.
- * To configure no ack policy, access category value
- * is required to process the command.
- * This attribute is used to configure the testbed device.
- * 1 - enable no ack, 0 - disable no ack
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
- /* 8-bit unsigned value to configure the AC for no ack policy
- * This attribute is used to configure the testbed device.
- * uses the enum qca_wlan_ac_type values
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
- /* 8-bit unsigned value to configure the HE LTF
- * This attribute is used to configure the testbed device.
- * Uses the enum qca_wlan_he_ltf_cfg values.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
- /* 8-bit unsigned value to configure the tx beamformee.
- * This attribute is used to configure the testbed device.
- * 1 - enable, 0 - disable.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
- /* 8-bit unsigned value to configure the tx beamformee number of
- * space-time streams.
- * This attribute is used to configure the testbed device.
- * The range of the value is 0 to 8
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
- /* 8-bit unsigned value to configure the MU EDCA params for given AC
- * This attribute is used to configure the testbed device.
- * Uses the enum qca_wlan_ac_type values.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
- /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
- * To configure MU EDCA AIFSN value, MU EDCA access category value
- * is required to process the command.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
- /* 8-bit unsigned value to configure the MU EDCA ECW min value for
- * given AC.
- * To configure MU EDCA ECW min value, MU EDCA access category value
- * is required to process the command.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
- /* 8-bit unsigned value to configure the MU EDCA ECW max value for
- * given AC.
- * To configure MU EDCA ECW max value, MU EDCA access category value
- * is required to process the command.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
- /* 8-bit unsigned value to configure the MU EDCA timer for given AC
- * To configure MU EDCA timer value, MU EDCA access category value
- * is required to process the command.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
- /* 8-bit unsigned value to configure the HE trigger frame MAC padding
- * duration.
- * This attribute is used to configure the testbed device.
- * Uses the enum qca_wlan_he_mac_padding_dur values.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
- /* 8-bit unsigned value to override the MU EDCA params to defaults
- * regardless of the AP beacon MU EDCA params. If it is enabled use
- * the default values else use the MU EDCA params from AP beacon.
- * This attribute is used to configure the testbed device.
- * 1 - enable override, 0 - disable.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
- /* 8-bit unsigned value to configure the support for receiving
- * an MPDU that contains an operating mode control subfield.
- * This attribute is used to configure the testbed device.
- * 1-enable, 0-disable.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
- /* Nested attribute values required to setup the TWT session.
- * enum qca_wlan_vendor_attr_twt_setup provides the necessary
- * information to set up the session. It contains broadcast flags,
- * set_up flags, trigger value, flow type, flow ID, wake interval
- * exponent, protection, target wake time, wake duration, wake interval
- * mantissa. These nested attributes are used to setup a host triggered
- * TWT session.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
- /* This nested attribute is used to terminate the current TWT session.
- * It does not currently carry any attributes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
- /* This nested attribute is used to suspend the current TWT session.
- * It does not currently carry any attributes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
- /* Nested attribute values to indicate the request for resume.
- * This attribute is used to resume the TWT session.
- * enum qca_wlan_vendor_attr_twt_resume provides the necessary
- * parameters required to resume the TWT session.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
- /* 8-bit unsigned value to set the HE operating mode control
- * (OM CTRL) Channel Width subfield.
- * The Channel Width subfield indicates the operating channel width
- * supported by the STA for both reception and transmission.
- * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
- * This setting is cleared with the
- * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
- * flag attribute to reset defaults.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
- /* 8-bit unsigned value to configure the number of spatial
- * streams in HE operating mode control field.
- * This setting is cleared with the
- * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
- * flag attribute to reset defaults.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
- /* Flag attribute to configure the UL MU disable bit in
- * HE operating mode control field.
- * This setting is cleared with the
- * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
- * flag attribute to reset defaults.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
- /* Flag attribute to clear the previously set HE operating mode
- * control field configuration.
- * This attribute is used to configure the testbed device to reset
- * defaults to clear any previously set HE operating mode control
- * field configuration.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
- /* 8-bit unsigned value to configure HE single user PPDU
- * transmission. By default this setting is disabled and it
- * is disabled in the reset defaults of the device configuration.
- * This attribute is used to configure the testbed device.
- * 1-enable, 0-disable
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
- /* 8-bit unsigned value to configure action frame transmission
- * in HE trigger based PPDU transmission.
- * By default this setting is disabled and it is disabled in
- * the reset defaults of the device configuration.
- * This attribute is used to configure the testbed device.
- * 1-enable, 0-disable
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
- /* Nested attribute to indicate HE operating mode control field
- * transmission. It contains operating mode control field Nss,
- * channel bandwidth, Tx Nsts and UL MU disable attributes.
- * These nested attributes are used to send HE operating mode control
- * with configured values.
- * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
- /* 8-bit unsigned value to configure +HTC_HE support to indicate the
- * support for the reception of a frame that carries an HE variant
- * HT Control field.
- * This attribute is used to configure the testbed device.
- * 1-enable, 0-disable
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
- /* 8-bit unsigned value to configure VHT support in 2.4G band.
- * This attribute is used to configure the testbed device.
- * 1-enable, 0-disable
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
- /* 8-bit unsigned value to configure HE testbed defaults.
- * This attribute is used to configure the testbed device.
- * 1-set the device HE capabilities to testbed defaults.
- * 0-reset the device HE capabilities to supported config.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
- /* 8-bit unsigned value to configure twt request support.
- * This attribute is used to configure the testbed device.
- * 1-enable, 0-disable.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
- /* 8-bit unsigned value to configure protection for Management
- * frames when PMF is enabled for the association.
- * This attribute is used to configure the testbed device.
- * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
- /* Flag attribute to inject Disassociation frame to the connected AP.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
- /* 8-bit unsigned value to configure an override for the RSNXE Used
- * subfield in the MIC control field of the FTE in FT Reassociation
- * Request frame.
- * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
- * This attribute is used to configure the testbed device.
- * This attribute can be configured when STA is in disconnected or
- * associated state and the configuration is valid until the next
- * disconnection.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
- /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
- * Switch Announcement) when STA is in connected state.
- * 0 - Default behavior, 1 - Ignore CSA.
- * This attribute is used to configure the testbed device.
- * This attribute can be configured when STA is in disconnected or
- * associated state and the configuration is valid until the next
- * disconnection.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
- /* Nested attribute values required to configure OCI (Operating Channel
- * Information). Attributes defined in enum
- * qca_wlan_vendor_attr_oci_override are nested within this attribute.
- * This attribute is used to configure the testbed device.
- * This attribute can be configured when STA is in disconnected or
- * associated state and the configuration is valid until the next
- * disconnection.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
- /* 8-bit unsigned value to configure the driver/firmware to ignore SA
- * Query timeout. If this configuration is enabled STA shall not send
- * Deauthentication frmae when SA Query times out (mainly, after a
- * channel switch when OCV is enabled).
- * 0 - Default behavior, 1 - Ignore SA Query timeout.
- * This attribute is used to configure the testbed device.
- * This attribute can be configured only when STA is in associated state
- * and the configuration is valid until the disconnection.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
- /* 8-bit unsigned value to configure the driver/firmware to start or
- * stop transmitting FILS discovery frames.
- * 0 - Stop transmitting FILS discovery frames
- * 1 - Start transmitting FILS discovery frames
- * This attribute is used to configure the testbed device.
- * This attribute can be configured only in AP mode and the
- * configuration is valid until AP restart.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
- /* 8-bit unsigned value to configure the driver/firmware to enable or
- * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
- * information field.
- * 0 - Disable full bandwidth UL MU-MIMO subfield
- * 1 - Enable full bandwidth UL MU-MIMO subfield
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
- /* 16-bit unsigned value to configure the driver with a specific BSS
- * max idle period to advertise in the BSS Max Idle Period element
- * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
- /* 8-bit unsigned value to configure the driver to use only RU 242 tone
- * for data transmission.
- * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
- /* 8-bit unsigned value to configure the driver to disable data and
- * management response frame transmission to test the BSS max idle
- * feature.
- * 0 - Default behavior, 1 - Disable data and management response Tx.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
- /* 8-bit unsigned value to configure the driver/firmware to enable or
- * disable Punctured Preamble Rx subfield in the HE PHY capabilities
- * information field.
- * 0 - Disable Punctured Preamble Rx subfield
- * 1 - Enable Punctured Preamble Rx subfield
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
- /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
- * requirement mismatch for 6 GHz connection.
- * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
- /* 8-bit unsigned value to configure the driver to allow 6 GHz
- * connection with all security modes.
- * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
- * modes.
- * This attribute is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
- /* 8-bit unsigned value to configure the driver to transmit data with
- * ER SU PPDU type.
- *
- * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
- * This attribute is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
- /* 8-bit unsigned value to configure the driver to use Data or
- * Management frame type for keep alive data.
- * Uses enum qca_wlan_keep_alive_data_type values.
- *
- * This attribute is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
- /* 8-bit unsigned value to configure the driver to use scan request
- * BSSID value in Probe Request frame RA(A1) during the scan. The
- * driver saves this configuration and applies this setting to all user
- * space scan requests until the setting is cleared. If this
- * configuration is set, the driver uses the BSSID value from the scan
- * request to set the RA(A1) in the Probe Request frames during the
- * scan.
- *
- * 0 - Default behavior uses the broadcast RA in Probe Request frames.
- * 1 - Uses the scan request BSSID in RA in Probe Request frames.
- * This attribute is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
- /* 8-bit unsigned value to configure the driver to enable/disable the
- * BSS max idle period support.
- *
- * 0 - Disable the BSS max idle support.
- * 1 - Enable the BSS max idle support.
- * This attribute is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
- /* 8-bit unsigned value to configure the driver/firmware to enable or
- * disable Rx control frame to MultiBSS subfield in the HE MAC
- * capabilities information field.
- * 0 - Disable Rx control frame to MultiBSS subfield
- * 1 - Enable Rx control frame to MultiBSS subfield
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
- /* 8-bit unsigned value to configure the driver/firmware to enable or
- * disable Broadcast TWT support subfield in the HE MAC capabilities
- * information field.
- * 0 - Disable Broadcast TWT support subfield
- * 1 - Enable Broadcast TWT support subfield
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
- /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
- * mode for 802.11be MLO capable devices. If the attribute is set to 1,
- * and if the FW supports this capability too, then the STA host
- * advertises this capability to AP over assoc request frame. This
- * attribute will not have any effect on legacy devices with no 802.11be
- * support.
- * 0 - Default behavior
- * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
- /* 8-bit unsigned value to configure the driver to enable/disable the
- * periodic sounding for Tx beamformer functionality. The default
- * behavior uses algorithm to do sounding based on packet stats.
- *
- * 0 - Default behavior.
- * 1 - Enable the periodic sounding for Tx beamformer.
- * This attribute is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
- /* 8-bit unsigned value to configure beamformee SS EHT capability
- * to indicate the maximum number of spatial streams that the STA
- * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
- * The range of the value is 3 to 7.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
- /* 8-bit unsigned value to configure beamformee SS EHT capability
- * to indicate the maximum number of spatial streams that the STA
- * can receive in an EHT sounding NDP for 160 MHz bandwidth.
- * The range of the value is 3 to 7.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
- /* 8-bit unsigned value to configure beamformee SS EHT capability
- * to indicate the maximum number of spatial streams that the STA
- * can receive in an EHT sounding NDP for 320 MHz bandwidth.
- * The range of the value is 3 to 7.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
- /* 8-bit unsigned value to configure the driver to exclude station
- * profile in Probe Request frame Multi-Link element.
- * 0 - Default behavior, sends the Probe Request frame with station
- * profile data included in the Multi-Link element.
- * 1 - Exclude station profile in Probe Request frame Multi-Link
- * element.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
- /* 8-bit unsigned value to configure EHT testbed defaults.
- * This attribute is used to configure the testbed device.
- * 1 - Set the device EHT capabilities to testbed defaults.
- * 0 - Reset the device EHT capabilities to supported config.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
- /* 8-bit unsigned value to indicate the EHT MCS support.
- * Uses enum eht_mcs_config values.
- * This attribute is used to configure the testbed device to
- * allow the advertised hardware capabilities to be downgraded
- * for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
- /* 8-bit unsigned value to configure EHT TB Sounding Feedback
- * Rate Limit capability.
- * This attribute is used to configure the testbed device.
- * 0 - Indicates no maximum supported data rate limitation.
- * 1 - Indicates the maximum supported data rate is the lower of
- * the 1500 Mb/s and the maximum supported data rate.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
- /* 8-bit unsigned value to configure the support for receiving an MPDU
- * that contains an EHT operating mode control subfield.
- * This attribute is used to configure the testbed device.
- * 1-enable, 0-disable.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
- /* 8-bit unsigned value to configure the driver with EMLSR padding delay
- * subfield value.
- *
- * 0 - 0 us
- * 1 - 32 us
- * 2 - 64 us
- * 3 - 128 us
- * 4 - 256 us
- * 5-255 - Reserved
- *
- * This attribute is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
- /*
- * 8-bit unsigned value to indicate the firmware to force the active MLO
- * links to power save mode for the configured number of beacon periods.
- * This allows the firmware to suspend STA links for X beacon periods
- * and remain asleep even if the AP advertises TIM as opposed to regular
- * power save mode where STA links wake up if the AP indicates that it
- * has buffered data to send.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
- /*
- * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
- * to enable simultaneous transmission of PPDUs on all active links.
- * 0 - Default behavior
- * 1 - Enter STR mode for simultaneous data transmission on all links
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
- /* Nested attribute to indicate EHT MLO links on which powersave to be
- * enabled. It contains link ID attributes. These nested attributes are
- * of the type u8 and are used to enable the powersave on associated
- * MLO links corresponding to the link IDs provided in the command.
- * This attribute is used to configure the testbed device.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
- /* 8-bit unsigned value to configure the MLD ID of the BSS whose link
- * info is requested in the ML Probe Request frame. In the MLO-MBSSID
- * testcase, STA can request information of non-Tx BSS through Tx BSS
- * by configuring non-Tx BSS MLD ID within the ML probe request that
- * is transmitted via host initiated scan request.
- *
- * This attribute is used for testing purposes.
- */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
- QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_twt_operation - Operation of the config TWT request
- * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
- * The response for the respective operations can be either synchronous or
- * asynchronous (wherever specified). If synchronous, the response to this
- * operation is obtained in the corresponding vendor command reply to the user
- * space. For the asynchronous case the response is obtained as an event with
- * the same operation type.
- *
- * Drivers shall support either of these modes but not both simultaneously.
- * This support for asynchronous mode is advertised through the flag
- * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
- * the driver shall support synchronous mode.
- *
- * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
- * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
- * qca_wlan_vendor_attr_twt_setup. Depending upon the
- * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
- * synchronous or asynchronous operation.
- *
- * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
- * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
- * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
- *
- * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
- * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
- * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
- * This terminate can either get triggered by the user space or can as well be
- * a notification from the firmware if it initiates a terminate.
- * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
- * the request from user space can either be a synchronous or asynchronous
- * operation.
- *
- * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
- * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
- * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
- * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
- * this is either a synchronous or asynchronous operation.
- *
- * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
- * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
- * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
- * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
- * request.
- * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
- * capability, this is either a synchronous or asynchronous operation.
- *
- * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
- * combination of suspend and resume in a single request. Required parameters
- * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
- * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
- * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
- * capability, this is either a synchronous or asynchronous operation.
- *
- * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
- * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
- * session is setup. It's a synchronous operation.
- *
- * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
- * Valid only after the TWT session is setup. It's a synchronous operation.
- *
- * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
- * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
- * operation.
- *
- * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
- * ready for a new TWT session setup after it issued a twt teardown.
- *
- * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
- * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
- * the enum qca_wlan_vendor_attr_twt_set_param.
- *
- * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
- * related information for example TWT required bit in AP capabilities etc.
- * The reason for the notification is sent using
- * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
- */
- enum qca_wlan_twt_operation {
- QCA_WLAN_TWT_SET = 0,
- QCA_WLAN_TWT_GET = 1,
- QCA_WLAN_TWT_TERMINATE = 2,
- QCA_WLAN_TWT_SUSPEND = 3,
- QCA_WLAN_TWT_RESUME = 4,
- QCA_WLAN_TWT_NUDGE = 5,
- QCA_WLAN_TWT_GET_STATS = 6,
- QCA_WLAN_TWT_CLEAR_STATS = 7,
- QCA_WLAN_TWT_GET_CAPABILITIES = 8,
- QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
- QCA_WLAN_TWT_SET_PARAM = 10,
- QCA_WLAN_TWT_NOTIFY = 11,
- };
- /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
- * u8 attribute. Specify the TWT operation of this request. Possible values
- * are defined in enum qca_wlan_twt_operation. The parameters for the
- * respective operation is specified through
- * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
- * parameters configured for TWT. These parameters are represented by
- * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
- * enum qca_wlan_vendor_attr_twt_set_param or
- * enum qca_wlan_vendor_attr_twt_stats based on the operation.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
- * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
- * The values used by this attribute are defined in
- * enum qca_wlan_vendor_twt_status.
- */
- enum qca_wlan_vendor_attr_config_twt {
- QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
- QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
- };
- /**
- * qca_wlan_twt_setup_state: Represents the TWT session states.
- *
- * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
- * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
- * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
- */
- enum qca_wlan_twt_setup_state {
- QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
- QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
- QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
- };
- /**
- * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
- * TWT (Target Wake Time) setup request. These attributes are sent as part of
- * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
- * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
- * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
- * Disable (flag attribute not present) - Individual TWT
- * Enable (flag attribute present) - Broadcast TWT.
- * Individual means the session is between the STA and the AP.
- * This session is established using a separate negotiation between
- * STA and AP.
- * Broadcast means the session is across multiple STAs and an AP. The
- * configuration parameters are announced in Beacon frames by the AP.
- * This is used in
- * 1. TWT SET Request and Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
- * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
- * specify the TWT request type. This is used in TWT SET operation.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
- * Enable (flag attribute present) - TWT with trigger support.
- * Disable (flag attribute not present) - TWT without trigger support.
- * Trigger means the AP will send the trigger frame to allow STA to send data.
- * Without trigger, the STA will wait for the MU EDCA timer before
- * transmitting the data.
- * This is used in
- * 1. TWT SET Request and Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
- * 0 - Announced TWT - In this mode, STA may skip few service periods to
- * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
- * NULL frame to AP.
- * 1 - Unannounced TWT - The STA will wakeup during every SP.
- * This is a required parameter for
- * 1. TWT SET Request and Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
- * Flow ID is the unique identifier for each TWT session.
- * If not provided then dialog ID will be set to zero.
- * This is an optional parameter for
- * 1. TWT SET Request and Response
- * 2. TWT GET Request and Response
- * 3. TWT TERMINATE Request and Response
- * 4. TWT SUSPEND Request and Response
- * Flow Id values from 0 to 254 represent a single TWT session
- * Flow ID value of 255 represents all twt sessions for the following
- * 1. TWT TERMINATE Request and Response
- * 2. TWT SUSPEND Request and Response
- * 4. TWT CLEAR STATISTICS request
- * 5. TWT GET STATISTICS request and response
- * If an invalid dialog id is provided, status
- * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
- * This attribute (exp) is used along with the mantissa to derive the
- * wake interval using the following formula:
- * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
- * Wake interval is the interval between 2 successive SP.
- * This is a required parameter for
- * 1. TWT SET Request and Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
- * Enable (flag attribute present) - Protection required.
- * Disable (flag attribute not present) - Protection not required.
- * If protection is enabled, then the AP will use protection
- * mechanism using RTS/CTS to self to reserve the airtime.
- * This is used in
- * 1. TWT SET Request and Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
- * This attribute is used as the SP offset which is the offset from
- * TSF after which the wake happens. The units are in microseconds. If
- * this attribute is not provided, then the value will be set to zero.
- * This is an optional parameter for
- * 1. TWT SET Request and Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
- * This is the duration of the service period. This is specified as
- * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
- * This is a required parameter for
- * 1. TWT SET Request and Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
- * This attribute is used to configure wake interval mantissa.
- * The units are in TU.
- * This is a required parameter for
- * 1. TWT SET Request and Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
- * This field is applicable for TWT response only.
- * This contains status values in enum qca_wlan_vendor_twt_status
- * and is passed to the userspace. This is used in TWT SET operation.
- * This is a required parameter for
- * 1. TWT SET Response
- * 2. TWT TERMINATE Response
- * 3. TWT SUSPEND Response
- * 4. TWT RESUME Response
- * 5. TWT NUDGE Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
- * This field is applicable for TWT response only.
- * This field contains response type from the TWT responder and is
- * passed to the userspace. The values for this field are defined in
- * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
- * response.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
- * In TWT setup command this field contains absolute TSF that will
- * be used by TWT requester during setup.
- * In TWT response this field contains absolute TSF value of the
- * wake time received from the TWT responder and is passed to
- * the userspace.
- * This is an optional parameter for
- * 1. TWT SET Request
- * This is a required parameter for
- * 1. TWT SET Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
- * Enable (flag attribute present) - Indicates that the TWT responder
- * supports reception of TWT information frame from the TWT requestor.
- * Disable (flag attribute not present) - Indicates that the responder
- * doesn't support reception of TWT information frame from requestor.
- * This is used in
- * 1. TWT SET Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
- * Represents the MAC address of the peer for which the TWT session
- * is being configured. This is used in AP mode to represent the respective
- * client
- * In AP mode, this is a required parameter in response for
- * 1. TWT SET
- * 2. TWT GET
- * 3. TWT TERMINATE
- * 4. TWT SUSPEND
- * In STA mode, this is an optional parameter in request and response for
- * the above four TWT operations.
- * In AP mode, this is a required parameter in request for
- * 1. TWT GET
- * 2. TWT TERMINATE
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
- * Minimum tolerance limit of wake interval parameter in microseconds.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
- * Maximum tolerance limit of wake interval parameter in microseconds.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
- * Minimum tolerance limit of wake duration parameter in microseconds.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
- * Maximum tolerance limit of wake duration parameter in microseconds.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
- * TWT state for the given dialog id. The values for this are represented
- * by enum qca_wlan_twt_setup_state.
- * This is obtained through TWT GET operation.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
- * This attribute is used to configure wake interval mantissa.
- * The unit is microseconds. This attribute, when specified, takes
- * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
- * This parameter is used for
- * 1. TWT SET Request and Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
- * This attribute is used to configure Broadcast TWT ID.
- * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
- * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
- * This parameter is used for
- * 1. TWT SET Request
- * 2. TWT TERMINATE Request
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
- * This attribute is used to configure Broadcast TWT recommendation.
- * The Broadcast TWT Recommendation subfield contains a value that indicates
- * recommendations on the types of frames that are transmitted by TWT
- * scheduled STAs and scheduling AP during the broadcast TWT SP.
- * The allowed values are 0 - 3.
- * This parameter is used for
- * 1. TWT SET Request
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
- * This attribute is used to configure Broadcast TWT Persistence.
- * The Broadcast TWT Persistence subfield indicates the number of
- * TBTTs during which the Broadcast TWT SPs corresponding to this
- * broadcast TWT Parameter set are present. The number of beacon intervals
- * during which the Broadcast TWT SPs are present is equal to the value in the
- * Broadcast TWT Persistence subfield plus 1 except that the value 255
- * indicates that the Broadcast TWT SPs are present until explicitly terminated.
- * This parameter is used for
- * 1. TWT SET Request
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
- * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
- * from TWT response frame.
- * This parameter is used for
- * 1. TWT SET Response
- * 2. TWT GET Response
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
- * This attribute is used to configure the announce timeout value (in us) in
- * firmware. This timeout value is only applicable for announced TWT. If
- * timeout value is non-zero then firmware waits upto timeout value to use
- * data frame as announcement frame. If timeout value is 0 then firmware sends
- * explicit QoS NULL frame as announcement frame on SP start. Default value in
- * firmware is 0.
- * This parameter is used for
- * 1. TWT SET Request
- */
- enum qca_wlan_vendor_attr_twt_setup {
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
- /* TWT Response only attributes */
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
- QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_twt_status - Represents the status of the requested
- * TWT operation
- *
- * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
- * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
- * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
- * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
- * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
- * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
- * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
- * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
- * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
- * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
- * request/response frame
- * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
- * frame
- * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
- * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
- * unknown reason
- * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
- * suspend state
- * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
- * invalid IE in the received TWT frame
- * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
- * the responder are not in the specified range
- * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
- * session due to request from the responder. Used on the TWT_TERMINATE
- * notification from the firmware.
- * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
- * session due to roaming. Used on the TWT_TERMINATE notification from the
- * firmware.
- * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
- * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
- * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
- * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
- * request due to roaming in progress.
- * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
- * setup request due to channel switch in progress.
- * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
- * request due to scan in progress.
- * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
- * terminate an existing TWT session on power save exit request from userspace.
- * Used on the TWT_TERMINATE notification from the driver/firmware.
- * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
- * required bit in its capabilities.
- * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
- * the TWT required bit(1->0) in its capabilities.
- */
- enum qca_wlan_vendor_twt_status {
- QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
- QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
- QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
- QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
- QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
- QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
- QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
- QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
- QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
- QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
- QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
- QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
- QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
- QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
- QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
- QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
- QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
- QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
- QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
- QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
- QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
- QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
- QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
- QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
- QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
- };
- /**
- * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
- * TWT (Target Wake Time) resume request. These attributes are sent as part of
- * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
- * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
- * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
- * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
- * These attributes are used as the SP offset which is the offset from TSF after
- * which the wake happens. The units are in microseconds. Please note that
- * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
- * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
- * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
- * will be set to zero.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
- * This attribute represents the next TWT subfield size.
- * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
- * and 4 for 64 bits.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
- * Flow ID is the unique identifier for each TWT session. This attribute
- * represents the respective TWT session to resume.
- * Flow Id values from 0 to 254 represent a single TWT session
- * Flow ID value of 255 represents all TWT sessions.
- * If an invalid dialog id is provided, status
- * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
- * Represents the MAC address of the peer to which TWT Resume is
- * being sent. This is used in AP mode to represent the respective
- * client and is a required parameter. In STA mode, this is an optional
- * parameter
- *
- */
- enum qca_wlan_vendor_attr_twt_resume {
- QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
- QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
- QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
- QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
- QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
- QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
- * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
- * and resume in a single request. These attributes are sent as part of
- * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
- * Flow ID is the unique identifier for each TWT session. This attribute
- * represents the respective TWT session to suspend and resume.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
- * Flow ID is the unique identifier for each TWT session. This attribute
- * represents the respective TWT session to suspend and resume.
- * Flow Id values from 0 to 254 represent a single TWT session
- * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
- * and response.
- * If an invalid dialog id is provided, status
- * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
- * This attribute is used as the SP offset which is the offset from
- * TSF after which the wake happens. The units are in microseconds.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
- * This attribute represents the next TWT subfield size.
- * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
- * and 4 for 64 bits.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
- * Represents the MAC address of the peer to which TWT Suspend and Resume is
- * being sent. This is used in AP mode to represent the respective
- * client and is a required parameter. In STA mode, this is an optional
- * parameter.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
- * This field contains absolute TSF value of the time at which twt
- * sesion will be resumed.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
- * This field will be used when device supports Flexible TWT.
- * This field contains an offset value by which to shift the starting time
- * of the next service period. The value of offset can be negative or positive.
- * If provided, this attribute will override
- * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
- */
- enum qca_wlan_vendor_attr_twt_nudge {
- QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
- QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
- QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
- QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
- QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
- QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
- QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
- * TWT (Target Wake Time) get statistics and clear statistics request.
- * These attributes are sent as part of
- * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
- * Flow ID is the unique identifier for each TWT session. This attribute
- * represents the respective TWT session for get and clear TWT statistics.
- * Flow Id values from 0 to 254 represent a single TWT session
- * Flow ID value of 255 represents all TWT sessions in
- * 1) TWT GET STATISTICS request and response
- * 2) TWT CLEAR STATISTICS request
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
- * Represents the MAC address of the peer for which TWT Statistics
- * is required.
- * In AP mode this is used to represent the respective
- * client and is a required parameter for
- * 1) TWT GET STATISTICS request and response
- * 2) TWT CLEAR STATISTICS request and response
- * In STA mode, this is an optional parameter.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
- * This is the duration of the service period in microseconds.
- * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
- * Average of actual wake duration observed so far. Unit is microseconds.
- * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
- * Number of TWT service period elapsed so far.
- * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
- * This is the minimum value of wake duration observed across
- * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
- * microseconds.
- * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
- * This is the maximum value of wake duration observed across
- * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
- * microseconds.
- * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
- * Average number of MPDU's transmitted successfully across
- * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
- * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
- * Average number of MPDU's received successfully across
- * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
- * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
- * Average number of bytes transmitted successfully across
- * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
- * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
- * Average number of bytes received successfully across
- * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
- * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
- * Status of the TWT GET STATISTICS request.
- * This contains status values in enum qca_wlan_vendor_twt_status
- * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
- */
- enum qca_wlan_vendor_attr_twt_stats {
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
- QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
- };
- /**
- * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
- * supported by the device and peer.
- * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
- *
- * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
- * TWT non-scheduling STA. This capability is advertised in the HE
- * capability/Extended capabilities information element in the
- * Association request frame by the device.
- *
- * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
- * by the TWT scheduling AP. This capability is advertised in the extended
- * capabilities/HE capabilities information element.
- *
- * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
- * for the broadcast TWT functionality. On responder side, this indicates
- * support for the role of broadcast TWT scheduling functionality. This
- * capability is advertised in the HE capabilities information element.
- *
- * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
- * This capability is advertised in the HE capabilities information element.
- *
- * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
- * that it mandates the associated HE STAs to support TWT. This capability is
- * advertised by AP in the HE Operation Parameters field of the HE operation
- * information element.
- */
- enum qca_wlan_twt_capa {
- QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
- QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
- QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
- QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
- QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
- };
- /**
- * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
- * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
- * operation.
- * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
- * Represents the MAC address of the peer for which the TWT capabilities
- * are being queried. This is used in AP mode to represent the respective
- * client. In STA mode, this is an optional parameter.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
- * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
- * enum qca_wlan_twt_capa.
- * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
- * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
- * enum qca_wlan_twt_capa.
- */
- enum qca_wlan_vendor_attr_twt_capability {
- QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
- QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
- QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
- QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
- * TWT (Target Wake Time) related parameters. It is used when
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
- * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
- *
- * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
- * This attribute configures AC parameters to be used for all TWT
- * sessions in AP mode.
- * Uses the enum qca_wlan_ac_type values.
- */
- enum qca_wlan_vendor_attr_twt_set_param {
- QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
- QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
- * the TWT responder
- *
- * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
- * parameters that are different from TWT requesting STA suggested
- * or demanded TWT parameters
- * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
- * parameters that are different from TWT requesting STA TWT suggested
- * or demanded parameters
- * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
- * setup
- * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
- * setup.
- */
- enum qca_wlan_vendor_twt_setup_resp_type {
- QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
- QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
- QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
- QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
- };
- /**
- * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
- * Represents the setup type being requested for TWT.
- * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
- * parameters but relying on AP to fill the parameters during the negotiation.
- * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
- * values which the AP may accept or AP may provide alternative parameters
- * which the STA may accept.
- * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
- * alternate parameters than the requested ones.
- */
- enum qca_wlan_vendor_twt_setup_req_type {
- QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
- QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
- QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
- };
- /**
- * enum qca_wlan_throughput_level - Current throughput level
- *
- * Indicates the current level of throughput calculated by driver. The driver
- * may choose different thresholds to decide whether the throughput level is
- * low or medium or high based on variety of parameters like physical link
- * capacity of current connection, number of pakcets being dispatched per
- * second etc. The throughput level events might not be consistent with the
- * actual current throughput value being observed.
- *
- * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
- * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
- * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
- */
- enum qca_wlan_throughput_level {
- QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
- QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
- QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
- };
- /**
- * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
- * report throughput changes from driver to user space. enum values are used
- * for NL attributes sent with
- * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
- */
- enum qca_wlan_vendor_attr_throughput_change {
- QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
- /*
- * Indicates the direction of throughput in which the change is being
- * reported. u8 attribute. Value is 0 for TX and 1 for RX.
- */
- QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
- /*
- * Indicates the newly observed throughput level.
- * qca_wlan_throughput_level describes the possible range of values.
- * u8 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
- /*
- * Indicates the driver's guidance on the new value to be set to
- * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
- * may optionally include this attribute.
- */
- QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
- /*
- * Indicates the driver's guidance on the new value to be set to
- * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
- * values are from -31 to 31. Driver may optionally include this
- * attribute.
- */
- QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
- /*
- * Indicates the driver's guidance on the new value to be set to
- * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
- * optionally include this attribute.
- */
- QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
- QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
- };
- /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
- * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
- * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
- */
- enum qca_wlan_nan_ext_subcmd_type {
- /* Subcmd of type NAN Enable Request */
- QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
- /* Subcmd of type NAN Disable Request */
- QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
- };
- /**
- * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
- */
- enum qca_wlan_vendor_attr_nan_params {
- QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
- /* Carries NAN command for firmware component. Every vendor command
- * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
- * payload containing the NAN command. NLA_BINARY attribute.
- */
- QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
- /* Indicates the type of NAN command sent with
- * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
- * describes the possible range of values. This attribute is mandatory
- * if the command being issued is either
- * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
- * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
- /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
- * band. This attribute is mandatory when command type is
- * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
- /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
- * band. This attribute is optional and should be included when command
- * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
- * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
- QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
- * transport modes and is used by attribute
- * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
- * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
- * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
- * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
- * data. The data shall be encapsulated within
- * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
- * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
- */
- enum qca_wlan_vendor_cfr_data_transport_modes {
- QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
- QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
- };
- /**
- * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
- * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
- * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
- * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
- * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
- * with phase
- * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
- */
- enum qca_wlan_vendor_cfr_method {
- QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
- QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
- QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
- };
- /**
- * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
- * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
- * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
- * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
- * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
- * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
- * is provided by one or more of below attributes:
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
- * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
- * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
- */
- enum qca_wlan_vendor_cfr_capture_type {
- QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
- QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
- QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
- QCA_WLAN_VENDOR_CFR_TA_RA = 3,
- QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
- QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
- };
- /**
- * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
- * Channel Frequency Response capture parameters and enable periodic CFR
- * capture.
- *
- * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
- * MAC address of peer. This is for CFR version 1 only.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
- * Enable peer CFR Capture. This attribute is mandatory to
- * enable peer CFR capture. If this attribute is not present,
- * peer CFR capture is disabled.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
- * BW of measurement, attribute uses the values in enum nl80211_chan_width
- * Supported values: 20, 40, 80, 80+80, 160.
- * Note that all targets may not support all bandwidths.
- * This attribute is mandatory for version 1 if attribute
- * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
- * Periodicity of CFR measurement in msec.
- * Periodicity should be a multiple of Base timer.
- * Current Base timer value supported is 10 msecs (default).
- * 0 for one shot capture.
- * This attribute is mandatory for version 1 if attribute
- * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
- * Method used to capture Channel Frequency Response.
- * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
- * This attribute is mandatory for version 1 if attribute
- * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
- *
- * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
- * Enable periodic CFR capture.
- * This attribute is mandatory for version 1 to enable Periodic CFR capture.
- * If this attribute is not present, periodic CFR capture is disabled.
- *
- * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
- * Value is 1 or 2 since there are two versions of CFR capture. Two versions
- * can't be enabled at same time. This attribute is mandatory if target
- * support both versions and use one of them.
- *
- * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
- * This attribute is mandatory for version 2 if
- * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
- * Bits 15:0 Bit fields indicating which group to be enabled.
- * Bits 31:16 Reserved for future use.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
- * CFR capture duration in microsecond. This attribute is mandatory for
- * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
- * CFR capture interval in microsecond. This attribute is mandatory for
- * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
- * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
- * This attribute is mandatory for version 2.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
- * Bit fields indicating which user in the current UL MU
- * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
- * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
- * then the CFR capture will happen for user index 0 in the current
- * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
- * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
- * This is for CFR version 2 only.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
- * Indicates the number of consecutive Rx packets to be skipped
- * before CFR capture is enabled again.
- * This is for CFR version 2 only.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
- * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
- * the following GROUP attributes:
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
- * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
- * Target support multiple groups for some configurations. Group number could be
- * any value between 0 and 15. This is for CFR version 2 only.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
- * Transmitter address which is used to filter packets, this MAC address takes
- * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
- * This is for CFR version 2 only.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
- * Receiver address which is used to filter packets, this MAC address takes
- * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
- * This is for CFR version 2 only.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
- * Mask of transmitter address which is used to filter packets.
- * This is for CFR version 2 only.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
- * Mask of receiver address which is used to filter packets.
- * This is for CFR version 2 only.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
- * Indicates packets with a specific NSS will be filtered for CFR capture.
- * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
- * be done for packets matching the NSS specified within this bitmask.
- * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
- * bit 0 : NSS 1
- * bit 1 : NSS 2
- * ...
- * bit 7 : NSS 8
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
- * Indicates packets with a specific BW will be filtered for CFR capture.
- * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
- * will be done for packets matching the bandwidths specified within this
- * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
- * numerated in enum nl80211_band (although not all bands may be supported
- * by a given device).
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
- * Management packets matching the subtype filter categories will be
- * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
- * represents the corresponding mgmt subtype value as per
- * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
- * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
- * This is for CFR version 2 only
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
- * Control packets matching the subtype filter categories will be
- * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
- * represents the corresponding control subtype value as per
- * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
- * This is for CFR version 2 only.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
- * Data packets matching the subtype filter categories will be
- * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
- * represents the corresponding data subtype value as per
- * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
- * This is for CFR version 2 only.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
- * Userspace can use this attribute to specify the driver about which transport
- * mode shall be used by the driver to send CFR data to userspace. Uses values
- * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
- * not present, driver shall choose the default transport mechanism which is
- * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
- * Userspace can use this attribute to specify the nl port id of the application
- * which receives the CFR data and processes it further so that the drivers can
- * unicast the NL events to a specific application. Optionally included when
- * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
- * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
- * shall multicast the netlink events when this attribute is not included.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
- * This attribute will be used by the driver to encapsulate and send CFR data
- * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
- * asynchronous event when the driver is configured to send CFR data using NL
- * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
- *
- */
- enum qca_wlan_vendor_peer_cfr_capture_attr {
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
- QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
- QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
- };
- /**
- * enum qca_coex_config_profiles - This enum defines different types of
- * traffic streams that can be prioritized one over the other during coex
- * scenarios.
- * The types defined in this enum are categorized in the below manner.
- * 0 - 31 values corresponds to WLAN
- * 32 - 63 values corresponds to BT
- * 64 - 95 values corresponds to Zigbee
- * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
- * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
- * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
- * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
- * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
- * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
- * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
- * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
- * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
- * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
- * @QCA_BT_A2DP: Prioritize BT A2DP
- * @QCA_BT_BLE: Prioritize BT BLE
- * @QCA_BT_SCO: Prioritize BT SCO
- * @QCA_ZB_LOW: Prioritize Zigbee Low
- * @QCA_ZB_HIGH: Prioritize Zigbee High
- */
- enum qca_coex_config_profiles {
- /* 0 - 31 corresponds to WLAN */
- QCA_WIFI_STA_DISCOVERY = 0,
- QCA_WIFI_STA_CONNECTION = 1,
- QCA_WIFI_STA_CLASS_3_MGMT = 2,
- QCA_WIFI_STA_DATA = 3,
- QCA_WIFI_STA_ALL = 4,
- QCA_WIFI_SAP_DISCOVERY = 5,
- QCA_WIFI_SAP_CONNECTION = 6,
- QCA_WIFI_SAP_CLASS_3_MGMT = 7,
- QCA_WIFI_SAP_DATA = 8,
- QCA_WIFI_SAP_ALL = 9,
- QCA_WIFI_CASE_MAX = 31,
- /* 32 - 63 corresponds to BT */
- QCA_BT_A2DP = 32,
- QCA_BT_BLE = 33,
- QCA_BT_SCO = 34,
- QCA_BT_CASE_MAX = 63,
- /* 64 - 95 corresponds to Zigbee */
- QCA_ZB_LOW = 64,
- QCA_ZB_HIGH = 65,
- QCA_ZB_CASE_MAX = 95,
- /* 0xff is default value if the u8 profile value is not set. */
- QCA_PROFILE_DEFAULT_VALUE = 255
- };
- /**
- * enum qca_vendor_attr_coex_config_types - Coex configurations types.
- * This enum defines the valid set of values of coex configuration types. These
- * values may used by attribute
- * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
- *
- * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
- * weights to default values.
- * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
- * weights with configurability value.
- */
- enum qca_vendor_attr_coex_config_types {
- QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
- QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
- QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
- };
- /**
- * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
- * attributes
- * Attributes for data used by
- * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
- *
- * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
- * Indicate config type.
- * the config types are 32-bit values from qca_vendor_attr_coex_config_types
- *
- * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
- * Indicate the Priority 1 profiles.
- * the profiles are 8-bit values from enum qca_coex_config_profiles
- * In same priority level, maximum to 4 profiles can be set here.
- * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
- * Indicate the Priority 2 profiles.
- * the profiles are 8-bit values from enum qca_coex_config_profiles
- * In same priority level, maximum to 4 profiles can be set here.
- * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
- * Indicate the Priority 3 profiles.
- * the profiles are 8-bit values from enum qca_coex_config_profiles
- * In same priority level, maximum to 4 profiles can be set here.
- * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
- * Indicate the Priority 4 profiles.
- * the profiles are 8-bit values from enum qca_coex_config_profiles
- * In same priority level, maximum to 4 profiles can be set here.
- * NOTE:
- * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
- * arrangement:
- * 1: In the same u32 attribute(priority x), the profiles enum values own
- * same priority level.
- * 2: 0xff is default value if the u8 profile value is not set.
- * 3: max to 4 rules/profiles in same priority level.
- * 4: max to 4 priority level (priority 1 - priority 4)
- * 5: one priority level only supports one scenario from WLAN/BT/ZB,
- * hybrid rules not support.
- * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
- * remain blank to reset all parameters.
- * For example:
- *
- * If the attributes as follow:
- * priority 1:
- * ------------------------------------
- * | 0xff | 0 | 1 | 2 |
- * ------------------------------------
- * priority 2:
- * -------------------------------------
- * | 0xff | 0xff | 0xff | 32 |
- * -------------------------------------
- * priority 3:
- * -------------------------------------
- * | 0xff | 0xff | 0xff | 65 |
- * -------------------------------------
- * then it means:
- * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
- * owns same priority level.
- * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
- * has priority over BT_A2DP and ZB_HIGH.
- * 3: BT_A2DP has priority over ZB_HIGH.
- */
- enum qca_vendor_attr_coex_config_three_way {
- QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
- QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
- QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
- QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
- QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
- QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
- /* Keep last */
- QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
- QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
- QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
- };
- /**
- * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
- * This enum defines the valid set of values of peer stats cache types. These
- * values are used by attribute
- * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
- * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
- * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
- * statistics
- */
- enum qca_vendor_attr_peer_stats_cache_type {
- QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
- QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
- QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
- };
- /**
- * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
- * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
- * Attributes are required to flush peer rate statistics from driver to
- * user application.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
- * Indicate peer stats cache type.
- * The statistics types are 32-bit values from
- * qca_vendor_attr_peer_stats_cache_type
- * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
- * of size 6, representing peer mac address.
- * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
- * containing buffer of statistics to send event to application layer entity.
- * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
- * representing cookie for peer unique session.
- */
- enum qca_wlan_vendor_attr_peer_stats_cache_params {
- QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
- QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
- QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
- QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
- QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
- QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
- };
- /**
- * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
- * this enum defines all the possible state of zigbee, which can be
- * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
- *
- * @ZIGBEE_IDLE: zigbee in idle state
- * @ZIGBEE_FORM_NETWORK: zibee forming network
- * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
- * @ZIGBEE_JOIN: zigbee joining network
- * @ZIGBEE_NETWORK_UP: zigbee network is up
- * @ZIGBEE_HMI: zigbee in HMI mode
- */
- enum qca_mpta_helper_attr_zigbee_state {
- ZIGBEE_IDLE = 0,
- ZIGBEE_FORM_NETWORK = 1,
- ZIGBEE_WAIT_JOIN = 2,
- ZIGBEE_JOIN = 3,
- ZIGBEE_NETWORK_UP = 4,
- ZIGBEE_HMI = 5,
- };
- /**
- * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
- * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
- */
- enum qca_mpta_helper_vendor_attr {
- QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
- /* Optional attribute used to update zigbee state.
- * enum qca_mpta_helper_attr_zigbee_state.
- * NLA_U32 attribute.
- */
- QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
- /* Optional attribute used to configure wlan duration for Shape-OCS
- * during interrupt.
- * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
- * Value range 0 ~ 300 (ms).
- * NLA_U32 attribute.
- */
- QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
- /* Optional attribute used to configure non wlan duration for Shape-OCS
- * during interrupt.
- * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
- * Value range 0 ~ 300 (ms).
- * NLA_U32 attribute.
- */
- QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
- /* Optional attribute used to configure wlan duration for Shape-OCS
- * monitor period.
- * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
- * Value range 0 ~ 300 (ms)
- * NLA_U32 attribute
- */
- QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
- /* Optional attribute used to configure non wlan duration for Shape-OCS
- * monitor period.
- * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
- * Value range 0 ~ 300 (ms)
- * NLA_U32 attribute
- */
- QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
- /* Optional attribute used to configure ocs interrupt duration.
- * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
- * Value range 1000 ~ 20000 (ms)
- * NLA_U32 attribute
- */
- QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
- /* Optional attribute used to configure ocs monitor duration.
- * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
- * Value range 1000 ~ 20000 (ms)
- * NLA_U32 attribute
- */
- QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
- /* Optional attribute used to notify wlan FW current zigbee channel.
- * Value range 11 ~ 26
- * NLA_U32 attribute
- */
- QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
- /* Optional attribute used to configure wlan mute duration.
- * Value range 0 ~ 400 (ms)
- * NLA_U32 attribute
- */
- QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
- /* keep last */
- QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
- QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
- QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
- * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
- * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
- *
- * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
- * to request the driver to start reporting Beacon frames.
- * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
- * to request the driver to stop reporting Beacon frames.
- * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
- * userspace to report received Beacon frames.
- * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
- * to indicate that the driver is going to pause reporting Beacon frames.
- */
- enum qca_wlan_vendor_beacon_reporting_op_types {
- QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
- QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
- QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
- QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
- };
- /**
- * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
- * types of reasons for which the driver is pausing reporting Beacon frames.
- * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
- *
- * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
- * reasons.
- * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
- * driver/firmware is starting a scan.
- * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
- * driver/firmware disconnects from the ESS and indicates the disconnection to
- * userspace (non-seamless roaming case). This reason code will be used by the
- * driver/firmware to indicate stopping of beacon report events. Userspace
- * will need to start beacon reporting again (if desired) by sending vendor
- * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
- * completed.
- */
- enum qca_wlan_vendor_beacon_reporting_pause_reasons {
- QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
- QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
- QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
- };
- /*
- * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
- * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
- */
- enum qca_wlan_vendor_attr_beacon_reporting_params {
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
- /* Specifies the type of operation that the vendor command/event is
- * intended for. Possible values for this attribute are defined in
- * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
- /* Optionally set by userspace to request the driver to report Beacon
- * frames using asynchronous vendor events when the
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
- * If this flag is not set, the driver will only update Beacon frames
- * in cfg80211 scan cache but not send any vendor events.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
- /* Optionally used by userspace to request the driver/firmware to
- * report Beacon frames periodically when the
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
- * u32 attribute, indicates the period of Beacon frames to be reported
- * and in the units of beacon interval.
- * If this attribute is missing in the command, then the default value
- * of 1 will be assumed by driver, i.e., to report every Beacon frame.
- * Zero is an invalid value.
- * If a valid value is received for this attribute, the driver will
- * update the cfg80211 scan cache periodically as per the value
- * received in this attribute in addition to updating the cfg80211 scan
- * cache when there is significant change in Beacon frame IEs.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
- /* Used by the driver to encapsulate the SSID when the
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
- * u8 array with a maximum size of 32.
- *
- * When generating beacon report from non-MBSSID Beacon frame, the SSID
- * will be taken from the SSID element of the received Beacon frame.
- *
- * When generating beacon report from Multiple BSSID Beacon frame and
- * if the BSSID of the current connected BSS matches the BSSID of the
- * transmitting BSS, the SSID will be taken from the SSID element of
- * the received Beacon frame.
- *
- * When generating beacon report from Multiple BSSID Beacon frame and
- * if the BSSID of the current connected BSS matches the BSSID of one
- * of the* nontransmitting BSSs, the SSID will be taken from the SSID
- * field included in the nontransmitted BSS profile whose derived BSSI
- * is same as the BSSID of the current connected BSS. When there is no
- * nontransmitted BSS profile whose derived BSSID is same as the BSSID
- * of current connected* BSS, this attribute will not be present.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
- /* Used by the driver to encapsulate the BSSID of the AP to which STA
- * is currently connected to when the
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
- * fixed size of 6 bytes.
- *
- * When generating beacon report from a Multiple BSSID beacon and the
- * current connected BSSID matches one of the nontransmitted BSSIDs in
- * a Multiple BSSID set, this BSSID will be that particular
- * nontransmitted BSSID and not the transmitted BSSID (i.e., the
- * transmitting address of the Beacon frame).
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
- /* Used by the driver to encapsulate the frequency in MHz on which
- * the Beacon frame was received when the
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
- * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
- * u32 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
- /* Used by the driver to encapsulate the Beacon interval
- * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
- * u16 attribute. The value will be copied from the Beacon frame and
- * the units are TUs.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
- /* Used by the driver to encapsulate the Timestamp field from the
- * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
- * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
- * u64 attribute.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
- /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
- * Beacon frame is received in the driver when the
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
- * the units of nanoseconds. This value is expected to have accuracy of
- * about 10 ms.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
- /* Used by the driver to encapsulate the IEs of the Beacon frame from
- * which this event is generated when the
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
- /* Used by the driver to specify the reason for the driver/firmware to
- * pause sending beacons to userspace when the
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
- * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
- * attribute.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
- /* Used by the driver to specify whether the driver will automatically
- * resume reporting beacon events to userspace later (for example after
- * the ongoing off-channel activity is completed etc.) when the
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
- /* Optionally set by userspace to request the driver not to resume
- * beacon reporting after a pause is completed, when the
- * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
- * If this flag is set, the driver will not resume beacon reporting
- * after any pause in beacon reporting is completed. Userspace has to
- * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
- * to initiate beacon reporting again. If this flag is set in the recent
- * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
- * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
- * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
- * set by the driver. Setting this flag until and unless there is a
- * specific need is not recommended as there is a chance of some beacons
- * received after pause command and next start command being not
- * reported.
- */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
- QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
- };
- /**
- * enum qca_vendor_oem_device_type - Represents the target device in firmware.
- * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
- *
- * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
- * a virtual device.
- *
- * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
- * a physical device.
- */
- enum qca_vendor_oem_device_type {
- QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
- QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
- };
- /*
- * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
- *
- * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
- * used to set/query the data to/from the firmware. On query, the same
- * attribute is used to carry the respective data in the reply sent by the
- * driver to userspace. The request to set/query the data and the format of the
- * respective data from the firmware are embedded in the attribute. The
- * maximum size of the attribute payload is 1024 bytes.
- *
- * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
- * based on this field. This optional attribute is included to specify whether
- * the device type is a virtual device or a physical device for the command.
- * This attribute can be omitted for a virtual device (default) command.
- * This u8 attribute is used to carry information for the device type using
- * values defined by enum qca_vendor_oem_device_type.
- *
- * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
- * attribute when the data is queried from the firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
- * is set when the userspace queries data from the firmware. This attribute
- * should not be set when userspace sets the OEM data to the firmware.
- */
- enum qca_wlan_vendor_attr_oem_data_params {
- QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
- QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
- QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
- QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
- };
- /**
- * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
- * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
- *
- * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
- * Nested attribute containing multiple ranges with following attributes:
- * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
- * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
- * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
- *
- * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
- * Starting center frequency in MHz.
- *
- * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
- * Ending center frequency in MHz.
- *
- * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
- * s32 attribute, optional. It is a per frequency range attribute.
- * The maximum TX power limit from user space is to be applied on an
- * unrestricted interface for corresponding frequency range. It is also
- * possible that the actual TX power may be even lower than this cap due to
- * other considerations such as regulatory compliance, SAR, etc. In absence of
- * this attribute the driver shall follow current behavior which means
- * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
- * power derived by the driver based on regulatory/SAR during interface up.
- *
- * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
- * u32 attribute, optional. Indicates all the interface types which are
- * restricted for all frequency ranges provided in
- * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
- * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
- * This attribute encapsulates bitmasks of interface types defined in
- * enum nl80211_iftype. If an interface is marked as restricted the driver must
- * move to a safe channel and if no safe channel is available the driver shall
- * terminate that interface functionality. In absence of this attribute,
- * interface (SAP/P2P) can still continue operating on an unsafe channel with
- * TX power limit derived from either
- * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
- * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
- * is not provided.
- */
- enum qca_wlan_vendor_attr_avoid_frequency_ext {
- QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
- QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
- QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
- QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
- QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
- QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
- QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
- };
- /*
- * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
- */
- enum qca_wlan_vendor_attr_add_sta_node_params {
- QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
- /* 6 byte MAC address of STA */
- QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
- /* Authentication algorithm used by the station of size u16;
- * defined in enum nl80211_auth_type.
- */
- QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
- /*
- * This flag attribute is set if the node being added is an
- * MLD STA node.
- */
- QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
- QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
- };
- /**
- * enum qca_btc_chain_mode - Specifies BT coex chain mode.
- * This enum defines the valid set of values of BT coex chain mode.
- * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
- * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
- *
- * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
- * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
- * separated, hybrid mode.
- * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
- * separated, fixed FDD mode.
- */
- enum qca_btc_chain_mode {
- QCA_BTC_CHAIN_SHARED = 0,
- QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
- QCA_BTC_CHAIN_SEPARATED_FDD = 2,
- };
- /* deprecated legacy name */
- #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
- /**
- * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
- * chain mode.
- * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
- *
- * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
- * Indicates the BT coex chain mode, are 32-bit values from
- * enum qca_btc_chain_mode. This attribute is mandatory.
- *
- * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
- * If set, vdev should be restarted when BT coex chain mode is updated.
- * This attribute is optional.
- */
- enum qca_vendor_attr_btc_chain_mode {
- QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
- QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
- QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
- /* Keep last */
- QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
- QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
- QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
- };
- /**
- * enum qca_vendor_wlan_sta_flags - Station feature flags
- * Bits will be set to 1 if the corresponding features are enabled.
- * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
- * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
- for the station
- * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
- for the station
- */
- enum qca_vendor_wlan_sta_flags {
- QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
- QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
- QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
- };
- /**
- * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
- * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
- * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
- * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
- * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
- */
- enum qca_vendor_wlan_sta_guard_interval {
- QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
- QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
- QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
- QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
- };
- /**
- * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
- * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
- * Required attribute in request for AP mode only, 6-byte MAC address,
- * corresponding to the station's MAC address for which information is
- * requested. For STA mode this is not required as the info always correspond
- * to the self STA and the current/last association.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
- * Optionally used in response, u32 attribute, contains a bitmap of different
- * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
- * Optionally used in response, u32 attribute, possible values are defined in
- * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
- * Guard interval used by the station.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
- * Optionally used in response, u32 attribute, used in AP mode only.
- * Value indicates the number of data frames received from station with retry
- * bit set to 1 in FC.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
- * Optionally used in response, u32 attribute, used in AP mode only.
- * Counter for number of data frames with broadcast or multicast address in
- * the destination address received from the station.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
- * Optionally used in response, u32 attribute, used in both STA and AP modes.
- * Value indicates the number of data frames successfully transmitted only
- * after retrying the packets and for which the TX status has been updated
- * back to host from target.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
- * Optionally used in response, u32 attribute, used in both STA and AP mode.
- * Value indicates the number of data frames not transmitted successfully even
- * after retrying the packets for the number of times equal to the total number
- * of retries allowed for that packet and for which the TX status has been
- * updated back to host from target.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
- * Optionally used in response, u32 attribute, used in AP mode only.
- * Counter in the target for the number of data frames successfully transmitted
- * to the station.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
- * Optionally used in response, u32 attribute, used in AP mode only.
- * Value indicates the number of data frames successfully transmitted only
- * after retrying the packets.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
- * Optionally used in response, u32 attribute, used in both STA & AP mode.
- * Value indicates the number of data frames not transmitted successfully even
- * after retrying the packets for the number of times equal to the total number
- * of retries allowed for that packet.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
- * the STA mode only. Represent the number of probe requests sent by the STA
- * while attempting to roam on missing certain number of beacons from the
- * connected AP. If queried in the disconnected state, this represents the
- * count for the last connected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
- * the STA mode. Represent the number of probe responses received by the station
- * while attempting to roam on missing certain number of beacons from the
- * connected AP. When queried in the disconnected state, this represents the
- * count when in last connected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
- * STA mode only. Represents the total number of frames sent out by STA
- * including Data, ACK, RTS, CTS, Control Management. This data is maintained
- * only for the connect session. Represents the count of last connected session,
- * when queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
- * Total number of RTS sent out by the STA. This data is maintained per connect
- * session. Represents the count of last connected session, when queried in the
- * disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
- * STA mode.Represent the number of RTS transmission failure that reach retry
- * limit. This data is maintained per connect session. Represents the count of
- * last connected session, when queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
- * the STA mode. Represent the total number of non aggregated frames transmitted
- * by the STA. This data is maintained per connect session. Represents the count
- * of last connected session, when queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
- * STA mode. Represent the total number of aggregated frames transmitted by the
- * STA. This data is maintained per connect session. Represents the count of
- * last connected session, when queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
- * the STA mode. Represents the number of received frames with a good PLCP. This
- * data is maintained per connect session. Represents the count of last
- * connected session, when queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
- * used in the STA mode. Represents the number of occasions that no valid
- * delimiter is detected by A-MPDU parser. This data is maintained per connect
- * session. Represents the count of last connected session, when queried in the
- * disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
- * STA mode. Represents the number of frames for which CRC check failed in the
- * MAC. This data is maintained per connect session. Represents the count of
- * last connected session, when queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
- * STA mode. Represents the number of unicast ACKs received with good FCS. This
- * data is maintained per connect session. Represents the count of last
- * connected session, when queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
- * mode. Represents the number of received Block Acks. This data is maintained
- * per connect session. Represents the count of last connected session, when
- * queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
- * mode. Represents the number of beacons received from the connected BSS. This
- * data is maintained per connect session. Represents the count of last
- * connected session, when queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
- * STA mode. Represents the number of beacons received by the other BSS when in
- * connected state (through the probes done by the STA). This data is maintained
- * per connect session. Represents the count of last connected session, when
- * queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
- * the STA mode. Represents the number of received DATA frames with good FCS and
- * matching Receiver Address when in connected state. This data is maintained
- * per connect session. Represents the count of last connected session, when
- * queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
- * STA mode. Represents the number of RX Data multicast frames dropped by the HW
- * when in the connected state. This data is maintained per connect session.
- * Represents the count of last connected session, when queried in the
- * disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
- * STA mode. This represents the target power in dBm for the transmissions done
- * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
- * connect session. Represents the count of last connected session, when
- * queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
- * STA mode. This represents the Target power in dBm for transmissions done to
- * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
- * session. Represents the count of last connected session, when queried in the
- * disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
- * STA mode. This represents the Target power in dBm for transmissions done to
- * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
- * Represents the count of last connected session, when queried in the
- * disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
- * STA mode. This represents the Target power in dBm for transmissions done to
- * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
- * session. Represents the count of last connected session, when queried in
- * the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
- * STA mode. This represents the Target power in dBm for for transmissions done
- * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
- * Represents the count of last connected session, when queried in the
- * disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
- * in the STA mode. This represents the Nested attribute representing the
- * overflow counts of each receive buffer allocated to the hardware during the
- * STA's connection. The number of hw buffers might vary for each WLAN
- * solution and hence this attribute represents the nested array of all such
- * HW buffer count. This data is maintained per connect session. Represents
- * the count of last connected session, when queried in the disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
- * allowed as per the regulatory requirements for the current or last connected
- * session. Used in the STA mode.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
- * (dBm) used by the station in its latest unicast frame while communicating
- * to the AP in the connected state. When queried in the disconnected state,
- * this represents the TX power used by the STA with last AP communication
- * when in connected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
- * level used to adjust the RX sensitivity. Represents the current ANI level
- * when queried in the connected state. When queried in the disconnected
- * state, this corresponds to the latest ANI level at the instance of
- * disconnection.
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
- * only. This represents the number of group addressed robust management frames
- * received from this station with an invalid MIC or a missing MME when PMF is
- * enabled.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
- * only. This represents the number of group addressed robust management frames
- * received from this station with the packet number less than or equal to the
- * last received packet number when PMF is enabled.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
- * mode only. This represents the number of Beacon frames received from this
- * station with an invalid MIC or a missing MME when beacon protection is
- * enabled.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
- * only. This represents number of Beacon frames received from this station with
- * the packet number less than or equal to the last received packet number when
- * beacon protection is enabled.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
- * STA mode only. Driver uses this attribute to populate the connection failure
- * reason codes and the values are defined in
- * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
- * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
- * connection failure from driver. The driver shall not include this attribute
- * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
- * connection failure observed in the last attempted connection.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
- * used by the station in its last TX frame while communicating to the AP in the
- * connected state. When queried in the disconnected state, this represents the
- * rate used by the STA in the last TX frame to the AP when it was connected.
- * This attribute is used for STA mode only.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
- * This represents the rate index used by the STA for the last TX frame to the
- * AP. When queried in the disconnected state, this gives the last RIX used by
- * the STA in the last TX frame to the AP when it was connected.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
- * mode only. This represents the number of times the STA TSF goes out of sync
- * from the AP after the connection. If queried in the disconnected state, this
- * gives the count of TSF out of sync for the last connection.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
- * mode only. This represents the roam trigger reason for the last roaming
- * attempted by the firmware. This can be queried either in connected state or
- * disconnected state. Each bit of this attribute represents the different
- * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
- * only. This represents the roam fail reason for the last failed roaming
- * attempt by the firmware. Different roam failure reason codes are specified
- * in enum qca_vendor_roam_fail_reasons. This can be queried either in
- * connected state or disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
- * STA mode only. This represents the roam invoke fail reason for the last
- * failed roam invoke. Different roam invoke failure reason codes
- * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
- * queried either in connected state or disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
- * This represents the average congestion duration of uplink frames in MAC
- * queue in unit of ms. This can be queried either in connected state or
- * disconnected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
- * attribute, used in AP mode. This represents the MPDU packet count per MCS
- * rate value of TX packets. Every index of this nested attribute corresponds
- * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
- * queried in connected state.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
- * attribute, used in AP mode. This represents the MPDU packet count per MCS
- * rate value of RX packets. Every index of this nested attribute corresponds
- * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
- * queried in connected state.
- */
- enum qca_wlan_vendor_attr_get_sta_info {
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
- * Used when the driver triggers the STA to disconnect from the AP.
- *
- * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
- * disconnection with the AP due to unspecified reasons.
- *
- * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
- * disconnection with the AP due to a roaming failure. This roaming is triggered
- * internally (host driver/firmware).
- *
- * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
- * the AP when the user/external triggered roaming fails.
- *
- * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
- * by the host driver whenever gateway reachability failure is detected and the
- * driver disconnects with AP.
- *
- * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
- * the AP on a channel switch announcement from it with an unsupported channel.
- *
- * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
- * with indoor channels disabled and if the STA is connected on one of these
- * disabled channels, the host driver disconnected the STA with this reason
- * code.
- *
- * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
- * explicit request from the user to disable the current operating channel.
- *
- * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
- * the internal host driver/firmware recovery.
- *
- * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
- * a timeout for the key installations from the user space.
- *
- * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
- * STA on a band change request from the user space to a different band from the
- * current operation channel/band.
- *
- * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
- * interface down trigger from the user space.
- *
- * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
- * STA on getting continuous transmission failures for multiple Data frames.
- *
- * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
- * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
- * represents inactivity from AP on such transmissions.
- * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
- * disconnection when SA Query times out (AP does not respond to SA Query).
- *
- * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
- * STA on missing the beacons continuously from the AP.
- *
- * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
- * able to move to the channel mentioned by the AP in CSA.
- *
- * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
- */
- enum qca_disconnect_reason_codes {
- QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
- QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
- QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
- QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
- QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
- QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
- QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
- QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
- QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
- QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
- QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
- QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
- QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
- QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
- QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
- QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
- QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
- };
- /**
- * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
- * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
- * This attribute represents the driver specific reason codes (local
- * driver/firmware initiated reasons for disconnection) defined
- * in enum qca_disconnect_reason_codes.
- */
- enum qca_wlan_vendor_attr_driver_disconnect_reason {
- QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
- QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
- *
- * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
- */
- enum qca_wlan_tspec_operation {
- QCA_WLAN_TSPEC_ADD = 0,
- QCA_WLAN_TSPEC_DEL = 1,
- QCA_WLAN_TSPEC_GET = 2,
- };
- /**
- * enum qca_wlan_tspec_direction - Direction in TSPEC
- * As what is defined in IEEE Std 802.11-2016, Table 9-139.
- *
- * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
- */
- enum qca_wlan_tspec_direction {
- QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
- QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
- QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
- QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
- };
- /**
- * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
- * As what is defined in IEEE Std 802.11-2016, Table 9-141.
- *
- * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
- */
- enum qca_wlan_tspec_ack_policy {
- QCA_WLAN_TSPEC_NORMAL_ACK = 0,
- QCA_WLAN_TSPEC_NO_ACK = 1,
- /* Reserved */
- QCA_WLAN_TSPEC_BLOCK_ACK = 3,
- };
- /**
- * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
- * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
- * u8 attribute. Specify the TSPEC operation of this request. Possible values
- * are defined in enum qca_wlan_tspec_operation.
- * Mandatory attribute for all kinds of config TSPEC requests.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
- * u8 attribute. TS ID. Possible values are 0-7.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
- * QCA_WLAN_TSPEC_GET. A mandatory attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
- * u8 attribute. Direction of data carried by the TS. Possible values are
- * defined in enum qca_wlan_tspec_direction.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
- * Flag attribute. Indicate whether APSD is enabled for the traffic associated
- * with the TS. set - enabled, not set - disabled.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
- * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
- * belonging to this TS. Possible values are 0-7.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
- * u8 attribute. Indicate whether MAC acknowledgements are required for
- * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
- * Possible values are defined in enum qca_wlan_tspec_ack_policy.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
- * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
- * belonging to this TS.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
- * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
- * belonging to this TS.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
- * u32 attribute. Specify the minimum interval in microseconds between the
- * start of two successive SPs.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
- * u32 attribute. Specify the maximum interval in microseconds between the
- * start of two successive SPs.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
- * u32 attribute. Specify the minimum interval in microseconds that can elapse
- * without arrival or transfer of an MPDU belonging to the TS before this TS
- * is deleted by the MAC entity at the HC.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
- * u32 attribute. Specify the minimum interval in microseconds that can elapse
- * without arrival or transfer of an MSDU belonging to the TS before the
- * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
- * 0xFFFFFFFF disables the suspension interval. The value of the suspension
- * interval is always less than or equal to the inactivity interval.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
- * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
- * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
- * bounds of this TSPEC.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
- * u32 attribute. Indicate the average data rate in bps specified at the MAC
- * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
- * bounds of this TSPEC.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
- * u32 attribute. Indicate the maximum allowable data rate in bps specified at
- * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
- * the bounds of this TSPEC.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
- * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
- * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
- * value of 0 indicates that there are no bursts.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
- * u32 attribute. Indicate the minimum PHY rate in bps for transport of
- * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
- * u16 attribute. Specify the excess allocation of time (and bandwidth) over
- * and above the stated application rates required to transport an MSDU/A-MSDU
- * belonging to the TS in this TSPEC.
- * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
- */
- enum qca_wlan_vendor_attr_config_tspec {
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
- QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_medium_assess_type - Type of medium assess request
- *
- * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
- */
- enum qca_wlan_medium_assess_type {
- QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
- QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
- };
- /**
- * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
- * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
- * Specify the type of medium assess request and indicate its type in response.
- * Possible values are defined in enum qca_wlan_medium_assess_type.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
- * u32 attribute. Mandatory in CCA request.
- * Specify the assessment period in terms of seconds. Assessment result will be
- * sent as the response to the CCA request after the assessment period.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
- * u32 attribute. Mandatory in response to CCA request.
- * Total timer tick count of the assessment cycle.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
- * u32 attribute. Mandatory in response to CCA request.
- * Timer tick count of idle time in the assessment cycle.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
- * u32 attribute. Mandatory in response to CCA request.
- * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
- * u32 attribute. Mandatory in response to CCA request.
- * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
- * s32 attribute. Mandatory in response to CCA request.
- * Maximum RSSI of Intra BSS traffic in the assessment cycle.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
- * s32 attribute. Mandatory in response to CCA request.
- * Minimum RSSI of Intra BSS traffic in the assessment cycle.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
- * u8 attribute. Mandatory in congestion report request.
- * 1-enable 0-disable.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
- * u8 attribute. Mandatory in congestion report enable request and will be
- * ignored if present in congestion report disable request. Possible values are
- * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
- * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
- * congestion percentage reaches the configured threshold.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
- * u8 attribute. Optional in congestion report enable request and will be
- * ignored if present in congestion report disable request.
- * Specify the interval of congestion report event in terms of seconds. Possible
- * values are 1-255. Default value 1 will be used if this attribute is omitted
- * or using invalid values.
- *
- * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
- * u8 attribute. Mandatory in congestion report event.
- * Indicate the actual congestion percentage. Possible values are 0-100.
- */
- enum qca_wlan_vendor_attr_medium_assess {
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
- QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
- * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
- * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
- * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
- * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
- *
- * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
- * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
- *
- * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
- * u8 attribute, required. indicates group id of Tx VDEV
- *
- * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
- * Nested attribute. This attribute shall be used by the driver to send
- * group information. The attributes defined in enum
- * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
- * are nested in this attribute.
- */
- enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
- * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
- * u32 attribute, required. contains interface index.
- *
- * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
- * u8 attribute, required. 0 - means vdev is in down state.
- * 1- means vdev is in up state.
- */
- enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
- };
- /**
- * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
- * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
- * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
- * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
- * frame
- * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
- * Request frame.
- */
- enum qca_wlan_vendor_oci_override_frame_type {
- QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
- QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
- QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
- QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
- };
- /**
- * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
- *
- * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
- * STA interface has to be given while selecting the connection policies
- * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
- * An interface is set as primary through the attribute
- * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
- * applicable if the primary interface has not been set earlier.
- *
- * The intention is not to downgrade the primary STA performance, such as:
- * - Do not reduce the number of TX/RX chains of primary connection.
- * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
- * chains.
- * - If using MCC, should set the MCC duty cycle of the primary connection to
- * be higher than the secondary connection.
- *
- * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
- * subsequent STA connection shall be chosen to balance with the existing
- * concurrent STA's performance.
- * Such as
- * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
- * capability.
- * - If using MCC, set the MCC duty cycle of the primary connection to be equal
- * to the secondary.
- * - Prefer BSSID candidates which will help provide the best "overall"
- * performance for all the STA connections.
- */
- enum qca_wlan_concurrent_sta_policy_config {
- QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
- QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
- };
- /**
- * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
- *
- * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
- * interface.
- *
- * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
- * to meet gaming audio latency requirements.
- *
- * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
- * concurrencies to meet lossless audio streaming requirements.
- *
- * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
- * XR (eXtended Reality) requirements.
- */
- enum qca_wlan_concurrent_ap_policy_config {
- QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
- QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
- QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
- QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
- };
- /**
- * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
- * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
- * u8 attribute. Configures the concurrent STA policy configuration.
- * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
- * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
- * u8 attribute. Configures the concurrent AP policy configuration.
- * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
- */
- enum qca_wlan_vendor_attr_concurrent_policy {
- QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
- QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
- QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
- };
- /* Compatibility defines for previously used enum
- * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
- * in any new implementation.
- */
- #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
- QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
- #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
- QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
- #define qca_wlan_vendor_attr_concurrent_sta_policy \
- qca_wlan_vendor_attr_concurrent_policy
- /**
- * enum qca_sta_connect_fail_reason_codes - Defines values carried
- * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
- * attribute.
- * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
- * for unicast probe request.
- * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
- * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
- * ath request.
- * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
- * received from AP.
- * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
- * request.
- * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
- * assoc request.
- * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
- * received from AP.
- */
- enum qca_sta_connect_fail_reason_codes {
- QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
- QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
- QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
- QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
- QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
- QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
- QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
- };
- /**
- * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
- * OCI override request. These attributes are used inside nested attribute
- * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
- * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
- *
- * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
- * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
- * attribute to specify the frame type in which the OCI is to be overridden.
- *
- * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
- * OCI frequency (in MHz) to override in the specified frame type.
- */
- enum qca_wlan_vendor_attr_oci_override {
- QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
- QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
- QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
- * filters defined in this enum are used in attribute
- * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
- *
- * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
- * shall filter the channels which are not usable because of coexistence with
- * cellular radio.
- * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
- * shall filter the channels which are not usable because of existing active
- * interfaces in the driver and will result in Multi Channel Concurrency, etc.
- *
- */
- enum qca_wlan_vendor_usable_channels_filter {
- QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
- QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
- };
- /**
- * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
- * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
- * u32 attribute, required. Indicates the center frequency of the primary
- * channel in MHz.
- *
- * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
- * u32 attribute. Indicates the center frequency of the primary segment of the
- * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
- * 160 MHz, and 320 MHz channels.
- *
- * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
- * u32 attribute. Indicates the center frequency of the secondary segment of
- * 80+80 channel in MHz. This attribute is required only when
- * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
- *
- * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
- * u32 attribute, required. Indicates the bandwidth of the channel, possible
- * values are defined in enum nl80211_chan_width.
- *
- * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
- * u32 attribute, required. Indicates all the interface types for which this
- * channel is usable. This attribute encapsulates bitmasks of interface types
- * defined in enum nl80211_iftype.
- *
- */
- enum qca_wlan_vendor_attr_chan_info {
- QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
- QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
- QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
- QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
- QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
- * u32 attribute. Indicates the bands from which the channels should be reported
- * in response. This attribute encapsulates bit masks of bands defined in enum
- * nl80211_band. Optional attribute, if not present in the request the driver
- * shall return channels from all supported bands.
- *
- * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
- * u32 attribute. Indicates all the interface types for which the usable
- * channels information is requested. This attribute encapsulates bitmasks of
- * interface types defined in enum nl80211_iftype. Optional attribute, if not
- * present in the request the driver shall send information of all supported
- * interface modes.
- *
- * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
- * u32 attribute. This attribute carries information of all filters that shall
- * be applied while populating usable channels information by the driver. This
- * attribute carries bit masks of different filters defined in enum
- * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
- * in the request the driver shall send information of channels without applying
- * any of the filters that can be configured through this attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
- * Nested attribute. This attribute shall be used by the driver to send
- * usability information of each channel. The attributes defined in enum
- * qca_wlan_vendor_attr_chan_info are used inside this attribute.
- */
- enum qca_wlan_vendor_attr_usable_channels {
- QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
- QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
- QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
- QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
- QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
- *
- * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
- * the list of radar history entries.
- * Each entry contains freq, timestamp, and radar signal detect flag.
- * The driver shall add an entry when CAC has finished, or radar signal
- * has been detected post AP beaconing. The driver shall maintain at least
- * 8 entries in order to save CAC result for a 160 MHz channel.
- * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
- * Channel frequency in MHz.
- * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
- * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
- * or radar detection.
- * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
- * This flag indicates radar signal has been detected.
- */
- enum qca_wlan_vendor_attr_radar_history {
- QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
- QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
- QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
- QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
- QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
- QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
- *
- * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
- * target exited MCC state and cleared the quota information. In the
- * command it clears MCC quota setting and restores adaptive scheduling.
- * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
- * will not be changed.
- * This quota type is present in command/event.
- * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
- * and the target may change the quota based on the data activity.
- * This quota type is only present in event.
- * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
- * by the target for low latency.
- * This quota type is only present in command.
- */
- enum qca_wlan_vendor_mcc_quota_type {
- QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
- QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
- QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
- QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
- };
- /**
- * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
- * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
- * quota information or as a command to set the required MCC quota for an
- * interface.
- *
- * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
- * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
- * In a command this specifies the MCC quota type to be set for the interface.
- * In an event this provides the current quota type in force.
- * This is required in a command and an event.
- *
- * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
- * the list of channel quota entries.
- * In an event each entry contains the frequency and respective time quota for
- * all the MCC interfaces.
- * In a command it specifies the interface index and respective time quota.
- * In a command only one entry (ifindex, quota pair) may be specified.
- *
- * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
- * Channel frequency in MHz. This is present only in an event.
- *
- * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
- * Channel time quota expressed as percentage.
- * This is present in an event and a command.
- * In an command, the user shall specify the quota to be allocated for the
- * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
- * In an event this provides the existing quota for the channel.
- *
- * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
- * Specifies the interface index (netdev) for which the corresponding
- * configurations are applied. This is required in a command only. Only one
- * interface index may be specified. If not specified, the configuration is
- * rejected.
- *
- * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
- * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
- * low latency mode. The firmware will do optimization for low
- * latency in Multi-Channel concurrency state if enabled. And all existing
- * user quota setting will be overwritten by the target.
- * 0 - disable(default), 1 - enable.
- * It is only present in a command with quota type of
- * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
- */
- enum qca_wlan_vendor_attr_mcc_quota {
- QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
- QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
- QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
- QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
- QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
- QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
- QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
- QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
- };
- /**
- * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
- * are used by the attribute
- * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
- *
- * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
- * invoke roam.
- * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
- * detection failed when the roam trigger.
- * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
- */
- enum qca_wlan_roam_stats_invoke_reason {
- QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
- QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
- QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
- };
- /**
- * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
- * values are used by the attribute
- * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
- *
- * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
- * roam by kickout.
- * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
- * trigger by kickout.
- * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
- * roam trigger by kickout.
- * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
- * roam trigger by kickout.
- * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
- * disappeared, and all TX is failing when roam trigger by kickout.
- * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
- * timeout when roam trigger by kickout.
- * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
- * peer has roamed to a repeater.
- */
- enum qca_wlan_roam_stats_tx_failures_reason {
- QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
- QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
- QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
- QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
- QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
- QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
- QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
- };
- /**
- * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
- * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
- *
- * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
- * detailed reason for roam scan being aborted.
- * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
- * started due to high data RSSI during LOW-RSSI roaming.
- * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
- * started due to good link speed during LOW-RSSI roaming.
- * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
- * due to high data RSSI during background roaming.
- * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
- * started due to high beacon RSSI during background roaming
- */
- enum qca_wlan_roam_stats_abort_reason {
- QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
- QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
- QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
- QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
- QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
- };
- /**
- * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
- * These values are used by the attribute
- * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
- *
- * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
- * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
- * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
- * This is generally used in BTM events to indicate BTM frame exchange logs.
- * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
- * from 2.4 GHz to 5 GHz or 6 GHz
- * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
- * 5 GHz to 6 GHz
- */
- enum qca_wlan_roam_stats_scan_type {
- QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
- QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
- QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
- QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
- QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
- };
- /**
- * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
- * These values are used by the attribute
- * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
- *
- * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
- * detailed roam scan type.
- * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
- * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
- */
- enum qca_wlan_roam_stats_scan_dwell_type {
- QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
- QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
- QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
- };
- /**
- * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
- * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
- */
- enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
- /* 32-bit unsigned value to indicate center frequency of the primary
- * channel in MHz for each roam scan channel.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
- /* 8-bit unsigned value to indicate channel scan type for each
- * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
- /* 32-bit unsigned value to indicate maximum scan time in milliseconds
- * for each roam scan channel.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
- * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
- *
- * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame
- * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame
- * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
- * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
- * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
- * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
- * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
- * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
- * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame
- * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame
- */
- enum qca_wlan_roam_stats_frame_subtype {
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1,
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2,
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9,
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10,
- };
- /* Compatibility defines for previously used names.
- * These values should not be used in any new implementation.
- */
- #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP
- #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \
- QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP
- /**
- * enum roam_frame_status - Specifies the valid values the vendor roam frame
- * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
- *
- * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
- * sent or received successfully.
- * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
- * receiving failed.
- */
- enum qca_wlan_roam_stats_frame_status {
- QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
- QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
- };
- /**
- * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
- * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
- */
- enum qca_wlan_vendor_attr_roam_stats_frame_info {
- /* 8-bit unsigned value to indicate the frame subtype during
- * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
- /* 8-bit unsigned value to indicate the frame is successful or failed
- * during roaming, one of the values in
- * qca_wlan_roam_stats_frame_status.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
- /* 64-bit unsigned value to indicate the timestamp for frame of
- * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
- * when sent or received during roaming, timestamp in milliseconds
- * from system boot.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
- /* This attribute indicates a 6-byte MAC address representing
- * the BSSID of the AP.
- * For non-MLO scenario, it indicates the AP BSSID.
- * For MLO scenario, it indicates the AP BSSID which may be the primary
- * link BSSID or a nonprimary link BSSID.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
- * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
- */
- enum qca_wlan_vendor_attr_roam_stats_info {
- /* 64-bit unsigned value to indicate the timestamp when roam was
- * triggered by the firmware, timestamp in milliseconds from system
- * boot.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
- /* 32-bit unsigned value to indicate the roam trigger reason for the
- * last roaming attempted by the firmware. This can be queried either
- * in a connected state or disconnected state. The values of this
- * attribute represent the roam trigger reason codes, which
- * are defined in enum qca_roam_reason.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
- /* 8-bit unsigned value to indicate percentage of packets for which
- * the RX rate is lower than the RX rate threshold in total RX packets,
- * used for roaming trigger by per.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
- /* 8-bit unsigned value to indicate percentage of packets for which
- * the TX rate is lower than TX rate threshold in total TX packets,
- * used for roaming trigger by per.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
- /* 32-bit unsigned value to indicate final beacon miss count for
- * trigger reason of beacon miss.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
- /* 32-bit unsigned value to indicate consecutive beacon miss count
- * for trigger reason of beacon miss.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
- /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
- * reason of beacon miss, 0 - success, 1 - fail.
- * If QOS-NULL TX status is successful, beacon miss final count and
- * consecutive beacon miss count will be reset to zero, and roam will
- * not be triggered. If QOS-NULL TX status is failed, beacon miss final
- * count and consecutive beacon miss count continue to calculate until
- * roaming trigger by beacon miss.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
- /* 8-bit signed value to indicate connected AP RSSI in dBm
- * for trigger reason of poor RSSI.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
- /* 8-bit signed value to indicate RSSI threshold value in dBm
- * for trigger reason of poor RSSI.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
- /* 8-bit unsigned value to indicate RX link speed status
- * for trigger reason of poor RSSI, 0 - good link speed,
- * 1 - bad link speed.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
- /* 8-bit signed value to indicate connected AP RSSI in dBm
- * for trigger reason of better RSSI.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
- /* 8-bit signed value to indicate RSSI threshold value in dBm
- * for trigger reason of better RSSI.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
- /* 32-bit unsigned value to indicate RX throughput in bytes per second
- * for trigger reason of congestion.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
- /* 32-bit unsigned value to indicate TX throughput in bytes per second
- * for trigger reason of congestion.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
- /* 8-bit unsigned value to indicate roamable AP count
- * for trigger reason of congestion.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
- /* 8-bit unsigned value to indicate invoke reason, one of the values
- * defined in qca_wlan_roam_stats_invoke_reason.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
- /* 8-bit unsigned value to indicate request mode for trigger reason
- * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
- /* 32-bit unsigned value to indicate disassociate time in milliseconds
- * for trigger reason of BTM.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
- /* 32-bit unsigned value to indicate preferred candidate list valid
- * interval in milliseconds for trigger reason of BTM.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
- /* 8-bit unsigned value to indicate the number of preferred
- * candidates for trigger reason of BTM.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
- /* 8-bit unsigned value to indicate response status for trigger
- * reason of BTM, values are defined in IEEE Std 802.11-2020,
- * Table 9-428 (BTM status code definitions).
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
- /* 32-bit unsigned value to indicate BSS termination timeout value
- * in milliseconds for trigger reason of BTM.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
- /* 32-bit unsigned value to indicate MBO associate retry timeout
- * value in milliseconds for trigger reason of BTM.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
- /* 8-bit unsigned value to indicate dialog token number
- * for trigger reason of BTM.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
- /* 8-bit unsigned value to indicate percentage of connected AP
- * channel congestion utilization for trigger reason of BSS load.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
- /* 8-bit unsigned value to indicate disconnection type
- * for trigger reason of disconnection. 1 - Deauthentication,
- * 2 - Disassociation.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
- /* 16-bit unsigned value to indicate deauthentication or disassociation
- * reason for trigger reason of disconnection, values are defined
- * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
- /* 32-bit unsigned value to indicate milliseconds of roam scan
- * periodicity when needing to roam to find a better AP for trigger
- * reason of periodic timer.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
- /* 8-bit signed value to indicate connected AP RSSI in dBm for
- * trigger reason of background scan.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
- /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
- * of background scan.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
- /* 8-bit signed value to indicate data RSSI threshold in dBm
- * for trigger reason of background scan.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
- /* 32-bit unsigned value to indicate consecutive TX failure threshold
- * for trigger reason of TX failures.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
- /* 8-bit unsigned value to indicate TX failure reason for trigger
- * reason of TX failures, one of the values defined in
- * qca_wlan_roam_stats_tx_failures_reason.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
- /* 8-bit unsigned value to indicate detail abort reason. One of the
- * values in enum qca_wlan_roam_stats_abort_reason.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
- /* 8-bit signed value to indicate data RSSI in dBm when aborting the
- * roam scan.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
- /* 8-bit signed value to indicate data RSSI threshold in dBm when
- * aborting the roam scan.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
- /* 8-bit unsigned value to indicate data RSSI threshold in RX link
- * speed status when aborting the roam scan.
- * 0 - good link speed, 1 - bad link speed
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
- /* 8-bit unsigned value to indicate roaming scan type.
- * One of the values in enum qca_wlan_roam_stats_scan_type.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
- /* 8-bit unsigned value to indicate roaming result, used in STA mode
- * only.
- * 0-Roaming is successful, 1-Roaming is failed
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
- /* 8-bit unsigned value to indicate the roam fail reason for the
- * last failed roaming attempt by the firmware. Different roam failure
- * reason codes are specified in enum qca_vendor_roam_fail_reasons.
- * This can be queried either in connected state or disconnected state.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
- /* Nested attribute. Indicate roam scan info for each channel, the
- * attributes defined in enum
- * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
- * this attribute.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
- /* 32-bit unsigned value to indicate total scan time during roam scan
- * all channels, time in milliseconds.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
- /* Nested attribute. This attribute shall be used by the driver to
- * send roam information of each subtype. The attributes defined in
- * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
- * this attribute.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
- /* 6-byte MAC address used by the driver to send roam stats information
- * of the original AP BSSID. The original AP is the connected AP before
- * roam happens, regardless of the roam resulting in success or failure.
- * This attribute is only present when
- * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
- * 0 (success) or 1 (failure).
- * For non-MLO scenario, it indicates the original connected AP BSSID.
- * For MLO scenario, it indicates the original BSSID of the link
- * for which the reassociation occurred during the roam.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
- /* 6-byte MAC address used by the driver to send roam stats information
- * of the roam candidate AP BSSID when roam failed. This is only present
- * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
- * 1 (failure). If the firmware updates more than one candidate AP BSSID
- * to the driver, the driver only fills the last candidate AP BSSID and
- * reports it to user space.
- * For non-MLO scenario, it indicates the last candidate AP BSSID.
- * For MLO scenario, it indicates the AP BSSID which may be the primary
- * link BSSID or a nonprimary link BSSID.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
- /* 6-byte MAC address used by the driver to send roam stats information
- * of the roamed AP BSSID when roam succeeds. This is only present when
- * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
- * 0 (success).
- * For non-MLO scenario, it indicates the new AP BSSID to which has
- * been successfully roamed.
- * For MLO scenario, it indicates the new AP BSSID of the link on
- * which the reassociation occurred during the roam.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
- * report cached roam info from the driver to user space, enum values are used
- * for netlink attributes sent with the
- * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
- */
- enum qca_wlan_vendor_attr_roam_cached_stats {
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
- /* Nested attribute, this attribute contains nested array roam info
- * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
- */
- QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
- QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
- * radio configurations present in each radio combination.
- *
- * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
- * the band info in the radio configuration. Uses the enum qca_set_band values.
- *
- * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
- * the number of antennas info in the radio configuration.
- */
- enum qca_wlan_vendor_attr_supported_radio_cfg {
- QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
- QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
- QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
- QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_radio_combination - Attributes for
- * radio combinations supported by the device.
- *
- * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
- * provides the radio configurations present in the radio combination.
- * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
- * This attribute provides the values for radio combination matrix.
- * For standalone config, the number of config values is one and the config
- * carries the band and antenna information for standalone configuration. For
- * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
- * configuration the number of config values is two and the config carries the
- * band and antenna information for each simultaneous radio.
- */
- enum qca_wlan_vendor_attr_radio_combination {
- QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
- QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
- QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
- *
- * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
- * provides the radio combinations supported by the device.
- * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
- * For example, in the radio combination matrix for a device which has two
- * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
- * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
- * combinations is 5 and the radio combinations are
- * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
- * {{5 GHz 2X2}}, //Standalone 5 GHz
- * {{6 GHz 2X2}}, //Standalone 6 GHz
- * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
- * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
- * The band and antenna info together as nested data provides one radio config.
- * Standalone configuration has one config with band and antenna nested data.
- * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
- * have two nested band and antenna info data.
- */
- enum qca_wlan_vendor_attr_radio_combination_matrix {
- QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
- QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
- QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
- * Enable mDNS offload. This attribute is mandatory to enable
- * mDNS offload feature. If this attribute is not present, mDNS offload
- * is disabled.
- *
- * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
- * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
- * attribute is mandatory when enabling the feature, and not required when
- * disabling the feature.
- *
- * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
- * the following attributes:
- * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
- * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
- * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
- *
- * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
- * It consists of a hostname and ".local" as the domain name. The character
- * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
- * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
- * supported per vdev.
- * For example: myphone.local
- *
- * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
- * u16 attribute. It specifies the total number of resource records present
- * in the answer section of the answer payload. This attribute is needed by the
- * firmware to populate the mDNS response frame for mNDS queries without having
- * to parse the answer payload.
- *
- * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
- * attribute sent by the mdnsResponder from userspace. It contains resource
- * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
- * payload is passed down to firmware and is transmitted in response to
- * mDNS queries.
- * The maximum size of the answer payload supported is 512 bytes.
- */
- enum qca_wlan_vendor_attr_mdns_offload {
- QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
- QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
- QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
- QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
- QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
- QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
- QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
- };
- /**
- * enum qca_vendor_attr_diag_event_type - Attributes used by
- * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
- * driver/firmware during Connection request from Userspace. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
- * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
- * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
- * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
- * driver/firmware when a connection is failed. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
- * driver/firmware during Authentication request from a device. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
- * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
- * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
- * driver/firmware when device receives an authentication response. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
- * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
- * driver/firmware when device sends an association request. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
- * driver/firmware when device receives an association response. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
- * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
- * driver/userspace when device receives a deauthentication response. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
- * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
- * driver/userspace when device sends a deauthentication request. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
- * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
- * driver/firmware when device receives a disassociation response. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
- * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
- * driver/firmware when device sends a disassociation request. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
- * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
- * driver/firmware when device did not receive beacon packets during connection.
- * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
- * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
- * driver/firmware when Roaming scan is triggered. Uses the following
- * attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
- * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
- * driver/firmware Roam scanning is processed. Uses the following
- * attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
- * driver/firmware to provide Roam information of the current AP. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
- * driver/firmware to provide Roam information of the candid AP. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
- * driver/firmware to provide Roam result after selecting a candidate. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
- * driver/firmware to indicate Roam Cancellation due to higher priority events.
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
- * /firmware when STA sends a BTM request frame. Uses the following attributes
- * of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
- * driver/firmware when STA queries about BTM transition. Uses the following
- * attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
- * /firmware when STA receives BTM response frame. Uses the following
- * attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
- * driver/firmware to provide BTM request candidate information. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
- * /firmware when ROAM WTC trigger happens. Uses the following attributes of
- * enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
- * driver/firmware to indicate DHCP discovery to AP. Uses the following
- * attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
- * driver/firmware to indicate DHCP offering to AP. Uses the following
- * attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
- * driver/firmware to indicate driver sent DHCP packets. Uses the following
- * attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
- * /firmware to indicate acknowledgement of DHCP packets. Uses the following
- * attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
- * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
- * following attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
- * /firmware to indicate EAPOL M1 message. Uses the following attributes of
- * enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
- * /firmware to indicate EAPOL M2 message. Uses the following attributes of
- * enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
- * /firmware to indicate EAPOL M3 message. Uses the following attributes of
- * enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
- * /firmware to indicate EAPOL M4 message. Uses the following attributes of
- * enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
- * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
- * enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
- * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
- * enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
- * /firmware to indicate device sent EAP request. Uses the following attributes
- * of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
- * /firmware to indicate device received EAP response. Uses the following
- * attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
- * /firmware to indicate EAP frame transmission is success. Uses the following
- * attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
- * /firmware to indicate EAP frame transmission is failed. Uses the following
- * attributes of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
- * /firmware to indicate Reassocation request. Uses the following attributes
- * of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
- *
- * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
- * /firmware to indicate Reassocation response. Uses the following attributes
- * of enum qca_wlan_vendor_attr_diag:
- * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
- * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
- * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
- * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
- * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
- * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
- */
- enum qca_vendor_attr_diag_event_type {
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
- /* keep last */
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
- QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_tx_status - Used by attribute
- * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
- * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
- * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
- * is not received.
- * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
- * acknowledged.
- */
- enum qca_wlan_vendor_tx_status {
- QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
- QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
- QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
- };
- /**
- * enum qca_roam_sub_reason - Used by attribute
- * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
- * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
- * timer expiry
- * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
- * to no candidate found during LOW RSSI trigger.
- * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
- * Imminent timeout
- * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
- * failure
- * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
- * emergency like deauth/disassoc.
- * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
- * BSS transition management request.
- * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
- * Roam scan triggered due to Low RSSI periodic timer
- * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
- * Roam trigger due to periodic timer after no candidate found during CU
- * inactivity timer scan.
- * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
- * found in high CU roam trigger.
- */
- enum qca_roam_sub_reason {
- QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
- QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
- QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
- QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
- QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
- QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
- QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
- QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
- QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
- };
- /*
- * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
- * to send diag data to the userspace. The attributes defined in this enum are
- * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
- * by driver/firmware to send diag data. Each instance of this nested attribute
- * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
- * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
- * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
- * nested attribute can be sent with one vendor command
- * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
- * attribute indicates the type of the diag event from driver/firmware. Uses
- * values from enum qca_vendor_attr_diag_event_type.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
- * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
- * API to send time of the day in microseconds to userspace.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
- * This attribute indicates firmware timestamp in microseconds.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
- * indicates wlan interface index.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
- * indicates 6-byte MAC address representing the BSSID of the AP.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
- * indicates the 6-byte MAC address representing the BSSID hint sent in
- * the connect request.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
- * indicates the SSID in u8 array with a maximum length of 32.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
- * indicates the frequency of AP in MHz.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
- * indicates frequency hint given in the connect request in MHz.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
- * This attribute indicates RSSI of the 802.11 frame in dBm.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
- * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
- * Table 12-10—Integrity and key wrap algorithms.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
- * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
- * Table 12-10—Integrity and key wrap algorithms.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
- * attribute indicates Group management cipher suite defined in IEEE Std
- * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
- * indicates Auth key management suite defined in IEEE Std 802.11‐2020
- * Table 9-151—AKM suite selectors.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
- * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
- * Section 9.4.1.1 Authentication Algorithm Number field.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
- * indicates bluetooth COEX is active or not.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
- * attribute indicates SAE authentication frame type. The possible values are
- * 1 - SAE commit frame
- * 2 - SAE confirm frame
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
- * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
- * Table 9-49—Reason codes.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
- * attribute indicates sequence number of the frame defined in IEEE Std
- * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
- * field.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
- * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
- * 9-50—Status codes.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
- * Uses enum qca_wlan_vendor_tx_status.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
- * indicates if frame transmission is retried.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
- * Uses enum qca_roam_reason.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
- * Uses enum qca_roam_sub_reason.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
- * indicates channel utilization in percentage.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
- * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
- * This attribute indicates current RSSI threshold in dBm.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
- * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
- * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
- * This attribute indicates number of scanned candidate APs.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
- * attribute indicates roam AP rank computed based on connection preference.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
- * This attribute indicates expected throughput in kbps.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
- * This attribute indicates the preference value of candidate AP / connected AP
- * calculated in the firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
- * indicates connection/roaming is successful or not.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
- * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
- * IE present in the BTM frame.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
- * This attribute indicates BTM WTC duration in milliseconds.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
- * indicates dialog token value of BTM query/request/response frames.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
- * attribute indicates the Transition Reason field indicates the reason why
- * a transition attempt occurred and contains one of the values defined in IEEE
- * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
- * indicates BTM mode defined in IEEE Std 802.11‐2020
- * Figure 9-924—Request Mode field format.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
- * This attribute indicates the Disassociation Timer field which is the number
- * of beacon transmission times (TBTTs) until the serving AP will send a
- * Disassociation frame to this STA.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
- * This attribute indicates BTM validity interval field in TBTTs defined in
- * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
- * Action field format.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
- * This attribute indicates BTM candidate list entries.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
- * This attribute indicates network preference for BTM transition defined in
- * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
- * This attribute indicates BTM transition status code defined in IEEE Std
- * 802.11‐2020 Table 9-428—BTM status code definitions.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
- * This attribute indicates BSS termination delay defined in IEEE Std
- * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
- * This attribute indicates 6-byte MAC address representing the BSSID of the
- * BSS that the non-AP STA transitions to.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
- * indicates EAP frame type. The methods are enumerated by IANA at
- * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
- * indicates EAP frame length.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
- * attribute indicates the kernel timestamp. Driver uses ktime_get() API
- * (Time from boot but not the time spent in suspend) to send in microseconds
- * to userspace.
- *
- * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
- * indicates the association id received in the (re)association response frame
- * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
- */
- enum qca_wlan_vendor_attr_diag {
- QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
- QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
- QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
- QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
- QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
- QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
- QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
- QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
- QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
- QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
- QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
- QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
- QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
- QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
- QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
- QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
- QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
- QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
- QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
- QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
- QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
- QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
- QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
- QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
- QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
- QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
- QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
- QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
- QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
- QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
- QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
- QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
- QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
- QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
- QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
- QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
- QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
- QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
- QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
- QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
- };
- /**
- * qca_wlan_vendor_monitor_data_frame_type - Represent the various
- * data types to be sent over the monitor interface.
- */
- enum qca_wlan_vendor_monitor_data_frame_type {
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
- /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
- not set */
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
- QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
- };
- /**
- * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
- * mgmt types to be sent over the monitor interface.
- * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
- * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
- * except the Beacons. Valid only in the Connect state.
- * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
- * BSSID Beacons. Valid only in the Connect state.
- * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
- * the Beacons obtained during the scan (off channel and connected channel)
- * when in connected state.
- */
- enum qca_wlan_vendor_monitor_mgmt_frame_type {
- QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
- /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
- QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
- QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
- QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
- };
- /**
- * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
- * ctrl types to be sent over the monitor interface.
- * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
- * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
- */
- enum qca_wlan_vendor_monitor_ctrl_frame_type {
- QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
- /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
- QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
- };
- /**
- * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
- * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
- * monitor mode.
- *
- * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
- * Represents the tx data packet type to be monitored (u32). These data packets
- * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
- *
- * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
- * Represents the tx data packet type to be monitored (u32). These data packets
- * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
- *
- * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
- * Represents the tx data packet type to be monitored (u32). These mgmt packets
- * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
- *
- * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
- * Represents the tx data packet type to be monitored (u32). These mgmt packets
- * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
- *
- * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
- * Represents the tx data packet type to be monitored (u32). These ctrl packets
- * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
- *
- * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
- * Represents the tx data packet type to be monitored (u32). These ctrl packets
- * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
- *
- * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
- * u32 attribute, An interval only for the connected beacon interval, which
- * expects that the connected BSSID's beacons shall be sent on the monitor
- * interface only on this specific interval.
- */
- enum qca_wlan_vendor_attr_set_monitor_mode {
- QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
- QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
- QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
- QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
- QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
- QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
- QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
- QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
- * Bits will be set to 1 if the corresponding state is enabled.
- *
- * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
- * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
- */
- enum qca_wlan_vendor_roam_scan_state {
- QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
- QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
- };
- /**
- * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
- * Bits will be set to 1 if the corresponding event is notified.
- *
- * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
- * carries the trigger reason. When set, it is expected that the roam event
- * carries the respective reason via the attribute
- * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
- * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
- *
- * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
- * carries the roam fail reason. When set, it is expected that the roam event
- * carries the respective reason via the attribute
- * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
- * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
- *
- * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
- * event carries the roam invoke fail reason. When set, it is expected that
- * the roam event carries the respective reason via the attribute
- * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
- *
- * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
- * carries the roam scan state. When set, it is expected that the roam event
- * carries the respective scan state via the attribute
- * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
- * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
- */
- enum qca_wlan_vendor_roam_event_type {
- QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
- QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
- QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
- QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
- };
- /**
- * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
- * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
- * representing the BSSID of the AP to which the Roam is attempted.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
- * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
- * attempted.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
- * on which the roam is attempted.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
- * STA mode only. This represents the roam fail reason for the last failed
- * roaming attempt by the firmware for the specific BSSID. Different roam
- * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
- */
- enum qca_wlan_vendor_attr_roam_events_candidate_info {
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_roam_events - Used by the
- * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
- * roam events to the driver or notify these events from the driver.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
- * driver/firmware to enable/disable the notification of roam events. It's a
- * mandatory attribute and used only in the request from the userspace to the
- * host driver. 1-Enable, 0-Disable.
- * If the roaming is totally offloaded to the firmware, this request when
- * enabled shall mandate the firmware to notify all the relevant roam events
- * represented by the below attributes. If the host is in the suspend mode,
- * the behavior of the firmware to notify these events is guided by
- * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
- * these events in the suspend state, the firmware is expected to wake up the
- * host before the respective events are notified. Please note that such a
- * request to get the events in the suspend state will have a definite power
- * implication.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
- * that the roam events need to be notified in the suspend state too. By
- * default, these roam events are notified in the resume state. With this flag,
- * the roam events are notified in both resume and suspend states.
- * This attribute is used in the request from the userspace to the host driver.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
- * Represents the different roam event types, signified by the enum
- * qca_wlan_vendor_roam_event_type.
- * Each bit of this attribute represents the different roam even types reported
- * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
- * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
- * mode only. This represents the roam trigger reason for the last roaming
- * attempted by the firmware. Each bit of this attribute represents the
- * different roam trigger reason code which are defined in enum
- * qca_vendor_roam_triggers.
- * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
- * STA mode only. This represents the roam invoke fail reason for the last
- * failed roam invoke. Different roam invoke failure reason codes
- * are specified in enum qca_vendor_roam_invoke_fail_reasons.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
- * for which the roam is attempted. Each entry is a nested attribute defined
- * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
- * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
- * the scan state on which the roam events need to be notified. The values for
- * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
- * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
- *
- * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
- * u32 values. List of frequencies in MHz considered for a roam scan.
- * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
- */
- enum qca_wlan_vendor_attr_roam_events {
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
- QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
- };
- /*
- * enum qca_wlan_ratemask_params_type - Rate mask config type.
- *
- * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
- * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
- * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
- * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
- */
- enum qca_wlan_ratemask_params_type {
- QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
- QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
- QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
- QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
- };
- /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
- * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
- * This is used to set the rate mask value to be used in rate selection.
- *
- * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
- * Array of nested containing attributes
- * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
- * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
- *
- * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
- * the different phy types to which the rate mask config is to be applied.
- * The values for this attribute are referred from enum
- * qca_wlan_vendor_ratemask_params_type.
- *
- * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
- * A bit value of 1 represents rate is enabled and a value of 0
- * represents rate is disabled.
- * For HE targets, 12 bits correpond to one NSS setting.
- * b0-13 => NSS1, MCS 0-13
- * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
- * For VHT targets, 10 bits correspond to one NSS setting.
- * b0-9 => NSS1, MCS 0-9
- * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
- * For HT targets, 8 bits correspond to one NSS setting.
- * b0-7 => NSS1, MCS 0-7
- * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
- * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
- */
- enum qca_wlan_vendor_attr_ratemask_params {
- QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
- QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
- QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
- QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_flush_pending_policy: Represents values for
- * the policy to flush pending frames, configured via
- * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
- * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
- *
- * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
- * the flush policy configured before. This command basically disables the
- * flush config set by the user.
- * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
- * the flush policy to be immediate. All pending packets for the peer/TID are
- * flushed when this command/policy is received.
- * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
- * the flush policy to the end of TWT SP. All pending packets for the peer/TID
- * are flushed when the end of TWT SP is reached.
- */
- enum qca_wlan_vendor_flush_pending_policy {
- QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
- QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
- QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
- };
- /**
- * enum qca_wlan_vendor_attr_flush_pending - Attributes for
- * flushing pending traffic in firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
- * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
- * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
- * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
- * flush packets with access category. This is optional. See below.
- * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
- * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
- * bit to 1 to act upon the TID. This is optional. Either this attribute or
- * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
- * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
- * it is an error.
- * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
- * packets corresponding to the peer/TID provided. It is a u32 value,
- * represented by %enum qca_wlan_vendor_flush_pending_policy. This
- * value is honored only when TID mask is provided. This is not honored when AC
- * mask is provided.
- */
- enum qca_wlan_vendor_attr_flush_pending {
- QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
- QCA_WLAN_VENDOR_ATTR_AC = 2,
- QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
- QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
- QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
- * for) or drop existing PASN security association for the listed the
- * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
- * to userspace.
- *
- * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
- * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
- * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
- * the driver to userspace to inform that the existing PASN keys of the
- * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
- * not valid anymore.
- */
- enum qca_wlan_vendor_pasn_action {
- QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
- QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
- };
- /**
- * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
- * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
- *
- * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
- * event from the driver to userspace and represents the local MAC address
- * to be used for PASN handshake. When this attribute is present, userspace
- * shall use the source address specified in this attribute by the driver
- * for PASN handshake with peer device.
- * This attribute is required in a command response from userspace to the
- * driver and represents the MAC address that was used in PASN handshake
- * with the peer device.
- * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
- * peer device to which PASN handshake is requested in an event from the
- * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
- * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
- * Indicates the MAC address of the peer device for which the keys are to
- * be invalidated in an event from the driver to userspace when
- * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
- * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
- * Indicates the MAC address of the peer device for which the status is
- * being sent in a status report from userspace to the driver.
- * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
- * in the event from the driver to userspace. When set, userspace is
- * required to derive LTF key seed from KDK and set it to the driver.
- * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
- * attribute is used in the command response from userspace to the driver.
- * If present, it indicates the successful PASN handshake with the peer. If
- * this flag is not present, it indicates that the PASN handshake with the
- * peer device failed.
- */
- enum qca_wlan_vendor_attr_pasn_peer {
- QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
- QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
- QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
- QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
- QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
- * QCA_NL80211_VENDOR_SUBCMD_PASN command.
- *
- * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
- * defined in enum qca_wlan_vendor_pasn_action and used only in an event
- * from the driver to userspace.
- * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
- * details for each peer and used in both an event and a command response.
- * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
- * defined in enum qca_wlan_vendor_attr_pasn_peer.
- */
- enum qca_wlan_vendor_attr_pasn {
- QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
- QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_PASN_MAX =
- QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
- * the ranging security context derived from PASN for each peer. Used in
- * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
- *
- * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
- * context for the peer.
- * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
- * context for the peer.
- */
- enum qca_wlan_vendor_secure_ranging_ctx_action {
- QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
- QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
- };
- /**
- * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
- * used for deriving PASN keys to the driver. Used in
- * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
- * @QCA_WLAN_VENDOR_SHA_256: SHA-256
- * @QCA_WLAN_VENDOR_SHA_384: SHA-384
- */
- enum qca_wlan_vendor_sha_type {
- QCA_WLAN_VENDOR_SHA_256,
- QCA_WLAN_VENDOR_SHA_384,
- };
- /**
- * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
- * to set security context for the PASN peer from userspace to the driver.
- * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
- *
- * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
- * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
- * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
- * was used during the PASN handshake.
- * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
- * the peer device for which secure ranging context is being configured.
- * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
- * hash algorithm to be used, possible values are defined in enum
- * qca_wlan_vendor_sha_type.
- * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
- * the temporal key generated from the PASN handshake. The length of this
- * attribute is dependent on the value of
- * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
- * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
- * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
- * (e.g., 0x000FAC04).
- * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
- * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
- * The length of this attribute is dependent on the value of
- * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
- *
- */
- enum qca_wlan_vendor_attr_secure_ranging_ctx {
- QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
- QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
- QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
- QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
- QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
- QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
- QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
- QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
- * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
- * nested attribute. The packets that match a filter will be replied with
- * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
- * u32 attribute. Destination IPv4 address in network byte order, the
- * IPv4 packets with different address will be filtered out.
- * This attribute is optional.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
- * Flag attribute. If it's present, indicates that
- * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
- * address; while if not, indicates that the address is a unicast/multicast
- * address.
- * This attribute is optional.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
- * NLA_BINARY attribute, length is 16 bytes.
- * Destination IPv6 address in network byte order, the IPv6 packets
- * with different destination address will be filtered out.
- * This attribute is optional.
- *
- * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
- * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
- * Packets on both IPv4 and IPv6 will be processed if both are configured.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
- * u16 attribute. Destination UDP port, the packets with different destination
- * UDP port will be filtered out.
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
- * u32 attribute. Represents the offset (in UDP payload) of the data
- * to be matched.
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
- * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
- * Binary data that is compared bit-by-bit against the data (specified
- * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
- * payload, the packets don't match will be filtered out.
- * This attribute is mandatory.
- */
- enum qca_wlan_vendor_attr_coap_offload_filter {
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
- * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
- * u32 attribute. Source address (in network byte order) for replying
- * the matching broadcast/multicast IPv4 packets.
- * This attribute is optional.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
- * NLA_BINARY attribute, length is 16 bytes.
- * Source address (in network byte order) for replying the matching
- * multicast IPv6 packets.
- * This attribute is optional.
- *
- * For broadcast/multicast offload reply, one of
- * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
- * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
- * configured according to version of the IP address(es) configured in
- * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
- * while for unicast case, firmware will take the destination IP address
- * in the received matching packet as the source address for replying.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
- * Nested attribute. Filter for the received UDP packets, only the matching
- * packets will be replied and cached.
- * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
- * attributes.
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
- * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
- * CoAP message (UDP payload) to be sent upon receiving matching packets.
- * Firmware is responsible for adding any necessary protocol headers.
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
- * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
- * A cached message will be dropped by firmware if it's expired.
- * This attribute is optional. A default value of 40000 will be used in the
- * absence of it.
- */
- enum qca_wlan_vendor_attr_coap_offload_reply {
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
- * CoAP message (UDP) transmitting on IPv4.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
- * u32 attribute. Source address (in network byte order) for transmitting
- * packets on IPv4.
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
- * u16 attribute. Source UDP port.
- * This attribute is optional, a random port is taken if it's not present.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
- * u32 attribute. Destination IPv4 address (in network byte order).
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
- * Flag attribute. If it's present, indicates that
- * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
- * address; while if not, indicates that the address is unicast/multicast
- * address.
- * This attribute is optional.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
- * u16 attribute. Destination UDP port.
- * This attribute is mandatory.
- */
- enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
- * CoAP message (UDP) transmitting on IPv6.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
- * NLA_BINARY attribute, length is 16 bytes.
- * Source address (in network byte order) for transmitting packets on IPv6.
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
- * u16 attribute. Source UDP port.
- * This attribute is optional, a random port is taken if it's not present.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
- * NLA_BINARY attribute, length is 16 bytes.
- * Destination IPv6 address (in network byte order).
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
- * u16 attribute. Destination UDP port.
- * This attribute is mandatory.
- */
- enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
- * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
- * Nested attribute. The IPv4 source/destination address/port for offload
- * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
- * of supported attributes.
- * This attribute is optional.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
- * Nested attribute. The IPv6 source/destination address/port for offload
- * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
- * of supported attributes.
- * This attribute is optional.
- *
- * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
- * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
- * Firmware will transmit the packets on both IPv4 and IPv6 if both are
- * configured.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
- * u32 attribute. Period in milliseconds for the periodic transmitting.
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
- * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
- * CoAP message (UDP payload) to be periodically transmitted. Firmware
- * is responsible for adding any necessary protocol headers.
- * This attribute is mandatory.
- */
- enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
- * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
- * u64 attribute. Received time (since system booted in microseconds) of
- * the cached CoAP message.
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
- * u32 attribute. Source IPv4 address (in network byte order) of the cached
- * CoAP message.
- * This attribute is optional.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
- * NLA_BINARY attribute, length is 16 bytes.
- * Source IPv6 address (in network byte order) of the cached CoAP message.
- * This attribute is optional.
- *
- * At most and at least one of
- * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
- * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
- * an entry.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
- * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
- * The cached CoAP message (UDP payload). If the actual message size is
- * greater than the maximum size, it will be truncated and leaving only
- * the first 1152 bytes.
- * This attribute is mandatory.
- */
- enum qca_wlan_vendor_attr_coap_offload_cache_info {
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_coap_offload_action - Actions for
- * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
- *
- * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
- * Enable CoAP offload reply.
- * If it's enabled, firmware will start offload processing on each suspend
- * and stop on each resume.
- *
- * Offload reply on match works as follows:
- * Reply the packets that match the filter with the given CoAP
- * message (with necessary protocol headers), increase the CoAP message
- * ID in the given CoAP message by one for the next use after each successful
- * transmission, and try to store the information of the received packet,
- * including the received time, source IP address, and CoAP message (UDP
- * payload).
- *
- * Firmware has a limit to the maximum stored entries, it takes the source IP
- * address as the key of an entry, and keeps at most one entry for each key.
- * A packet won't be stored if no entry for the same key is present and the
- * total number of the existing unexpired entries reaches the maximum value.
- *
- * If any configured item is changed, user space should disable offload reply
- * first and then issue a new enable request.
- *
- * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
- * Disable CoAP offload reply and return information of any cached CoAP
- * messages.
- *
- * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
- * Enable CoAP offload periodic transmitting.
- * If it's enabled, firmware will start offload periodic transmitting on
- * each suspend and stop on each resume.
- *
- * Offload periodic transmitting works as follows:
- * Send the given CoAP message (with necessary protocol headers) with the given
- * source/destination IP address/UDP port periodically based on the given
- * period and increase the CoAP message ID in the given CoAP message by one
- * for the next use after each successful transmission.
- *
- * If any configured item is changed, user space should disable offload
- * periodic transmitting first and then issue a new enable request.
- *
- * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
- * Disable CoAP offload periodic transmitting.
- *
- * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
- * Get information of the CoAP messages cached during offload reply
- * processing. The cache is cleared after retrieval.
- */
- enum qca_wlan_vendor_coap_offload_action {
- QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
- QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
- QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
- QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
- QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
- };
- /**
- * enum qca_wlan_vendor_attr_coap_offload - Used by the
- * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
- * This is used to set parameters for CoAP offload processing, or get
- * cached CoAP messages from firmware.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
- * u32 attribute. Action to take in this vendor command.
- * See enum qca_wlan_vendor_coap_offload_action for supported actions.
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
- * u32 attribute. Represents the Request ID for the CoAP offload
- * configuration, which can help to identify the user entity starting
- * the CoAP offload processing and accordingly stop the respective
- * ones/get the cached CoAP messages with the matching ID.
- * This attribute is mandatory.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
- * Nested attribute. Parameters for offload reply.
- * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
- * supported attributes.
- * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
- * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
- * otherwise.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
- * Nested attribute. Parameters for offload periodic transmitting.
- * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
- * supported attributes.
- * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
- * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
- * otherwise.
- *
- * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
- * Array of nested attributes. Information of the cached CoAP messages,
- * where each entry is taken from
- * enum qca_wlan_vendor_attr_coap_offload_cache_info.
- * This attribute is used for reporting the cached CoAP messages
- * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
- * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
- * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
- * cached item if this attribute is not present.
- */
- enum qca_wlan_vendor_attr_coap_offload {
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
- QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
- * Service (SCS) rule.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
- * Represents the unique id of SCS rule to be configured.
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
- * Represents the request type: add, remove, or change.
- * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
- * Type definitions).
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
- * in case of add/change request type.
- * Represents the output traffic identifier (TID) to be assigned to the flow
- * matching the rule.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
- * attribute in case of add/change request type.
- * Represents type of classifier parameters present in SCS rule.
- * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
- * Only classifier types 4 and 10 are supported for SCS.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
- * in case of add/change request type when classifier type is TCLAS4.
- * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
- * attribute in case of add/change request type when classifier type is TCLAS4
- * and version attribute is IPv4.
- * Represents the source IPv4 address in the rule which is to be compared
- * against the source IP address in the IPv4 header.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
- * attribute in case of add/change request type when classifier type is TCLAS4
- * and version attribute is IPv4.
- * Represents the destination IPv4 address in the rule which is to be compared
- * against the destination IP address in the IPv4 header.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
- * attribute in case of add/change request type when classifier type is TCLAS4
- * and version attribute is IPv6.
- * Represents the source IPv6 address in the rule which is to be compared
- * against the source IP address in the IPv6 header.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
- * attribute in case of add/change request type when classifier type is TCLAS4
- * and version attribute is IPv6.
- * Represents the destination IPv6 address in the rule which is to be compared
- * against the destination IP address in the IPv6 header.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
- * in case of add/change request type when classifier type is TCLAS4.
- * Represents the source port number in the rule which is to be compared against
- * the source port number in the protocol header.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
- * in case of add/change request type when classifier type is TCLAS4.
- * Represents the destination port number in the rule which is to be compared
- * against the destination port number in the protocol header.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
- * in case of add/change request type when classifier type is TCLAS4.
- * Represents the DSCP value in the rule which is to be compared against the
- * DSCP field present in the IP header.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
- * attribute in case of add/change request type when classifier type is TCLAS4.
- * Represents the protocol/next header in the rule which is to be compared
- * against the protocol/next header field present in the IPv4/IPv6 header.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
- * attribute of size 3 bytes present in case of add/change request type
- * when classifier type is TCLAS4 and version is IPv6.
- * Represents the flow label value in the rule which is to be compared against
- * the flow label field present in the IPv6 header.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
- * attribute in case of add/change request type when classifier type is TCLAS10.
- * Represents the protocol instance number in the rule.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
- * attribute in case of add/change request type when classifier type is TCLAS10.
- * Represents the protocol/next header in the rule which is to be compared
- * against the protocol/next header field present in the IPv4/IPv6 header.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
- * attribute of variable length present when request type is add/change and
- * classifier type is TCLAS10.
- * Represents the mask to be used for masking the header contents of the header
- * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
- * attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
- * attribute of variable length present when request type is add/change and
- * classifier type is TCLAS10.
- * Represents the value to be compared against after masking the header contents
- * of the header specified by the
- * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
- * filter mask specified by the
- * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
- * attribute.
- * Represents the service class id of the configured SCS rule.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
- * MAC address.
- * Represents the destination MAC address in the rule.
- *
- * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
- * Represents the netdevice interface index in the rule.
- */
- enum qca_wlan_vendor_attr_scs_rule_config {
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
- QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_sar_version - This describes the current SAR version
- * used in the firmware.
- *
- * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
- * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
- *
- * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
- * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
- * each CTL group. So user can select up to 6 SAR indexes from the current CTL
- * groups.
- *
- * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
- * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
- * CTL group but user can choose up to 3 SAR set index only, as the top half
- * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
- * the SAR index (3 to 5) is used for DBS mode.
- *
- * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4,
- * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic
- * for power limit computation in collaboration with WWAN.
- * In STX mode, firmware has 41 indexes and there is no ctl grouping uses.
- *
- * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5,
- * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies
- * instead of fixed static SAR power limit firmware uses time averaging
- * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism.
- * In this mode firmware has up to 43 indexes.
- */
- enum qca_wlan_vendor_sar_version {
- QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
- QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
- QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
- QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
- QCA_WLAN_VENDOR_SAR_VERSION_4 = 4,
- QCA_WLAN_VENDOR_SAR_VERSION_5 = 5,
- };
- /**
- * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
- * CTL grouping is enabled or disabled in the firmware.
- *
- * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
- * is enabled in firmware.
- *
- * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
- * is disabled in firmware.
- *
- */
- enum qca_wlan_vendor_sar_ctl_group_state {
- QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
- QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
- QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
- };
- /**
- * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
- * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
- * supported by the firmware.
- * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
- * u32 attribute. This field describes current SAR version supported by the
- * firmware.
- * See enum qca_wlan_vendor_sar_version for more information.
- * This attribute is mandatory.
- * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
- * u32 attribute. This field describes whether CTL groups are enabled
- * or disabled in the firmware.
- * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
- * This attribute is optional.
- */
- enum qca_wlan_vendor_attr_sar_capability {
- QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
- QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
- QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
- * These statistics are sent from the driver in a response when userspace
- * queries to get the statistics using the operation
- * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
- * by the driver when the SR feature is enabled, when the driver receives
- * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
- * Mandatory only when non-SRG is supported by the AP and optional otherwise.
- * This represents the number of non-SRG TX opportunities.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
- * Mandatory only when non-SRG is supported by the AP and optional otherwise.
- * This represents the number of non-SRG PPDUs tried to transmit.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
- * Mandatory only when non-SRG is supported by the AP and optional otherwise.
- * This represents the number of non-SRG PPDUs successfully transmitted.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
- * Mandatory only when SRG is supported by the AP and optional otherwise.
- * This represents the number of SRG TX opportunities.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
- * Mandatory only when SRG is supported by the AP and optional otherwise.
- * This represents the number of SRG PPDUs tried to transmit.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
- * Mandatory only when SRG is supported by the AP and optional otherwise.
- * This represents the number of SRG PPDUs successfully transmitted.
- */
- enum qca_wlan_vendor_attr_sr_stats {
- QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
- QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
- QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
- QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
- QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
- QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
- QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
- * Spatial Reuse feature.
- *
- * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
- * roaming to an AP that doesn't support/supports SR feature, respectively.
- *
- * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
- * to change in concurrent interfaces that are supported by the driver.
- */
- enum qca_wlan_sr_reason_code {
- QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
- QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
- };
- /**
- * enum qca_wlan_sr_operation - Defines the different types of SR operations.
- * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
- *
- * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
- * driver to enable the Spatial Reuse feature. Attributes
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
- * operation.
- *
- * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
- * driver to disable the Spatial Reuse feature.
- *
- * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
- * asynchronous event sent to userspace when the SR feature is disabled.
- * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
- * and sent along with the asynchronous event.
- *
- * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
- * asynchronous event when the SR feature is enabled again after the SR feature
- * was suspended by the driver earlier. The enable reason is
- * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
- *
- * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
- * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
- * reuse transmissions. Userspace sends this operation to the driver.
- * The driver/firmware upon receiving this operation shall prohibit PSR-based
- * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
- *
- * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
- * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
- * reuse transmissions. Userspace sends this operation to the driver.
- * The driver/firmware upon receiving this operation shall allow PSR-based
- * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
- *
- * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
- * driver to get the SR statistics and the driver sends a synchronous response
- * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
- * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
- *
- * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
- * driver to clear the SR statistics and upon receiving this operation
- * the driver/firmware shall clear the SR statistics.
- *
- * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
- * driver to get the SR parameters and the driver sends the synchronous response
- * with the following required attributes:
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
- *
- * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
- * asynchronous event to userspace to update any changes in SR parameters.
- * The following attributes are used with this operation:
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
- * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
- */
- enum qca_wlan_sr_operation {
- QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
- QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
- QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
- QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
- QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
- QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
- QCA_WLAN_SR_OPERATION_GET_STATS = 6,
- QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
- QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
- QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
- };
- /**
- * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
- * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
- * This attribute is optionally set in response to
- * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
- * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
- * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
- * about HESIGA_Spatial_reuse_value15_allowed.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
- * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
- * operation. This indicates whether non-SRG OBSS PD SR transmissions are
- * allowed or not at non-AP STAs that are associated with the AP. If present
- * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
- * attribute. This attribute is used in response to
- * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
- * Min Offset field which contains an unsigned integer that is added to -82 dBm
- * to generate the value of the SRG OBSS PD Min parameter.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
- * attribute. This attribute is used in response to
- * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
- * Max Offset field which contains an unsigned integer that is added to -82 dBm
- * to generate the value of the SRG OBSS PD Max parameter.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
- * attribute. This attribute is used in response to
- * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
- * PD Max Offset field which contains an unsigned integer that is added to -82
- * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
- * Userspace optionally sends this attribute with
- * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
- * preferred SRG PD threshold. The driver shall send this attribute to
- * userspace in SR resume event to indicate the PD threshold being used for SR.
- * When there is change in SRG PD threshold (for example, due to roaming, etc.)
- * the driver shall indicate the userspace the newly configured SRG PD threshold
- * using an asynchronous event.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
- * Userspace optionally sends this attribute with
- * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
- * preferred non-SRG PD threshold. The driver shall send this attribute to
- * userspace in SR resume event to indicate the PD threshold being used for SR.
- * When there is change in non-SRG PD threshold (for example, due to roaming,
- * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
- * threshold using an asynchronous event.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
- * values are defined in enum qca_wlan_sr_reason_code. This
- * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
- * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
- */
- enum qca_wlan_vendor_attr_sr_params {
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
- * command QCA_NL80211_VENDOR_SUBCMD_SR.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
- * from userspace to the driver. Possible values are defined in enum
- * qca_wlan_sr_operation.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
- * configuration parameters. The possible attributes inside this attribute are
- * defined in enum qca_wlan_vendor_attr_sr_params.
- * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
- * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
- * also in response from the driver to userspace when the response is sent for
- * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
- * The driver uses this attribute in asynchronous events in which the operation
- * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
- * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
- *
- * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
- * statistics. These attributes used inside this are defined in enum
- * qca_wlan_vendor_attr_sr_stats.
- * This attribute is used in response from the driver to a command in which
- * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
- * %QCA_WLAN_SR_OPERATION_GET_STATS.
- */
- enum qca_wlan_vendor_attr_sr {
- QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
- QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
- QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_SR_MAX =
- QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
- * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
- *
- * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
- * used by the peer on the link that corresponds to the link used for sending
- * the event notification.
- * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
- * MLD MAC address of the peer.
- * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
- * used to pass ifindex of the primary netdev.
- * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
- * used to pass ifindex of the MLD netdev.
- * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
- * used to indicate the number of links that the non-AP MLD negotiated to be
- * used in the ML connection.
- * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
- * attribute, contains information regarding links of the non-AP MLD.
- * User applications need to know all the links of a non-AP MLD that are
- * participating in the ML association. The possible attributes inside this
- * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
- */
- enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
- QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
- QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
- QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
- QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
- QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
- QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
- QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
- * non-AP MLD link parameters used by the attribute
- * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
- *
- * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
- * to pass the netdev ifindex of the non-AP MLD link.
- * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
- * the non-AP MLD link.
- */
- enum qca_wlan_vendor_attr_mlo_link_info {
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
- * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
- * and PSD information.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
- * u32. This attribute is used to indicate the start of the queried frequency
- * range in MHz.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
- * This attribute is used to indicate the end of the queried frequency range
- * in MHz.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
- * This attribute will contain the PSD information for a single range as
- * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
- * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
- *
- * The PSD power info (dBm/MHz) from user space should be multiplied
- * by a factor of 100 when sending to the driver to preserve granularity
- * up to 2 decimal places.
- * Example:
- * PSD power value: 10.21 dBm/MHz
- * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
- *
- * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
- * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
- *
- * The following set of attributes will be used to exchange frequency and
- * corresponding PSD information for AFC between the user space and the driver.
- */
- enum qca_wlan_vendor_attr_afc_freq_psd_info {
- QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
- QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
- QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
- QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
- * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
- * channel list and corresponding EIRP information.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
- * This attribute is used to indicate queried channel from
- * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
- * This attribute is used to configure the EIRP power info corresponding
- * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
- * The EIRP power info(dBm) from user space should be multiplied
- * by a factor of 100 when sending to Driver to preserve granularity up to
- * 2 decimal places.
- * Example:
- * EIRP power value: 34.23 dBm
- * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
- *
- * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
- * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
- * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
- *
- * The following set of attributes will be used to exchange Channel and
- * corresponding EIRP information for AFC between the user space and Driver.
- */
- enum qca_wlan_vendor_attr_afc_chan_eirp_info {
- QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
- QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
- QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
- * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
- * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
- * channel, and EIRP related information.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
- * This attribute is used to indicate the operating class, as listed under
- * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
- * for updating the channel number and EIRP power information.
- * It uses the attributes defined in
- * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
- *
- * Operating class information packing format for
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
- *
- * m - Total number of operating classes.
- * n, j - Number of queried channels for the corresponding operating class.
- *
- * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
- * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
- * .....
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
- * ....
- * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
- * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
- * ....
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
- *
- * Operating class information packing format for
- * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
- *
- * m - Total number of operating classes.
- * n, j - Number of channels for the corresponding operating class.
- *
- * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
- * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
- * .....
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
- * ....
- * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
- * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
- * ....
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
- * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
- *
- * The following set of attributes will be used to exchange operating class
- * information for AFC between the user space and the driver.
- */
- enum qca_wlan_vendor_attr_afc_opclass_info {
- QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
- QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
- QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
- QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
- * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
- *
- * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
- * driver to userspace in order to query the new AFC power values.
- *
- * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
- * complete event will be sent from the driver to userspace to indicate
- * processing of the AFC response.
- *
- * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
- * will be sent from the driver to userspace to indicate last received
- * AFC response data has been cleared on the AP due to invalid data
- * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
- *
- * The following enum defines the different event types that will be
- * used by the driver to help trigger corresponding AFC functionality in user
- * space.
- */
- enum qca_wlan_vendor_afc_event_type {
- QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
- QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
- QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
- };
- /**
- * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
- * deployment type.
- * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
- *
- * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
- *
- * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
- *
- * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
- *
- * The following enum defines different deployment modes that the AP might
- * come up in. This information will be essential to retrieve deployment-type
- * specific SP power values for AFC operation.
- */
- enum qca_wlan_vendor_afc_ap_deployment_type {
- QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
- QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
- QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
- };
- /**
- * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
- * indicate AFC response status.
- * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
- *
- * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
- *
- * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
- * command was not received within the expected time of the AFC expiry event
- * being triggered.
- *
- * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
- * parsing error by the driver.
- *
- * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
- * error.
- *
- * The following enum defines the status codes that the driver will use to
- * indicate whether the AFC data is valid or not.
- */
- enum qca_wlan_vendor_afc_evt_status_code {
- QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
- QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
- QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
- QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
- };
- /**
- * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
- * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
- * support sending only a single request to the user space at a time.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
- * Used with event to notify the type of AFC event received.
- * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
- * otherwise unused.
- *
- * This attribute is used to indicate the AP deployment type in the AFC request.
- * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
- * Unique request identifier generated by the AFC client for every
- * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
- * The user space application is responsible for ensuring no duplicate values
- * are in-flight with the server, e.g., by delaying a request, should the same
- * value be received from different radios in parallel.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
- * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
- *
- * This attribute indicates the AFC spec version information. This will
- * indicate the AFC version AFC client must use to query the AFC data.
- * Bits 15:0 - Minor version
- * Bits 31:16 - Major version
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
- * otherwise unused.
- * This attribute indicates the minimum desired power (in dBm) for
- * the queried spectrum.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
- *
- * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
- * This attribute is used to indicate if there were any errors parsing the
- * AFC response.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
- * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
- *
- * This attribute indicates the AFC response code. The AFC response codes are
- * in the following categories:
- * -1: General Failure.
- * 0: Success.
- * 100 - 199: General errors related to protocol.
- * 300 - 399: Error events specific to message exchange
- * for the Available Spectrum Inquiry.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
- *
- * This attribute indicates the date until which the current response is
- * valid for in UTC format.
- * Date format: bits 7:0 - DD (Day 1-31)
- * bits 15:8 - MM (Month 1-12)
- * bits 31:16 - YYYY (Year)
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
- * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
- *
- * This attribute indicates the time until which the current response is
- * valid for in UTC format.
- * Time format: bits 7:0 - SS (Seconds 0-59)
- * bits 15:8 - MM (Minutes 0-59)
- * bits 23:16 - HH (Hours 0-23)
- * bits 31:24 - Reserved
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
- * for updating the list of frequency ranges to be queried.
- * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
- * It uses the attributes defined in
- * enum qca_wlan_vendor_attr_afc_freq_psd_info.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
- * for updating the list of operating classes and corresponding channels to be
- * queried.
- * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
- * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
- * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
- */
- enum qca_wlan_vendor_attr_afc_event {
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
- QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
- * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
- * will support sending only a single AFC response to the driver at a time.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
- * This attribute will be used to send a single Spectrum Inquiry response object
- * from the 'availableSpectrumInquiryResponses' array object from the response
- * JSON.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
- *
- * This attribute indicates the period (in seconds) for which the response
- * data received is valid for.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
- *
- * This attribute indicates the request ID for which the corresponding
- * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
- *
- * This attribute indicates the date until which the current response is
- * valid for in UTC format.
- * Date format: bits 7:0 - DD (Day 1-31)
- * bits 15:8 - MM (Month 1-12)
- * bits 31:16 - YYYY (Year)
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
- *
- * This attribute indicates the time until which the current response is
- * valid for in UTC format.
- * Time format: bits 7:0 - SS (Seconds 0-59)
- * bits 15:8 - MM (Minutes 0-59)
- * bits 23:16 - HH (Hours 0-23)
- * bits 31:24 - Reserved
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
- *
- * This attribute indicates the AFC response code. The AFC response codes are
- * in the following categories:
- * -1: General Failure.
- * 0: Success.
- * 100 - 199: General errors related to protocol.
- * 300 - 399: Error events specific to message exchange
- * for the Available Spectrum Inquiry.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
- * for PSD info of all the queried frequency ranges. It uses the attributes
- * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
- * attributes for EIRP info of all queried operating class/channels. It uses
- * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
- * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
- *
- */
- enum qca_wlan_vendor_attr_afc_response {
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
- QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_dozed_ap_state - Doze states for AP interface
- *
- * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
- *
- * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
- * beaconing at higher beacon interval with Rx disabled.
- */
- enum qca_wlan_dozed_ap_state {
- QCA_WLAN_DOZED_AP_DISABLE = 0,
- QCA_WLAN_DOZED_AP_ENABLE = 1,
- };
- /**
- * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
- * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
- * configuration.
- *
- * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
- * Configures the doze state for an AP interface. Possible values are defined
- * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
- * gets triggered asynchronously to provide updated AP interface configuration.
- *
- * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
- * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
- * command, which is used later to maintain synchronization between commands
- * and asynchronous events.
- *
- * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
- * Used in event to indicate the next TBTT TSF timer value after applying the
- * doze mode configuration. Next TBTT TSF is the time at which the AP sends
- * the first beacon after entering or exiting dozed mode.
- *
- * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
- * Used with event to inform the periodicity of beacon transmission that would
- * be skipped at all TBTTs in between.
- */
- enum qca_wlan_vendor_attr_dozed_ap {
- QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
- QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
- QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
- QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
- QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
- * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
- * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
- * capture running status.
- * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
- * capture running status.
- **/
- enum qca_wlan_vendor_monitor_mode_status {
- QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
- QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
- };
- /**
- * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
- * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
- * information regarding the local packet capture over the monitor mode.
- *
- * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
- * represents the status of the start capture commands. The values used with
- * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
- * is returned by the driver in the response to the command.
- */
- enum qca_wlan_vendor_attr_get_monitor_mode {
- QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
- QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_link_state_op_types - Defines different types of
- * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
- * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
- *
- * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
- * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
- */
- enum qca_wlan_vendor_link_state_op_types {
- QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
- QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
- };
- /**
- * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
- * links state control modes. This enum is used by
- * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
- *
- * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
- * by the driver.
- * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
- * user space.
- * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
- * desired number of MLO links to operate in active state at any given time.
- * The driver will choose which MLO links should operate in the active state.
- * See enum qca_wlan_vendor_link_state for active state definition.
- */
- enum qca_wlan_vendor_link_state_control_modes {
- QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
- QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
- QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
- };
- /**
- * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
- * links state operation modes. This enum is used by
- * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
- *
- * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
- * mode, the driver selects the operating mode of the links, without any
- * guidance from the user space.
- * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
- * operation mode the driver should select MLO links that will achieve low
- * latency.
- * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
- * throughput operation mode the driver should select MLO links that will
- * achieve higher throughput.
- * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
- * operation mode the driver should select MLO links that will achieve low
- * power.
- */
- enum qca_wlan_vendor_link_state_operation_modes {
- QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
- QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
- QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
- QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
- };
- /**
- * enum qca_wlan_vendor_link_state - Represents the possible link states of an
- * MLO link.
- *
- * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
- * be used for data transmission but it can have TIDs mapped to it. It will be
- * in doze state always and does not monitor the beacons.
- * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
- * used for data TX/RX and monitors the beacons to check TIM bit indication.
- * It may enter doze state and comes out based on the transmit data traffic and
- * TIM bit indication in the beacon.
- */
- enum qca_wlan_vendor_link_state {
- QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
- QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
- };
- /**
- * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
- * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
- *
- * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
- * MLO link.
- * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
- * enum qca_wlan_vendor_link_state for possible MLO link states.
- */
- enum qca_wlan_vendor_attr_link_state_config {
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
- * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
- * Required only in a command. Possible values for this attribute are defined in
- * enum qca_wlan_vendor_link_state_op_types.
- *
- * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
- * links control mode type. Optional attribute in a command when
- * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
- * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
- * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
- * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
- * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
- *
- * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
- * Indicates the state of the each MLO link affiliated with the interface.
- * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
- * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
- * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
- * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
- * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
- * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
- * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
- *
- * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
- * Represents the number of active state links. See enum
- * qca_wlan_vendor_link_state for active state definition.
- * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
- * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
- * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
- * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
- *
- * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
- * links operation mode type. Optional attribute in a command when
- * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
- * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
- * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
- * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
- * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
- * modes.
- */
- enum qca_wlan_vendor_attr_mlo_link_state {
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
- QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
- * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
- *
- * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
- * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
- * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
- * bitmask of the link IDs in which a bit set means that the TID is mapped with
- * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
- * traffic for that link.
- *
- * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
- * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
- * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
- * bitmask of the link IDs in which a bit set means that the TID is mapped with
- * that link ID in downlink traffic. Otherwise, the TID is not mapped to
- * downlink traffic for that link.
- */
- enum qca_wlan_vendor_attr_tid_link_map_status {
- QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
- QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
- QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
- };
- /*
- * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
- * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
- *
- * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
- * AP MLD address with which this TID-to-link negotiation mapping is
- * established/updated.
- *
- * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
- * nested attributes containing TID-to-links mapping information. This will have
- * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
- * map information. If this attribute is not present the default TID-to-link
- * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
- * downlink traffic.
- * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
- */
- enum qca_wlan_vendor_attr_tid_to_link_map {
- QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
- QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
- QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
- * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
- *
- * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
- * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
- *
- * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
- * A bitmap of the removed setup links link IDs.
- */
- enum qca_wlan_vendor_attr_link_reconfig {
- QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
- QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
- QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
- * Indicates the MLO link id on which the TDLS discovery response
- * frame is to be transmitted.
- */
- enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
- QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
- /* Keep last */
- QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
- QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
- *
- * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
- * for all stations.
- *
- * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
- * establish the session.
- *
- * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
- * established.
- *
- * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
- * session is established using MCC.
- *
- * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
- * established, but is temporarily dropped currently.
- *
- * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
- */
- enum qca_wlan_vendor_tdls_state {
- QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
- QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
- QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
- QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
- QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
- QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
- };
- /**
- * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
- *
- * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
- *
- * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
- *
- * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
- *
- * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
- *
- * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
- * than through direct link.
- *
- * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
- * session anymore.
- */
- enum qca_wlan_vendor_tdls_reason {
- QCA_WLAN_TDLS_REASON_SUCCESS = 0,
- QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
- QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
- QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
- QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
- QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
- };
- /**
- * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
- * station to enable the TDLS session. Optional attribute. The driver sends the
- * TDLS session result as an asynchronous response using the command
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
- * channel on which the TDLS session to be established. Required only when
- * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
- * Indicates the global operating class of the TDLS session to be established.
- * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
- * the maximum latency of the WLAN packets to be transmitted/received in
- * milliseconds on TDLS session. Required only when
- * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
- * Indicates the minimum bandwidth to be used to establish the TDLS session
- * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
- * present.
- */
- enum qca_wlan_vendor_attr_tdls_enable {
- QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
- QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
- QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
- QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
- QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
- QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
- * station to disable the TDLS session. Optional attribute.
- */
- enum qca_wlan_vendor_attr_tdls_disable {
- QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
- QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
- * peer station. Optional attribute. Used in
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
- * TDLS session state with the peer specified in
- * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
- * enum qca_wlan_vendor_tdls_state. Used in
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
- * reason for the TDLS session state indicated in
- * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
- * qca_wlan_vendor_tdls_reason. Used in
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
- * channel of the TDLS session established with
- * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
- * Indicates the global operating class of the TDLS session established with
- * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
- * the current number of active TDLS sessions. This is indicated in the response
- * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
- * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
- * whether the driver can initiate new TDLS session. This is indicated in the
- * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
- * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
- */
- enum qca_wlan_vendor_attr_tdls_get_status {
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
- QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
- * peer station. Required attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
- * the current TDLS state. Required attribute. Uses the values from
- * enum qca_wlan_vendor_tdls_state.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
- * reason of the current TDLS session state. Required attribute. Uses the values
- * from enum qca_wlan_vendor_tdls_reason.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
- * TDLS session channel. Required attribute.
- *
- * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
- * Indicates the TDLS session global operating class. Required attribute.
- */
- enum qca_wlan_vendor_attr_tdls_state {
- QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
- QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
- QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
- QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
- QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
- QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
- };
- /*
- * enum qca_wlan_vendor_opm_mode - Modes supported by
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
- *
- * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
- * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
- * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
- * to configure power save inactivity timeout and speculative wake up
- * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
- * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
- */
- enum qca_wlan_vendor_opm_mode {
- QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
- QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
- QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
- };
- /* enum qca_wlan_audio_transport_switch_type - Represents the possible transport
- * switch types.
- *
- * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data
- * via non-WLAN transport (ex: bluetooth).
- *
- * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via
- * WLAN transport.
- */
- enum qca_wlan_audio_transport_switch_type {
- QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0,
- QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1,
- };
- /**
- * enum qca_wlan_audio_transport_switch_status - Represents the status of audio
- * transport switch request.
- *
- * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport
- * has been rejected. For ex: when transport switch is requested from WLAN
- * to non-WLAN transport, user space modules and peers would evaluate the switch
- * request and may not be ready for switch and hence switch to non-WLAN transport
- * gets rejected.
- *
- * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch transport
- * has been completed. This is sent only in command path. Ex: when host driver
- * had requested for audio transport switch and userspace modules as well as
- * peers are ready for the switch, userspace module switches the transport and
- * sends subcommand with status completed to host driver.
- */
- enum qca_wlan_audio_transport_switch_status {
- QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0,
- QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1,
- };
- /**
- * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command.
- *
- * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates
- * the transport switch type from one of the values in enum
- * qca_wlan_audio_transport_switch_type. This is mandatory param in both
- * command and event path. This attribute is included in both requests and
- * responses.
- *
- * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates
- * the transport switch status from one of the values in enum
- * qca_wlan_audio_transport_switch_status. This is optional param and used in
- * both command and event path. This attribute must not be included in requests.
- */
- enum qca_wlan_vendor_attr_audio_transport_switch {
- QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1,
- QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX =
- QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1,
- };
- /*
- * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency
- * types.
- *
- * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency
- * from: An MSDU is presented to the driver
- * to: the MSDU is queued into TCL SRNG
- *
- * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency
- * from: the MSDU is queued into TCL SRNG
- * to: the MSDU is released by the driver
- *
- * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency
- * from: the MSDU is presented to the hardware
- * to: the MSDU is released by the hardware
- *
- * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency
- * The time spent on Clear Channel Assessment, the maximum value is 50000 (us)
- * from: A PPDU is presented to the hardware LMAC
- * to: over-the-air transmission is started for the PPDU
- */
- enum qca_wlan_vendor_tx_latency_type {
- QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0,
- QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1,
- QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2,
- QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3,
- };
- /**
- * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes
- * used inside nested attributes
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS.
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute.
- * Indicates the latency type.
- * See enum qca_wlan_vendor_tx_latency_type for the supported types.
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute.
- * Indicates the granularity (in microseconds) of the distribution for the
- * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value
- * must be positive.
- * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is
- * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple
- * of 1000, and the maximum allowed value is 15000 (us).
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute.
- * Indicates the average of the latency (in microseconds) for the type
- * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle.
- * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0;
- * otherwise, it represents the quotient of <accumulated latency of the
- * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted
- * MSDUs/MPDUs in a cycle>.
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION:
- * Array of u32, 4 elements in total, represents the latency distribution for
- * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE).
- * Each element holds the count of MSDUs/PPDUs (according to the latency type)
- * within a range:
- * element[0]: latency >= 0 && latency < granularity
- * element[1]: latency >= granularity && latency < granularity * 2
- * element[2]: latency >= granularity * 2 && latency < granularity * 3
- * element[3]: latency >= granularity * 3
- */
- enum qca_wlan_vendor_attr_tx_latency_bucket {
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX =
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes
- * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS.
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address.
- * Indicates link MAC address of the remote peer. For example, when running
- * in station mode, it's the BSSID of the link; while when running in AP
- * mode, it's the link MAC address of the remote station.
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS:
- * Array of nested attribute.
- * Represents the transmit latency statistics for the link specified by
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
- * Each entry represents the statistics for one of the types defined in
- * enum qca_wlan_vendor_tx_latency_type.
- * Each defined type has and must have one entry.
- * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes.
- */
- enum qca_wlan_vendor_attr_tx_latency_link {
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX =
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions
- * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY.
- *
- * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE:
- * Disable transmit latency monitoring.
- *
- * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE:
- * Enable transmit latency monitoring.
- *
- * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET:
- * Get transmit latency statistics of the last cycle (period is specified by
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD).
- */
- enum qca_wlan_vendor_tx_latency_action {
- QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0,
- QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1,
- QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2,
- };
- /**
- * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by
- * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report
- * per-link transmit latency statistics.
- *
- * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY:
- * 1) used as a command to enable the feature
- * Precondition(s):
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
- * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE
- * Mandatory attribute(s):
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD,
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY.
- * Notes:
- * The driver will monitor the transmit latency for the active links
- * and save the statistics for each cycle (period is set by
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled.
- * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical
- * report is required.
- *
- * 2) used as a command to disable the feature
- * Precondition(s):
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
- * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE
- * Mandatory attribute(s):
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
- *
- * 3) used as a command to retrieve the statistics for all the active links on
- * the requested interface
- * Precondition(s):
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
- * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present.
- * Mandatory attribute(s):
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
- * Notes:
- * The driver returns failure directly if the feature is not enabled or
- * there is no active link.
- * The driver returns the statistics of the last cycle in the case of
- * success.
- *
- * 4) used as a command to retrieve the statistics for the specified links
- * Precondition(s):
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
- * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present.
- * Mandatory attribute(s):
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
- * Notes:
- * The driver returns failure directly if the feature is not enabled or
- * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS)
- * does not exist or is not in active state.
- *
- * 5) used as a command response for #3 or #4
- * Precondition(s):
- * Userspace issues command #3 or #4, and the driver gets corresponding
- * statistics successfully.
- * Mandatory attribute(s):
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
- * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
- *
- * 6) used as an asynchronous event to report the statistics periodically
- * Precondition(s):
- * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in
- * #1.
- * One or more links are in active state.
- * Mandatory attribute(s):
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
- * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
- * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute.
- * Action to take in this vendor command.
- * See enum qca_wlan_vendor_tx_latency_action for supported actions.
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute.
- * Enable (flag attribute present) - The driver needs to report transmit latency
- * statistics at the end of each statistical period.
- * Disable (flag attribute not present) - The driver doesn't need to report
- * transmit latency statistics periodically.
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute.
- * Indicates statistical period for transmit latency in terms of milliseconds,
- * the minimal allowed value is 100 and the maximum allowed value is 60000.
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute.
- * Each entry represents the latency buckets configuration for one of the types
- * defined in enum qca_wlan_vendor_tx_latency_type.
- * Each defined type has and must have one entry.
- * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of
- * supported attributes.
- *
- * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute.
- * Information of the links, each entry represents for one link.
- * See enum qca_wlan_vendor_attr_tx_latency_link for the list of
- * supported attributes for each entry.
- */
- enum qca_wlan_vendor_attr_tx_latency {
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX =
- QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1,
- };
- /**
- * qca_wlan_vendor_attr_RECONFIG_REMOVE_COMPLETE_EVENT - Defines attributes for
- * ML Reconfig (Mlo Link removal) parameters used by the attribute
- * @QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX: u32 attribute
- * used to pass the netdev ifindex of the MLO Reconfiguration link.
- */
- enum qca_wlan_vendor_attr_reconfig_remove_complete_EVENT {
- QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX = 0,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_MAX =
- QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes
- * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL.
- *
- * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center
- * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center
- * frequency. If non PSD power, carries either 20 MHz bandwidth's center
- * channel frequency or 40 MHz bandwidth's center channel frequency
- * (or 80/160 MHz bandwidth's center channel frequency).
- *
- * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm).
- * If PSD power, carries PSD power value of the
- * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel.
- * If non PSD power, carries EIRP power value of bandwidth mentioned
- * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency.
- */
- enum qca_wlan_vendor_attr_tpc_pwr_level {
- QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1,
- QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX =
- QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_tpc - Definition of link attributes
- * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS.
- *
- * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID.
- * For MLO STA, AP BSSID indicates the AP's link address.
- *
- * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag
- * Indicates using PSD power mode if this flag is present.
- *
- * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power
- * value in dBm
- *
- * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz
- * AP, refer to Table E-12-Regulatory Info subfield encoding in
- * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP.
- *
- * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint
- * (dBm) advertised by AP in Power Constraint element, refer to
- * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element.
- *
- * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing
- * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level.
- * If PSD power, each power level describes each 20 MHz subchannel PSD
- * power value. If non PSD power, each power level describes each supported
- * bandwidth's EIRP power value (up to Max bandwidth of AP operating on),
- * each level attribute contains corresponding bandwidth's center channel
- * frequency and its EIRP power value.
- */
- enum qca_wlan_vendor_attr_tpc {
- QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1,
- QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2,
- QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3,
- QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4,
- QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5,
- QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TPC_MAX =
- QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes
- * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand
- *
- * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing
- * per-link TPC information of all the active links of MLO STA.
- * For non MLO STA, only one link TPC information will be returned
- * for connected AP in this nested attribute.
- * The attributes used inside this nested attributes are defined
- * in enum qca_wlan_vendor_attr_tpc.
- */
- enum qca_wlan_vendor_attr_tpc_links {
- QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0,
- QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1,
- /* keep last */
- QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST,
- QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX =
- QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1,
- };
- /**
- * enum qca_wlan_btm_support: BTM support configuration
- *
- * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver
- * follows the BSS Transition bit in the Extended Capabilities element from the
- * connect request IEs with the default BTM support policy.
- *
- * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent
- * (re)association attempts. The driver shall restore the default BTM support
- * policy during the first disconnection after successful association. When this
- * configuration is enabled, the driver shall overwrite the BSS Transition bit
- * as zero in the Extended Capabilities element while sending (Re)Association
- * Request frames. Also, the driver shall drop the BTM frames from userspace and
- * the connected AP when this configuration is enabled.
- */
- enum qca_wlan_btm_support {
- QCA_WLAN_BTM_SUPPORT_DEFAULT = 0,
- QCA_WLAN_BTM_SUPPORT_DISABLE = 1,
- };
- #endif
|