qca_vendor.h 681 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declares vendor commands interfacing with linux kernel
  21. */
  22. #ifndef _WLAN_QCA_VENDOR_H_
  23. #define _WLAN_QCA_VENDOR_H_
  24. /* Vendor id to be used in vendor specific command and events
  25. * to user space.
  26. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  27. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  28. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  29. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  30. */
  31. #define QCA_NL80211_VENDOR_ID 0x001374
  32. #ifndef BIT
  33. #define BIT(x) (1U << (x))
  34. #endif
  35. /**
  36. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  37. *
  38. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  39. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  40. * Sub commands 2 to 8 are not used
  41. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  42. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  43. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  44. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  45. * NAN Request/Response and NAN Indication messages. These messages are
  46. * interpreted between the framework and the firmware component. While
  47. * sending the command from userspace to the driver, payload is not
  48. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  49. * is used when receiving vendor events in userspace from the driver.
  50. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  57. * results
  58. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  59. * results
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  62. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  63. * channels
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  66. * results
  67. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  68. * available. Used when report_threshold is reached in scan cache.
  69. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  70. * result. Used to report scan results when each probe rsp. is received,
  71. * if report_events enabled in wifi_scan_cmd_params.
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  73. * Indicates progress of scanning state-machine.
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  75. * ap found
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  77. * bssid
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  79. * hotlist bssid
  80. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  81. * change
  82. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  83. * significant change
  84. * ap found
  85. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  86. * significant change
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
  88. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
  89. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
  90. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
  91. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  92. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  93. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  94. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  95. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  96. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  97. * roaming and auth information.
  98. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  99. *
  100. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  101. * invoke the ACS function in device and pass selected channels to
  102. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  103. *
  104. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  105. * driver.
  106. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  107. * started CAC on DFS channel
  108. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  109. * completed the CAC check on DFS channel
  110. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  111. * check was aborted by the driver
  112. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  113. * driver completed NOP
  114. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  115. * driver detected radar signal on the current operating channel
  116. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  117. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  118. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  119. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  120. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  121. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  122. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  123. * extscan reset ssid hotlist
  124. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  125. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  126. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  127. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  128. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  129. * reset passpoint list
  130. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  131. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  132. * passpoint network found
  133. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  134. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  135. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  136. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  137. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  138. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  139. list
  140. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  141. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  142. * to the host driver. This command sets the band through either
  143. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  144. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  145. * refers enum qca_set_band as unsigned integer values and
  146. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  147. * values. Also, the acceptable values for
  148. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  149. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  150. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  151. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  152. * implementations configure using both the attributes, the configurations
  153. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  154. * precedence.
  155. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  156. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  157. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  158. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  159. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  160. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  161. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  162. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  163. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  164. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  165. * start the P2P Listen Offload function in device and pass the listen
  166. * channel, period, interval, count, number of device types, device
  167. * types and vendor information elements to device driver and firmware.
  168. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  169. * indicate stop request/response of the P2P Listen Offload function in
  170. * device. As an event, it indicates either the feature stopped after it
  171. * was already running or feature has actually failed to start.
  172. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  173. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  174. * beaconing, this sub command provides the driver, the frequencies on the
  175. * 5 GHz to check for any radar activity. Driver selects one channel from
  176. * this priority list provided through
  177. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  178. * to check for radar activity on it. If no radar activity is detected
  179. * during the channel availability check period, driver internally switches
  180. * to the selected frequency of operation. If the frequency is zero, driver
  181. * internally selects a channel. The status of this conditional switch is
  182. * indicated through an event using the same sub command through
  183. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  184. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  185. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  186. * indication period and threshold for MAC layer counters.
  187. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  188. * in the host driver. The different TDLS configurations are defined
  189. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  190. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  191. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  192. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  193. * require methods to set SAR limits on TX power of WLAN/WWAN.
  194. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  195. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  196. * configuration of vendor ACS.
  197. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  198. * requisite information leading to a power save failure. The information
  199. * carried as part of this event is represented by the
  200. * enum qca_attr_chip_power_save_failure attributes.
  201. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  202. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  203. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  204. * statistics are represented by the enum qca_attr_nud_stats_get
  205. * attributes.
  206. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  207. * the BSS transition status, whether accept or reject, for a list of
  208. * candidate BSSIDs provided by the userspace. This uses the vendor
  209. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  210. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  211. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  212. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  213. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  214. * the driver shall specify array of
  215. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  216. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  217. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  218. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  219. * specific QCA module. The trace levels are represented by
  220. * enum qca_attr_trace_level attributes.
  221. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  222. * Protocol antenna limit in different modes. See enum
  223. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  224. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  225. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  226. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  227. * identifying the operation in success case. In failure cases an
  228. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  229. * describing the reason for the failure is returned.
  230. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  231. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  232. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  233. * be stopped.
  234. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  235. * specific interface. This can be used to modify some of the low level
  236. * scan parameters (off channel dwell time, home channel time) in the
  237. * driver/firmware. These parameters are maintained within the host
  238. * driver.
  239. * This command is valid only when the interface is in the connected
  240. * state.
  241. * These scan parameters shall be reset by the driver/firmware once
  242. * disconnected. The attributes used with this command are defined in
  243. * enum qca_wlan_vendor_attr_active_tos.
  244. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  245. * driver has detected an internal failure. This event carries the
  246. * information indicating the reason that triggered this detection. The
  247. * attributes for this command are defined in
  248. * enum qca_wlan_vendor_attr_hang.
  249. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  250. * of spectral parameters used. The spectral scan parameters are specified
  251. * by enum qca_wlan_vendor_attr_spectral_scan.
  252. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  253. * for spectral scan functionality. The debug stats are specified by
  254. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  255. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  256. * scan system capabilities. The capabilities are specified
  257. * by enum qca_wlan_vendor_attr_spectral_cap.
  258. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  259. * status of spectral scan. The status values are specified
  260. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  261. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  262. * peer pending packets. Specify the peer MAC address in
  263. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  264. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  265. * in enum qca_wlan_vendor_attr_flush_pending.
  266. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  267. * RF Operating Parameter (RROP) information. The attributes for this
  268. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  269. * intended for use by external Auto Channel Selection applications.
  270. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  271. * (SAR) power limits. This is a companion to the command
  272. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  273. * settings currently in use. The attributes returned by this command are
  274. * defined by enum qca_vendor_attr_sar_limits.
  275. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  276. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  277. * This works both as a query (user space asks the current mode) or event
  278. * interface (driver advertizing the current mode to the user space).
  279. * Driver does not trigger this event for temporary hardware mode changes.
  280. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  281. * channel change etc ) are updated with this event. Attributes for this
  282. * interface are defined in enum qca_wlan_vendor_attr_mac.
  283. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  284. * per peer per TID. Attributes for this command are define in
  285. * enum qca_wlan_set_qdepth_thresh_attr
  286. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  287. * guide for WLAN driver. Request to suspend of driver and FW if the
  288. * temperature is higher than the suspend threshold; resume action is
  289. * requested to driver if the temperature is lower than the resume
  290. * threshold. In user poll mode, request temperature data by user. For test
  291. * purpose, getting thermal shutdown configuration parameters is needed.
  292. * Attributes for this interface are defined in
  293. * enum qca_wlan_vendor_attr_thermal_cmd.
  294. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  295. * driver. Thermal temperature and indication of resume completion are
  296. * reported as thermal events. The attributes for this command are defined
  297. * in enum qca_wlan_vendor_attr_thermal_event.
  298. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  299. * test configuration. Attributes for this command are defined in
  300. * enum qca_wlan_vendor_attr_wifi_test_config.
  301. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  302. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  303. * carried a payload which was a binary blob of data. The command was not
  304. * extendable to send more information. The newer version carries the
  305. * legacy blob encapsulated within an attribute and can be extended with
  306. * additional vendor attributes that can enhance the NAN command
  307. * interface.
  308. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  309. * configure parameters per peer to capture Channel Frequency Response
  310. * (CFR) and enable Periodic CFR capture. The attributes for this command
  311. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  312. * can also be used to send CFR data from the driver to userspace when
  313. * netlink events are used to send CFR data.
  314. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  315. * The returned firmware state is specified in the attribute
  316. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  317. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  318. * is used by host driver to flush per-peer cached statistics to user space
  319. * application. This interface is used as an event from host driver to
  320. * user space application. Attributes for this event are specified in
  321. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  322. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  323. * sent as event from host driver.
  324. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  325. * improve the success rate of Zigbee joining network.
  326. * Due to PTA master limitation, zigbee joining network success rate is
  327. * low while wlan is working. Wlan host driver need to configure some
  328. * parameters including Zigbee state and specific WLAN periods to enhance
  329. * PTA master. All this parameters are delivered by the NetLink attributes
  330. * defined in "enum qca_mpta_helper_vendor_attr".
  331. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  332. * implement Beacon frame reporting feature.
  333. *
  334. * Userspace can request the driver/firmware to periodically report
  335. * received Beacon frames whose BSSID is same as the current connected
  336. * BSS's MAC address.
  337. *
  338. * In case the STA seamlessly (without sending disconnect indication to
  339. * userspace) roams to a different BSS, Beacon frame reporting will be
  340. * automatically enabled for the Beacon frames whose BSSID is same as the
  341. * MAC address of the new BSS. Beacon reporting will be stopped when the
  342. * STA is disconnected (when the disconnect indication is sent to
  343. * userspace) and need to be explicitly enabled by userspace for next
  344. * connection.
  345. *
  346. * When a Beacon frame matching configured conditions is received, and if
  347. * userspace has requested to send asynchronous beacon reports, the
  348. * driver/firmware will encapsulate the details of the Beacon frame in an
  349. * event and send it to userspace along with updating the BSS information
  350. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  351. * scan cache with the information from the received Beacon frame but
  352. * will not send any active report to userspace.
  353. *
  354. * The userspace can request the driver/firmware to stop reporting Beacon
  355. * frames. If the driver/firmware is not able to receive Beacon frames
  356. * due to other Wi-Fi operations such as off-channel activities, etc.,
  357. * the driver/firmware will send a pause event to userspace and stop
  358. * reporting Beacon frames. Whether the beacon reporting will be
  359. * automatically resumed or not by the driver/firmware later will be
  360. * reported to userspace using the
  361. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  362. * reporting shall be resumed for all the cases except either when
  363. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  364. * in the command which triggered the current beacon reporting or during
  365. * any disconnection case as indicated by setting
  366. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  367. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  368. * driver.
  369. *
  370. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  371. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  372. * flag not set, the next first
  373. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  374. * shall be considered as un-pause event.
  375. *
  376. * All the attributes used with this command are defined in
  377. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  378. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  379. * interop issues with the DUT. This sub command is used to transfer the
  380. * ap info between driver and user space. This works both as a command
  381. * or event. As a command, it configs the stored list of aps from user
  382. * space to firmware; as an event, it indicates the ap info detected by
  383. * firmware to user space for persistent storage. The attributes defined
  384. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  385. * parameters.
  386. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  387. * binary blobs from application/service to firmware. The attributes
  388. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  389. * deliver the parameters.
  390. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  391. * to send/receive avoid frequency data using
  392. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  393. * This new command is alternative to existing command
  394. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  395. * is using stream of bytes instead of structured data using vendor
  396. * attributes. User space sends unsafe frequency ranges to the driver using
  397. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  398. * reception of this command, the driver shall check if an interface is
  399. * operating on an unsafe frequency and the driver shall try to move to a
  400. * safe channel when needed. If the driver is not able to find a safe
  401. * channel the interface can keep operating on an unsafe channel with the
  402. * TX power limit derived based on internal configurations like
  403. * regulatory/SAR rules.
  404. *
  405. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  406. * add the STA node details in driver/firmware. Attributes for this event
  407. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  408. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  409. * coex chain mode from application/service.
  410. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  411. * to deliver the parameters.
  412. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  413. * get information of a station from driver to userspace. This command can
  414. * be used in both STA and AP modes. For STA mode, it provides information
  415. * of the current association when in connected state or the last
  416. * association when in disconnected state. For AP mode, only information
  417. * of the currently connected stations is available. This command uses
  418. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  419. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  420. * Host drivers can request the user space entity to set the SAR power
  421. * limits with this event. Accordingly, the user space entity is expected
  422. * to set the SAR power limits. Host drivers can retry this event to the
  423. * user space for the SAR power limits configuration from user space. If
  424. * the driver does not get the SAR power limits from user space for all
  425. * the retried attempts, it can configure a default SAR power limit.
  426. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  427. * is used to update the information about the station from the driver to
  428. * userspace. Uses attributes from enum
  429. * qca_wlan_vendor_attr_update_sta_info.
  430. *
  431. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  432. * The host driver initiates the disconnection for scenarios such as beacon
  433. * miss, NUD failure, peer kick out, etc. The disconnection indication
  434. * through cfg80211_disconnected() expects the reason codes from enum
  435. * ieee80211_reasoncode which does not signify these various reasons why
  436. * the driver has triggered the disconnection. This event will be used to
  437. * send the driver specific reason codes by the host driver to userspace.
  438. * Host drivers should trigger this event and pass the respective reason
  439. * code immediately prior to triggering cfg80211_disconnected(). The
  440. * attributes used with this event are defined in enum
  441. * qca_wlan_vendor_attr_driver_disconnect_reason.
  442. *
  443. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  444. * add/delete TSPEC for each AC. One command is for one specific AC only.
  445. * This command can only be used in STA mode and the STA must be
  446. * associated with an AP when the command is issued. Uses attributes
  447. * defined in enum qca_wlan_vendor_attr_config_tspec.
  448. *
  449. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  450. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  451. *
  452. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  453. * the host driver. The band configurations obtained are referred through
  454. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  455. *
  456. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  457. * assessment.
  458. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  459. *
  460. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  461. * used to update SSID information in hostapd when it is updated in the
  462. * driver. Uses the attribute NL80211_ATTR_SSID.
  463. *
  464. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  465. * the driver to send opaque data from the firmware to userspace. The
  466. * driver sends an event to userspace whenever such data is received from
  467. * the firmware.
  468. *
  469. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  470. * send this opaque data for this event.
  471. *
  472. * The format of the opaque data is specific to the particular firmware
  473. * version and there is no guarantee of the format remaining same.
  474. *
  475. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  476. * The host driver selects Tx VDEV, and notifies user. The attributes
  477. * used with this event are defined in enum
  478. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  479. * This event contains Tx VDEV group information contains other VDEVs
  480. * interface index and status information.
  481. *
  482. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
  483. * configure the concurrent session policies when multiple interfaces
  484. * are (getting) active. The attributes used by this command are defined
  485. * in enum qca_wlan_vendor_attr_concurrent_policy.
  486. *
  487. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  488. * to query usable channels for different interface types such as STA,
  489. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  490. * channels in the response based on country code, different static
  491. * configurations, concurrency combinations, etc. The attributes used
  492. * with this command are defined in
  493. * enum qca_wlan_vendor_attr_usable_channels.
  494. *
  495. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  496. * to get DFS radar history from the driver to userspace. The driver
  497. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  498. * array of nested entries.
  499. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  500. * enable/disable mDNS offload to the firmware. The attributes used with
  501. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  502. *
  503. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  504. * important debug events that are required for various issues. The
  505. * attributes used with this command are defined in
  506. * enum qca_wlan_vendor_attr_diag.
  507. * This command is defined for temporary usage until this interface is
  508. * moved to the existing diag infra with cnss diag events. This command
  509. * will be deprecated soon and it is not recommended to do any further
  510. * enhancements to this command.
  511. *
  512. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  513. * to set packet monitor mode that aims to send the specified set of TX and
  514. * RX frames on the current client interface to an active monitor interface.
  515. * If this Monitor mode is set, the driver will send the configured frames,
  516. * from the interface on which the command is issued, to an active monitor
  517. * interface. The attributes used with this command are defined in
  518. * enum qca_wlan_vendor_attr_set_monitor_mode.
  519. *
  520. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  521. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  522. * to consider the possibility of sending these frames over the monitor
  523. * interface. For example, the control frames are handled with in the
  524. * hardware and thus passing such frames over the monitor interface is left
  525. * to the respective designs.
  526. *
  527. * Also, this monitor mode is governed to behave accordingly in
  528. * suspend/resume states. If the firmware handles any of such frames
  529. * in suspend state without waking up the host and if the monitor mode
  530. * is configured to notify all such frames, then the firmware is expected
  531. * to resume the host and forward the respective frames to the monitor
  532. * interface. Please note that such a request to get the frames over the
  533. * monitor interface will have a definite power implications.
  534. *
  535. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  536. * as a request to set the driver/firmware with the parameters to trigger
  537. * the roaming events, and also used by the driver/firmware to pass on the
  538. * various roam events to userspace.
  539. * Applicable only for the STA mode. The attributes used with this command
  540. * are defined in enum qca_wlan_vendor_attr_roam_events.
  541. *
  542. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  543. * rate mask config for a list of phy types. Userspace shall provide
  544. * an array of the vendor attributes defined in
  545. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  546. *
  547. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  548. * when two interfaces are active on the same band, using two different
  549. * home channels, and only supported by a single radio. In this scenario
  550. * the device must split the use of the radio between the two interfaces.
  551. * The percentage of time allocated to a given interface is the quota.
  552. * Depending on the configuration, the quota can either be fixed or
  553. * dynamic.
  554. *
  555. * When used as an event, the device will report the quota type, and for
  556. * all interfaces operating in MCC it will report the current quota.
  557. * When used as a command, the device can be configured for a specific
  558. * quota type, and in the case of a fixed quota, the quota to apply to one
  559. * of the interfaces.
  560. *
  561. * Applications can use the event to do TX bitrate control based on the
  562. * information, and can use the command to explicitly set the quota to
  563. * enhance performance in specific scenarios.
  564. *
  565. * The attributes used with this command are defined in
  566. * enum qca_wlan_vendor_attr_mcc_quota.
  567. *
  568. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
  569. * user space that the driver is ready for operations again after
  570. * recovering from internal failures. This occurs following a failure
  571. * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  572. *
  573. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
  574. * get the WLAN radio combinations matrix supported by the device which
  575. * provides the device simultaneous radio configurations such as
  576. * standalone, dual band simultaneous, and single band simultaneous.
  577. *
  578. * The attributes used with this command are defined in
  579. * enum qca_wlan_vendor_attr_radio_combination_matrix.
  580. *
  581. * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
  582. * security negotiation and key generation to user space.
  583. *
  584. * When used as an event, the driver requests userspace to trigger the PASN
  585. * authentication or dropping of a PTKSA for the indicated peer devices.
  586. * When used as a command response, userspace indicates a consolidated
  587. * status report for all the peers that were requested for.
  588. *
  589. * The attributes used with this command are defined in
  590. * enum qca_wlan_vendor_attr_pasn.
  591. *
  592. * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
  593. * secure ranging context such as TK and LTF keyseed for each peer
  594. * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
  595. *
  596. * The attributes used with this command are defined in
  597. * enum qca_wlan_vendor_attr_secure_ranging_ctx.
  598. *
  599. * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
  600. * enable/disable offload processing in firmware during system/runtime
  601. * suspend for CoAP messages (see RFC7252: The Constrained Application
  602. * Protocol) and fetch information of the CoAP messages cached during
  603. * offload processing.
  604. *
  605. * The attributes used with this command are defined in
  606. * enum qca_wlan_vendor_attr_coap_offload.
  607. *
  608. * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
  609. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  610. *
  611. * The attributes used with this event are defined in
  612. * enum qca_wlan_vendor_attr_scs_rule_config.
  613. *
  614. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
  615. * supported by the WLAN firmware.
  616. *
  617. * The attributes used with this command are defined in
  618. * enum qca_wlan_vendor_attr_sar_capability.
  619. *
  620. * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
  621. * (SR) feature. This command is used by userspace to configure SR
  622. * parameters to the driver and to get the SR related parameters and
  623. * statistics with synchronous responses from the driver.
  624. * The driver also uses this command to send asynchronous events to
  625. * userspace to indicate suspend/resume of SR feature and changes
  626. * in SR parameters.
  627. *
  628. * The attributes used with this command are defined in
  629. * enum qca_wlan_vendor_attr_sr.
  630. *
  631. * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
  632. * notify application layer about the primary netdev of an MLO connection.
  633. * In some implementations, MLO has multiple netdevs out of which one
  634. * netdev is designated as primary to provide a unified interface to the
  635. * bridge. In those implementations this event is sent on every MLO peer
  636. * connection.
  637. *
  638. * The attributes used with this event are defined in
  639. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
  640. *
  641. * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
  642. * driver to notify different AFC events to userspace. The attributes used
  643. * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
  644. *
  645. * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
  646. * userspace to deliver AFC response data to driver. The attributes used
  647. * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
  648. *
  649. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
  650. * operate in doze mode.
  651. *
  652. * Userspace uses this command to configure the AP interface to enter or
  653. * exit from doze mode. The driver sends this event after it enters or
  654. * exits the doze mode with the updated AP doze mode settings.
  655. *
  656. * The attributes used with this subcommand are defined in
  657. * enum qca_wlan_vendor_attr_dozed_ap.
  658. *
  659. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
  660. * get roam information from the driver to user space. It provides the
  661. * latest several instances of roam information cached in the driver.
  662. * The command is only used for STA mode. The attributes used with this
  663. * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
  664. */
  665. enum qca_nl80211_vendor_subcmds {
  666. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  667. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  668. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  669. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  670. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  671. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  672. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  673. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  674. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  675. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  676. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  677. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  678. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  679. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  680. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  681. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  682. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  683. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  684. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  685. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  686. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  687. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  688. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  689. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  690. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  691. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  692. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  693. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  694. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  695. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  696. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  697. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  698. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  699. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  700. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  701. /* Get Concurrency Matrix */
  702. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  703. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  704. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  705. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  706. /* Deprecated */
  707. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  708. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  709. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  710. /* Off loaded DFS events */
  711. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  712. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  713. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  714. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  715. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  716. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  717. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  718. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  719. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  720. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  721. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  722. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  723. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  724. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  725. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  726. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  727. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  728. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  729. /* Wi-Fi Configuration subcommands */
  730. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  731. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  732. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  733. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  734. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  735. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  736. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  737. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  738. /* NS Offload enable/disable cmd */
  739. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  740. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  741. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  742. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  743. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  744. /* OCB commands */
  745. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  746. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  747. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  748. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  749. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  750. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  751. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  752. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  753. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  754. /* subcommand to get link properties */
  755. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  756. /* LFR Subnet Detection */
  757. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  758. /* DBS subcommands */
  759. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  760. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  761. /* Vendor setband command */
  762. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  763. /* Vendor scan commands */
  764. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  765. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  766. /* OTA test subcommand */
  767. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  768. /* Tx power scaling subcommands */
  769. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  770. /* Tx power scaling in db subcommands */
  771. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  772. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  773. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  774. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  775. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  776. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  777. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  778. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  779. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  780. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  781. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  782. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  783. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  784. /* FTM/indoor location subcommands */
  785. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  786. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  787. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  788. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  789. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  790. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  791. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  792. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  793. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  794. /* Encrypt/Decrypt command */
  795. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  796. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  797. /* DMG low level RF sector operations */
  798. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  799. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  800. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  801. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  802. /* Configure the TDLS mode from user space */
  803. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  804. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  805. /* Vendor abort scan command */
  806. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  807. /* Set Specific Absorption Rate(SAR) Power Limits */
  808. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  809. /* External Auto channel configuration setting */
  810. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  811. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  812. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  813. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  814. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  815. /* Set the trace level for QDF */
  816. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  817. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  818. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  819. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  820. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  821. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  822. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  823. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  824. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  825. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  826. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  827. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  828. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  829. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  830. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  831. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  832. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  833. /* Wi-Fi test configuration subcommand */
  834. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  835. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  836. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  837. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  838. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  839. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  840. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  841. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  842. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  843. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  844. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  845. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  846. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  847. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  848. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  849. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  850. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  851. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  852. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  853. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  854. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  855. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  856. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  857. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  858. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  859. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
  860. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  861. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  862. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  863. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  864. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  865. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  866. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  867. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  868. /* 206..212 - reserved for QCA */
  869. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  870. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  871. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  872. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  873. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  874. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  875. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
  876. QCA_NL80211_VENDOR_SUBCMD_SR = 220,
  877. QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
  878. QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
  879. QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
  880. QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
  881. QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
  882. };
  883. enum qca_wlan_vendor_tos {
  884. QCA_WLAN_VENDOR_TOS_BK = 0,
  885. QCA_WLAN_VENDOR_TOS_BE = 1,
  886. QCA_WLAN_VENDOR_TOS_VI = 2,
  887. QCA_WLAN_VENDOR_TOS_VO = 3,
  888. };
  889. /**
  890. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  891. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  892. */
  893. enum qca_wlan_vendor_attr_active_tos {
  894. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  895. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  896. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  897. /* Flag attribute representing the start (attribute included) or stop
  898. * (attribute not included) of the respective TOS.
  899. */
  900. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  901. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  902. };
  903. enum qca_wlan_vendor_hang_reason {
  904. /* Unspecified reason */
  905. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  906. /* No Map for the MAC entry for the received frame */
  907. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  908. /* peer deletion timeout happened */
  909. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  910. /* peer unmap timeout */
  911. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  912. /* Scan request timed out */
  913. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  914. /* Consecutive Scan attempt failures */
  915. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  916. /* Unable to get the message buffer */
  917. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  918. /* Current command processing is timedout */
  919. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  920. /* Timeout for an ACK from FW for suspend request */
  921. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  922. /* Timeout for an ACK from FW for resume request */
  923. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  924. /* Transmission timeout for consecutive data frames */
  925. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  926. /* Timeout for the TX completion status of data frame */
  927. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  928. /* DXE failure for tx/Rx, DXE resource unavailability */
  929. QCA_WLAN_HANG_DXE_FAILURE = 12,
  930. /* WMI pending commands exceed the maximum count */
  931. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  932. /* Timeout for peer STA connection accept command's response from the
  933. * FW in AP mode. This command is triggered when a STA (peer) connects
  934. * to AP (DUT).
  935. */
  936. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  937. /* Timeout for the AP connection accept command's response from the FW
  938. * in STA mode. This command is triggered when the STA (DUT) connects
  939. * to an AP (peer).
  940. */
  941. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  942. /* Timeout waiting for the response to the MAC HW mode change command
  943. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  944. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  945. * Channel Concurrency) mode.
  946. */
  947. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  948. /* Timeout waiting for the response from FW to configure the MAC HW's
  949. * mode. This operation is to configure the single/two MACs in either
  950. * SCC/MCC/DBS mode.
  951. */
  952. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  953. /* Timeout waiting for response of VDEV start command from the FW */
  954. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  955. /* Timeout waiting for response of VDEV restart command from the FW */
  956. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  957. /* Timeout waiting for response of VDEV stop command from the FW */
  958. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  959. /* Timeout waiting for response of VDEV delete command from the FW */
  960. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  961. /* Timeout waiting for response of peer all delete request command to
  962. * the FW on a specific VDEV.
  963. */
  964. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  965. /* WMI sequence mismatch between WMI command and Tx completion */
  966. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  967. /* Write to Device HAL register failed */
  968. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  969. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  970. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  971. /* Bus failure */
  972. QCA_WLAN_HANG_BUS_FAILURE = 26,
  973. /* tasklet/credit latency found */
  974. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  975. /* MSDU buffers received in REO error ring, exceeding certain
  976. * threshold
  977. */
  978. QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
  979. /* Vdev SM is out of sync and connect req received
  980. * when already connected
  981. */
  982. QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
  983. /* Stats request timeout */
  984. QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
  985. /* Leak in TX descriptor for a packet */
  986. QCA_WLAN_HANG_TX_DESC_LEAK = 31,
  987. /* Scheduler watchdog timeout */
  988. QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
  989. /* Failed to send self peer deletion cmd to firmware */
  990. QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
  991. /* Received del self sta without del bss */
  992. QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
  993. /* Recovery needed when sending flush completion to userspace */
  994. QCA_WLAN_HANG_FLUSH_LOGS = 35,
  995. /* Host wakeup because of page fault */
  996. QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
  997. };
  998. /**
  999. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  1000. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  1001. */
  1002. enum qca_wlan_vendor_attr_hang {
  1003. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  1004. /*
  1005. * Reason for the Hang - Represented by enum
  1006. * qca_wlan_vendor_hang_reason.
  1007. */
  1008. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  1009. /* The binary blob data associated with the hang reason specified by
  1010. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  1011. * contain the required dump to analyze the reason for the hang.
  1012. * NLA_BINARY attribute, the max size is 1024 bytes.
  1013. */
  1014. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  1015. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  1016. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  1017. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  1018. };
  1019. /**
  1020. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  1021. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  1022. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  1023. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  1024. level needs to be updated.
  1025. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  1026. * to be set.
  1027. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  1028. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  1029. */
  1030. enum qca_vendor_attr_set_trace_level {
  1031. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  1032. /*
  1033. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  1034. * attributes.
  1035. */
  1036. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  1037. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  1038. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  1039. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  1040. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  1041. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  1042. };
  1043. /**
  1044. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  1045. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  1046. * station information. The information obtained through these
  1047. * commands signify the current info in connected state and
  1048. * latest cached information during the connected state , if queried
  1049. * when in disconnected state.
  1050. *
  1051. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  1052. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  1053. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  1054. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  1055. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  1056. */
  1057. enum qca_wlan_vendor_attr_get_station {
  1058. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  1059. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  1060. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  1061. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  1062. /* keep last */
  1063. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  1064. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  1065. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  1066. };
  1067. /**
  1068. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  1069. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  1070. *
  1071. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  1072. * Used in STA mode. This attribute represents the list of channel center
  1073. * frequencies in MHz (u32) the station has learnt during the last connection
  1074. * or roaming attempt. This information shall not signify the channels for
  1075. * an explicit scan request from the user space. Host drivers can update this
  1076. * information to the user space in both connected and disconnected state.
  1077. * In the disconnected state this information shall signify the channels
  1078. * scanned in the last connection/roam attempt that lead to the disconnection.
  1079. */
  1080. enum qca_wlan_vendor_attr_update_sta_info {
  1081. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1082. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1083. /* keep last */
  1084. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1085. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1086. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1087. };
  1088. /**
  1089. * enum qca_wlan_802_11_mode - dot11 mode
  1090. * @QCA_WLAN_802_11_MODE_11B: mode B
  1091. * @QCA_WLAN_802_11_MODE_11G: mode G
  1092. * @QCA_WLAN_802_11_MODE_11N: mode N
  1093. * @QCA_WLAN_802_11_MODE_11A: mode A
  1094. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1095. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1096. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1097. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1098. */
  1099. enum qca_wlan_802_11_mode {
  1100. QCA_WLAN_802_11_MODE_11B,
  1101. QCA_WLAN_802_11_MODE_11G,
  1102. QCA_WLAN_802_11_MODE_11N,
  1103. QCA_WLAN_802_11_MODE_11A,
  1104. QCA_WLAN_802_11_MODE_11AC,
  1105. QCA_WLAN_802_11_MODE_11AX,
  1106. QCA_WLAN_802_11_MODE_11BE,
  1107. QCA_WLAN_802_11_MODE_INVALID,
  1108. };
  1109. /**
  1110. * enum qca_wlan_auth_type - Authentication key management type
  1111. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1112. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1113. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1114. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1115. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1116. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1117. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1118. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1119. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1120. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1121. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1122. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1123. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1124. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1125. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1126. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1127. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1128. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1129. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1130. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1131. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1132. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1133. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1134. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1135. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1136. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1137. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1138. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1139. */
  1140. enum qca_wlan_auth_type {
  1141. QCA_WLAN_AUTH_TYPE_INVALID,
  1142. QCA_WLAN_AUTH_TYPE_OPEN,
  1143. QCA_WLAN_AUTH_TYPE_SHARED,
  1144. QCA_WLAN_AUTH_TYPE_WPA,
  1145. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1146. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1147. QCA_WLAN_AUTH_TYPE_RSN,
  1148. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1149. QCA_WLAN_AUTH_TYPE_FT,
  1150. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1151. QCA_WLAN_AUTH_TYPE_SHA256,
  1152. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1153. QCA_WLAN_AUTH_TYPE_WAI,
  1154. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1155. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1156. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1157. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1158. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1159. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1160. QCA_WLAN_AUTH_TYPE_SAE,
  1161. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1162. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1163. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1164. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1165. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1166. QCA_WLAN_AUTH_TYPE_OWE,
  1167. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1168. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1169. };
  1170. /**
  1171. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1172. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1173. *
  1174. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1175. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1176. * Get the standard NL attributes Nested with this attribute.
  1177. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1178. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1179. * NL80211_ATTR_STA_INFO
  1180. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1181. * Get the standard NL attributes Nested with this attribute.
  1182. * Ex : Query HT/VHT Capability advertized by the AP.
  1183. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1184. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1185. * Number of successful Roam attempts before a
  1186. * disconnect, Unsigned 32 bit value
  1187. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1188. * Authentication Key Management Type used for the connected session.
  1189. * Signified by enum qca_wlan_auth_type
  1190. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1191. * connected Session, signified by enum qca_wlan_802_11_mode
  1192. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1193. * HS20 Indication Element
  1194. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1195. * Status Code Corresponding to the Association Failure.
  1196. * Unsigned 32 bit value.
  1197. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1198. * Max phy rate of remote station
  1199. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1200. * TX packets to remote station
  1201. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1202. * TX bytes to remote station
  1203. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1204. * RX packets from remote station
  1205. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1206. * RX bytes from remote station
  1207. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1208. * Last TX rate with remote station
  1209. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1210. * Last RX rate with remote station
  1211. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1212. * Remote station enable/disable WMM
  1213. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1214. * Remote station connection mode
  1215. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1216. * Remote station AMPDU enable/disable
  1217. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1218. * Remote station TX Space-time block coding enable/disable
  1219. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1220. * Remote station RX Space-time block coding enable/disable
  1221. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1222. * Remote station channel width
  1223. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1224. * Remote station short GI enable/disable
  1225. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1226. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1227. * containing the raw information elements from Beacon frames. Represents
  1228. * the Beacon frames of the current BSS in the connected state. When queried
  1229. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1230. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1231. * disconnect reason for the last disconnection if the disconnection is
  1232. * triggered from the host driver. The values are referred from
  1233. * enum qca_disconnect_reason_codes. If the disconnect is from
  1234. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1235. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1236. * Applicable in AP mode only. It contains the raw information elements
  1237. * from assoc request frame of the given peer station. User queries with the
  1238. * mac address of peer station when it disconnects. Host driver sends
  1239. * assoc request frame of the given station. Host driver doesn't provide
  1240. * the IEs when the peer station is still in connected state.
  1241. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1242. * sending HE operation info.
  1243. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1244. *
  1245. */
  1246. enum qca_wlan_vendor_attr_get_station_info {
  1247. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1248. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1249. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1250. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1251. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1252. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1253. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1254. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1255. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1256. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1257. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1258. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1259. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1260. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1261. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1262. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1263. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1264. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1265. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1266. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1267. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1268. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1269. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1270. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1271. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1272. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1273. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1274. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1275. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1276. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1277. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1278. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1279. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1280. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1281. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1282. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1283. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1284. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1285. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1286. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1287. /* keep last */
  1288. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1289. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1290. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1291. };
  1292. /**
  1293. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  1294. *
  1295. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  1296. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  1297. * value
  1298. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  1299. * keep as unsigned for now
  1300. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  1301. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  1302. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  1303. * in KBPS
  1304. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  1305. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  1306. */
  1307. enum qca_wlan_vendor_attr_tdls_enable {
  1308. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  1309. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  1310. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  1311. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  1312. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  1313. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  1314. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  1315. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  1316. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  1317. };
  1318. /**
  1319. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  1320. *
  1321. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  1322. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  1323. * 8-bit value
  1324. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  1325. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  1326. */
  1327. enum qca_wlan_vendor_attr_tdls_disable {
  1328. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  1329. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  1330. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  1331. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  1332. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  1333. };
  1334. /**
  1335. * qca_chip_power_save_failure_reason: Power save failure reason
  1336. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1337. * due to protocol/module.
  1338. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1339. * due to hardware
  1340. */
  1341. enum qca_chip_power_save_failure_reason {
  1342. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1343. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1344. };
  1345. /**
  1346. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1347. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1348. * information leading to the power save failure.
  1349. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1350. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1351. * represented by enum qca_chip_power_save_failure_reason
  1352. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1353. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1354. */
  1355. enum qca_attr_chip_power_save_failure {
  1356. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1357. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1358. /* keep last */
  1359. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1360. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1361. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1362. };
  1363. /**
  1364. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1365. *
  1366. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1367. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1368. * 8-bit value
  1369. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1370. * unsigned 32-bit value
  1371. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1372. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1373. * unsigned 32-bit value
  1374. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1375. * class, unsigned 32-bit value
  1376. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1377. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1378. */
  1379. enum qca_wlan_vendor_attr_tdls_get_status {
  1380. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1381. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1382. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1383. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1384. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1385. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1386. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1387. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1388. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1389. };
  1390. /**
  1391. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1392. *
  1393. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1394. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1395. * 8-bit value
  1396. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1397. * unsigned 32-bit value
  1398. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1399. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1400. * unsigned 32-bit value
  1401. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1402. * operating class, unsigned 32-bit value
  1403. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1404. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1405. */
  1406. enum qca_wlan_vendor_attr_tdls_state {
  1407. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1408. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1409. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1410. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1411. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1412. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1413. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1414. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1415. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  1416. };
  1417. /* enum's to provide TDLS capabilities */
  1418. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1419. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1420. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1421. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1422. /* keep last */
  1423. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1424. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1425. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1426. };
  1427. /* Compatibility defines for previously used subcmd names.
  1428. * These values should not be used in any new implementation.
  1429. */
  1430. #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
  1431. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
  1432. enum qca_wlan_vendor_attr {
  1433. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1434. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1435. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1436. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1437. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1438. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1439. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1440. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1441. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1442. /*
  1443. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1444. * by enum qca_roaming_policy.
  1445. */
  1446. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1447. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1448. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1449. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1450. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1451. /*
  1452. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1453. * Unsigned 32-bit value.
  1454. */
  1455. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1456. /* Unsigned 32-bit value */
  1457. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1458. /* Unsigned 32-bit value */
  1459. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1460. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1461. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1462. * is deprecated. Recommendation is to use
  1463. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1464. * using both the attributes, the ones configured through
  1465. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1466. */
  1467. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1468. /* Dummy (NOP) attribute for 64 bit padding */
  1469. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1470. /*
  1471. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1472. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1473. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1474. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1475. */
  1476. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1477. /*
  1478. * Indoor location capabilities, returned by
  1479. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1480. * see enum qca_wlan_vendor_attr_loc_capa.
  1481. */
  1482. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1483. /*
  1484. * Array of nested attributes containing information about each peer
  1485. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1486. * for supported attributes for each peer.
  1487. */
  1488. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1489. /*
  1490. * Array of nested attributes containing measurement results for
  1491. * one or more peers, reported by the
  1492. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1493. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1494. * attributes.
  1495. */
  1496. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1497. /* Flag attribute for enabling or disabling responder functionality. */
  1498. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1499. /*
  1500. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1501. * command to specify the LCI report that will be sent by
  1502. * the responder during a measurement exchange. The format is
  1503. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1504. */
  1505. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1506. /*
  1507. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1508. * command to specify the location civic report that will
  1509. * be sent by the responder during a measurement exchange.
  1510. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1511. */
  1512. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1513. /*
  1514. * Session/measurement completion status code,
  1515. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1516. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1517. * see enum qca_vendor_attr_loc_session_status.
  1518. */
  1519. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1520. /*
  1521. * Initial dialog token used by responder (0 if not specified),
  1522. * unsigned 8 bit value.
  1523. */
  1524. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1525. /*
  1526. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1527. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1528. * AOA measurements are needed as part of an FTM session.
  1529. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1530. * enum qca_wlan_vendor_attr_aoa_type.
  1531. */
  1532. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1533. /*
  1534. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1535. * by indoor location measurements. Refers to the antenna
  1536. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1537. */
  1538. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1539. /*
  1540. * AOA measurement data. Its contents depends on the AOA measurement
  1541. * type and antenna array mask:
  1542. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1543. * phase of the strongest CIR path for each antenna in the measured
  1544. * array(s).
  1545. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1546. * values, phase and amplitude of the strongest CIR path for each
  1547. * antenna in the measured array(s).
  1548. */
  1549. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1550. /*
  1551. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1552. * to specify the chain number (unsigned 32 bit value) to inquire
  1553. * the corresponding antenna RSSI value */
  1554. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1555. /*
  1556. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1557. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1558. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1559. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1560. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1561. /*
  1562. * TSF timer value, unsigned 64 bit value.
  1563. * May be returned by various commands.
  1564. */
  1565. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1566. /*
  1567. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1568. * 0..127 for sector indices or 65535 as special value used to
  1569. * unlock sector selection in
  1570. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1571. */
  1572. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1573. /*
  1574. * DMG RF sector type, unsigned 8 bit value. One of the values
  1575. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1576. */
  1577. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1578. /*
  1579. * Bitmask of DMG RF modules for which information is requested. Each
  1580. * bit corresponds to an RF module with the same index as the bit
  1581. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1582. * all DMG chips currently have up to 8 RF modules.
  1583. */
  1584. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1585. /*
  1586. * Array of nested attributes where each entry is DMG RF sector
  1587. * configuration for a single RF module.
  1588. * Attributes for each entry are taken from enum
  1589. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1590. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1591. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1592. */
  1593. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1594. /*
  1595. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1596. * to report frame aggregation statistics to userspace.
  1597. */
  1598. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1599. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1600. /*
  1601. * Unsigned 8-bit value representing MBO transition reason code as
  1602. * provided by the AP used by subcommand
  1603. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1604. * specified by the userspace in the request to the driver.
  1605. */
  1606. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1607. /*
  1608. * Array of nested attributes, BSSID and status code, used by subcommand
  1609. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1610. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1611. * The userspace space specifies the list/array of candidate BSSIDs in
  1612. * the order of preference in the request. The driver specifies the
  1613. * status code, for each BSSID in the list, in the response. The
  1614. * acceptable candidates are listed in the order preferred by the
  1615. * driver.
  1616. */
  1617. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1618. /*
  1619. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1620. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1621. */
  1622. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1623. /*
  1624. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1625. * to define the number of antennas to use for BRP.
  1626. * different purpose in each ANT_LIMIT_MODE:
  1627. * DISABLE - ignored
  1628. * EFFECTIVE - upper limit to number of antennas to be used
  1629. * FORCE - exact number of antennas to be used
  1630. * unsigned 8 bit value
  1631. */
  1632. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1633. /*
  1634. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1635. * to report the corresponding antenna index to the chain RSSI value
  1636. */
  1637. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1638. /*
  1639. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1640. * to report the specific antenna EVM value (unsigned 32 bit value).
  1641. * With a determinate group of antennas, the driver specifies the
  1642. * EVM value for each antenna ID, and application extract them
  1643. * in user space.
  1644. */
  1645. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1646. /*
  1647. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1648. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1649. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1650. */
  1651. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1652. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1653. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1654. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1655. * This attribute shall consider the bitmask combinations to define
  1656. * the respective Band combinations and always takes precedence over
  1657. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1658. */
  1659. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1660. /* keep last */
  1661. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1662. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1663. };
  1664. enum qca_wlan_vendor_attr_extscan_config_params {
  1665. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1666. /* Unsigned 32-bit value */
  1667. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1668. /*
  1669. * Attributes for data used by
  1670. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1671. */
  1672. /* Unsigned 32-bit value */
  1673. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1674. = 2,
  1675. /* Unsigned 32-bit value */
  1676. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1677. = 3,
  1678. /*
  1679. * Attributes for input params used by
  1680. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1681. */
  1682. /* Unsigned 32-bit value; channel frequency */
  1683. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1684. /* Unsigned 32-bit value; dwell time in ms. */
  1685. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1686. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1687. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1688. /* Unsigned 8-bit value; channel class */
  1689. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1690. /* Unsigned 8-bit value; bucket index, 0 based */
  1691. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1692. /* Unsigned 8-bit value; band. */
  1693. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1694. /* Unsigned 32-bit value; desired period, in ms. */
  1695. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1696. /* Unsigned 8-bit value; report events semantics. */
  1697. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1698. /*
  1699. * Unsigned 32-bit value. Followed by a nested array of
  1700. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1701. */
  1702. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1703. /*
  1704. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1705. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1706. */
  1707. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1708. /* Unsigned 32-bit value; base timer period in ms. */
  1709. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1710. /*
  1711. * Unsigned 32-bit value; number of APs to store in each scan in the
  1712. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1713. */
  1714. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1715. /*
  1716. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1717. * up AP.
  1718. */
  1719. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1720. = 16,
  1721. /*
  1722. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1723. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1724. * of the array is determined by NUM_BUCKETS.
  1725. */
  1726. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1727. /*
  1728. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1729. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1730. */
  1731. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1732. /* Unsigned 8-bit value */
  1733. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1734. = 19,
  1735. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1736. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1737. = 20,
  1738. /* An array of 6 x unsigned 8-bit value */
  1739. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1740. /* Signed 32-bit value */
  1741. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1742. /* Signed 32-bit value */
  1743. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1744. /* Unsigned 32-bit value */
  1745. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1746. /*
  1747. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1748. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1749. * array is determined by NUM_AP.
  1750. */
  1751. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1752. /*
  1753. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1754. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1755. */
  1756. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1757. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1758. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1759. = 27,
  1760. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1761. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1762. = 28,
  1763. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1764. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1765. /*
  1766. * Unsigned 32-bit value; number of APs. Followed by an array of
  1767. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1768. */
  1769. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1770. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1771. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1772. = 31,
  1773. /*
  1774. * Unsigned 32-bit value. If max_period is non zero or different than
  1775. * period, then this bucket is an exponential backoff bucket.
  1776. */
  1777. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1778. /* Unsigned 32-bit value. */
  1779. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1780. /*
  1781. * Unsigned 32-bit value. For exponential back off bucket, number of
  1782. * scans to perform for a given period.
  1783. */
  1784. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1785. /*
  1786. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1787. * many scans.
  1788. */
  1789. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1790. = 35,
  1791. /*
  1792. * Attributes for data used by
  1793. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1794. */
  1795. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1796. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1797. = 36,
  1798. /*
  1799. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1800. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1801. * size of the array is determined by NUM_SSID.
  1802. */
  1803. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1804. /*
  1805. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1806. * attributes.
  1807. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1808. */
  1809. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1810. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1811. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1812. /* Unsigned 8-bit value */
  1813. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1814. /* Signed 32-bit value */
  1815. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1816. /* Signed 32-bit value */
  1817. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1818. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1819. */
  1820. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1821. /* keep last */
  1822. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1823. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1824. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1825. };
  1826. enum qca_wlan_vendor_attr_extscan_results {
  1827. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1828. /*
  1829. * Unsigned 32-bit value; must match the request Id supplied by
  1830. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1831. */
  1832. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1833. /*
  1834. * Unsigned 32-bit value; used to indicate the status response from
  1835. * firmware/driver for the vendor sub-command.
  1836. */
  1837. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1838. /*
  1839. * EXTSCAN Valid Channels attributes */
  1840. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1841. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1842. /*
  1843. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1844. * representing channel numbers.
  1845. */
  1846. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1847. /* EXTSCAN Capabilities attributes */
  1848. /* Unsigned 32-bit value */
  1849. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1850. /* Unsigned 32-bit value */
  1851. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1852. /* Unsigned 32-bit value */
  1853. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1854. = 7,
  1855. /* Unsigned 32-bit value */
  1856. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1857. = 8,
  1858. /* Signed 32-bit value */
  1859. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1860. = 9,
  1861. /* Unsigned 32-bit value */
  1862. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1863. /* Unsigned 32-bit value */
  1864. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1865. = 11,
  1866. /* Unsigned 32-bit value */
  1867. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1868. = 12,
  1869. /*
  1870. * EXTSCAN Attributes used with
  1871. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1872. */
  1873. /* Unsigned 32-bit value */
  1874. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1875. /*
  1876. * EXTSCAN attributes used with
  1877. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1878. */
  1879. /*
  1880. * An array of NUM_RESULTS_AVAILABLE x
  1881. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1882. */
  1883. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1884. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1885. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1886. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1887. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1888. /* An array of 6 x unsigned 8-bit value */
  1889. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1890. /* Unsigned 32-bit value; channel frequency in MHz */
  1891. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1892. /* Signed 32-bit value */
  1893. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1894. /* Unsigned 32-bit value */
  1895. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1896. /* Unsigned 32-bit value */
  1897. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1898. /* Unsigned 16-bit value */
  1899. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1900. /* Unsigned 16-bit value */
  1901. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1902. /* Unsigned 32-bit value; size of the IE DATA blob */
  1903. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1904. /*
  1905. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1906. * information elements found in the beacon; this data should be a
  1907. * packed list of wifi_information_element objects, one after the
  1908. * other.
  1909. */
  1910. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1911. /*
  1912. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1913. * available.
  1914. */
  1915. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1916. /*
  1917. * EXTSCAN attributes for
  1918. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1919. */
  1920. /* Unsigned 8-bit value */
  1921. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1922. /* Unsigned 32-bit value */
  1923. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1924. /*
  1925. * EXTSCAN attributes for
  1926. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  1927. */
  1928. /*
  1929. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1930. * to indicate number of results.
  1931. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1932. * list of results.
  1933. */
  1934. /*
  1935. * EXTSCAN attributes for
  1936. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  1937. */
  1938. /* An array of 6 x unsigned 8-bit value */
  1939. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  1940. /* Unsigned 32-bit value */
  1941. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  1942. = 30,
  1943. /* Unsigned 32-bit value. */
  1944. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  1945. = 31,
  1946. /*
  1947. * A nested array of signed 32-bit RSSI values. Size of the array is
  1948. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  1949. */
  1950. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  1951. = 32,
  1952. /*
  1953. * EXTSCAN attributes used with
  1954. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  1955. */
  1956. /*
  1957. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1958. * to indicate number of extscan cached results returned.
  1959. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  1960. * the list of extscan cached results.
  1961. */
  1962. /*
  1963. * An array of NUM_RESULTS_AVAILABLE x
  1964. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  1965. */
  1966. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  1967. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  1968. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  1969. /*
  1970. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  1971. */
  1972. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  1973. /*
  1974. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1975. * to indicate number of wifi scan results/bssids retrieved by the scan.
  1976. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1977. * list of wifi scan results returned for each cached result block.
  1978. */
  1979. /*
  1980. * EXTSCAN attributes for
  1981. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  1982. */
  1983. /*
  1984. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  1985. * number of results.
  1986. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1987. * list of wifi scan results returned for each
  1988. * wifi_passpoint_match_result block.
  1989. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  1990. */
  1991. /*
  1992. * EXTSCAN attributes for
  1993. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  1994. */
  1995. /* Unsigned 32-bit value */
  1996. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  1997. = 36,
  1998. /*
  1999. * A nested array of
  2000. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  2001. * attributes. Array size =
  2002. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  2003. */
  2004. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  2005. /* Unsigned 32-bit value; network block id for the matched network */
  2006. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  2007. /*
  2008. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2009. * list of wifi scan results returned for each
  2010. * wifi_passpoint_match_result block.
  2011. */
  2012. /* Unsigned 32-bit value */
  2013. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  2014. /*
  2015. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  2016. * ANQP data in the information_element format.
  2017. */
  2018. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  2019. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2020. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  2021. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2022. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  2023. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2024. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  2025. = 43,
  2026. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2027. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  2028. = 44,
  2029. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  2030. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  2031. /* keep last */
  2032. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  2033. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  2034. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  2035. };
  2036. /**
  2037. * enum qca_vendor_interop_issues_ap_type - interop issues type
  2038. * This enum defines the valid set of values of interop issues type. These
  2039. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  2040. *
  2041. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  2042. * when the STA's Qpower feature is enabled.
  2043. */
  2044. enum qca_vendor_interop_issues_ap_type {
  2045. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  2046. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  2047. };
  2048. /**
  2049. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  2050. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  2051. *
  2052. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  2053. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  2054. * 32-bit unsigned value, The type defined in enum
  2055. * qca_vendor_interop_issues_ap_type are used.
  2056. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  2057. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  2058. * it is present and mandatory for the command but is not used for
  2059. * the event since only a single BSSID is reported in an event.
  2060. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  2061. * 6-byte MAC address. It is used within the nested
  2062. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  2063. * and without such encapsulation in the event case.
  2064. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  2065. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  2066. */
  2067. enum qca_vendor_attr_interop_issues_ap {
  2068. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  2069. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  2070. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  2071. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  2072. /* keep last */
  2073. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  2074. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  2075. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  2076. };
  2077. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  2078. /**
  2079. * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
  2080. *
  2081. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
  2082. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
  2083. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
  2084. * Aggressive stats gathering
  2085. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
  2086. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
  2087. */
  2088. enum qca_wlan_vendor_attr_ll_stats_set {
  2089. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  2090. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  2091. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
  2092. /* keep last */
  2093. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  2094. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2095. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
  2096. };
  2097. /**
  2098. * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
  2099. *
  2100. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
  2101. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
  2102. * provided by the caller issuing the GET stats command. When reporting
  2103. * the stats results, the driver uses the same value to indicate which
  2104. * GET request the results correspond to.
  2105. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
  2106. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  2107. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  2108. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
  2109. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
  2110. */
  2111. enum qca_wlan_vendor_attr_ll_stats_get {
  2112. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2113. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
  2114. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
  2115. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2116. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2117. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
  2118. };
  2119. /**
  2120. * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
  2121. *
  2122. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
  2123. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
  2124. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
  2125. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  2126. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  2127. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
  2128. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
  2129. */
  2130. enum qca_wlan_vendor_attr_ll_stats_clr {
  2131. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2132. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
  2133. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
  2134. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
  2135. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
  2136. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2137. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2138. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
  2139. };
  2140. /**
  2141. * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
  2142. *
  2143. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
  2144. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
  2145. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
  2146. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
  2147. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
  2148. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
  2149. */
  2150. enum qca_wlan_vendor_attr_ll_stats_results_type {
  2151. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
  2152. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
  2153. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
  2154. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
  2155. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
  2156. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
  2157. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
  2158. };
  2159. enum qca_wlan_vendor_attr_ll_stats_results {
  2160. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2161. /* Unsigned 32bit value. Used by the driver; must match the request id
  2162. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2163. */
  2164. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2165. /* Unsigned 32 bit value */
  2166. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2167. /* Unsigned 32 bit value */
  2168. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2169. /* Unsigned 32 bit value */
  2170. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2171. /* Unsigned 32 bit value */
  2172. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2173. /* Signed 32 bit value */
  2174. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2175. /* Signed 32 bit value */
  2176. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2177. /* Signed 32 bit value */
  2178. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2179. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2180. * nested within the interface stats.
  2181. */
  2182. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2183. * Type = enum wifi_interface_mode.
  2184. */
  2185. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2186. /* Interface MAC address. An array of 6 Unsigned int8 */
  2187. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2188. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2189. * AUTHENTICATING, etc. valid for STA, CLI only.
  2190. */
  2191. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2192. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2193. */
  2194. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2195. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2196. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2197. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2198. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2199. /* BSSID. An array of 6 unsigned 8 bit values */
  2200. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2201. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2202. * values.
  2203. */
  2204. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2205. /* Country string for this association. An array of 3 unsigned 8 bit
  2206. * values.
  2207. */
  2208. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2209. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2210. * be nested within the interface stats.
  2211. */
  2212. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2213. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2214. /* Unsigned int 32 value corresponding to respective AC */
  2215. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2216. /* Unsigned int 32 value corresponding to respective AC */
  2217. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2218. /* Unsigned int 32 value corresponding to respective AC */
  2219. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2220. /* Unsigned int 32 value corresponding to respective AC */
  2221. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2222. /* Unsigned int 32 value corresponding to respective AC */
  2223. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2224. /* Unsigned int 32 value corresponding to respective AC */
  2225. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2226. /* Unsigned int 32 value corresponding to respective AC */
  2227. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2228. /* Unsigned int 32 value corresponding to respective AC */
  2229. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2230. /* Unsigned int 32 value corresponding to respective AC */
  2231. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2232. /* Unsigned int 32 values corresponding to respective AC */
  2233. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2234. /* Unsigned int 32 values corresponding to respective AC */
  2235. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2236. /* Unsigned int 32 values corresponding to respective AC */
  2237. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2238. /* Unsigned int 32 values corresponding to respective AC */
  2239. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2240. /* Unsigned int 32 values corresponding to respective AC */
  2241. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2242. /* Unsigned 32 bit value. Number of peers */
  2243. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2244. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2245. * nested within the interface stats.
  2246. */
  2247. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2248. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2249. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2250. * 8 bit values.
  2251. */
  2252. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2253. /* Unsigned int 32 bit value representing capabilities corresponding
  2254. * to respective peer.
  2255. */
  2256. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2257. /* Unsigned 32 bit value. Number of rates */
  2258. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2259. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2260. * are nested within the rate stat.
  2261. */
  2262. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2263. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2264. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2265. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2266. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2267. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2268. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2269. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2270. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2271. */
  2272. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2273. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2274. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2275. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2276. * nested within the peer info stats.
  2277. */
  2278. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2279. * packets, i.e., with ACK received corresponding to the respective
  2280. * rate.
  2281. */
  2282. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2283. /* Unsigned int 32 bit value. Number of received data packets
  2284. * corresponding to the respective rate.
  2285. */
  2286. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2287. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2288. * received corresponding to the respective rate.
  2289. */
  2290. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2291. /* Unsigned int 32 bit value. Total number of data packet retries for
  2292. * the respective rate.
  2293. */
  2294. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2295. /* Unsigned int 32 bit value. Total number of short data packet retries
  2296. * for the respective rate.
  2297. */
  2298. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2299. /* Unsigned int 32 bit value. Total number of long data packet retries
  2300. * for the respective rate.
  2301. */
  2302. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2303. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2304. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2305. * accruing over time.
  2306. */
  2307. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2308. /* Unsigned 32 bit value. Total number of msecs the radio is
  2309. * transmitting accruing over time.
  2310. */
  2311. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2312. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2313. * receive accruing over time.
  2314. */
  2315. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2316. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2317. * to all scan accruing over time.
  2318. */
  2319. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2320. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2321. * to NAN accruing over time.
  2322. */
  2323. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2324. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2325. * to GSCAN accruing over time.
  2326. */
  2327. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2328. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2329. * to roam scan accruing over time.
  2330. */
  2331. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2332. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2333. * to PNO scan accruing over time.
  2334. */
  2335. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2336. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2337. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2338. */
  2339. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2340. /* Unsigned 32 bit value. Number of channels. */
  2341. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2342. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2343. * be nested within the channel stats.
  2344. */
  2345. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2346. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2347. /* Unsigned 32 bit value. Primary 20 MHz channel. */
  2348. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2349. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2350. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2351. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2352. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2353. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2354. * nested within the radio stats.
  2355. */
  2356. /* Unsigned int 32 bit value representing total number of msecs the
  2357. * radio is awake on that channel accruing over time, corresponding to
  2358. * the respective channel.
  2359. */
  2360. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2361. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2362. * register is busy accruing over time corresponding to the respective
  2363. * channel.
  2364. */
  2365. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2366. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2367. /* Signifies the nested list of channel attributes
  2368. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2369. */
  2370. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2371. /* Signifies the nested list of peer info attributes
  2372. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
  2373. */
  2374. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2375. /* Signifies the nested list of rate info attributes
  2376. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2377. */
  2378. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2379. /* Signifies the nested list of wmm info attributes
  2380. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2381. */
  2382. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2383. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2384. * that more stats, e.g., peers or radio, are to follow in the next
  2385. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2386. * Otherwise, it is set to 0.
  2387. */
  2388. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2389. /* Unsigned 64 bit value */
  2390. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2391. /* Unsigned 32 bit value */
  2392. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2393. /* Unsigned 32 bit value */
  2394. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2395. /* Unsigned 32 bit value */
  2396. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2397. /* Unsigned 32 bit value */
  2398. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2399. /* Unsigned 32 bit value */
  2400. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2401. /* Number of msecs the radio spent in transmitting for each power level
  2402. */
  2403. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2404. /* Unsigned 32 bit value */
  2405. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2406. /* Unsigned 32 bit value */
  2407. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2408. /* Unsigned 32 bit value */
  2409. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2410. /* Unsigned 32 bit value */
  2411. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2412. /* Unsigned int 32 value.
  2413. * Pending MSDUs corresponding to respective AC.
  2414. */
  2415. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2416. /* u32 value representing total time in milliseconds for which the radio
  2417. * is transmitting on this channel. This attribute will be nested
  2418. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2419. */
  2420. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2421. /* u32 value representing total time in milliseconds for which the radio
  2422. * is receiving all 802.11 frames intended for this device on this
  2423. * channel. This attribute will be nested within
  2424. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2425. */
  2426. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2427. /* u8 value representing the channel load percentage. Possible values
  2428. * are 0-100.
  2429. */
  2430. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2431. /* u8 value representing the time slicing duty cycle percentage.
  2432. * Possible values are 0-100.
  2433. */
  2434. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2435. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2436. * from the associated AP and indicate buffered unicast frame(s) for us
  2437. * in the TIM element.
  2438. */
  2439. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2440. /* Unsigned 32 bit value. The total number of Beacon frames received
  2441. * from the associated AP that have wrongly indicated buffered unicast
  2442. * traffic in the TIM element for us.
  2443. * Below scenarios will be considered as wrong TIM element beacon:
  2444. * 1) The related TIM element is set in the beacon for STA but STA
  2445. * doesn’t receive any unicast data after this beacon.
  2446. * 2) The related TIM element is still set in the beacon for STA
  2447. * after STA has indicated power save exit by QoS Null Data frame.
  2448. */
  2449. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2450. /* keep last */
  2451. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2452. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2453. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2454. };
  2455. enum qca_wlan_vendor_attr_ll_stats_type {
  2456. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2457. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2458. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2459. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2460. /* keep last */
  2461. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2462. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2463. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2464. };
  2465. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2466. /**
  2467. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2468. *
  2469. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2470. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2471. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2472. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2473. */
  2474. enum qca_wlan_vendor_attr_get_supported_features {
  2475. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2476. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2477. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2478. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2479. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2480. };
  2481. /**
  2482. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2483. *
  2484. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2485. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2486. * value
  2487. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2488. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2489. */
  2490. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2491. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2492. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2493. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2494. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2495. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2496. };
  2497. /**
  2498. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2499. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2500. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2501. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2502. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2503. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2504. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2505. */
  2506. enum qca_wlan_vendor_scan_priority {
  2507. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2508. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2509. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2510. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2511. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2512. };
  2513. /**
  2514. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2515. *
  2516. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2517. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2518. * with frequencies to be scanned (in MHz)
  2519. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2520. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2521. * rates to be included
  2522. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2523. * at non CCK rate in 2GHz band
  2524. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2525. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2526. * driver for the specific scan request
  2527. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2528. * request decoded as in enum scan_status
  2529. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2530. * scan flag is set
  2531. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2532. * randomisation
  2533. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2534. * specific BSSID to scan for.
  2535. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2536. * microseconds. This is a common value which applies across all
  2537. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2538. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2539. * other scan requests. It is a u32 attribute and takes values from enum
  2540. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2541. * If this attribute is not configured, the driver shall use
  2542. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2543. */
  2544. enum qca_wlan_vendor_attr_scan {
  2545. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2546. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2547. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2548. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2549. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2550. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2551. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2552. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2553. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2554. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2555. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2556. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2557. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2558. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2559. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2560. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2561. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2562. };
  2563. /**
  2564. * enum scan_status - Specifies the valid values the vendor scan attribute
  2565. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2566. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2567. * new scan results
  2568. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2569. */
  2570. enum scan_status {
  2571. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2572. VENDOR_SCAN_STATUS_ABORTED,
  2573. VENDOR_SCAN_STATUS_MAX,
  2574. };
  2575. /**
  2576. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2577. *
  2578. * NL attributes for data used by
  2579. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2580. *
  2581. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2582. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2583. * Unsigned 32-bit value
  2584. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2585. * Unsigned 32-bit value
  2586. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2587. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2588. * combinations
  2589. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2590. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2591. */
  2592. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2593. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2594. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2595. = 1,
  2596. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2597. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2598. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2599. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2600. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2601. };
  2602. /**
  2603. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2604. *
  2605. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2606. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2607. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2608. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2609. */
  2610. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2611. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2612. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2613. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2614. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2615. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2616. };
  2617. /**
  2618. * enum qca_vendor_attr_wisa_cmd
  2619. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2620. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2621. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2622. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2623. * WISA setup vendor commands
  2624. */
  2625. enum qca_vendor_attr_wisa_cmd {
  2626. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2627. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2628. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2629. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2630. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2631. };
  2632. enum qca_roaming_policy {
  2633. QCA_ROAMING_NOT_ALLOWED,
  2634. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2635. };
  2636. /**
  2637. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2638. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2639. *
  2640. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2641. * reasons.
  2642. *
  2643. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2644. * the configured threshold.
  2645. *
  2646. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2647. * beacon misses from the then connected AP.
  2648. *
  2649. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2650. * by the connected AP.
  2651. *
  2652. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2653. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2654. * not poor.
  2655. *
  2656. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2657. * or environment being very noisy / congested.
  2658. *
  2659. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2660. * from the user (user space).
  2661. *
  2662. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2663. * connected AP.
  2664. *
  2665. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2666. * breaching out the configured threshold.
  2667. *
  2668. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2669. * transition request.
  2670. *
  2671. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2672. * there is no data activity with the AP and the current rssi falls below a
  2673. * certain threshold.
  2674. *
  2675. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2676. * deauthentication or disassociation frames received from the connected AP.
  2677. *
  2678. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2679. * scan that happens when there is no candidate AP found during the poor
  2680. * RSSI scan trigger.
  2681. *
  2682. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2683. * results obtained from an external scan (not aimed at roaming).
  2684. *
  2685. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2686. * connection is established when the station is connected in 2.4 Ghz band.
  2687. *
  2688. * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
  2689. * failures to the connected AP.
  2690. */
  2691. enum qca_roam_reason {
  2692. QCA_ROAM_REASON_UNKNOWN,
  2693. QCA_ROAM_REASON_PER,
  2694. QCA_ROAM_REASON_BEACON_MISS,
  2695. QCA_ROAM_REASON_POOR_RSSI,
  2696. QCA_ROAM_REASON_BETTER_RSSI,
  2697. QCA_ROAM_REASON_CONGESTION,
  2698. QCA_ROAM_REASON_USER_TRIGGER,
  2699. QCA_ROAM_REASON_BTM,
  2700. QCA_ROAM_REASON_BSS_LOAD,
  2701. QCA_ROAM_REASON_WTC,
  2702. QCA_ROAM_REASON_IDLE,
  2703. QCA_ROAM_REASON_DISCONNECTION,
  2704. QCA_ROAM_REASON_PERIODIC_TIMER,
  2705. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2706. QCA_ROAM_REASON_BT_ACTIVITY,
  2707. QCA_ROAM_REASON_STA_KICKOUT,
  2708. };
  2709. /**
  2710. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2711. *
  2712. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2713. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2714. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2715. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2716. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2717. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2718. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2719. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2720. * Indicates the status of re-association requested by user space for
  2721. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2722. * Type u16.
  2723. * Represents the status code from AP. Use
  2724. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2725. * real status code for failures.
  2726. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2727. * This attribute indicates that the old association was maintained when
  2728. * a re-association is requested by user space and that re-association
  2729. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2730. * remain associated with the BSS with which the association was in
  2731. * place when being requested to roam). Used along with
  2732. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2733. * re-association status. Type flag.
  2734. * This attribute is applicable only for re-association failure cases.
  2735. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2736. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2737. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2738. * seq number
  2739. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2740. * representing the reasons for the roaming. Defined by enum
  2741. * qca_roam_reason.
  2742. */
  2743. enum qca_wlan_vendor_attr_roam_auth {
  2744. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2745. /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
  2746. * of the roamed AP for MLO roaming.
  2747. */
  2748. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2749. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2750. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2751. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2752. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2753. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2754. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2755. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2756. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2757. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2758. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2759. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2760. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2761. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  2762. /* A nested attribute containing per-link information of all the links
  2763. * of MLO connection done while roaming. The attributes used inside this
  2764. * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
  2765. */
  2766. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
  2767. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  2768. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  2769. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  2770. };
  2771. /**
  2772. * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
  2773. * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
  2774. *
  2775. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
  2776. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
  2777. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
  2778. */
  2779. enum qca_wlan_vendor_attr_mlo_links {
  2780. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
  2781. QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
  2782. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
  2783. QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
  2784. /* Keep last */
  2785. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
  2786. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
  2787. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
  2788. };
  2789. /**
  2790. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  2791. *
  2792. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  2793. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  2794. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  2795. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  2796. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  2797. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  2798. */
  2799. enum qca_wlan_vendor_attr_wifi_config {
  2800. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  2801. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  2802. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  2803. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  2804. /* keep last */
  2805. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  2806. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  2807. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  2808. };
  2809. /**
  2810. * enum qca_wlan_epno_type - the type of request to the EPNO command
  2811. * @QCA_WLAN_EPNO: epno type request
  2812. * @QCA_WLAN_PNO: pno type request
  2813. */
  2814. enum qca_wlan_epno_type {
  2815. QCA_WLAN_EPNO,
  2816. QCA_WLAN_PNO
  2817. };
  2818. /**
  2819. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  2820. *
  2821. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  2822. *
  2823. * NL attributes for data used by
  2824. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  2825. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  2826. * Unsigned 32-bit value; pno passpoint number of networks
  2827. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  2828. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  2829. * attributes. Array size =
  2830. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  2831. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  2832. * Unsigned 32-bit value; network id
  2833. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  2834. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  2835. * realm, 0 if unspecified.
  2836. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  2837. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  2838. * to match, 0 if unspecified.
  2839. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  2840. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  2841. * unspecified.
  2842. *
  2843. * NL attributes for data used by
  2844. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  2845. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  2846. * Unsigned 32-bit value; set pno number of networks
  2847. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  2848. * Array of nested
  2849. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  2850. * attributes. Array size =
  2851. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  2852. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  2853. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  2854. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  2855. * Signed 8-bit value; threshold for considering this SSID as found,
  2856. * required granularity for this threshold is 4dBm to 8dBm
  2857. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  2858. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  2859. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  2860. * Unsigned 8-bit value; auth bit field for matching WPA IE
  2861. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  2862. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  2863. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  2864. * Nested attribute to send the channel list
  2865. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  2866. * Unsigned 32-bit value; indicates the Interval between PNO scan
  2867. * cycles in msec
  2868. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  2869. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  2870. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  2871. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  2872. * This attribute is obsolete now.
  2873. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  2874. * Signed 32-bit value; the maximum score that a network
  2875. * can have before bonuses
  2876. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  2877. * Signed 32-bit value; only report when there is a network's
  2878. * score this much higher han the current connection
  2879. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  2880. * Signed 32-bit value; score bonus for all networks with
  2881. * the same network flag
  2882. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  2883. * Signed 32-bit value; score bonus for networks that are not open
  2884. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  2885. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  2886. * 5GHz networks
  2887. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  2888. * Unsigned 32-bit value, representing the PNO Request ID
  2889. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  2890. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  2891. */
  2892. enum qca_wlan_vendor_attr_pno_config_params {
  2893. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  2894. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  2895. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  2896. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  2897. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  2898. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  2899. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  2900. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  2901. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  2902. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  2903. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  2904. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  2905. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  2906. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  2907. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  2908. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  2909. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  2910. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  2911. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  2912. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  2913. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  2914. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  2915. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  2916. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  2917. /* keep last */
  2918. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  2919. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  2920. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  2921. };
  2922. /**
  2923. * enum qca_scan_freq_list_type: Frequency list types
  2924. *
  2925. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  2926. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2927. * a preferred frequency list for roaming.
  2928. *
  2929. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  2930. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2931. * a specific frequency list for roaming.
  2932. */
  2933. enum qca_scan_freq_list_type {
  2934. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  2935. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  2936. };
  2937. /**
  2938. * enum qca_roam_scan_scheme: scan scheme
  2939. *
  2940. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  2941. * Indicates the driver to not scan on a Roam Trigger scenario, but
  2942. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  2943. * disconnect from the current connected AP by notifying a failure
  2944. * code in the BTM response.
  2945. *
  2946. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  2947. * trigger partial frequency scans. These frequencies are the ones learnt
  2948. * or maintained by the driver based on the probability of finding the
  2949. * BSSID's in the ESS for which the roaming is triggered.
  2950. *
  2951. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  2952. * trigger the scan on all the valid frequencies to find the better
  2953. * candidates to roam.
  2954. */
  2955. enum qca_roam_scan_scheme {
  2956. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  2957. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  2958. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  2959. };
  2960. /**
  2961. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  2962. *
  2963. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  2964. * List of frequencies in MHz to be considered for a roam scan.
  2965. *
  2966. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  2967. * Type of frequency list scheme being configured/gotten as defined by the
  2968. * enum qca_scan_freq_list_type.
  2969. */
  2970. enum qca_vendor_attr_scan_freq_list_scheme {
  2971. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  2972. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  2973. /* keep last */
  2974. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  2975. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  2976. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  2977. };
  2978. /*
  2979. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  2980. *
  2981. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  2982. * a bad packet error rates (PER).
  2983. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  2984. * based on beacon misses from the connected AP.
  2985. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  2986. * due to poor RSSI of the connected AP.
  2987. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  2988. * upon finding a BSSID with a better RSSI than the connected BSSID.
  2989. * Here the RSSI of the current BSSID need not be poor.
  2990. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  2991. * by triggering a periodic scan to find a better AP to roam.
  2992. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  2993. * when the connected channel environment is too noisy/congested.
  2994. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  2995. * when BTM Request frame is received from the connected AP.
  2996. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  2997. * when the channel utilization is goes above the configured threshold.
  2998. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  2999. * based on the request from the user (space).
  3000. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  3001. * device receives Deauthentication/Disassociation frame from connected
  3002. * AP.
  3003. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  3004. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  3005. * is determined to be a poor one.
  3006. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  3007. * based on continuous TX Data Frame failures to the connected AP.
  3008. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  3009. * based on the scan results obtained from an external scan (not
  3010. * triggered to aim roaming)
  3011. *
  3012. * Set the corresponding roam trigger reason bit to consider it for roam
  3013. * trigger.
  3014. * Userspace can set multiple bits and send to the driver. The driver shall
  3015. * consider all of them to trigger/initiate a roam scan.
  3016. */
  3017. enum qca_vendor_roam_triggers {
  3018. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  3019. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  3020. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  3021. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  3022. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  3023. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  3024. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  3025. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  3026. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  3027. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  3028. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  3029. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  3030. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  3031. };
  3032. /*
  3033. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  3034. * fail reasons. This enum value is used in
  3035. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  3036. *
  3037. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  3038. * able to trigger the scan.
  3039. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  3040. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  3041. * scan.
  3042. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  3043. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  3044. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  3045. * status code.
  3046. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  3047. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  3048. * frame.
  3049. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  3050. * with error status code.
  3051. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  3052. * received.
  3053. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  3054. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  3055. * frame.
  3056. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  3057. * internally before transmission.
  3058. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  3059. * Request frame.
  3060. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  3061. * dropped internally.
  3062. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  3063. * times out.
  3064. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  3065. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  3066. * internally.
  3067. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  3068. * M2 frame.
  3069. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  3070. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  3071. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  3072. * internally.
  3073. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  3074. * frame.
  3075. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  3076. * started for final beacon miss case.
  3077. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  3078. * received from the AP during roaming handoff.
  3079. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  3080. * or host is suspended and gives the indication of the last roamed AP only
  3081. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  3082. * progress, this ongoing roaming is aborted and the last roamed AP is
  3083. * indicated to host.
  3084. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  3085. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  3086. * out.
  3087. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  3088. */
  3089. enum qca_vendor_roam_fail_reasons {
  3090. QCA_ROAM_FAIL_REASON_NONE = 0,
  3091. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  3092. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  3093. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  3094. QCA_ROAM_FAIL_REASON_HOST = 4,
  3095. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  3096. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  3097. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  3098. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  3099. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  3100. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  3101. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  3102. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  3103. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  3104. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  3105. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  3106. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  3107. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  3108. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  3109. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  3110. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  3111. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  3112. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  3113. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  3114. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3115. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3116. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3117. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3118. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3119. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3120. };
  3121. /*
  3122. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3123. * invoke fail reasons. This enum value is used in
  3124. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3125. *
  3126. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3127. * in roam invoke command.
  3128. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3129. * enabled.
  3130. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3131. * length is invalid.
  3132. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3133. * in progress.
  3134. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3135. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3136. * firmware when the given AP is configured to be ignored or SSID/security
  3137. * does not match.
  3138. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3139. * firmware internal reasons.
  3140. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3141. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3142. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3143. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3144. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3145. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3146. */
  3147. enum qca_vendor_roam_invoke_fail_reasons {
  3148. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3149. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3150. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3151. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3152. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3153. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3154. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3155. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3156. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3157. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3158. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3159. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3160. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3161. };
  3162. /**
  3163. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3164. *
  3165. * Each attribute carries a weightage in percentage (%).
  3166. *
  3167. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3168. * Represents the weightage to be given for the RSSI selection
  3169. * criteria among other parameters.
  3170. *
  3171. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3172. * Represents the weightage to be given for the rate selection
  3173. * criteria among other parameters.
  3174. *
  3175. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3176. * Represents the weightage to be given for the band width selection
  3177. * criteria among other parameters.
  3178. *
  3179. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3180. * Represents the weightage to be given for the band selection
  3181. * criteria among other parameters.
  3182. *
  3183. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3184. * Represents the weightage to be given for the NSS selection
  3185. * criteria among other parameters.
  3186. *
  3187. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3188. * Represents the weightage to be given for the channel congestion
  3189. * selection criteria among other parameters.
  3190. *
  3191. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3192. * Represents the weightage to be given for the beamforming selection
  3193. * criteria among other parameters.
  3194. *
  3195. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3196. * Represents the weightage to be given for the OCE selection
  3197. * criteria among other parameters.
  3198. */
  3199. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3200. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3201. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3202. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3203. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3204. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3205. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3206. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3207. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3208. /* keep last */
  3209. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3210. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3211. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3212. };
  3213. /**
  3214. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3215. * The following attributes are used to set/get/clear the respective
  3216. * configurations to/from the driver.
  3217. * For the get, the attribute for the configuration to be queried shall
  3218. * carry any of its acceptable values to the driver. In return, the driver
  3219. * shall send the configured values within the same attribute to the user
  3220. * space.
  3221. *
  3222. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3223. * Signifies to enable/disable roam control in driver.
  3224. * 1-enable, 0-disable
  3225. * Enable: Mandates the driver to do the further roams using the
  3226. * configuration parameters set through
  3227. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3228. * Disable: Disables the driver/firmware roaming triggered through
  3229. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3230. * expected to continue with the default configurations.
  3231. *
  3232. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3233. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3234. * Roam control status is obtained through this attribute.
  3235. *
  3236. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3237. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3238. * is to be cleared in the driver.
  3239. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3240. * and shall be ignored if used with other sub commands.
  3241. * If this attribute is specified along with subcmd
  3242. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3243. * all other attributes, if there are any.
  3244. * If this attribute is not specified when the subcmd
  3245. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3246. * clear the data corresponding to the attributes specified.
  3247. *
  3248. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3249. * list of frequencies and its type, represented by
  3250. * enum qca_vendor_attr_scan_freq_list_scheme.
  3251. * Frequency list and its type are mandatory for this attribute to set
  3252. * the frequencies.
  3253. * Frequency type is mandatory for this attribute to get the frequencies
  3254. * and the frequency list is obtained through
  3255. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3256. * Frequency list type is mandatory for this attribute to clear the
  3257. * frequencies.
  3258. *
  3259. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3260. * Carries the value of scan period in seconds to set.
  3261. * The value of scan period is obtained with the same attribute for get.
  3262. * Clears the scan period in the driver when specified with clear command.
  3263. * Scan period is the idle time in seconds between each subsequent
  3264. * channel scans.
  3265. *
  3266. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3267. * Carries the value of full scan period in seconds to set.
  3268. * The value of full scan period is obtained with the same attribute for
  3269. * get.
  3270. * Clears the full scan period in the driver when specified with clear
  3271. * command. Full scan period is the idle period in seconds between two
  3272. * successive full channel roam scans.
  3273. *
  3274. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3275. * Carries a bitmap of the roam triggers specified in
  3276. * enum qca_vendor_roam_triggers.
  3277. * The driver shall enable roaming by enabling corresponding roam triggers
  3278. * based on the trigger bits sent with this attribute.
  3279. * If this attribute is not configured, the driver shall proceed with
  3280. * default behavior.
  3281. * The bitmap configured is obtained with the same attribute for get.
  3282. * Clears the bitmap configured in driver when specified with clear
  3283. * command.
  3284. *
  3285. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3286. * weightage in percentage (%) to be given for each selection criteria.
  3287. * Different roam candidate selection criteria are represented by
  3288. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3289. * The driver shall select the roam candidate based on corresponding
  3290. * candidate selection scores sent.
  3291. *
  3292. * An empty nested attribute is used to indicate that no specific
  3293. * preference score/criteria is configured (i.e., to disable this mechanism
  3294. * in the set case and to show that the mechanism is disabled in the get
  3295. * case).
  3296. *
  3297. * Userspace can send multiple attributes out of this enum to the driver.
  3298. * Since this attribute represents the weight/percentage of preference for
  3299. * the respective selection criteria, it is preferred to configure 100%
  3300. * total weightage. The value in each attribute or cumulative weight of the
  3301. * values in all the nested attributes should not exceed 100%. The driver
  3302. * shall reject such configuration.
  3303. *
  3304. * If the weights configured through this attribute are less than 100%,
  3305. * the driver shall honor the weights (x%) passed for the corresponding
  3306. * selection criteria and choose/distribute rest of the weight (100-x)%
  3307. * for the other selection criteria, based on its internal logic.
  3308. *
  3309. * The selection criteria configured is obtained with the same
  3310. * attribute for get.
  3311. *
  3312. * Clears the selection criteria configured in the driver when specified
  3313. * with clear command.
  3314. *
  3315. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3316. * Represents value of scan frequency scheme from
  3317. * enum qca_roam_scan_scheme.
  3318. *
  3319. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3320. * signifying the RSSI threshold of the current connected AP, indicating
  3321. * the driver to trigger roam only when the current connected AP's RSSI
  3322. * is lesser than this threshold.
  3323. *
  3324. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3325. * signifying the RSSI threshold of the candidate AP, indicating
  3326. * the driver to trigger roam only to the candidate AP with RSSI
  3327. * better than this threshold. If RSSI thresholds for candidate APs found
  3328. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3329. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3330. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3331. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3332. * will take precedence over the value configured using
  3333. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3334. *
  3335. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3336. * user triggered reason code to be sent to the AP in response to AP's
  3337. * request to trigger the roam if the roaming cannot be triggered.
  3338. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3339. *
  3340. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3341. * Carries a bitmap of the roam triggers specified in
  3342. * enum qca_vendor_roam_triggers.
  3343. * Represents the roam triggers for which the specific scan scheme from
  3344. * enum qca_roam_scan_scheme has to be applied.
  3345. * It's an optional attribute. If this attribute is not configured, but
  3346. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3347. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3348. * all the roams.
  3349. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3350. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3351. * driver shall proceed with the default behavior.
  3352. *
  3353. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3354. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3355. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3356. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3357. * threshold. Optional attribute. If this attribute is not included, then
  3358. * threshold value specified by the
  3359. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3360. *
  3361. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3362. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3363. * band. The driver/firmware shall trigger roaming to the candidate AP
  3364. * found in 5GHz band only if it's RSSI value is better than this
  3365. * threshold. Optional attribute. If this attribute is not included, then
  3366. * threshold value specified by the
  3367. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3368. *
  3369. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3370. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3371. * band. The driver/firmware shall trigger roaming to the candidate AP
  3372. * found in 6GHz band only if it's RSSI value is better than this
  3373. * threshold. Optional attribute. If this attribute is not included, then
  3374. * threshold value specified by the
  3375. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3376. *
  3377. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3378. * Carries bitmask value of bits from &enum qca_set_band and represents
  3379. * all the bands in which roaming is allowed. The configuration is valid
  3380. * until next disconnection. If this attribute is not present, the
  3381. * existing configuration shall be used. By default, roaming is allowed
  3382. * on all bands supported by local device. When the value is set to
  3383. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3384. *
  3385. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3386. * Optional parameter. RX link speed threshold to disable roaming.
  3387. * If the current RX link speed is above the threshold, roaming is not
  3388. * needed. If this attribute is not configured, or if it is set to 0, the
  3389. * driver will not consider the RX link speed in the roaming decision.
  3390. *
  3391. * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
  3392. * Optional parameter. This configuration delays hand-off (in msec) by the
  3393. * specified duration to receive pending rx frames from current BSS.
  3394. *
  3395. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
  3396. * value.
  3397. * During the roam scan, if there are no desired APs found in the partial
  3398. * frequency list, an immediate full scan on all the supported frequencies
  3399. * is initiated as a fallback. This flag controls the frequency list
  3400. * creation for the full scan on the following lines.
  3401. * 1 - Full scan to exclude the frequencies that were already scanned by
  3402. * the previous partial scan.
  3403. * 0 - Full scan to include all the supported frequencies irrespective of
  3404. * the ones part of the earlier partial scan.
  3405. * If this flag is not specified, a full scan shall include all the
  3406. * supported frequencies irrespective of the ones part of an earlier
  3407. * partial scan.
  3408. *
  3409. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
  3410. * value.
  3411. * During the roam scan, if there are no desired APs found in the partial
  3412. * frequency list, an immediate full scan on all the supported frequencies
  3413. * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
  3414. * frequencies, including all PSC frequencies by default. This attribute
  3415. * controls the inclusion of the 6 GHz PSC frequencies for the full scan
  3416. * as following.
  3417. * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
  3418. * prior discovery of any 6 GHz frequency support in the environment.
  3419. * This discovery can happen through a prior RNR, 11k neighbor
  3420. * request, 11v BTM request, host scan, etc.
  3421. * 0 - Default behavior. Full scan to include all the supported 6 GHz
  3422. * PSC frequencies regardless of whether 6 GHz BSSs have been
  3423. * discovered.
  3424. * The default behavior if this flag is not specified is to include all
  3425. * the supported 6 GHz PSC frequencies in the roam full scan.
  3426. */
  3427. enum qca_vendor_attr_roam_control {
  3428. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3429. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3430. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3431. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3432. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3433. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3434. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3435. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3436. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3437. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3438. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3439. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3440. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3441. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3442. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3443. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3444. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3445. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3446. QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
  3447. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
  3448. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
  3449. /* keep last */
  3450. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3451. QCA_ATTR_ROAM_CONTROL_MAX =
  3452. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3453. };
  3454. /**
  3455. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3456. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3457. *
  3458. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3459. * Represents the different roam sub commands referred by
  3460. * enum qca_wlan_vendor_roaming_subcmd.
  3461. *
  3462. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3463. * Represents the Request ID for the specific set of commands.
  3464. * This also helps to map specific set of commands to the respective
  3465. * ID / client. e.g., helps to identify the user entity configuring the
  3466. * Blacklist BSSID and accordingly clear the respective ones with the
  3467. * matching ID.
  3468. *
  3469. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3470. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3471. *
  3472. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3473. * to carry the list of Whitelist SSIDs.
  3474. *
  3475. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3476. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3477. * represent the list of SSIDs to which the firmware/driver can consider
  3478. * to roam to.
  3479. *
  3480. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3481. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3482. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3483. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3484. *
  3485. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3486. * value, RSSI threshold above which 5GHz RSSI is favored.
  3487. *
  3488. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3489. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3490. *
  3491. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3492. * value, factor by which 5GHz RSSI is boosted.
  3493. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3494. *
  3495. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3496. * value, factor by which 5GHz RSSI is penalized.
  3497. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3498. *
  3499. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3500. * value, maximum boost that can be applied to a 5GHz RSSI.
  3501. *
  3502. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3503. * value, boost applied to current BSSID to ensure the currently
  3504. * associated BSSID is favored so as to prevent ping-pong situations.
  3505. *
  3506. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3507. * value, RSSI below which "Alert" roam is enabled.
  3508. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3509. * because the RSSI is low, or because many successive beacons have been
  3510. * lost or other bad link conditions.
  3511. *
  3512. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3513. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3514. * firmware is hunting for a better BSSID or white listed SSID even though
  3515. * the RSSI of the link is good. The parameters enabling the roaming are
  3516. * configured through the PARAM_A_BAND_XX attrbutes.
  3517. *
  3518. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3519. * represents the BSSIDs preferred over others while evaluating them
  3520. * for the roaming.
  3521. *
  3522. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3523. * 32-bit value. Represents the number of preferred BSSIDs set.
  3524. *
  3525. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3526. * address representing the BSSID to be preferred.
  3527. *
  3528. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3529. * 32-bit value, representing the modifier to be applied to the RSSI of
  3530. * the BSSID for the purpose of comparing it with other roam candidate.
  3531. *
  3532. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3533. * represents the BSSIDs to get blacklisted for roaming.
  3534. *
  3535. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3536. * 32-bit value, represents the number of blacklisted BSSIDs.
  3537. *
  3538. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3539. * address representing the Blacklisted BSSID.
  3540. *
  3541. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3542. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3543. * select this BSSID in the worst case (when no other BSSIDs are better).
  3544. *
  3545. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3546. * set/get/clear the roam control config as
  3547. * defined @enum qca_vendor_attr_roam_control.
  3548. *
  3549. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3550. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3551. */
  3552. enum qca_wlan_vendor_attr_roaming_config_params {
  3553. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3554. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3555. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3556. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3557. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3558. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3559. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3560. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3561. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3562. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3563. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3564. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3565. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3566. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3567. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3568. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3569. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3570. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3571. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3572. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3573. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3574. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3575. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3576. /* keep last */
  3577. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3578. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3579. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3580. };
  3581. /**
  3582. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3583. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3584. *
  3585. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3586. * configure the white list SSIDs. These are configured through
  3587. * the following attributes.
  3588. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3589. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3590. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3591. *
  3592. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3593. * configure the Roam params. These parameters are evaluated on the extscan
  3594. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3595. * params.
  3596. *
  3597. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3598. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3599. * to enable/disable Lazy roam.
  3600. *
  3601. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3602. * preference. Contains the attribute
  3603. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3604. * preference.
  3605. *
  3606. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3607. *
  3608. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3609. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3610. * set the same.
  3611. *
  3612. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3613. * roam control config to the driver with the attribute
  3614. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3615. *
  3616. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3617. * roam control config from driver with the attribute
  3618. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3619. * For the get, the attribute for the configuration to be queried shall
  3620. * carry any of its acceptable value to the driver. In return, the driver
  3621. * shall send the configured values within the same attribute to the user
  3622. * space.
  3623. *
  3624. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3625. * roam control config in the driver with the attribute
  3626. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3627. * The driver shall continue with its default roaming behavior when data
  3628. * corresponding to an attribute is cleared.
  3629. */
  3630. enum qca_wlan_vendor_roaming_subcmd {
  3631. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3632. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3633. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3634. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3635. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3636. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3637. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3638. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3639. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3640. };
  3641. /**
  3642. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3643. *
  3644. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3645. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3646. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3647. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3648. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3649. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3650. */
  3651. enum qca_wlan_vendor_attr_get_wifi_info {
  3652. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3653. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3654. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3655. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3656. /* KEEP LAST */
  3657. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3658. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3659. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3660. };
  3661. enum qca_wlan_vendor_attr_logger_results {
  3662. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3663. /*
  3664. * Unsigned 32-bit value; must match the request Id supplied by
  3665. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3666. */
  3667. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3668. /*
  3669. * Unsigned 32-bit value; used to indicate the size of memory
  3670. * dump to be allocated.
  3671. */
  3672. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3673. /* keep last */
  3674. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3675. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3676. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3677. };
  3678. /**
  3679. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3680. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3681. */
  3682. enum qca_wlan_vendor_channel_prop_flags {
  3683. /* Bits 0, 1, 2, and 3 are reserved */
  3684. /* Turbo channel */
  3685. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3686. /* CCK channel */
  3687. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3688. /* OFDM channel */
  3689. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3690. /* 2.4 GHz spectrum channel. */
  3691. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3692. /* 5 GHz spectrum channel */
  3693. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3694. /* Only passive scan allowed */
  3695. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3696. /* Dynamic CCK-OFDM channel */
  3697. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3698. /* GFSK channel (FHSS PHY) */
  3699. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3700. /* Radar found on channel */
  3701. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3702. /* 11a static turbo channel only */
  3703. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3704. /* Half rate channel */
  3705. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3706. /* Quarter rate channel */
  3707. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3708. /* HT 20 channel */
  3709. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3710. /* HT 40 with extension channel above */
  3711. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3712. /* HT 40 with extension channel below */
  3713. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3714. /* HT 40 intolerant */
  3715. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3716. /* VHT 20 channel */
  3717. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3718. /* VHT 40 with extension channel above */
  3719. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3720. /* VHT 40 with extension channel below */
  3721. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3722. /* VHT 80 channel */
  3723. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3724. /* HT 40 intolerant mark bit for ACS use */
  3725. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3726. /* Channel temporarily blocked due to noise */
  3727. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3728. /* VHT 160 channel */
  3729. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3730. /* VHT 80+80 channel */
  3731. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3732. /* HE 20 channel */
  3733. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3734. /* HE 40 with extension channel above */
  3735. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3736. /* HE 40 with extension channel below */
  3737. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3738. /* HE 40 intolerant */
  3739. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
  3740. };
  3741. /**
  3742. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3743. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3744. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  3745. */
  3746. enum qca_wlan_vendor_channel_prop_flags_2 {
  3747. /* HE 40 intolerant mark bit for ACS use */
  3748. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  3749. /* HE 80 channel */
  3750. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  3751. /* HE 160 channel */
  3752. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  3753. /* HE 80+80 channel */
  3754. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  3755. };
  3756. /**
  3757. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  3758. * each channel. This is used by
  3759. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  3760. */
  3761. enum qca_wlan_vendor_channel_prop_flags_ext {
  3762. /* Radar found on channel */
  3763. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  3764. /* DFS required on channel */
  3765. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  3766. /* DFS required on channel for 2nd band of 80+80 */
  3767. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  3768. /* If channel has been checked for DFS */
  3769. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  3770. /* Excluded in 802.11d */
  3771. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  3772. /* Channel Switch Announcement received on this channel */
  3773. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  3774. /* Ad-hoc is not allowed */
  3775. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  3776. /* Station only channel */
  3777. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  3778. /* DFS radar history for slave device (STA mode) */
  3779. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  3780. /* DFS CAC valid for slave device (STA mode) */
  3781. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  3782. };
  3783. /**
  3784. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  3785. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  3786. * information to start/stop the NUD statistics collection.
  3787. */
  3788. enum qca_attr_nud_stats_set {
  3789. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  3790. /*
  3791. * Flag to start/stop the NUD statistics collection.
  3792. * Start - If included, Stop - If not included
  3793. */
  3794. QCA_ATTR_NUD_STATS_SET_START = 1,
  3795. /* IPv4 address of the default gateway (in network byte order) */
  3796. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  3797. /*
  3798. * Represents the data packet type to be monitored.
  3799. * Host driver tracks the stats corresponding to each data frame
  3800. * represented by these flags.
  3801. * These data packets are represented by
  3802. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  3803. */
  3804. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  3805. /* keep last */
  3806. QCA_ATTR_NUD_STATS_SET_LAST,
  3807. QCA_ATTR_NUD_STATS_SET_MAX =
  3808. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  3809. };
  3810. /**
  3811. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  3812. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3813. * information to start / stop the NUD stats collection.
  3814. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  3815. * Bitmap to Flag to Start / Stop the NUD stats collection
  3816. * Start - If included , Stop - If not included
  3817. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
  3818. * IPv4 address of Default Gateway (in network byte order)
  3819. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3820. * information to start / stop the NUD stats collection.
  3821. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  3822. * Flag to Start / Stop the NUD stats collection
  3823. * Start - If included , Stop - If not included
  3824. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
  3825. * IPv4 address of Default Gateway (in network byte order)
  3826. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3827. * information to start / stop the NUD stats collection.
  3828. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  3829. * Flag to Start / Stop the NUD stats collection
  3830. * Start - If included , Stop - If not included
  3831. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
  3832. * IPv4 address of Default Gateway (in network byte order)
  3833. */
  3834. enum qca_attr_connectivity_check_stats_set {
  3835. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  3836. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  3837. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  3838. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  3839. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  3840. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  3841. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  3842. /* keep last */
  3843. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  3844. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  3845. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  3846. };
  3847. /**
  3848. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  3849. * data types for which the stats have to get collected.
  3850. */
  3851. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  3852. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  3853. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  3854. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  3855. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  3856. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  3857. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  3858. * to represent the stats of respective data type.
  3859. */
  3860. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  3861. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  3862. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  3863. };
  3864. enum qca_attr_connectivity_check_stats {
  3865. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  3866. /* Data packet type for which the stats are collected.
  3867. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  3868. */
  3869. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  3870. /* ID corresponding to the DNS frame for which the respective DNS stats
  3871. * are monitored (u32).
  3872. */
  3873. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  3874. /* source / destination port on which the respective proto stats are
  3875. * collected (u32).
  3876. */
  3877. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  3878. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  3879. /* IPv4/IPv6 address for which the destined data packets are
  3880. * monitored. (in network byte order)
  3881. */
  3882. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  3883. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  3884. /* Data packet Request count received from netdev */
  3885. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  3886. /* Data packet Request count sent to lower MAC from upper MAC */
  3887. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  3888. /* Data packet Request count received by lower MAC from upper MAC */
  3889. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  3890. /* Data packet Request count successfully transmitted by the device */
  3891. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  3892. /* Data packet Response count received by lower MAC */
  3893. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  3894. /* Data packet Response count received by upper MAC */
  3895. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  3896. /* Data packet Response count delivered to netdev */
  3897. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  3898. /* Data Packet Response count that are dropped out of order */
  3899. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  3900. /* keep last */
  3901. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  3902. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  3903. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  3904. };
  3905. /**
  3906. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  3907. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  3908. * NUD statistics collected when queried.
  3909. */
  3910. enum qca_attr_nud_stats_get {
  3911. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  3912. /* ARP Request count from netdev */
  3913. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  3914. /* ARP Request count sent to lower MAC from upper MAC */
  3915. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  3916. /* ARP Request count received by lower MAC from upper MAC */
  3917. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  3918. /* ARP Request count successfully transmitted by the device */
  3919. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  3920. /* ARP Response count received by lower MAC */
  3921. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  3922. /* ARP Response count received by upper MAC */
  3923. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  3924. /* ARP Response count delivered to netdev */
  3925. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  3926. /* ARP Response count delivered to netdev */
  3927. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  3928. /*
  3929. * Flag indicating if the station's link to the AP is active.
  3930. * Active Link - If included, Inactive link - If not included
  3931. */
  3932. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  3933. /*
  3934. * Flag indicating if there is any duplicate address detected (DAD).
  3935. * Yes - If detected, No - If not detected.
  3936. */
  3937. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  3938. /*
  3939. * List of Data types for which the stats are requested.
  3940. * This list does not carry ARP stats as they are done by the
  3941. * above attributes. Represented by enum qca_attr_nud_data_stats.
  3942. */
  3943. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  3944. /* keep last */
  3945. QCA_ATTR_NUD_STATS_GET_LAST,
  3946. QCA_ATTR_NUD_STATS_GET_MAX =
  3947. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  3948. };
  3949. enum qca_wlan_btm_candidate_status {
  3950. QCA_STATUS_ACCEPT = 0,
  3951. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  3952. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  3953. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  3954. QCA_STATUS_REJECT_LOW_RSSI = 4,
  3955. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  3956. QCA_STATUS_REJECT_UNKNOWN = 6,
  3957. };
  3958. enum qca_wlan_vendor_attr_btm_candidate_info {
  3959. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  3960. /* 6-byte MAC address representing the BSSID of transition candidate */
  3961. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  3962. /*
  3963. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  3964. * returned by the driver. It says whether the BSSID provided in
  3965. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  3966. * the driver, if not it specifies the reason for rejection.
  3967. * Note that the user-space can overwrite the transition reject reason
  3968. * codes provided by driver based on more information.
  3969. */
  3970. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  3971. /* keep last */
  3972. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  3973. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  3974. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  3975. };
  3976. enum qca_attr_trace_level {
  3977. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  3978. /*
  3979. * Nested array of the following attributes:
  3980. * QCA_ATTR_TRACE_LEVEL_MODULE,
  3981. * QCA_ATTR_TRACE_LEVEL_MASK.
  3982. */
  3983. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  3984. /*
  3985. * Specific QCA host driver module. Please refer to the QCA host
  3986. * driver implementation to get the specific module ID.
  3987. */
  3988. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  3989. /* Different trace level masks represented in the QCA host driver. */
  3990. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  3991. /* keep last */
  3992. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  3993. QCA_ATTR_TRACE_LEVEL_MAX =
  3994. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  3995. };
  3996. /**
  3997. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  3998. * supported features
  3999. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  4000. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  4001. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  4002. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  4003. *
  4004. * enum values are used for NL attributes for data used by
  4005. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  4006. */
  4007. enum qca_wlan_vendor_attr_get_logger_features {
  4008. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  4009. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  4010. /* keep last */
  4011. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  4012. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  4013. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  4014. };
  4015. /**
  4016. * enum qca_wlan_vendor_attr_link_properties - link properties
  4017. *
  4018. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  4019. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  4020. * specify the number of spatial streams negotiated
  4021. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  4022. * to specify negotiated rate flags i.e. ht, vht and channel width
  4023. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  4024. * specify the operating frequency
  4025. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  4026. * (STA / AP ) for the connected link.
  4027. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  4028. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  4029. * address of the peer represented by
  4030. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  4031. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  4032. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  4033. */
  4034. enum qca_wlan_vendor_attr_link_properties {
  4035. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  4036. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  4037. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  4038. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  4039. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  4040. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  4041. /* KEEP LAST */
  4042. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  4043. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  4044. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  4045. };
  4046. /**
  4047. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  4048. *
  4049. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  4050. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  4051. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  4052. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  4053. *
  4054. * enum values are used for NL attributes for data used by
  4055. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  4056. */
  4057. enum qca_wlan_vendor_attr_nd_offload {
  4058. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  4059. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  4060. /* Keep last */
  4061. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  4062. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  4063. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  4064. };
  4065. /**
  4066. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  4067. *
  4068. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  4069. * management offload, a mechanism where the station's firmware
  4070. * does the exchange with the AP to establish the temporal keys
  4071. * after roaming, rather than having the user space wpa_supplicant do it.
  4072. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  4073. * band selection based on channel selection results.
  4074. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  4075. * simultaneous off-channel operations.
  4076. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  4077. * Listen offload; a mechanism where the station's firmware takes care of
  4078. * responding to incoming Probe Request frames received from other P2P
  4079. * Devices whilst in Listen state, rather than having the user space
  4080. * wpa_supplicant do it. Information from received P2P requests are
  4081. * forwarded from firmware to host whenever the host processor wakes up.
  4082. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  4083. * specific features.
  4084. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  4085. * features.
  4086. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  4087. * specific features only. If a Device sets this bit but not the
  4088. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  4089. * this Device may not support all OCE AP functionalities but can support
  4090. * only OCE STA-CFON functionalities.
  4091. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  4092. * managed regulatory.
  4093. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  4094. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  4095. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  4096. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  4097. * and applying thermal configuration through
  4098. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  4099. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  4100. * userspace.
  4101. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  4102. * With Adaptive 11r feature, access points advertise the vendor
  4103. * specific IEs and MDE but do not include FT AKM in the RSNE.
  4104. * The Adaptive 11r supported stations are expected to identify
  4105. * such vendor specific IEs and connect to the AP in FT mode though
  4106. * the profile is configured in non-FT mode.
  4107. * The driver-based SME cases also need to have this support for
  4108. * Adaptive 11r to handle the connection and roaming scenarios.
  4109. * This flag indicates the support for the same to the user space.
  4110. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  4111. * concurrent network sessions on different Wi-Fi Bands. This feature
  4112. * capability is attributed to the hardware's capability to support
  4113. * the same (e.g., DBS).
  4114. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  4115. * responses for the respective TWT operations are asynchronous (separate)
  4116. * event message) from the driver. If not specified, the responses are
  4117. * synchronous (in vendor command reply) to the request. Each TWT
  4118. * operation is specifically mentioned (against its respective)
  4119. * documentation) to support either of these or both modes.
  4120. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  4121. * that the driver requires add/del virtual interface path using the
  4122. * generic nl80211 commands for NDP interface create/delete and to
  4123. * register/unregister the netdev instead of creating/deleting the NDP
  4124. * interface using the vendor commands
  4125. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  4126. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  4127. * (5.12 version onward), interface creation/deletion is not allowed using
  4128. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  4129. * during the register/unregister of netdev. Create and delete NDP
  4130. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  4131. * commands respectively if the driver advertises this capability set.
  4132. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  4133. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  4134. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  4135. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  4136. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  4137. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  4138. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  4139. * station mode supports secure RTT measurement exchange. If
  4140. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4141. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  4142. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  4143. * mode supports secure RTT measurement exchange. If
  4144. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4145. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  4146. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  4147. * the device in station mode supports protection of range negotiation and
  4148. * measurement management frames. If
  4149. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4150. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  4151. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  4152. * the device in AP mode supports protection of range negotiation and
  4153. * measurement management frames. If
  4154. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4155. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4156. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4157. */
  4158. enum qca_wlan_vendor_features {
  4159. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4160. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4161. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4162. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4163. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4164. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4165. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4166. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4167. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4168. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4169. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4170. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4171. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4172. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4173. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4174. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4175. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4176. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4177. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4178. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4179. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4180. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4181. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4182. };
  4183. /**
  4184. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4185. * conditional channel switch
  4186. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4187. * value
  4188. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4189. * frequency list (an array of u32 values in host byte order)
  4190. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4191. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4192. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4193. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4194. */
  4195. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4196. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4197. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4198. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4199. /* Keep Last */
  4200. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4201. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4202. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4203. };
  4204. /**
  4205. * enum wifi_logger_supported_features - values for supported logger features
  4206. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4207. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4208. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4209. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4210. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4211. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4212. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4213. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4214. */
  4215. enum wifi_logger_supported_features {
  4216. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4217. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4218. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4219. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4220. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4221. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4222. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4223. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4224. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4225. };
  4226. /**
  4227. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4228. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4229. *
  4230. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4231. * Used with event to notify the primary channel number selected in ACS
  4232. * operation.
  4233. * Note: If both the driver and user-space application supports the 6 GHz band,
  4234. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4235. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4236. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4237. * is still used if either of the driver or user space application doesn't
  4238. * support the 6 GHz band.
  4239. *
  4240. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4241. * Used with event to notify the secondary channel number selected in ACS
  4242. * operation.
  4243. * Note: If both the driver and user-space application supports the 6 GHz band,
  4244. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4245. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4246. * To maintain backward compatibility,
  4247. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4248. * the driver or user space application doesn't support 6 GHz band.
  4249. *
  4250. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4251. * (a) Used with command to configure hw_mode from
  4252. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4253. * (b) Also used with event to notify the hw_mode of selected primary channel
  4254. * in ACS operation.
  4255. *
  4256. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4257. * Used with command to configure ACS operation for HT mode.
  4258. * Disable (flag attribute not present) - HT disabled and
  4259. * Enable (flag attribute present) - HT enabled.
  4260. *
  4261. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4262. * Used with command to configure ACS operation for HT40 mode.
  4263. * Disable (flag attribute not present) - HT40 disabled and
  4264. * Enable (flag attribute present) - HT40 enabled.
  4265. *
  4266. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4267. * Used with command to configure ACS operation for VHT mode.
  4268. * Disable (flag attribute not present) - VHT disabled and
  4269. * Enable (flag attribute present) - VHT enabled.
  4270. *
  4271. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4272. * mandatory with event.
  4273. * If specified in command path, ACS operation is configured with the given
  4274. * channel width (in MHz).
  4275. * In event path, specifies the channel width of the primary channel selected.
  4276. *
  4277. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4278. * Used with command to configure channel list using an array of
  4279. * channel numbers (u8).
  4280. * Note: If both the driver and user-space application supports the 6 GHz band,
  4281. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4282. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4283. *
  4284. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4285. * Used with event to notify the VHT segment 0 center channel number selected in
  4286. * ACS operation.
  4287. * Note: If both the driver and user-space application supports the 6 GHz band,
  4288. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4289. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4290. * To maintain backward compatibility,
  4291. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4292. * the driver or user space application doesn't support the 6 GHz band.
  4293. *
  4294. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4295. * Used with event to notify the VHT segment 1 center channel number selected in
  4296. * ACS operation.
  4297. * Note: If both the driver and user-space application supports the 6 GHz band,
  4298. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4299. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4300. * To maintain backward compatibility,
  4301. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4302. * the driver or user space application doesn't support the 6 GHz band.
  4303. *
  4304. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4305. * Used with command to configure the channel list using an array of channel
  4306. * center frequencies in MHz (u32).
  4307. * Note: If both the driver and user-space application supports the 6 GHz band,
  4308. * the driver first parses the frequency list and if it fails to get a frequency
  4309. * list, parses the channel list specified using
  4310. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4311. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4312. *
  4313. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4314. * Used with event to notify the primary channel center frequency (MHz) selected
  4315. * in ACS operation.
  4316. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4317. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4318. *
  4319. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4320. * Used with event to notify the secondary channel center frequency (MHz)
  4321. * selected in ACS operation.
  4322. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4323. * includes this attribute along with
  4324. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4325. *
  4326. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4327. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4328. * selected in ACS operation.
  4329. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4330. * includes this attribute along with
  4331. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4332. *
  4333. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4334. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4335. * selected in ACS operation.
  4336. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4337. * includes this attribute along with
  4338. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4339. *
  4340. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4341. * Used with command to notify the driver of EDMG request for ACS
  4342. * operation.
  4343. *
  4344. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4345. * Used with event to notify the EDMG channel number selected in ACS
  4346. * operation.
  4347. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4348. *
  4349. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4350. * Used with event to notify the puncture pattern selected in ACS operation.
  4351. * Encoding for this attribute will follow the convention used in the Disabled
  4352. * Subchannel Bitmap field of the EHT Operation IE.
  4353. *
  4354. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4355. * Used with command to configure ACS operation for EHT mode.
  4356. * Disable (flag attribute not present) - EHT disabled and
  4357. * Enable (flag attribute present) - EHT enabled.
  4358. *
  4359. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4360. * Used with command to configure how older scan can be considered for ACS
  4361. * scoring. In case scan was performed on partial set of channels configured
  4362. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4363. * (in ms), then scan only remaining channels.
  4364. */
  4365. enum qca_wlan_vendor_attr_acs_offload {
  4366. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4367. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4368. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4369. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4370. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4371. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4372. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4373. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4374. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4375. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4376. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4377. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4378. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4379. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4380. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4381. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4382. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4383. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4384. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4385. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4386. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4387. /* keep last */
  4388. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4389. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4390. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4391. };
  4392. /**
  4393. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4394. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4395. *
  4396. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4397. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4398. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4399. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4400. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4401. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4402. */
  4403. enum qca_wlan_vendor_acs_hw_mode {
  4404. QCA_ACS_MODE_IEEE80211B,
  4405. QCA_ACS_MODE_IEEE80211G,
  4406. QCA_ACS_MODE_IEEE80211A,
  4407. QCA_ACS_MODE_IEEE80211AD,
  4408. QCA_ACS_MODE_IEEE80211ANY,
  4409. QCA_ACS_MODE_IEEE80211AX,
  4410. };
  4411. /**
  4412. * enum qca_access_policy - access control policy
  4413. *
  4414. * Access control policy is applied on the configured IE
  4415. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4416. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4417. *
  4418. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4419. *» with the specific configuration (IE) set, i.e. allow all the
  4420. *» connections which do not match the configuration.
  4421. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4422. *» with the specific configuration (IE) set, i.e. deny all the
  4423. *» connections which do not match the configuration.
  4424. */
  4425. enum qca_access_policy {
  4426. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4427. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4428. };
  4429. /**
  4430. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4431. *
  4432. * The valid values for the ignore assoc disallowed
  4433. *
  4434. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4435. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4436. *
  4437. */
  4438. enum qca_ignore_assoc_disallowed {
  4439. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4440. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4441. };
  4442. /* Attributes for data used by
  4443. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4444. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4445. */
  4446. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4447. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4448. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4449. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4450. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4451. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4452. enum qca_wlan_vendor_attr_config {
  4453. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4454. /*
  4455. * Unsigned 32-bit value to set the DTIM period.
  4456. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4457. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4458. * DTIM beacons.
  4459. */
  4460. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4461. /*
  4462. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4463. * used to calculate statistics like average the TSF offset or average
  4464. * number of frame leaked.
  4465. * For instance, upon Beacon frame reception:
  4466. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4467. * For instance, when evaluating leaky APs:
  4468. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4469. */
  4470. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4471. /*
  4472. * Unsigned 32-bit value to configure guard time, i.e., when
  4473. * implementing IEEE power management based on frame control PM bit, how
  4474. * long the driver waits before shutting down the radio and after
  4475. * receiving an ACK frame for a Data frame with PM bit set.
  4476. */
  4477. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4478. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4479. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4480. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4481. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4482. /*
  4483. * Unsigned 32-bit value to configure the number of continuous
  4484. * Beacon Miss which shall be used by the firmware to penalize
  4485. * the RSSI.
  4486. */
  4487. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4488. /*
  4489. * Unsigned 8-bit value to configure the channel avoidance indication
  4490. * behavior. Firmware to send only one indication and ignore duplicate
  4491. * indications when set to avoid multiple Apps wakeups.
  4492. */
  4493. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4494. /*
  4495. * 8-bit unsigned value to configure the maximum TX MPDU for
  4496. * aggregation.
  4497. */
  4498. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4499. /*
  4500. * 8-bit unsigned value to configure the maximum RX MPDU for
  4501. * aggregation.
  4502. */
  4503. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4504. /*
  4505. * 8-bit unsigned value to configure the Non aggregrate/11g sw
  4506. * retry threshold (0 disable, 31 max).
  4507. */
  4508. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4509. /*
  4510. * 8-bit unsigned value to configure the aggregrate sw
  4511. * retry threshold (0 disable, 31 max).
  4512. */
  4513. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4514. /*
  4515. * 8-bit unsigned value to configure the MGMT frame
  4516. * retry threshold (0 disable, 31 max).
  4517. */
  4518. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4519. /*
  4520. * 8-bit unsigned value to configure the CTRL frame
  4521. * retry threshold (0 disable, 31 max).
  4522. */
  4523. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4524. /*
  4525. * 8-bit unsigned value to configure the propagation delay for
  4526. * 2G/5G band (0~63, units in us)
  4527. */
  4528. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4529. /*
  4530. * Unsigned 32-bit value to configure the number of unicast TX fail
  4531. * packet count. The peer is disconnected once this threshold is
  4532. * reached.
  4533. */
  4534. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4535. /*
  4536. * Attribute used to set scan default IEs to the driver.
  4537. *
  4538. * These IEs can be used by scan operations that will be initiated by
  4539. * the driver/firmware.
  4540. *
  4541. * For further scan requests coming to the driver, these IEs should be
  4542. * merged with the IEs received along with scan request coming to the
  4543. * driver. If a particular IE is present in the scan default IEs but not
  4544. * present in the scan request, then that IE should be added to the IEs
  4545. * sent in the Probe Request frames for that scan request.
  4546. */
  4547. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4548. /* Unsigned 32-bit attribute for generic commands */
  4549. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4550. /* Unsigned 32-bit value attribute for generic commands */
  4551. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4552. /* Unsigned 32-bit data attribute for generic command response */
  4553. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4554. /*
  4555. * Unsigned 32-bit length attribute for
  4556. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4557. */
  4558. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4559. /*
  4560. * Unsigned 32-bit flags attribute for
  4561. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4562. */
  4563. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4564. /*
  4565. * Unsigned 32-bit, defining the access policy.
  4566. * See enum qca_access_policy. Used with
  4567. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4568. */
  4569. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4570. /*
  4571. * Sets the list of full set of IEs for which a specific access policy
  4572. * has to be applied. Used along with
  4573. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4574. * Zero length payload can be used to clear this access constraint.
  4575. */
  4576. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4577. /*
  4578. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4579. * corresponding configurations are applied. If the interface index is
  4580. * not specified, the configurations are attributed to the respective
  4581. * wiphy.
  4582. */
  4583. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4584. /*
  4585. * 8-bit unsigned value to trigger QPower:
  4586. * 1-Enable, 0-Disable
  4587. */
  4588. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4589. /*
  4590. * 8-bit unsigned value to configure the driver and below layers to
  4591. * ignore the assoc disallowed set by APs while connecting
  4592. * 1-Ignore, 0-Don't ignore
  4593. */
  4594. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4595. /*
  4596. * 32-bit unsigned value to trigger antenna diversity features:
  4597. * 1-Enable, 0-Disable
  4598. */
  4599. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4600. /* 32-bit unsigned value to configure specific chain antenna */
  4601. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4602. /*
  4603. * 32-bit unsigned value to trigger cycle selftest
  4604. * 1-Enable, 0-Disable
  4605. */
  4606. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4607. /*
  4608. * 32-bit unsigned to configure the cycle time of selftest
  4609. * the unit is micro-second
  4610. */
  4611. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4612. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4613. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4614. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4615. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4616. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4617. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4618. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4619. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4620. /* 6-byte MAC address to point out the specific peer */
  4621. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4622. /* 32-bit unsigned value to set window size for specific peer */
  4623. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4624. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4625. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4626. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4627. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4628. /*
  4629. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4630. * station device while in disconnect state. The attribute use the
  4631. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4632. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4633. * 10 MHz channel width, the station will not connect to a BSS using 20
  4634. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4635. * clear this constraint.
  4636. */
  4637. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4638. /*
  4639. * 32-bit unsigned value to configure the propagation absolute delay
  4640. * for 2G/5G band (units in us)
  4641. */
  4642. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4643. /* 32-bit unsigned value to set probe period */
  4644. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4645. /* 32-bit unsigned value to set stay period */
  4646. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4647. /* 32-bit unsigned value to set snr diff */
  4648. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4649. /* 32-bit unsigned value to set probe dwell time */
  4650. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4651. /* 32-bit unsigned value to set mgmt snr weight */
  4652. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4653. /* 32-bit unsigned value to set data snr weight */
  4654. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4655. /* 32-bit unsigned value to set ack snr weight */
  4656. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4657. /*
  4658. * 32-bit unsigned value to configure the listen interval.
  4659. * This is in units of beacon intervals. This configuration alters
  4660. * the negotiated listen interval with the AP during the connection.
  4661. * It is highly recommended to configure a value less than or equal to
  4662. * the one negotiated during the association. Configuring any greater
  4663. * value can have adverse effects (frame loss, AP disassociating STA,
  4664. * etc.).
  4665. */
  4666. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4667. /*
  4668. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4669. * disable operations that would cause the AP/GO to leave its operating
  4670. * channel.
  4671. *
  4672. * This will restrict the scans to the AP/GO operating channel and the
  4673. * channels of the other band, if DBS is supported.A STA/CLI interface
  4674. * brought up after this setting is enabled, will be restricted to
  4675. * connecting to devices only on the AP/GO interface's operating channel
  4676. * or on the other band in DBS case. P2P supported channel list is
  4677. * modified, to only include AP interface's operating-channel and the
  4678. * channels of the other band if DBS is supported.
  4679. *
  4680. * These restrictions are only applicable as long as the AP/GO interface
  4681. * is alive. If the AP/GO interface is brought down then this
  4682. * setting/restriction is forgotten.
  4683. *
  4684. * If this variable is set on an AP/GO interface while a multi-channel
  4685. * concurrent session is active, it has no effect on the operation of
  4686. * the current interfaces, other than restricting the scan to the AP/GO
  4687. * operating channel and the other band channels if DBS is supported.
  4688. * However, if the STA is brought down and restarted then the new STA
  4689. * connection will either be formed on the AP/GO channel or on the
  4690. * other band in a DBS case. This is because of the scan being
  4691. * restricted on these channels as mentioned above.
  4692. *
  4693. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4694. */
  4695. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4696. /*
  4697. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4698. * on an interface.
  4699. * 1 - Enable , 0 - Disable.
  4700. */
  4701. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4702. /*
  4703. * 8 bit unsigned value to globally enable/disable scan
  4704. * 1 - Enable, 0 - Disable.
  4705. */
  4706. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4707. /* 8-bit unsigned value to set the total beacon miss count */
  4708. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4709. /*
  4710. * Unsigned 32-bit value to configure the number of continuous
  4711. * Beacon Miss which shall be used by the firmware to penalize
  4712. * the RSSI for BTC.
  4713. */
  4714. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4715. /*
  4716. * 8-bit unsigned value to configure the driver and below layers to
  4717. * enable/disable all fils features.
  4718. * 0-enable, 1-disable
  4719. */
  4720. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4721. /* 16-bit unsigned value to configure the level of WLAN latency
  4722. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4723. */
  4724. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4725. /*
  4726. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  4727. * the connect interface. Exclusively used for the scenarios where the
  4728. * device is used as a test bed device with special functionality and
  4729. * not recommended for production. This helps driver to not validate the
  4730. * RSNE passed from user space and thus allow arbitrary IE data to be
  4731. * used for testing purposes.
  4732. * 1-enable, 0-disable.
  4733. * Applications set/reset this configuration. If not reset, this
  4734. * parameter remains in use until the driver is unloaded.
  4735. */
  4736. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  4737. /*
  4738. * 8-bit unsigned value to trigger green Tx power saving.
  4739. * 1-Enable, 0-Disable
  4740. */
  4741. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  4742. /*
  4743. * Attribute to configure disconnect IEs to the driver.
  4744. * This carries an array of unsigned 8-bit characters.
  4745. *
  4746. * If this is configured, driver shall fill the IEs in disassoc/deauth
  4747. * frame.
  4748. * These IEs are expected to be considered only for the next
  4749. * immediate disconnection (disassoc/deauth frame) originated by
  4750. * the DUT, irrespective of the entity (user space/driver/firmware)
  4751. * triggering the disconnection.
  4752. * The host drivers are not expected to use the IEs set through
  4753. * this interface for further disconnections after the first immediate
  4754. * disconnection initiated post the configuration.
  4755. * If the IEs are also updated through cfg80211 interface (after the
  4756. * enhancement to cfg80211_disconnect), host driver is expected to
  4757. * take the union of IEs from both of these interfaces and send in
  4758. * further disassoc/deauth frames.
  4759. */
  4760. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  4761. /* 8-bit unsigned value for ELNA bypass.
  4762. * 0 - Disable eLNA bypass.
  4763. * 1 - Enable eLNA bypass.
  4764. * 2 - Reset eLNA bypass configuration, the driver should
  4765. * revert to the default configuration of eLNA bypass.
  4766. */
  4767. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  4768. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4769. * to send the Beacon Report response with failure reason for the
  4770. * scenarios where STA cannot honor the Beacon report request from AP.
  4771. * 1-Enable, 0-Disable.
  4772. */
  4773. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  4774. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4775. * to send roam reason information in the reassociation request to the
  4776. * AP. 1-Enable, 0-Disable.
  4777. */
  4778. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  4779. /* 32-bit unsigned value to configure different PHY modes to the
  4780. * driver/firmware. The possible values are defined in
  4781. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  4782. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  4783. * the driver.
  4784. */
  4785. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  4786. /* 8-bit unsigned value to configure the maximum supported channel width
  4787. * for STA mode. If this value is configured when STA is in connected
  4788. * state, it should not exceed the negotiated channel width. If it is
  4789. * configured when STA is in disconnected state, the configured value
  4790. * will take effect for the next immediate connection.
  4791. * Possible values are:
  4792. * NL80211_CHAN_WIDTH_20
  4793. * NL80211_CHAN_WIDTH_40
  4794. * NL80211_CHAN_WIDTH_80
  4795. * NL80211_CHAN_WIDTH_80P80
  4796. * NL80211_CHAN_WIDTH_160
  4797. */
  4798. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  4799. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  4800. * This attribute is only applicable for STA mode. When dynamic
  4801. * bandwidth adjustment is disabled, STA will use static channel width
  4802. * the value of which is negotiated during connection.
  4803. * 1-enable (default), 0-disable
  4804. */
  4805. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  4806. /* 8-bit unsigned value to configure the maximum number of subframes of
  4807. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4808. * it is decided by hardware.
  4809. */
  4810. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  4811. /* 8-bit unsigned value to configure the maximum number of subframes of
  4812. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4813. * it is decided by hardware.
  4814. */
  4815. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  4816. /* 8-bit unsigned value. This attribute is used to dynamically
  4817. * enable/disable the LDPC capability of the device. When configured in
  4818. * the disconnected state, the updated configuration will be considered
  4819. * for the immediately following connection attempt. If this
  4820. * configuration is modified while the device is in the connected state,
  4821. * the LDPC TX will be updated with this configuration immediately,
  4822. * while the LDPC RX configuration update will take place starting from
  4823. * the subsequent association attempt.
  4824. * 1-Enable, 0-Disable.
  4825. */
  4826. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  4827. /* 8-bit unsigned value. This attribute is used to dynamically
  4828. * enable/disable the TX STBC capability of the device. When configured
  4829. * in the disconnected state, the updated configuration will be
  4830. * considered for the immediately following connection attempt. If the
  4831. * connection is formed with TX STBC enabled and if this configuration
  4832. * is disabled during that association, the TX will be impacted
  4833. * immediately. Further connection attempts will disable TX STBC.
  4834. * However, enabling the TX STBC for a connected session with disabled
  4835. * capability is not allowed and will fail.
  4836. * 1-Enable, 0-Disable.
  4837. */
  4838. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  4839. /* 8-bit unsigned value. This attribute is used to dynamically
  4840. * enable/disable the RX STBC capability of the device. When configured
  4841. * in the disconnected state, the updated configuration will be
  4842. * considered for the immediately following connection attempt. If the
  4843. * configuration is modified in the connected state, there will be no
  4844. * impact for the current association, but further connection attempts
  4845. * will use the updated configuration.
  4846. * 1-Enable, 0-Disable.
  4847. */
  4848. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  4849. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4850. * the number of spatial streams. When configured in the disconnected
  4851. * state, the updated configuration will be considered for the
  4852. * immediately following connection attempt. If the NSS is updated after
  4853. * the connection, the updated NSS value is notified to the peer using
  4854. * the Operating Mode Notification/Spatial Multiplexing Power Save
  4855. * frame. The updated NSS value after the connection shall not be
  4856. * greater than the one negotiated during the connection. Any such
  4857. * higher value configuration shall be returned with a failure.
  4858. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  4859. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  4860. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  4861. * configure the asymmetric NSS configuration (such as 1X2).
  4862. */
  4863. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  4864. /*
  4865. * 8-bit unsigned value to trigger Optimized Power Management:
  4866. * 1-Enable, 0-Disable
  4867. */
  4868. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  4869. /* 8-bit unsigned value. This attribute takes the QOS/access category
  4870. * value represented by the enum qca_wlan_ac_type and expects the driver
  4871. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  4872. * is invalid for this attribute. This will override the DSCP value
  4873. * configured in the frame with the intention to only upgrade the QOS.
  4874. * That said, it is not intended to downgrade the QOS for the frames.
  4875. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  4876. * to disable.
  4877. *
  4878. * If only UDP frames of BE or BK access category needs to be upgraded
  4879. * without changing the access category of VO or VI UDP frames, refer to
  4880. * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
  4881. *
  4882. * This attribute is not recommended to be used as it blindly forces all
  4883. * UDP packets to a higher access category which could impact the
  4884. * traffic pattern of all apps using UDP and can cause unknown behavior.
  4885. */
  4886. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  4887. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4888. * the number of chains to be used for transmitting data. This
  4889. * configuration is allowed only when in connected state and will be
  4890. * effective until disconnected. The driver rejects this configuration
  4891. * if the number of spatial streams being used in the current connection
  4892. * cannot be supported by this configuration.
  4893. */
  4894. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  4895. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4896. * the number of chains to be used for receiving data. This
  4897. * configuration is allowed only when in connected state and will be
  4898. * effective until disconnected. The driver rejects this configuration
  4899. * if the number of spatial streams being used in the current connection
  4900. * cannot be supported by this configuration.
  4901. */
  4902. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  4903. /* 8-bit unsigned value to configure ANI setting type.
  4904. * See &enum qca_wlan_ani_setting for possible values.
  4905. */
  4906. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  4907. /* 32-bit signed value to configure ANI level. This is used when
  4908. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  4909. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  4910. * is invalid, the driver will return a failure.
  4911. */
  4912. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  4913. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4914. * the number of spatial streams used for transmitting the data. When
  4915. * configured in the disconnected state, the configured value will
  4916. * be considered for the following connection attempt.
  4917. * If the NSS is updated after the connection, the updated NSS value
  4918. * is notified to the peer using the Operating Mode Notification/Spatial
  4919. * Multiplexing Power Save frame.
  4920. * The TX NSS value configured after the connection shall not be greater
  4921. * than the value negotiated during the connection. Any such higher
  4922. * value configuration shall be treated as invalid configuration by
  4923. * the driver. This attribute shall be configured along with
  4924. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  4925. * configuration (such as 2X2 or 1X1) or the asymmetric
  4926. * configuration (such as 1X2).
  4927. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4928. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  4929. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  4930. */
  4931. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  4932. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4933. * the number of spatial streams used for receiving the data. When
  4934. * configured in the disconnected state, the configured value will
  4935. * be considered for the following connection attempt.
  4936. * If the NSS is updated after the connection, the updated NSS value
  4937. * is notified to the peer using the Operating Mode Notification/Spatial
  4938. * Multiplexing Power Save frame.
  4939. * The RX NSS value configured after the connection shall not be greater
  4940. * than the value negotiated during the connection. Any such higher
  4941. * value configuration shall be treated as invalid configuration by
  4942. * the driver. This attribute shall be configured along with
  4943. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  4944. * configuration (such as 2X2 or 1X1) or the asymmetric
  4945. * configuration (such as 1X2).
  4946. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4947. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  4948. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  4949. */
  4950. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  4951. /*
  4952. * 8-bit unsigned value. This attribute, when set, indicates whether the
  4953. * specified interface is the primary STA interface when there are more
  4954. * than one STA interfaces concurrently active.
  4955. *
  4956. * This configuration helps the firmware/hardware to support certain
  4957. * features (e.g., roaming) on this primary interface, if the same
  4958. * cannot be supported on the concurrent STA interfaces simultaneously.
  4959. *
  4960. * This configuration is only applicable for a single STA interface on
  4961. * a device and gives the priority for it only over other concurrent STA
  4962. * interfaces.
  4963. *
  4964. * If the device is a multi wiphy/soc, this configuration applies to a
  4965. * single STA interface across the wiphys.
  4966. *
  4967. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  4968. */
  4969. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  4970. /*
  4971. * 8-bit unsigned value. This attribute can be used to configure the
  4972. * driver to enable/disable FT-over-DS feature. Possible values for
  4973. * this attribute are 1-Enable and 0-Disable.
  4974. */
  4975. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  4976. /*
  4977. * 8-bit unsigned value. This attribute can be used to configure the
  4978. * firmware to enable/disable ARP/NS offload feature. Possible values
  4979. * for this attribute are 0-Disable and 1-Enable.
  4980. *
  4981. * This attribute is only applicable for STA/P2P-Client interface,
  4982. * and is optional, default behavior is APR/NS offload Enable.
  4983. *
  4984. * This attribute can be set in disconncted and connected state, and
  4985. * will restore to default behavior if interface is closed.
  4986. */
  4987. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  4988. /*
  4989. * 8-bit unsigned value. This attribute can be used to configure the
  4990. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  4991. * for this attribute are defined in the enum qca_dbam_config.
  4992. */
  4993. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  4994. /* 8-bit unsigned value. This attribute takes the QoS/access category
  4995. * value represented by the enum qca_wlan_ac_type and expects the driver
  4996. * to upgrade the UDP frames of BE or BK access category to this access
  4997. * category. This attribute will not modify UDP frames of VO or VI
  4998. * access category. The value of QCA_WLAN_AC_ALL is invalid for this
  4999. * attribute.
  5000. *
  5001. * This will override the DSCP value configured in the frame with the
  5002. * intention to only upgrade the access category. That said, it is not
  5003. * intended to downgrade the access category for the frames.
  5004. * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
  5005. * disabled, as BK is of the lowest priority and an upgrade to it does
  5006. * not result in any changes for the frames.
  5007. *
  5008. * This attribute behavior is similar to
  5009. * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
  5010. * only UDP frames of BE or BK access category are upgraded and not
  5011. * UDP frames of VI or VO access category.
  5012. *
  5013. * This attribute is not recommended to be used as it blindly forces all
  5014. * UDP packets of BE or BK access category to a higher access category
  5015. * which could impact the traffic pattern of all apps using UDP and can
  5016. * cause unknown behavior.
  5017. */
  5018. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
  5019. /* 8-bit unsigned value to configure the driver to enable/disable the
  5020. * periodic sounding for Tx beamformer functionality. The default
  5021. * behavior uses algorithm to do sounding based on packet stats.
  5022. *
  5023. * 0 - Default behavior.
  5024. * 1 - Enable the periodic sounding for Tx beamformer.
  5025. * This attribute is used for testing purposes.
  5026. */
  5027. QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
  5028. /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
  5029. * Userspace sends this information to driver/firmware to configure
  5030. * wfc state. Driver/Firmware uses this information to
  5031. * optimize power savings, rate adaption, roaming, etc.
  5032. *
  5033. * 1 - wfc is on.
  5034. * 0 - wfc is off.
  5035. */
  5036. QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
  5037. /* keep last */
  5038. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  5039. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  5040. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  5041. };
  5042. /**
  5043. * enum qca_dbam_config - Specifies DBAM config mode
  5044. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  5045. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  5046. * internal criteria are met.
  5047. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  5048. */
  5049. enum qca_dbam_config {
  5050. QCA_DBAM_DISABLE = 0,
  5051. QCA_DBAM_ENABLE = 1,
  5052. QCA_DBAM_FORCE_ENABLE = 2,
  5053. };
  5054. /**
  5055. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  5056. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  5057. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  5058. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  5059. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  5060. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  5061. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  5062. */
  5063. enum qca_wlan_vendor_attr_wifi_logger_start {
  5064. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  5065. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  5066. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  5067. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  5068. /* keep last */
  5069. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  5070. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  5071. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  5072. };
  5073. /*
  5074. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  5075. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  5076. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  5077. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  5078. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  5079. */
  5080. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  5081. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  5082. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  5083. /* keep last */
  5084. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  5085. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  5086. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  5087. };
  5088. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  5089. /**
  5090. * enum wlan_offloaded_packets_control - control commands
  5091. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  5092. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  5093. *
  5094. */
  5095. enum wlan_offloaded_packets_control {
  5096. WLAN_START_OFFLOADED_PACKETS = 1,
  5097. WLAN_STOP_OFFLOADED_PACKETS = 2
  5098. };
  5099. /**
  5100. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  5101. *
  5102. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  5103. * the offloaded data.
  5104. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  5105. * data.
  5106. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  5107. * indication.
  5108. */
  5109. enum qca_wlan_vendor_attr_data_offload_ind {
  5110. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  5111. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  5112. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  5113. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  5114. /* keep last */
  5115. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  5116. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  5117. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  5118. };
  5119. /**
  5120. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  5121. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  5122. */
  5123. enum qca_wlan_vendor_attr_offloaded_packets {
  5124. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  5125. /* Takes valid value from the enum
  5126. * qca_wlan_offloaded_packets_sending_control
  5127. * Unsigned 32-bit value
  5128. */
  5129. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  5130. /* Unsigned 32-bit value */
  5131. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  5132. /* array of u8 len: Max packet size */
  5133. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  5134. /* 6-byte MAC address used to represent source MAC address */
  5135. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  5136. /* 6-byte MAC address used to represent destination MAC address */
  5137. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  5138. /* Unsigned 32-bit value, in milli seconds */
  5139. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  5140. /* This optional unsigned 16-bit attribute is used for specifying
  5141. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  5142. */
  5143. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  5144. /* keep last */
  5145. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  5146. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  5147. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  5148. };
  5149. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  5150. /**
  5151. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  5152. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  5153. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  5154. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  5155. */
  5156. enum qca_wlan_rssi_monitoring_control {
  5157. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  5158. QCA_WLAN_RSSI_MONITORING_START,
  5159. QCA_WLAN_RSSI_MONITORING_STOP,
  5160. };
  5161. /**
  5162. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  5163. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  5164. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  5165. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  5166. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  5167. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  5168. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  5169. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  5170. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  5171. */
  5172. enum qca_wlan_vendor_attr_rssi_monitoring {
  5173. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  5174. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  5175. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  5176. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  5177. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  5178. /* attributes to be used/received in callback */
  5179. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  5180. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  5181. /* keep last */
  5182. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  5183. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  5184. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  5185. };
  5186. /**
  5187. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  5188. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5189. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  5190. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  5191. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  5192. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
  5193. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  5194. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  5195. * address
  5196. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  5197. * created
  5198. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  5199. * NCS_SK_TYPE/PMK/SCID instead
  5200. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  5201. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  5202. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  5203. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  5204. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5205. * code: accept/reject
  5206. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5207. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5208. * driver
  5209. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5210. * driver
  5211. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5212. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5213. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5214. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5215. * PMKID
  5216. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5217. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5218. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5219. * update:
  5220. * BIT_0: NSS Update
  5221. * BIT_1: Channel list update
  5222. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5223. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5224. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5225. * 0:20 MHz,
  5226. * 1:40 MHz,
  5227. * 2:80 MHz,
  5228. * 3:160 MHz
  5229. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5230. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5231. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5232. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5233. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5234. * transport port used by NDP.
  5235. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5236. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5237. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5238. * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5239. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5240. * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5241. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5242. * A lower-case representation of the Service Name shall be used to
  5243. * calculate the Service ID.
  5244. * Array of u8: length is 6 bytes
  5245. * This attribute is used and optional for ndp indication.
  5246. */
  5247. enum qca_wlan_vendor_attr_ndp_params {
  5248. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5249. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5250. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5251. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5252. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5253. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5254. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5255. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5256. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5257. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5258. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5259. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5260. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5261. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5262. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5263. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5264. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5265. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5266. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5267. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5268. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5269. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5270. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5271. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5272. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5273. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5274. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5275. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5276. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5277. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5278. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5279. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5280. /* keep last */
  5281. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5282. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5283. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5284. };
  5285. /**
  5286. * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
  5287. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5288. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5289. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5290. * data path interface.
  5291. * This command was initially designed to both create and start a NAN
  5292. * data path interface. However, changes to Linux 5.12 no longer allow
  5293. * interface creation via vendor commands. When the driver advertises
  5294. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5295. * userspace must explicitly first create the interface using
  5296. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5297. * to start the interface.
  5298. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5299. * data path interface.
  5300. * This command was initially designed to both stop and delete a NAN
  5301. * data path interface. However, changes to Linux 5.12 no longer allow
  5302. * interface deletion via vendor commands. When the driver advertises
  5303. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5304. * userspace must explicitly delete the interface using
  5305. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5306. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5307. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5308. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5309. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5310. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5311. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5312. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5313. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5314. * being received
  5315. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5316. * update
  5317. */
  5318. enum qca_wlan_ndp_sub_cmd {
  5319. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5320. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5321. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5322. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5323. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5324. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5325. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5326. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5327. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5328. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5329. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5330. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5331. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5332. };
  5333. /**
  5334. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5335. * information. These attributes are sent as part of
  5336. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5337. * attributes correspond to a single channel.
  5338. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5339. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5340. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5341. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5342. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5343. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5344. * regulatory transmission power
  5345. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5346. * transmission power
  5347. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5348. * transmission power
  5349. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5350. * class id
  5351. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5352. * antenna gain in dbm
  5353. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5354. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5355. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
  5356. * center frequency in MHz.
  5357. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5358. * segment 0 in center freq in MHz. (this is the legacy alias)
  5359. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
  5360. * center frequency in MHz.
  5361. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5362. * segment 1 in center freq in MHz. (this is the legacy alias)
  5363. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5364. * flag indicating the AP power modes supported by the channel, as given by
  5365. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5366. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5367. * attributes for each power mode. It takes attr as defined in enum
  5368. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5369. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
  5370. * This indicates the overlapping 320 MHz center frequency in MHz, if the
  5371. * given primary channel supports more than one 320 MHz channel bonding.
  5372. *
  5373. */
  5374. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5375. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5376. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5377. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5378. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5379. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5380. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5381. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5382. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5383. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5384. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5385. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5386. /*
  5387. * A bitmask (u32) with flags specified in
  5388. * enum qca_wlan_vendor_channel_prop_flags_2.
  5389. */
  5390. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5391. /*
  5392. * Segment 0 in MHz (u32).
  5393. *
  5394. * For 20/40/80 MHz bandwidth, this indicates the channel center
  5395. * frequency index for the 20/40/80 MHz operating channel.
  5396. * For 160 MHz bandwidth, this indicates the channel center
  5397. * frequency of the primary 80 MHz channel.
  5398. * For 320 MHz bandwidth, indicates the channel center frequency
  5399. * of the primary 160 MHz channel.
  5400. *
  5401. * To maintain backward compatibility,
  5402. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5403. * is also maintained.
  5404. */
  5405. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
  5406. /* Legacy alias for the Segment 0 attribute.
  5407. *
  5408. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5409. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5410. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5411. * along with
  5412. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5413. *
  5414. * If both the driver and user-space application supports the 6 GHz
  5415. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5416. * is deprecated and
  5417. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5418. * should be used.
  5419. *
  5420. * To maintain backward compatibility,
  5421. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5422. * is still used if either of the driver or user space application
  5423. * doesn't support the 6 GHz band.
  5424. */
  5425. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
  5426. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
  5427. /*
  5428. * Segment 1 in MHz (u32).
  5429. *
  5430. * For 20/40/80 MHz bandwidth, this is set to 0.
  5431. * For 160 MHz bandwidth, indicates the channel center frequency of the
  5432. * 160 MHz channel.
  5433. * For 320 MHz bandwidth, indicates the channel center frequency of the
  5434. * 320 MHz channel.
  5435. *
  5436. * To maintain backward compatibility,
  5437. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5438. * is also maintained.
  5439. */
  5440. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
  5441. /* Legacy alias for the Segment 1 attribute.
  5442. *
  5443. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5444. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5445. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5446. * along with
  5447. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5448. *
  5449. * If both the driver and user-space application supports the 6 GHz
  5450. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5451. * is deprecated and
  5452. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5453. * should be considered.
  5454. *
  5455. * To maintain backward compatibility,
  5456. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5457. * is still used if either of the driver or user space application
  5458. * doesn't support the 6 GHz band.
  5459. */
  5460. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
  5461. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
  5462. /*
  5463. * 16-bit attribute of bits indicating the AP power modes supported by
  5464. * the channel (u16).
  5465. * Note: Currently, only 3 bits are used in the attribute and each bit
  5466. * corresponds to the power mode mentioned in enum
  5467. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5468. * set if the associated mode is supported.
  5469. */
  5470. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5471. = 14,
  5472. /* Array of nested attributes for each power mode. It takes attr as
  5473. * defined in enum
  5474. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5475. */
  5476. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5477. /*
  5478. * This indicates the overlapping 320 MHz center frequency in MHz
  5479. * (u32), if the given primary channel supports more than one
  5480. * 320 MHz channel bonding.
  5481. *
  5482. * Example:
  5483. * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
  5484. * center frequency (primary 160 MHz) is 6185 MHz and there can be two
  5485. * possible segment 2 frequencies for this (320 MHz center
  5486. * frequencies):
  5487. *
  5488. * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
  5489. * from frequency 5945 MHz - 6265 MHz
  5490. * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
  5491. * from frequency 6105 MHz - 6425 MHz
  5492. *
  5493. * In this case,
  5494. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
  5495. * return 6185 MHz.
  5496. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
  5497. * return 6105 MHz.
  5498. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5499. * will return 6265 MHz.
  5500. */
  5501. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5502. = 16,
  5503. /* keep last */
  5504. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  5505. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  5506. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  5507. };
  5508. /**
  5509. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  5510. * values that the vendor external ACS channel power attribute
  5511. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  5512. * take.
  5513. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  5514. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  5515. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  5516. */
  5517. enum qca_wlan_vendor_external_acs_chan_power_level {
  5518. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  5519. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  5520. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  5521. };
  5522. /**
  5523. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  5524. * attributes for power mode type and power values corresponding to that.
  5525. * These attributes are sent as part of
  5526. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  5527. */
  5528. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  5529. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  5530. /*
  5531. * Power mode (u8) takes the values defined in enum
  5532. * qca_wlan_vendor_external_acs_chan_power_mode
  5533. */
  5534. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  5535. = 1,
  5536. /*
  5537. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  5538. * present, it indicates a PSD value.
  5539. */
  5540. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  5541. /*
  5542. * Power value (u32) PSD/EIRP as indicated by
  5543. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  5544. * for power mode corresponding to the
  5545. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  5546. * Units for PSD - dBm/MHz
  5547. * Units for EIRP - dBm
  5548. */
  5549. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  5550. = 3,
  5551. /* keep last */
  5552. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  5553. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  5554. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  5555. };
  5556. /**
  5557. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  5558. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  5559. * driver.
  5560. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  5561. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  5562. * ACS need to be started
  5563. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  5564. * driver supports spectral scanning or not
  5565. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  5566. * offloaded to firmware.
  5567. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  5568. * provides additional channel capability as part of scan operation.
  5569. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  5570. * interface status is UP
  5571. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  5572. * interface. It takes one of nl80211_iftype values.
  5573. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  5574. * of chan width. ACS logic should try to get a channel with specified width
  5575. * if not found then look for lower values.
  5576. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  5577. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  5578. * a/b/g/n/ac.
  5579. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  5580. * among which ACS should choose best frequency.
  5581. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  5582. * driver which will have <channel(u8), weight(u8)> format as array of
  5583. * nested values.
  5584. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  5585. * for each channel. It takes attr as defined in
  5586. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  5587. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  5588. * qca_wlan_vendor_attr_external_acs_policy.
  5589. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  5590. * Operating Parameter (RROP) availability information (u16). It uses values
  5591. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  5592. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  5593. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  5594. */
  5595. enum qca_wlan_vendor_attr_external_acs_event {
  5596. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  5597. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  5598. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  5599. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  5600. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  5601. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  5602. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  5603. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  5604. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  5605. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  5606. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  5607. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  5608. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  5609. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  5610. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  5611. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  5612. /* keep last */
  5613. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  5614. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  5615. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  5616. };
  5617. enum qca_iface_type {
  5618. QCA_IFACE_TYPE_STA,
  5619. QCA_IFACE_TYPE_AP,
  5620. QCA_IFACE_TYPE_P2P_CLIENT,
  5621. QCA_IFACE_TYPE_P2P_GO,
  5622. QCA_IFACE_TYPE_IBSS,
  5623. QCA_IFACE_TYPE_TDLS,
  5624. };
  5625. /**
  5626. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  5627. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  5628. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  5629. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  5630. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  5631. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  5632. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  5633. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  5634. */
  5635. enum qca_wlan_vendor_attr_pcl_config {
  5636. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  5637. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  5638. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  5639. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  5640. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  5641. };
  5642. enum qca_set_band {
  5643. QCA_SETBAND_AUTO = 0,
  5644. QCA_SETBAND_5G = BIT(0),
  5645. QCA_SETBAND_2G = BIT(1),
  5646. QCA_SETBAND_6G = BIT(2),
  5647. };
  5648. /**
  5649. * enum set_reset_packet_filter - set packet filter control commands
  5650. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  5651. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  5652. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  5653. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  5654. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  5655. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  5656. */
  5657. enum set_reset_packet_filter {
  5658. QCA_WLAN_SET_PACKET_FILTER = 1,
  5659. QCA_WLAN_GET_PACKET_FILTER = 2,
  5660. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  5661. QCA_WLAN_READ_PACKET_FILTER = 4,
  5662. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  5663. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  5664. };
  5665. /**
  5666. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  5667. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  5668. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  5669. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  5670. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  5671. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  5672. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  5673. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  5674. * section in packet filter buffer
  5675. */
  5676. enum qca_wlan_vendor_attr_packet_filter {
  5677. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  5678. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  5679. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  5680. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  5681. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  5682. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  5683. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  5684. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  5685. /* keep last */
  5686. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  5687. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  5688. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  5689. };
  5690. /**
  5691. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  5692. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  5693. */
  5694. enum qca_wlan_vendor_attr_wake_stats {
  5695. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  5696. /* Unsigned 32-bit value indicating the total count of wake event */
  5697. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  5698. /* Array of individual wake count, each index representing wake reason
  5699. */
  5700. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  5701. /* Unsigned 32-bit value representing wake count array */
  5702. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  5703. /* Unsigned 32-bit total wake count value of driver/fw */
  5704. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  5705. /* Array of wake stats of driver/fw */
  5706. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  5707. /* Unsigned 32-bit total wake count value of driver/fw */
  5708. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  5709. /* Unsigned 32-bit total wake count value of packets received */
  5710. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  5711. /* Unsigned 32-bit wake count value unicast packets received */
  5712. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  5713. /* Unsigned 32-bit wake count value multicast packets received */
  5714. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  5715. /* Unsigned 32-bit wake count value broadcast packets received */
  5716. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  5717. /* Unsigned 32-bit wake count value of ICMP packets */
  5718. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  5719. /* Unsigned 32-bit wake count value of ICMP6 packets */
  5720. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  5721. /* Unsigned 32-bit value ICMP6 router advertisement */
  5722. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  5723. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  5724. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  5725. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  5726. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  5727. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  5728. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  5729. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  5730. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  5731. /* Unsigned 32-bit wake count value of receive side multicast */
  5732. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  5733. /* Unsigned 32-bit wake count value of a given RSSI breach */
  5734. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  5735. /* Unsigned 32-bit wake count value of low RSSI */
  5736. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  5737. /* Unsigned 32-bit value GSCAN count */
  5738. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  5739. /* Unsigned 32-bit value PNO complete count */
  5740. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  5741. /* Unsigned 32-bit value PNO match count */
  5742. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  5743. /* keep last */
  5744. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  5745. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  5746. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  5747. };
  5748. /**
  5749. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  5750. * configured by userspace to the driver/firmware. The values will be
  5751. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  5752. * The driver/firmware takes necessary actions requested by userspace
  5753. * such as throttling wifi tx etc. in order to mitigate high temperature.
  5754. *
  5755. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  5756. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  5757. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  5758. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  5759. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  5760. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  5761. */
  5762. enum qca_wlan_vendor_thermal_level {
  5763. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  5764. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  5765. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  5766. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  5767. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  5768. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  5769. };
  5770. /**
  5771. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  5772. * cmd value. Used for NL attributes for data used by
  5773. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5774. */
  5775. enum qca_wlan_vendor_attr_thermal_cmd {
  5776. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  5777. /* The value of command, driver will implement different operations
  5778. * according to this value. It uses values defined in
  5779. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  5780. * u32 attribute.
  5781. */
  5782. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  5783. /* Userspace uses this attribute to configure thermal level to the
  5784. * driver/firmware, or get thermal level from the driver/firmware.
  5785. * Used in request or response, u32 attribute,
  5786. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  5787. */
  5788. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  5789. /* Userspace uses this attribute to configure the time in which the
  5790. * driver/firmware should complete applying settings it received from
  5791. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  5792. * command type. Used in request, u32 attribute, value is in
  5793. * milliseconds. A value of zero indicates to apply the settings
  5794. * immediately. The driver/firmware can delay applying the configured
  5795. * thermal settings within the time specified in this attribute if
  5796. * there is any critical ongoing operation.
  5797. */
  5798. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  5799. /* Nested attribute, driver/firmware uses this attribute to report
  5800. * thermal stats of different thermal levels to userspace when requested
  5801. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  5802. * type. This attribute contains nested array of records of thermal
  5803. * statistics of multiple levels. The attributes used inside this nested
  5804. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  5805. */
  5806. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  5807. /* keep last */
  5808. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  5809. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  5810. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  5811. };
  5812. /**
  5813. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  5814. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  5815. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  5816. * thermal command types sent to driver.
  5817. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  5818. * get thermal shutdown configuration parameters for display. Parameters
  5819. * responded from driver are defined in
  5820. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  5821. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  5822. * get temperature. Host should respond with a temperature data. It is defined
  5823. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  5824. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  5825. * suspend action.
  5826. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  5827. * resume action.
  5828. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  5829. * the driver/firmware.
  5830. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  5831. * thermal level from the driver/firmware. The driver should respond with a
  5832. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  5833. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  5834. * current thermal stats from the driver/firmware. The driver should respond
  5835. * with stats of all thermal levels encapsulated in attribute
  5836. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  5837. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  5838. * the current thermal stats all thermal levels maintained in the
  5839. * driver/firmware and start counting from zero again.
  5840. */
  5841. enum qca_wlan_vendor_attr_thermal_cmd_type {
  5842. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  5843. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  5844. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  5845. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  5846. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  5847. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  5848. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  5849. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  5850. };
  5851. /**
  5852. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  5853. * to get chip temperature by user.
  5854. * enum values are used for NL attributes for data used by
  5855. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  5856. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5857. */
  5858. enum qca_wlan_vendor_attr_thermal_get_temperature {
  5859. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  5860. /* Temperature value (degree Celsius) from driver.
  5861. * u32 attribute.
  5862. */
  5863. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  5864. /* keep last */
  5865. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  5866. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  5867. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  5868. };
  5869. /**
  5870. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  5871. * report thermal events from driver to user space.
  5872. * enum values are used for NL attributes for data used by
  5873. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  5874. */
  5875. enum qca_wlan_vendor_attr_thermal_event {
  5876. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  5877. /* Temperature value (degree Celsius) from driver.
  5878. * u32 attribute.
  5879. */
  5880. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  5881. /* Indication of resume completion from power save mode.
  5882. * NLA_FLAG attribute.
  5883. */
  5884. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  5885. /* Thermal level from the driver.
  5886. * u32 attribute. Possible values are defined in
  5887. * enum qca_wlan_vendor_thermal_level.
  5888. */
  5889. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  5890. /* keep last */
  5891. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  5892. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  5893. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  5894. };
  5895. /**
  5896. * enum qca_vendor_element_id - QCA Vendor Specific element types
  5897. *
  5898. * These values are used to identify QCA Vendor Specific elements. The
  5899. * payload of the element starts with the three octet OUI (OUI_QCA) and
  5900. * is followed by a single octet type which is defined by this enum.
  5901. *
  5902. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  5903. * This element can be used to specify preference order for supported
  5904. * channels. The channels in this list are in preference order (the first
  5905. * one has the highest preference) and are described as a pair of
  5906. * (global) Operating Class and Channel Number (each one octet) fields.
  5907. *
  5908. * This extends the standard P2P functionality by providing option to have
  5909. * more than one preferred operating channel. When this element is present,
  5910. * it replaces the preference indicated in the Operating Channel attribute.
  5911. * For supporting other implementations, the Operating Channel attribute is
  5912. * expected to be used with the highest preference channel. Similarly, all
  5913. * the channels included in this Preferred channel list element are
  5914. * expected to be included in the Channel List attribute.
  5915. *
  5916. * This vendor element may be included in GO Negotiation Request, P2P
  5917. * Invitation Request, and Provision Discovery Request frames.
  5918. *
  5919. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  5920. * This element can be used for pre-standard publication testing of HE
  5921. * before P802.11ax draft assigns the element ID. The payload of this
  5922. * vendor specific element is defined by the latest P802.11ax draft.
  5923. * Please note that the draft is still work in progress and this element
  5924. * payload is subject to change.
  5925. *
  5926. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  5927. * This element can be used for pre-standard publication testing of HE
  5928. * before P802.11ax draft assigns the element ID. The payload of this
  5929. * vendor specific element is defined by the latest P802.11ax draft.
  5930. * Please note that the draft is still work in progress and this element
  5931. * payload is subject to change.
  5932. *
  5933. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  5934. * element).
  5935. * This element can be used for pre-standard publication testing of HE
  5936. * before P802.11ax draft assigns the element ID extension. The payload of
  5937. * this vendor specific element is defined by the latest P802.11ax draft
  5938. * (not including the Element ID Extension field). Please note that the
  5939. * draft is still work in progress and this element payload is subject to
  5940. * change.
  5941. *
  5942. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  5943. * This element can be used for pre-standard publication testing of HE
  5944. * before P802.11ax draft assigns the element ID extension. The payload of
  5945. * this vendor specific element is defined by the latest P802.11ax draft
  5946. * (not including the Element ID Extension field). Please note that the
  5947. * draft is still work in progress and this element payload is subject to
  5948. * change.
  5949. *
  5950. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  5951. * This element can be used for pre-standard publication testing of HE
  5952. * before P802.11ax draft assigns the element ID extension. The payload of
  5953. * this vendor specific element is defined by the latest P802.11ax draft
  5954. * (not including the Element ID Extension field). Please note that the
  5955. * draft is still work in progress and this element payload is subject to
  5956. * change.
  5957. */
  5958. enum qca_vendor_element_id {
  5959. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  5960. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  5961. QCA_VENDOR_ELEM_HE_OPER = 2,
  5962. QCA_VENDOR_ELEM_RAPS = 3,
  5963. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  5964. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  5965. };
  5966. /**
  5967. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  5968. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  5969. * Specify the TSF command. Possible values are defined in
  5970. * &enum qca_tsf_cmd.
  5971. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  5972. * This attribute contains TSF timer value. This attribute is only available
  5973. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  5974. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  5975. * This attribute contains SOC timer value at TSF capture. This attribute is
  5976. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  5977. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  5978. * This attribute is used to provide TSF sync interval and only applicable when
  5979. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  5980. * driver will use the default value. Time unit is in milliseconds.
  5981. */
  5982. enum qca_vendor_attr_tsf_cmd {
  5983. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  5984. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  5985. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  5986. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  5987. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  5988. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  5989. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  5990. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  5991. };
  5992. /**
  5993. * enum qca_tsf_cmd: TSF driver commands
  5994. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  5995. * @QCA_TSF_GET: Get TSF capture value
  5996. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  5997. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  5998. * will automatically send TSF report to the host. To query
  5999. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  6000. * initiated first.
  6001. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  6002. * will not automatically send TSF report to the host. If
  6003. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  6004. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  6005. * operation needs to be initiated.
  6006. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  6007. * fetches TSF and host time mapping from the firmware with interval configured
  6008. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  6009. * interval value is not provided the driver will use the default value. The
  6010. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  6011. * command.
  6012. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  6013. */
  6014. enum qca_tsf_cmd {
  6015. QCA_TSF_CAPTURE,
  6016. QCA_TSF_GET,
  6017. QCA_TSF_SYNC_GET,
  6018. QCA_TSF_AUTO_REPORT_ENABLE,
  6019. QCA_TSF_AUTO_REPORT_DISABLE,
  6020. QCA_TSF_SYNC_START,
  6021. QCA_TSF_SYNC_STOP,
  6022. };
  6023. /**
  6024. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  6025. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  6026. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  6027. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  6028. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  6029. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  6030. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  6031. */
  6032. enum qca_vendor_attr_get_preferred_freq_list {
  6033. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  6034. /* A 32-unsigned value; the interface type/mode for which the preferred
  6035. * frequency list is requested (see enum qca_iface_type for possible
  6036. * values); used in both south- and north-bound.
  6037. */
  6038. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  6039. /* An array of 32-unsigned values; values are frequency (MHz); used
  6040. * in north-bound only.
  6041. */
  6042. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  6043. /* An array of nested values as per enum
  6044. * qca_wlan_vendor_attr_pcl_config attribute.
  6045. * Each element contains frequency (MHz), weight, and flag
  6046. * bit mask indicating how the frequency should be used in P2P
  6047. * negotiation.
  6048. */
  6049. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  6050. /* keep last */
  6051. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  6052. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  6053. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  6054. };
  6055. /**
  6056. * enum qca_vendor_attr_probable_oper_channel - channel hint
  6057. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  6058. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  6059. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  6060. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  6061. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  6062. */
  6063. enum qca_vendor_attr_probable_oper_channel {
  6064. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  6065. /* 32-bit unsigned value; indicates the connection/iface type likely to
  6066. * come on this channel (see enum qca_iface_type).
  6067. */
  6068. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  6069. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  6070. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  6071. /* keep last */
  6072. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  6073. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  6074. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  6075. };
  6076. /**
  6077. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  6078. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  6079. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  6080. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  6081. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  6082. */
  6083. enum qca_wlan_vendor_attr_gw_param_config {
  6084. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  6085. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  6086. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  6087. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  6088. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  6089. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  6090. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  6091. };
  6092. /**
  6093. * enum drv_dbs_capability - DBS capability
  6094. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  6095. * @DRV_DBS_CAPABILITY_1X1: 1x1
  6096. * @DRV_DBS_CAPABILITY_2X2: 2x2
  6097. */
  6098. enum drv_dbs_capability {
  6099. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  6100. DRV_DBS_CAPABILITY_1X1,
  6101. DRV_DBS_CAPABILITY_2X2,
  6102. };
  6103. /**
  6104. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  6105. *
  6106. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  6107. */
  6108. enum qca_vendor_attr_txpower_decr_db {
  6109. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  6110. /*
  6111. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  6112. * a virtual interface.
  6113. */
  6114. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  6115. /* keep last */
  6116. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  6117. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  6118. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  6119. };
  6120. /**
  6121. * enum qca_vendor_attr_ota_test - Enable OTA test
  6122. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  6123. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  6124. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  6125. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  6126. */
  6127. enum qca_vendor_attr_ota_test {
  6128. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  6129. /* 8-bit unsigned value to indicate if OTA test is enabled */
  6130. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  6131. /* keep last */
  6132. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  6133. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  6134. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  6135. };
  6136. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  6137. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  6138. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  6139. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  6140. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  6141. */
  6142. enum qca_vendor_attr_txpower_scale {
  6143. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  6144. /* 8-bit unsigned value to indicate the scaling of tx power */
  6145. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  6146. /* keep last */
  6147. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  6148. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  6149. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  6150. };
  6151. /**
  6152. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  6153. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  6154. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  6155. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  6156. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  6157. */
  6158. enum qca_vendor_attr_txpower_scale_decr_db {
  6159. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  6160. /* 8-bit unsigned value to indicate the scaling of tx power */
  6161. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  6162. /* keep last */
  6163. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  6164. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  6165. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  6166. };
  6167. /**
  6168. * enum dfs_mode - state of DFS mode
  6169. * @DFS_MODE_NONE: DFS mode attribute is none
  6170. * @DFS_MODE_ENABLE: DFS mode is enabled
  6171. * @DFS_MODE_DISABLE: DFS mode is disabled
  6172. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  6173. */
  6174. enum dfs_mode {
  6175. DFS_MODE_NONE,
  6176. DFS_MODE_ENABLE,
  6177. DFS_MODE_DISABLE,
  6178. DFS_MODE_DEPRIORITIZE
  6179. };
  6180. /**
  6181. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  6182. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  6183. *
  6184. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  6185. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  6186. *
  6187. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  6188. * channel number hint for ACS operation, if valid channel is specified then
  6189. * ACS operation gives priority to this channel.
  6190. * Note: If both the driver and user space application supports the 6 GHz band,
  6191. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  6192. * should be used.
  6193. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  6194. * is still used if either of the driver or user space application doesn't
  6195. * support the 6 GHz band.
  6196. *
  6197. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  6198. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  6199. * frequency is specified, ACS operation gives priority to this channel.
  6200. */
  6201. enum qca_wlan_vendor_attr_acs_config {
  6202. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  6203. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  6204. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  6205. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  6206. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  6207. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  6208. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  6209. };
  6210. /**
  6211. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  6212. */
  6213. enum qca_wlan_vendor_attr_get_hw_capability {
  6214. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  6215. /*
  6216. * Antenna isolation
  6217. * An attribute used in the response.
  6218. * The content of this attribute is encoded in a byte array. Each byte
  6219. * value is an antenna isolation value. The array length is the number
  6220. * of antennas.
  6221. */
  6222. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  6223. /*
  6224. * Request HW capability
  6225. * An attribute used in the request.
  6226. * The content of this attribute is a u32 array for one or more of
  6227. * hardware capabilities (attribute IDs) that are being requested. Each
  6228. * u32 value has a value from this
  6229. * enum qca_wlan_vendor_attr_get_hw_capability
  6230. * identifying which capabilities are requested.
  6231. */
  6232. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  6233. /* keep last */
  6234. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  6235. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  6236. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  6237. };
  6238. /**
  6239. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  6240. * config params for sta roam policy
  6241. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  6242. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  6243. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  6244. * If sta should skip unsafe channels or not in scanning
  6245. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  6246. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  6247. */
  6248. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  6249. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  6250. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  6251. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  6252. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  6253. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  6254. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  6255. };
  6256. /* Attributes for FTM commands and events */
  6257. /**
  6258. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  6259. *
  6260. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  6261. * enum qca_wlan_vendor_attr_loc_capa_flags.
  6262. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  6263. * of measurement sessions that can run concurrently.
  6264. * Default is one session (no session concurrency).
  6265. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  6266. * peers that are supported in running sessions. For example,
  6267. * if the value is 8 and maximum number of sessions is 2, you can
  6268. * have one session with 8 unique peers, or 2 sessions with 4 unique
  6269. * peers each, and so on.
  6270. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6271. * of bursts per peer, as an exponent (2^value). Default is 0,
  6272. * meaning no multi-burst support.
  6273. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6274. * of measurement exchanges allowed in a single burst.
  6275. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6276. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6277. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6278. */
  6279. enum qca_wlan_vendor_attr_loc_capa {
  6280. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6281. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6282. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6283. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6284. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6285. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6286. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6287. /* keep last */
  6288. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6289. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6290. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6291. };
  6292. /**
  6293. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6294. *
  6295. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6296. * can be configured as an FTM responder (for example, an AP that
  6297. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6298. * will be supported if set.
  6299. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6300. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6301. * will be supported if set.
  6302. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6303. * supports immediate (ASAP) response.
  6304. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6305. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6306. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6307. * requesting AOA measurements as part of an FTM session.
  6308. */
  6309. enum qca_wlan_vendor_attr_loc_capa_flags {
  6310. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6311. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6312. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6313. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6314. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6315. };
  6316. /**
  6317. * enum qca_wlan_ani_setting - ANI setting type
  6318. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6319. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6320. */
  6321. enum qca_wlan_ani_setting {
  6322. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6323. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6324. };
  6325. /**
  6326. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6327. *
  6328. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6329. * Channel number on which Access Point should restart.
  6330. * Note: If both the driver and user space application supports the 6 GHz band,
  6331. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6332. * should be used.
  6333. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6334. * is still used if either of the driver or user space application doesn't
  6335. * support the 6 GHz band.
  6336. *
  6337. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6338. * Nested attribute to hold list of center frequencies on which AP is
  6339. * expected to operate. This is irrespective of ACS configuration.
  6340. * This list is a priority based one and is looked for before the AP is
  6341. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6342. * co-exist in the system.
  6343. *
  6344. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6345. * Channel center frequency (MHz) on which the access point should restart.
  6346. */
  6347. enum qca_wlan_vendor_attr_sap_config {
  6348. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6349. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6350. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6351. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6352. /* Keep last */
  6353. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6354. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6355. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6356. };
  6357. /**
  6358. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6359. * a single peer in a measurement session.
  6360. *
  6361. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6362. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6363. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6364. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6365. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6366. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6367. * list of supported attributes.
  6368. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6369. * secure measurement.
  6370. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6371. * measurement every <value> bursts. If 0 or not specified,
  6372. * AOA measurements will be disabled for this peer.
  6373. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6374. * the measurement frames are exchanged. Optional; if not
  6375. * specified, try to locate the peer in the kernel scan
  6376. * results cache and use frequency from there.
  6377. */
  6378. enum qca_wlan_vendor_attr_ftm_peer_info {
  6379. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6380. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6381. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6382. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6383. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6384. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6385. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6386. /* keep last */
  6387. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6388. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6389. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6390. };
  6391. /**
  6392. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6393. * per-peer
  6394. *
  6395. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6396. * immediate (ASAP) response from peer.
  6397. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6398. * LCI report from peer. The LCI report includes the absolute
  6399. * location of the peer in "official" coordinates (similar to GPS).
  6400. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6401. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6402. * Location civic report from peer. The LCR includes the location
  6403. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6404. * 11.24.6.7 for more information.
  6405. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6406. * request a secure measurement.
  6407. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6408. */
  6409. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6410. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6411. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6412. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6413. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6414. };
  6415. /**
  6416. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6417. *
  6418. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6419. * to perform in a single burst.
  6420. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6421. * perform, specified as an exponent (2^value).
  6422. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6423. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6424. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6425. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6426. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6427. */
  6428. enum qca_wlan_vendor_attr_ftm_meas_param {
  6429. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6430. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6431. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6432. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6433. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6434. /* keep last */
  6435. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6436. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6437. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6438. };
  6439. /**
  6440. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6441. *
  6442. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6443. * peer.
  6444. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6445. * request for this peer.
  6446. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6447. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6448. * to measurement results for this peer.
  6449. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6450. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6451. * request failed and peer requested not to send an additional request
  6452. * for this number of seconds.
  6453. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6454. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6455. * 9.4.2.22.10.
  6456. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6457. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6458. * 9.4.2.22.13.
  6459. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6460. * overridden some measurement request parameters. See
  6461. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6462. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6463. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6464. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6465. * results. Each entry is a nested attribute defined
  6466. * by enum qca_wlan_vendor_attr_ftm_meas.
  6467. */
  6468. enum qca_wlan_vendor_attr_ftm_peer_result {
  6469. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6470. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6471. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6472. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6473. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6474. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6475. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6476. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6477. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6478. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6479. /* keep last */
  6480. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  6481. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  6482. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  6483. };
  6484. /**
  6485. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  6486. *
  6487. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  6488. * will be provided. Peer may have overridden some measurement parameters,
  6489. * in which case overridden parameters will be report by
  6490. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  6491. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  6492. * of performing the measurement request. No more results will be sent
  6493. * for this peer in this session.
  6494. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  6495. * failed, and requested not to send an additional request for number
  6496. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  6497. * attribute.
  6498. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  6499. * failed. Request was not sent over the air.
  6500. */
  6501. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  6502. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  6503. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  6504. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  6505. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  6506. };
  6507. /**
  6508. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  6509. * for measurement result, per-peer
  6510. *
  6511. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  6512. * measurement completed for this peer. No more results will be reported
  6513. * for this peer in this session.
  6514. */
  6515. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  6516. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  6517. };
  6518. /**
  6519. * enum qca_vendor_attr_loc_session_status: Session completion status code
  6520. *
  6521. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  6522. * successfully.
  6523. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  6524. * by request.
  6525. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  6526. * was invalid and was not started.
  6527. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  6528. * and did not complete normally (for example out of resources).
  6529. */
  6530. enum qca_vendor_attr_loc_session_status {
  6531. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  6532. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  6533. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  6534. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  6535. };
  6536. /**
  6537. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  6538. *
  6539. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  6540. * recorded by responder, in picoseconds.
  6541. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6542. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  6543. * initiator, in picoseconds.
  6544. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6545. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  6546. * initiator, in picoseconds.
  6547. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6548. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  6549. * responder, in picoseconds.
  6550. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6551. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  6552. * during this measurement exchange. Optional and will be provided if
  6553. * the hardware can measure it.
  6554. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  6555. * responder. Not always provided.
  6556. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6557. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  6558. * responder. Not always provided.
  6559. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6560. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  6561. * initiator. Not always provided.
  6562. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6563. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  6564. * initiator. Not always provided.
  6565. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6566. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  6567. */
  6568. enum qca_wlan_vendor_attr_ftm_meas {
  6569. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  6570. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  6571. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  6572. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  6573. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  6574. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  6575. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  6576. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  6577. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  6578. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  6579. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  6580. /* keep last */
  6581. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  6582. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  6583. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  6584. };
  6585. /**
  6586. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  6587. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  6588. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  6589. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  6590. * of the social channels.
  6591. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  6592. * A 32-bit unsigned value; the P2P listen offload period (ms).
  6593. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  6594. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  6595. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  6596. * A 32-bit unsigned value; number of interval times the Firmware needs
  6597. * to run the offloaded P2P listen operation before it stops.
  6598. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  6599. * An array of unsigned 8-bit characters; vendor information elements.
  6600. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  6601. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  6602. * A 32-bit unsigned value; a control flag to indicate whether listen
  6603. * results need to be flushed to wpa_supplicant.
  6604. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  6605. * A 8-bit unsigned value; reason code for P2P listen offload stop
  6606. * event.
  6607. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  6608. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  6609. */
  6610. enum qca_wlan_vendor_attr_p2p_listen_offload {
  6611. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  6612. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  6613. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  6614. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  6615. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  6616. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  6617. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  6618. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  6619. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  6620. /* keep last */
  6621. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  6622. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  6623. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  6624. };
  6625. /**
  6626. * enum qca_wlan_vendor_drv_info - WLAN driver info
  6627. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  6628. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  6629. * between Firmware & Host.
  6630. */
  6631. enum qca_wlan_vendor_drv_info {
  6632. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  6633. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  6634. /* keep last */
  6635. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  6636. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  6637. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  6638. };
  6639. /**
  6640. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  6641. *
  6642. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  6643. * CIR (channel impulse response) path for each antenna.
  6644. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  6645. * of the strongest CIR path for each antenna.
  6646. */
  6647. enum qca_wlan_vendor_attr_aoa_type {
  6648. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  6649. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  6650. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  6651. };
  6652. /**
  6653. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  6654. * validate encryption engine
  6655. *
  6656. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  6657. * This will be included if the request is for decryption; if not included,
  6658. * the request is treated as a request for encryption by default.
  6659. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  6660. * indicating the key cipher suite. Takes same values as
  6661. * NL80211_ATTR_KEY_CIPHER.
  6662. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  6663. * Key Id to be used for encryption
  6664. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  6665. * Key (TK) to be used for encryption/decryption
  6666. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  6667. * Packet number to be specified for encryption/decryption
  6668. * 6 bytes for TKIP/CCMP/GCMP.
  6669. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  6670. * representing the 802.11 packet (header + payload + FCS) that
  6671. * needs to be encrypted/decrypted.
  6672. * Encrypted/decrypted response from the driver will also be sent
  6673. * to userspace with the same attribute.
  6674. */
  6675. enum qca_wlan_vendor_attr_encryption_test {
  6676. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  6677. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  6678. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  6679. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  6680. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  6681. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  6682. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  6683. /* keep last */
  6684. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  6685. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  6686. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  6687. };
  6688. /**
  6689. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  6690. * sector for DMG RF sector operations.
  6691. *
  6692. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  6693. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  6694. */
  6695. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  6696. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  6697. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  6698. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  6699. };
  6700. /**
  6701. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  6702. *
  6703. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  6704. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  6705. */
  6706. enum qca_wlan_vendor_attr_fw_state {
  6707. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  6708. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  6709. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  6710. };
  6711. /**
  6712. * BRP antenna limit mode
  6713. *
  6714. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  6715. * antenna limit, BRP will be performed as usual.
  6716. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  6717. * antennas limit. the hardware may use less antennas than the
  6718. * maximum limit.
  6719. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  6720. * use exactly the specified number of antennas for BRP.
  6721. */
  6722. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  6723. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  6724. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  6725. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  6726. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  6727. };
  6728. /**
  6729. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  6730. * DMG RF sector configuration for a single RF module.
  6731. * The values are defined in a compact way which closely matches
  6732. * the way it is stored in HW registers.
  6733. * The configuration provides values for 32 antennas and 8 distribution
  6734. * amplifiers, and together describes the characteristics of the RF
  6735. * sector - such as a beam in some direction with some gain.
  6736. *
  6737. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  6738. * of RF module for this configuration.
  6739. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  6740. * amplifier gain index. Unsigned 32 bit number containing
  6741. * bits for all 32 antennas.
  6742. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  6743. * amplifier gain index. Unsigned 32 bit number containing
  6744. * bits for all 32 antennas.
  6745. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  6746. * amplifier gain index. Unsigned 32 bit number containing
  6747. * bits for all 32 antennas.
  6748. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  6749. * for first 16 antennas, 2 bits per antenna.
  6750. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  6751. * for last 16 antennas, 2 bits per antenna.
  6752. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  6753. * DTYPE values (3 bits) for each distribution amplifier, followed
  6754. * by X16 switch bits for each distribution amplifier. There are
  6755. * total of 8 distribution amplifiers.
  6756. */
  6757. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  6758. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  6759. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  6760. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  6761. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  6762. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  6763. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  6764. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  6765. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  6766. /* keep last */
  6767. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  6768. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  6769. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  6770. };
  6771. /**
  6772. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  6773. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  6774. *
  6775. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  6776. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  6777. * represents the different TDLS trigger modes.
  6778. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  6779. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  6780. * of packets shall meet the criteria for implicit TDLS setup.
  6781. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  6782. * packets within a duration.
  6783. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  6784. * a TDLS setup.
  6785. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  6786. * a TDLS Discovery to the Peer.
  6787. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  6788. * discovery attempts to know the TDLS capability of the peer. A peer is
  6789. * marked as TDLS not capable if there is no response for all the attempts.
  6790. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  6791. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  6792. * number of TX / RX frames meet the criteria for TDLS teardown.
  6793. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  6794. * (u32) of Tx/Rx packets within a duration
  6795. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  6796. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  6797. * corresponding to the RSSI of the peer below which a TDLS
  6798. * setup is triggered.
  6799. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  6800. * corresponding to the RSSI of the peer above which
  6801. * a TDLS teardown is triggered.
  6802. */
  6803. enum qca_wlan_vendor_attr_tdls_configuration {
  6804. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  6805. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  6806. /* Attributes configuring the TDLS Implicit Trigger */
  6807. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  6808. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  6809. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  6810. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  6811. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  6812. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  6813. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  6814. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  6815. /* keep last */
  6816. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  6817. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  6818. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  6819. };
  6820. /**
  6821. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  6822. * the driver.
  6823. *
  6824. * The following are the different values for
  6825. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  6826. *
  6827. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  6828. * initiate/teardown the TDLS connection to a respective peer comes
  6829. * from the user space. wpa_supplicant provides the commands
  6830. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  6831. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  6832. * setup/teardown to the eligible peer once the configured criteria
  6833. * (such as TX/RX threshold, RSSI) is met. The attributes
  6834. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  6835. * the different configuration criteria for the TDLS trigger from the
  6836. * host driver.
  6837. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  6838. * the TDLS setup / teardown through the implicit mode, only to the
  6839. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  6840. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  6841. * External mode works on top of the implicit mode, thus the host Driver
  6842. * is expected to be configured in TDLS Implicit mode too to operate in
  6843. * External mode. Configuring External mode alone without Implicit
  6844. * mode is invalid.
  6845. *
  6846. * All the above implementations work as expected only when the host driver
  6847. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  6848. * representing that the TDLS message exchange is not internal to the host
  6849. * driver, but depends on wpa_supplicant to do the message exchange.
  6850. */
  6851. enum qca_wlan_vendor_tdls_trigger_mode {
  6852. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  6853. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  6854. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  6855. };
  6856. /**
  6857. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  6858. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  6859. * that is hard-coded in the Board Data File (BDF).
  6860. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  6861. * that is hard-coded in the Board Data File (BDF).
  6862. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  6863. * that is hard-coded in the Board Data File (BDF).
  6864. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  6865. * that is hard-coded in the Board Data File (BDF).
  6866. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  6867. * that is hard-coded in the Board Data File (BDF).
  6868. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  6869. * source of SAR power limits, thereby disabling the SAR power
  6870. * limit feature.
  6871. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  6872. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6873. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  6874. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6875. *
  6876. * This enumerates the valid set of values that may be supplied for
  6877. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  6878. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  6879. * the response to an instance of the
  6880. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6881. */
  6882. enum qca_vendor_attr_sar_limits_selections {
  6883. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  6884. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  6885. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  6886. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  6887. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  6888. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  6889. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  6890. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  6891. };
  6892. /**
  6893. * enum qca_vendor_attr_sar_limits_spec_modulations -
  6894. * SAR limits specification modulation
  6895. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  6896. * CCK modulation
  6897. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  6898. * OFDM modulation
  6899. *
  6900. * This enumerates the valid set of values that may be supplied for
  6901. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  6902. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  6903. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  6904. * command or in the response to an instance of the
  6905. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6906. */
  6907. enum qca_vendor_attr_sar_limits_spec_modulations {
  6908. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  6909. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  6910. };
  6911. /**
  6912. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  6913. *
  6914. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  6915. * select which SAR power limit table should be used. Valid
  6916. * values are enumerated in enum
  6917. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  6918. * power limit selection is unchanged if this attribute is not
  6919. * present.
  6920. *
  6921. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  6922. * which specifies the number of SAR power limit specifications
  6923. * which will follow.
  6924. *
  6925. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  6926. * limit specifications. The number of specifications is
  6927. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  6928. * specification contains a set of
  6929. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  6930. * specification is uniquely identified by the attributes
  6931. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  6932. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  6933. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  6934. * contains as a payload the attribute
  6935. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  6936. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  6937. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  6938. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  6939. * needed based upon the value of
  6940. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  6941. *
  6942. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  6943. * indicate for which band this specification applies. Valid
  6944. * values are enumerated in enum %nl80211_band (although not all
  6945. * bands may be supported by a given device). If the attribute is
  6946. * not supplied then the specification will be applied to all
  6947. * supported bands.
  6948. *
  6949. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  6950. * to indicate for which antenna chain this specification
  6951. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  6952. * attribute is not supplied then the specification will be
  6953. * applied to all chains.
  6954. *
  6955. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  6956. * value to indicate for which modulation scheme this
  6957. * specification applies. Valid values are enumerated in enum
  6958. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  6959. * is not supplied then the specification will be applied to all
  6960. * modulation schemes.
  6961. *
  6962. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  6963. * value to specify the actual power limit value in units of 0.5
  6964. * dBm (i.e., a value of 11 represents 5.5 dBm).
  6965. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6966. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  6967. *
  6968. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  6969. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  6970. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6971. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  6972. *
  6973. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  6974. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  6975. */
  6976. enum qca_vendor_attr_sar_limits {
  6977. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  6978. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  6979. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  6980. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  6981. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  6982. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  6983. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  6984. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  6985. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  6986. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  6987. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  6988. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  6989. };
  6990. /**
  6991. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  6992. * offload which is an extension for LL_STATS.
  6993. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  6994. * If MAC counters do not exceed the threshold, FW will report monitored
  6995. * link layer counters periodically as this setting. The first report is
  6996. * always triggered by this timer.
  6997. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  6998. * For each MAC layer counter, FW holds two copies. One is the current value.
  6999. * The other is the last report. Once a current counter's increment is larger
  7000. * than the threshold, FW will indicate that counter to host even if the
  7001. * monitoring timer does not expire.
  7002. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  7003. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  7004. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  7005. * failure code.
  7006. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  7007. * 1: TX packet discarded
  7008. * 2: No ACK
  7009. * 3: Postpone
  7010. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  7011. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  7012. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  7013. * Threshold for all monitored parameters. If per counter dedicated threshold
  7014. * is not enabled, this threshold will take effect.
  7015. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  7016. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  7017. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  7018. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  7019. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  7020. * Bit0: TX counter unit in MSDU
  7021. * Bit1: TX counter unit in MPDU
  7022. * Bit2: TX counter unit in PPDU
  7023. * Bit3: TX counter unit in byte
  7024. * Bit4: Dropped MSDUs
  7025. * Bit5: Dropped Bytes
  7026. * Bit6: MPDU retry counter
  7027. * Bit7: MPDU failure counter
  7028. * Bit8: PPDU failure counter
  7029. * Bit9: MPDU aggregation counter
  7030. * Bit10: MCS counter for ACKed MPDUs
  7031. * Bit11: MCS counter for Failed MPDUs
  7032. * Bit12: TX Delay counter
  7033. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  7034. * Bit0: MAC RX counter unit in MPDU
  7035. * Bit1: MAC RX counter unit in byte
  7036. * Bit2: PHY RX counter unit in PPDU
  7037. * Bit3: PHY RX counter unit in byte
  7038. * Bit4: Disorder counter
  7039. * Bit5: Retry counter
  7040. * Bit6: Duplication counter
  7041. * Bit7: Discard counter
  7042. * Bit8: MPDU aggregation size counter
  7043. * Bit9: MCS counter
  7044. * Bit10: Peer STA power state change (wake to sleep) counter
  7045. * Bit11: Peer STA power save counter, total time in PS mode
  7046. * Bit12: Probe request counter
  7047. * Bit13: Other management frames counter
  7048. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  7049. * Bit0: Idle time
  7050. * Bit1: TX time
  7051. * Bit2: time RX in current bss
  7052. * Bit3: Out of current bss time
  7053. * Bit4: Wireless medium busy time
  7054. * Bit5: RX in bad condition time
  7055. * Bit6: TX in bad condition time
  7056. * Bit7: time wlan card not available
  7057. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  7058. * Bit0: Per channel SNR counter
  7059. * Bit1: Per channel noise floor counter
  7060. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  7061. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  7062. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  7063. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  7064. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  7065. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  7066. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  7067. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  7068. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  7069. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  7070. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  7071. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  7072. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  7073. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  7074. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  7075. * aggregation stats buffer length
  7076. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  7077. * buffer for ACKed MPDUs.
  7078. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  7079. * buffer for failed MPDUs.
  7080. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  7081. * length of delay stats array.
  7082. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  7083. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  7084. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  7085. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  7086. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  7087. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  7088. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  7089. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  7090. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  7091. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  7092. * flagged as retransmissions
  7093. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  7094. * flagged as duplicated
  7095. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  7096. * packets discarded
  7097. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  7098. * stats buffer.
  7099. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  7100. * stats buffer.
  7101. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  7102. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  7103. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  7104. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  7105. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  7106. * requests received
  7107. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  7108. * frames received
  7109. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  7110. * there is no TX, nor RX, nor interference.
  7111. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  7112. * transmitting packets.
  7113. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  7114. * for receiving.
  7115. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  7116. * interference detected.
  7117. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  7118. * receiving packets with errors.
  7119. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  7120. * TX no-ACK.
  7121. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  7122. * the chip is unable to work in normal conditions.
  7123. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  7124. * receiving packets in current BSS.
  7125. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  7126. * receiving packets not in current BSS.
  7127. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  7128. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  7129. * This is a container for per antenna signal stats.
  7130. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  7131. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  7132. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  7133. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  7134. */
  7135. enum qca_wlan_vendor_attr_ll_stats_ext {
  7136. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  7137. /* Attributes for configurations */
  7138. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  7139. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  7140. /* Peer STA power state change */
  7141. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  7142. /* TX failure event */
  7143. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  7144. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  7145. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  7146. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  7147. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  7148. /* MAC counters */
  7149. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  7150. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  7151. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  7152. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  7153. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  7154. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  7155. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  7156. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  7157. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  7158. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  7159. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  7160. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  7161. /* Sub-attributes for PEER_AC_TX */
  7162. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  7163. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  7164. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  7165. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  7166. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  7167. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  7168. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  7169. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  7170. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  7171. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  7172. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  7173. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  7174. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  7175. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  7176. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  7177. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  7178. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  7179. /* Sub-attributes for PEER_AC_RX */
  7180. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  7181. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  7182. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  7183. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  7184. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  7185. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  7186. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  7187. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  7188. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  7189. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  7190. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  7191. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  7192. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  7193. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  7194. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  7195. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  7196. /* Sub-attributes for CCA_BSS */
  7197. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  7198. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  7199. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  7200. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  7201. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  7202. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  7203. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  7204. /* sub-attribute for BSS_RX_TIME */
  7205. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  7206. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  7207. /* Sub-attributes for PEER_SIGNAL */
  7208. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  7209. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  7210. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  7211. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  7212. /* Sub-attributes for IFACE_BSS */
  7213. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  7214. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  7215. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  7216. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  7217. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  7218. };
  7219. /**
  7220. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  7221. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  7222. * in priority order as decided after ACS operation in userspace.
  7223. *
  7224. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  7225. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  7226. *
  7227. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  7228. * Array of nested values for each channel with following attributes:
  7229. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7230. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7231. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7232. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7233. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7234. * Note: If both the driver and user-space application supports the 6 GHz band,
  7235. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  7236. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  7237. * To maintain backward compatibility,
  7238. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  7239. * is still used if either of the driver or user space application doesn't
  7240. * support the 6 GHz band.
  7241. *
  7242. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  7243. * Primary channel number
  7244. * Note: If both the driver and user-space application supports the 6 GHz band,
  7245. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  7246. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  7247. * To maintain backward compatibility,
  7248. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  7249. * is still used if either of the driver or user space application doesn't
  7250. * support the 6 GHz band.
  7251. *
  7252. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  7253. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  7254. * Note: If both the driver and user-space application supports the 6 GHz band,
  7255. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  7256. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  7257. * To maintain backward compatibility,
  7258. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  7259. * is still used if either of the driver or user space application
  7260. * doesn't support the 6 GHz band.
  7261. *
  7262. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  7263. * VHT seg0 channel number
  7264. * Note: If both the driver and user-space application supports the 6 GHz band,
  7265. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  7266. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  7267. * To maintain backward compatibility,
  7268. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  7269. * is still used if either of the driver or user space application
  7270. * doesn't support the 6 GHz band.
  7271. *
  7272. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7273. * VHT seg1 channel number
  7274. * Note: If both the driver and user-space application supports the 6 GHz band,
  7275. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7276. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7277. * To maintain backward compatibility,
  7278. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7279. * is still used if either of the driver or user space application
  7280. * doesn't support the 6 GHz band.
  7281. *
  7282. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7283. * Takes one of enum nl80211_chan_width values.
  7284. *
  7285. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7286. * Array of nested values for each channel with following attributes:
  7287. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7288. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7289. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7290. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7291. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7292. * Note: If user-space application has no support of the 6 GHz band, this
  7293. * attribute is optional.
  7294. *
  7295. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7296. * Primary channel frequency in MHz
  7297. * Note: If user-space application has no support of the 6 GHz band, this
  7298. * attribute is optional.
  7299. *
  7300. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7301. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7302. * Note: If user-space application has no support of the 6 GHz band, this
  7303. * attribute is optional.
  7304. *
  7305. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7306. * VHT seg0 channel frequency in MHz
  7307. * Note: If user-space application has no support of the 6GHz band, this
  7308. * attribute is optional.
  7309. *
  7310. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7311. * VHT seg1 channel frequency in MHz
  7312. * Note: If user-space application has no support of the 6 GHz band, this
  7313. * attribute is optional.
  7314. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
  7315. * Puncture Bitmap for selected primary channel. Optional if no support
  7316. * for EHT (IEEE 802.11be). Encoding for this attribute follows the
  7317. * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
  7318. * element.
  7319. */
  7320. enum qca_wlan_vendor_attr_external_acs_channels {
  7321. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7322. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7323. */
  7324. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7325. /* Array of nested values for each channel with following attributes:
  7326. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7327. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7328. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7329. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7330. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7331. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7332. */
  7333. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7334. /* This (u8) will hold values of one of enum nl80211_bands */
  7335. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7336. /* Primary channel (u8) */
  7337. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7338. /* Secondary channel (u8) used for HT 40 MHz channels */
  7339. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7340. /* VHT seg0 channel (u8) */
  7341. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7342. /* VHT seg1 channel (u8) */
  7343. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7344. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7345. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7346. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7347. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7348. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7349. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7350. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7351. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
  7352. /* keep last */
  7353. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7354. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7355. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7356. };
  7357. /**
  7358. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7359. * the ACS has to be triggered. These values are used by
  7360. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7361. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7362. */
  7363. enum qca_wlan_vendor_acs_select_reason {
  7364. /* Represents the reason that the ACS triggered during the AP start */
  7365. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7366. /* Represents the reason that DFS found with the current channel */
  7367. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7368. /* Represents the reason that LTE co-exist in the current band. */
  7369. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7370. /* Represents the reason that generic, uncategorized interference has
  7371. * been found in the current channel.
  7372. */
  7373. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7374. /* Represents the reason that excessive 802.11 interference has been
  7375. * found in the current channel.
  7376. */
  7377. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7378. /* Represents the reason that generic Continuous Wave (CW) interference
  7379. * has been found in the current channel.
  7380. */
  7381. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7382. /* Represents the reason that Microwave Oven (MWO) interference has been
  7383. * found in the current channel.
  7384. */
  7385. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7386. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7387. * (FHSS) interference has been found in the current channel. This may
  7388. * include 802.11 waveforms.
  7389. */
  7390. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7391. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7392. * Spread Spectrum (FHSS) interference has been found in the current
  7393. * channel.
  7394. */
  7395. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7396. /* Represents the reason that generic Wideband (WB) interference has
  7397. * been found in the current channel. This may include 802.11 waveforms.
  7398. */
  7399. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7400. /* Represents the reason that non-802.11 generic Wideband (WB)
  7401. * interference has been found in the current channel.
  7402. */
  7403. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7404. /* Represents the reason that Jammer interference has been found in the
  7405. * current channel.
  7406. */
  7407. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7408. /* Represents the reason that ACS triggered by AFC */
  7409. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7410. };
  7411. /**
  7412. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7413. *
  7414. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7415. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7416. * to get the available value that this item can use.
  7417. *
  7418. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7419. * value to specify the gpio number.
  7420. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7421. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7422. *
  7423. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7424. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7425. * to get the available value that this item can use.
  7426. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7427. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7428. *
  7429. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7430. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7431. * to get the available value that this item can use.
  7432. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7433. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7434. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7435. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7436. * attribute is present.
  7437. *
  7438. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7439. * value to specify the gpio interrupt mode, please refer to enum
  7440. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7441. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7442. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7443. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7444. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7445. * attribute is present.
  7446. *
  7447. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7448. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7449. * to get the available value that this item can use.
  7450. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7451. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7452. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7453. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7454. * attribute is present.
  7455. *
  7456. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7457. * Value to specify the mux config. Meaning of a given value is dependent
  7458. * on the target chipset and gpio pin. Must be of the range 0-15.
  7459. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7460. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7461. *
  7462. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7463. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7464. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7465. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7466. *
  7467. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7468. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7469. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7470. * other parameters for the given GPIO will be obtained from internal
  7471. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7472. * specified to indicate the GPIO pin being configured.
  7473. */
  7474. enum qca_wlan_gpio_attr {
  7475. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7476. /* Unsigned 32-bit attribute for GPIO command */
  7477. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7478. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7479. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  7480. /* Unsigned 32-bit attribute for GPIO value to configure */
  7481. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  7482. /* Unsigned 32-bit attribute for GPIO pull type */
  7483. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  7484. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  7485. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  7486. /* Unsigned 32-bit attribute for GPIO direction to configure */
  7487. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  7488. /* Unsigned 32-bit attribute for GPIO mux config */
  7489. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  7490. /* Unsigned 32-bit attribute for GPIO drive */
  7491. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  7492. /* Flag attribute for using internal gpio configuration */
  7493. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  7494. /* keep last */
  7495. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  7496. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  7497. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  7498. };
  7499. /**
  7500. * enum gpio_cmd_type - GPIO configuration command type
  7501. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  7502. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  7503. */
  7504. enum qca_gpio_cmd_type {
  7505. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  7506. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  7507. };
  7508. /**
  7509. * enum qca_gpio_pull_type - GPIO pull type
  7510. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  7511. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  7512. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  7513. */
  7514. enum qca_gpio_pull_type {
  7515. QCA_WLAN_GPIO_PULL_NONE = 0,
  7516. QCA_WLAN_GPIO_PULL_UP = 1,
  7517. QCA_WLAN_GPIO_PULL_DOWN = 2,
  7518. QCA_WLAN_GPIO_PULL_MAX,
  7519. };
  7520. /**
  7521. * enum qca_gpio_direction - GPIO direction
  7522. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  7523. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  7524. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  7525. */
  7526. enum qca_gpio_direction {
  7527. QCA_WLAN_GPIO_INPUT = 0,
  7528. QCA_WLAN_GPIO_OUTPUT = 1,
  7529. QCA_WLAN_GPIO_DIR_MAX,
  7530. };
  7531. /**
  7532. * enum qca_gpio_value - GPIO Value
  7533. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  7534. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  7535. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  7536. */
  7537. enum qca_gpio_value {
  7538. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  7539. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  7540. QCA_WLAN_GPIO_LEVEL_MAX,
  7541. };
  7542. /**
  7543. * enum gpio_interrupt_mode - GPIO interrupt mode
  7544. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  7545. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  7546. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  7547. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  7548. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  7549. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  7550. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  7551. */
  7552. enum qca_gpio_interrupt_mode {
  7553. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  7554. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  7555. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  7556. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  7557. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  7558. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  7559. QCA_WLAN_GPIO_INTMODE_MAX,
  7560. };
  7561. /**
  7562. * enum gpio_drive - GPIO drive
  7563. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  7564. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  7565. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  7566. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  7567. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  7568. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  7569. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  7570. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  7571. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  7572. */
  7573. enum qca_gpio_drive {
  7574. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  7575. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  7576. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  7577. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  7578. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  7579. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  7580. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  7581. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  7582. QCA_WLAN_GPIO_DRIVE_MAX,
  7583. };
  7584. /**
  7585. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  7586. * MSDUQ depth threshold per peer per tid in the target
  7587. *
  7588. * Associated Vendor Command:
  7589. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  7590. */
  7591. enum qca_wlan_set_qdepth_thresh_attr {
  7592. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  7593. /* 6-byte MAC address */
  7594. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  7595. /* Unsigned 32-bit attribute for holding the TID */
  7596. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  7597. /* Unsigned 32-bit attribute for holding the update mask
  7598. * bit 0 - Update high priority msdu qdepth threshold
  7599. * bit 1 - Update low priority msdu qdepth threshold
  7600. * bit 2 - Update UDP msdu qdepth threshold
  7601. * bit 3 - Update Non UDP msdu qdepth threshold
  7602. * rest of bits are reserved
  7603. */
  7604. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  7605. /* Unsigned 32-bit attribute for holding the threshold value */
  7606. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  7607. /* keep last */
  7608. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  7609. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  7610. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  7611. };
  7612. /**
  7613. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  7614. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  7615. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  7616. * external ACS policies to select the channels w.r.t. the PCL weights.
  7617. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  7618. * their PCL weights.)
  7619. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  7620. * select a channel with non-zero PCL weight.
  7621. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  7622. * channel with non-zero PCL weight.
  7623. *
  7624. */
  7625. enum qca_wlan_vendor_attr_external_acs_policy {
  7626. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  7627. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  7628. };
  7629. /**
  7630. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  7631. */
  7632. enum qca_wlan_vendor_attr_spectral_scan {
  7633. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  7634. /*
  7635. * Number of times the chip enters spectral scan mode before
  7636. * deactivating spectral scans. When set to 0, chip will enter spectral
  7637. * scan mode continuously. u32 attribute.
  7638. */
  7639. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  7640. /*
  7641. * Spectral scan period. Period increment resolution is 256*Tclk,
  7642. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  7643. */
  7644. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  7645. /* Spectral scan priority. u32 attribute. */
  7646. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  7647. /* Number of FFT data points to compute. u32 attribute. */
  7648. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  7649. /*
  7650. * Enable targeted gain change before starting the spectral scan FFT.
  7651. * u32 attribute.
  7652. */
  7653. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  7654. /* Restart a queued spectral scan. u32 attribute. */
  7655. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  7656. /*
  7657. * Noise floor reference number for the calculation of bin power.
  7658. * u32 attribute.
  7659. */
  7660. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  7661. /*
  7662. * Disallow spectral scan triggers after TX/RX packets by setting
  7663. * this delay value to roughly SIFS time period or greater.
  7664. * u32 attribute.
  7665. */
  7666. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  7667. /*
  7668. * Number of strong bins (inclusive) per sub-channel, below
  7669. * which a signal is declared a narrow band tone. u32 attribute.
  7670. */
  7671. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  7672. /*
  7673. * Specify the threshold over which a bin is declared strong (for
  7674. * scan bandwidth analysis). u32 attribute.
  7675. */
  7676. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  7677. /* Spectral scan report mode. u32 attribute. */
  7678. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  7679. /*
  7680. * RSSI report mode, if the ADC RSSI is below
  7681. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  7682. * then FFTs will not trigger, but timestamps and summaries get
  7683. * reported. u32 attribute.
  7684. */
  7685. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  7686. /*
  7687. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  7688. * to ensure spectral scan reporting with normal error code.
  7689. * u32 attribute.
  7690. */
  7691. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  7692. /*
  7693. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  7694. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  7695. * u32 attribute.
  7696. */
  7697. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  7698. /*
  7699. * Format of FFT report to software for spectral scan triggered FFTs.
  7700. * 0: No FFT report (only spectral scan summary report)
  7701. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  7702. * report
  7703. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  7704. * bins (in-band) per FFT + spectral scan summary report
  7705. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  7706. * bins (all) per FFT + spectral scan summary report
  7707. * u32 attribute.
  7708. */
  7709. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  7710. /*
  7711. * Number of LSBs to shift out in order to scale the FFT bins.
  7712. * u32 attribute.
  7713. */
  7714. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  7715. /*
  7716. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  7717. * in dBm power. u32 attribute.
  7718. */
  7719. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  7720. /*
  7721. * Per chain enable mask to select input ADC for search FFT.
  7722. * u32 attribute.
  7723. */
  7724. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  7725. /*
  7726. * An unsigned 64-bit integer provided by host driver to identify the
  7727. * spectral scan request. This attribute is included in the scan
  7728. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  7729. * and used as an attribute in
  7730. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  7731. * specific scan to be stopped.
  7732. */
  7733. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  7734. /* Skip interval for FFT reports. u32 attribute */
  7735. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  7736. /* Set to report only one set of FFT results.
  7737. * u32 attribute.
  7738. */
  7739. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  7740. /* Debug level for spectral module in driver.
  7741. * 0 : Verbosity level 0
  7742. * 1 : Verbosity level 1
  7743. * 2 : Verbosity level 2
  7744. * 3 : Matched filterID display
  7745. * 4 : One time dump of FFT report
  7746. * u32 attribute.
  7747. */
  7748. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  7749. /* Type of spectral scan request. u32 attribute.
  7750. * It uses values defined in enum
  7751. * qca_wlan_vendor_attr_spectral_scan_request_type.
  7752. */
  7753. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  7754. /* This specifies the frequency span over which spectral
  7755. * scan would be carried out. Its value depends on the
  7756. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  7757. * the relation is as follows.
  7758. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7759. * Not applicable. Spectral scan would happen in the
  7760. * operating span.
  7761. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7762. * Center frequency (in MHz) of the span of interest or
  7763. * for convenience, center frequency (in MHz) of any channel
  7764. * in the span of interest. For 80+80 MHz agile spectral scan
  7765. * request it represents center frequency (in MHz) of the primary
  7766. * 80 MHz span or for convenience, center frequency (in MHz) of any
  7767. * channel in the primary 80 MHz span. If agile spectral scan is
  7768. * initiated without setting a valid frequency it returns the
  7769. * error code
  7770. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  7771. * u32 attribute.
  7772. */
  7773. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  7774. /* Spectral scan mode. u32 attribute.
  7775. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7776. * If this attribute is not present, it is assumed to be
  7777. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  7778. */
  7779. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  7780. /* Spectral scan error code. u32 attribute.
  7781. * It uses values defined in enum
  7782. * qca_wlan_vendor_spectral_scan_error_code.
  7783. * This attribute is included only in failure scenarios.
  7784. */
  7785. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  7786. /* 8-bit unsigned value to enable/disable debug of the
  7787. * Spectral DMA ring.
  7788. * 1-enable, 0-disable
  7789. */
  7790. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  7791. /* 8-bit unsigned value to enable/disable debug of the
  7792. * Spectral DMA buffers.
  7793. * 1-enable, 0-disable
  7794. */
  7795. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  7796. /* This specifies the frequency span over which spectral scan would be
  7797. * carried out. Its value depends on the value of
  7798. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  7799. * follows.
  7800. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7801. * Not applicable. Spectral scan would happen in the operating span.
  7802. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7803. * This attribute is applicable only for agile spectral scan
  7804. * requests in 80+80 MHz mode. It represents center frequency (in
  7805. * MHz) of the secondary 80 MHz span or for convenience, center
  7806. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  7807. * u32 attribute.
  7808. */
  7809. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  7810. /* This attribute specifies the bandwidth to be used for Spectral scan
  7811. * operation. This is an u8 attribute and uses the values in enum
  7812. * nl80211_chan_width. This is an optional attribute.
  7813. * If this attribute is not populated, the driver should configure the
  7814. * Spectral scan bandwidth to the maximum value supported by the target
  7815. * for the current operating bandwidth.
  7816. */
  7817. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  7818. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  7819. * recapture. Recapture can only be enabled for Scan period greater
  7820. * than 52us.
  7821. * If this attribute is enabled, re-triggers will be enabled in uCode
  7822. * when AGC gain changes.
  7823. */
  7824. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  7825. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  7826. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  7827. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  7828. };
  7829. /**
  7830. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  7831. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  7832. */
  7833. enum qca_wlan_vendor_attr_spectral_diag_stats {
  7834. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  7835. /* Number of spectral TLV signature mismatches.
  7836. * u64 attribute.
  7837. */
  7838. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  7839. /* Number of spectral phyerror events with insufficient length when
  7840. * parsing for secondary 80 search FFT report. u64 attribute.
  7841. */
  7842. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  7843. /* Number of spectral phyerror events without secondary 80
  7844. * search FFT report. u64 attribute.
  7845. */
  7846. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  7847. /* Number of spectral phyerror events with vht operation segment 1 id
  7848. * mismatches in search fft report. u64 attribute.
  7849. */
  7850. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  7851. /* Number of spectral phyerror events with vht operation segment 2 id
  7852. * mismatches in search fft report. u64 attribute.
  7853. */
  7854. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  7855. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  7856. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  7857. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  7858. };
  7859. /**
  7860. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  7861. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  7862. */
  7863. enum qca_wlan_vendor_attr_spectral_cap {
  7864. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  7865. /* Flag attribute to indicate phydiag capability */
  7866. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  7867. /* Flag attribute to indicate radar detection capability */
  7868. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  7869. /* Flag attribute to indicate spectral capability */
  7870. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  7871. /* Flag attribute to indicate advanced spectral capability */
  7872. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  7873. /* Spectral hardware generation. u32 attribute.
  7874. * It uses values defined in enum
  7875. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  7876. */
  7877. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  7878. /* Spectral bin scaling formula ID. u16 attribute.
  7879. * It uses values defined in enum
  7880. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  7881. */
  7882. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  7883. /* Spectral bin scaling param - low level offset.
  7884. * s16 attribute.
  7885. */
  7886. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  7887. /* Spectral bin scaling param - high level offset.
  7888. * s16 attribute.
  7889. */
  7890. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  7891. /* Spectral bin scaling param - RSSI threshold.
  7892. * s16 attribute.
  7893. */
  7894. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  7895. /* Spectral bin scaling param - default AGC max gain.
  7896. * u8 attribute.
  7897. */
  7898. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  7899. /* Flag attribute to indicate agile spectral scan capability
  7900. * for 20/40/80 MHz modes.
  7901. */
  7902. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  7903. /* Flag attribute to indicate agile spectral scan capability
  7904. * for 160 MHz mode.
  7905. */
  7906. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  7907. /* Flag attribute to indicate agile spectral scan capability
  7908. * for 80+80 MHz mode.
  7909. */
  7910. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  7911. /* Number of spectral detectors used for scan in 20 MHz.
  7912. * u32 attribute.
  7913. */
  7914. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  7915. /* Number of spectral detectors used for scan in 40 MHz.
  7916. * u32 attribute.
  7917. */
  7918. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  7919. /* Number of spectral detectors used for scan in 80 MHz.
  7920. * u32 attribute.
  7921. */
  7922. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  7923. /* Number of spectral detectors used for scan in 160 MHz.
  7924. * u32 attribute.
  7925. */
  7926. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  7927. /* Number of spectral detectors used for scan in 80+80 MHz.
  7928. * u32 attribute.
  7929. */
  7930. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  7931. /* Flag attribute to indicate agile spectral scan capability
  7932. * for 320 MHz mode.
  7933. */
  7934. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  7935. /* Number of spectral detectors used for scan in 320 MHz.
  7936. * u32 attribute.
  7937. */
  7938. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  7939. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  7940. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  7941. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  7942. };
  7943. /**
  7944. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  7945. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  7946. */
  7947. enum qca_wlan_vendor_attr_spectral_scan_status {
  7948. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  7949. /* Flag attribute to indicate whether spectral scan is enabled */
  7950. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  7951. /* Flag attribute to indicate whether spectral scan is in progress*/
  7952. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  7953. /* Spectral scan mode. u32 attribute.
  7954. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7955. * If this attribute is not present, normal mode
  7956. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  7957. * requested.
  7958. */
  7959. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  7960. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  7961. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  7962. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  7963. };
  7964. /**
  7965. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  7966. * wlan latency module.
  7967. *
  7968. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  7969. * power saving which would causing data exchange out of service, this
  7970. * would be a big impact on latency. For latency sensitive applications over
  7971. * Wi-Fi are intolerant to such operations and thus would configure them
  7972. * to meet their respective needs. It is well understood by such applications
  7973. * that altering the default behavior would degrade the Wi-Fi functionality
  7974. * w.r.t the above pointed WLAN operations.
  7975. *
  7976. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  7977. * Default WLAN operation level which throughput orientated.
  7978. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  7979. * Use XR level to benefit XR (extended reality) application to achieve
  7980. * latency and power by via constraint scan/roaming/adaptive PS.
  7981. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  7982. * Use low latency level to benefit application like concurrent
  7983. * downloading or video streaming via constraint scan/adaptive PS.
  7984. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  7985. * Use ultra low latency level to benefit for gaming/voice
  7986. * application via constraint scan/roaming/adaptive PS.
  7987. */
  7988. enum qca_wlan_vendor_attr_config_latency_level {
  7989. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  7990. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  7991. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  7992. /* legacy name */
  7993. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  7994. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  7995. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  7996. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  7997. /* keep last */
  7998. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  7999. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  8000. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  8001. };
  8002. /**
  8003. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  8004. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  8005. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  8006. * spectral scan request types.
  8007. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  8008. * set the spectral parameters and start scan.
  8009. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  8010. * only set the spectral parameters.
  8011. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  8012. * only start the spectral scan.
  8013. */
  8014. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  8015. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  8016. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  8017. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  8018. };
  8019. /**
  8020. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  8021. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  8022. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  8023. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  8024. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  8025. * spectral scan modes.
  8026. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  8027. * spectral scan in the current operating span.
  8028. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  8029. * spectral scan in the configured agile span.
  8030. */
  8031. enum qca_wlan_vendor_spectral_scan_mode {
  8032. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  8033. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  8034. };
  8035. /**
  8036. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  8037. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  8038. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  8039. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  8040. * of a parameter is not supported.
  8041. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  8042. * mode is not supported.
  8043. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  8044. * has invalid value.
  8045. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  8046. * is not initialized.
  8047. */
  8048. enum qca_wlan_vendor_spectral_scan_error_code {
  8049. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  8050. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  8051. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  8052. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  8053. };
  8054. /**
  8055. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  8056. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  8057. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8058. * spectral hardware generation.
  8059. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  8060. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  8061. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  8062. */
  8063. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  8064. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  8065. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  8066. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  8067. };
  8068. /**
  8069. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  8070. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  8071. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8072. * Spectral bin scaling formula ID.
  8073. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  8074. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  8075. * and RSSI threshold based formula.
  8076. */
  8077. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  8078. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  8079. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  8080. };
  8081. /**
  8082. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  8083. * RF Operating Parameter (RROP) information is available, and if so, at which
  8084. * point in the application-driver interaction sequence it can be retrieved by
  8085. * the application from the driver. This point may vary by architecture and
  8086. * other factors. This is a u16 value.
  8087. */
  8088. enum qca_wlan_vendor_attr_rropavail_info {
  8089. /* RROP information is unavailable. */
  8090. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  8091. /* RROP information is available and the application can retrieve the
  8092. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  8093. * event from the driver.
  8094. */
  8095. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  8096. /* RROP information is available only after a vendor specific scan
  8097. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  8098. * successfully completed. The application can retrieve the information
  8099. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  8100. * the driver.
  8101. */
  8102. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  8103. };
  8104. /**
  8105. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  8106. * Representative RF Operating Parameter (RROP) information. It is sent for the
  8107. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  8108. * intended for use by external Auto Channel Selection applications. It provides
  8109. * guidance values for some RF parameters that are used by the system during
  8110. * operation. These values could vary by channel, band, radio, and so on.
  8111. */
  8112. enum qca_wlan_vendor_attr_rrop_info {
  8113. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  8114. /* Representative Tx Power List (RTPL) which has an array of nested
  8115. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  8116. */
  8117. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  8118. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  8119. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  8120. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  8121. };
  8122. /**
  8123. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  8124. * entry instances in the Representative Tx Power List (RTPL). It provides
  8125. * simplified power values intended for helping external Auto channel Selection
  8126. * applications compare potential Tx power performance between channels, other
  8127. * operating conditions remaining identical. These values are not necessarily
  8128. * the actual Tx power values that will be used by the system. They are also not
  8129. * necessarily the max or average values that will be used. Instead, they are
  8130. * relative, summarized keys for algorithmic use computed by the driver or
  8131. * underlying firmware considering a number of vendor specific factors.
  8132. */
  8133. enum qca_wlan_vendor_attr_rtplinst {
  8134. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  8135. /* Primary channel number (u8).
  8136. * Note: If both the driver and user space application support the
  8137. * 6 GHz band, this attribute is deprecated and
  8138. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  8139. * maintain backward compatibility,
  8140. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  8141. * driver or user space application or both do not support the 6 GHz
  8142. * band.
  8143. */
  8144. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  8145. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  8146. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  8147. /* Representative Tx power in dBm (s32) with emphasis on range. */
  8148. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  8149. /* Primary channel center frequency (u32) in MHz */
  8150. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  8151. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  8152. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  8153. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  8154. };
  8155. /**
  8156. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  8157. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8158. *
  8159. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  8160. * array of nested values as per attributes in
  8161. * enum qca_wlan_vendor_attr_mac_mode_info.
  8162. */
  8163. enum qca_wlan_vendor_attr_mac {
  8164. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  8165. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  8166. /* keep last */
  8167. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  8168. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  8169. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  8170. };
  8171. /**
  8172. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  8173. * WiFi netdev interface on a respective MAC. Used by the attribute
  8174. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  8175. *
  8176. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  8177. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  8178. * the connected Wi-Fi interface(u32).
  8179. */
  8180. enum qca_wlan_vendor_attr_mac_iface_info {
  8181. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  8182. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  8183. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  8184. /* keep last */
  8185. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  8186. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  8187. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  8188. };
  8189. /**
  8190. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  8191. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  8192. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8193. *
  8194. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  8195. * MAC (u32)
  8196. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  8197. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  8198. * in enum nl80211_band.
  8199. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  8200. * interfaces associated with this MAC. Represented by enum
  8201. * qca_wlan_vendor_attr_mac_iface_info.
  8202. */
  8203. enum qca_wlan_vendor_attr_mac_info {
  8204. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  8205. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  8206. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  8207. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  8208. /* keep last */
  8209. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  8210. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  8211. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  8212. };
  8213. /**
  8214. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  8215. * to get thermal status from driver/firmware.
  8216. * enum values are used for NL attributes encapsulated inside
  8217. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  8218. *
  8219. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  8220. * of a thermal level in Celsius. u32 size.
  8221. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  8222. * of a thermal level in Celsius. u32 size.
  8223. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  8224. * thermal level in milliseconds. u32 size.
  8225. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  8226. * of times the temperature crossed into the temperature range defined by the
  8227. * thermal level from both higher and lower directions. u32 size.
  8228. */
  8229. enum qca_wlan_vendor_attr_thermal_stats {
  8230. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  8231. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  8232. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  8233. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  8234. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  8235. /* keep last */
  8236. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  8237. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  8238. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  8239. };
  8240. /**
  8241. * enum he_fragmentation_val - HE fragmentation support values
  8242. * Indicates level of dynamic fragmentation that is supported by
  8243. * a STA as a recipient.
  8244. * HE fragmentation values are defined as per 11ax spec and are used in
  8245. * HE capability IE to advertise the support. These values are validated
  8246. * in the driver to check the device capability and advertised in the HE
  8247. * capability element.
  8248. *
  8249. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  8250. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  8251. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  8252. * within an A-MPDU that is not an S-MPDU.
  8253. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  8254. * contained within an MPDU or S-MPDU and support for up to one dynamic
  8255. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  8256. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  8257. * MPDU or S-MPDU.
  8258. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  8259. * contained within an MPDU or S-MPDU and support for multiple dynamic
  8260. * fragments for each MSDU and for each A-MSDU if supported by the
  8261. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  8262. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  8263. */
  8264. enum he_fragmentation_val {
  8265. HE_FRAG_DISABLE,
  8266. HE_FRAG_LEVEL1,
  8267. HE_FRAG_LEVEL2,
  8268. HE_FRAG_LEVEL3,
  8269. };
  8270. /**
  8271. * enum he_mcs_config - HE MCS support configuration
  8272. *
  8273. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  8274. * These values are used in driver to configure the HE MCS map to advertise
  8275. * Tx/Rx MCS map in HE capability and these values are applied for all the
  8276. * streams supported by the device. To configure MCS for different bandwidths,
  8277. * vendor command needs to be sent using this attribute with appropriate value.
  8278. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8279. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8280. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8281. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8282. *
  8283. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8284. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8285. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8286. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8287. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8288. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8289. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8290. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8291. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8292. */
  8293. enum he_mcs_config {
  8294. HE_80_MCS0_7 = 0,
  8295. HE_80_MCS0_9 = 1,
  8296. HE_80_MCS0_11 = 2,
  8297. HE_160_MCS0_7 = 4,
  8298. HE_160_MCS0_9 = 5,
  8299. HE_160_MCS0_11 = 6,
  8300. HE_80p80_MCS0_7 = 8,
  8301. HE_80p80_MCS0_9 = 9,
  8302. HE_80p80_MCS0_11 = 10,
  8303. };
  8304. /**
  8305. * enum qca_wlan_ba_session_config - BA session configuration
  8306. *
  8307. * Indicates the configuration values for BA session configuration attribute.
  8308. *
  8309. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8310. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8311. */
  8312. enum qca_wlan_ba_session_config {
  8313. QCA_WLAN_ADD_BA = 1,
  8314. QCA_WLAN_DELETE_BA = 2,
  8315. };
  8316. /**
  8317. * enum qca_wlan_ac_type - access category type
  8318. *
  8319. * Indicates the access category type value.
  8320. *
  8321. * @QCA_WLAN_AC_BE: BE access category
  8322. * @QCA_WLAN_AC_BK: BK access category
  8323. * @QCA_WLAN_AC_VI: VI access category
  8324. * @QCA_WLAN_AC_VO: VO access category
  8325. * @QCA_WLAN_AC_ALL: All ACs
  8326. */
  8327. enum qca_wlan_ac_type {
  8328. QCA_WLAN_AC_BE = 0,
  8329. QCA_WLAN_AC_BK = 1,
  8330. QCA_WLAN_AC_VI = 2,
  8331. QCA_WLAN_AC_VO = 3,
  8332. QCA_WLAN_AC_ALL = 4,
  8333. };
  8334. /**
  8335. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8336. *
  8337. * Indicates the HE LTF configuration value.
  8338. *
  8339. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8340. * the mandatory HE-LTF based on the GI setting
  8341. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8342. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8343. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8344. */
  8345. enum qca_wlan_he_ltf_cfg {
  8346. QCA_WLAN_HE_LTF_AUTO = 0,
  8347. QCA_WLAN_HE_LTF_1X = 1,
  8348. QCA_WLAN_HE_LTF_2X = 2,
  8349. QCA_WLAN_HE_LTF_4X = 3,
  8350. };
  8351. /**
  8352. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8353. *
  8354. * Indicates the HE trigger frame MAC padding duration value.
  8355. *
  8356. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8357. * process the trigger frame.
  8358. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8359. * trigger frame.
  8360. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8361. * trigger frame.
  8362. */
  8363. enum qca_wlan_he_mac_padding_dur {
  8364. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8365. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8366. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8367. };
  8368. /**
  8369. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8370. *
  8371. * Indicates the HE Operating mode control channel width setting value.
  8372. *
  8373. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8374. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8375. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8376. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8377. */
  8378. enum qca_wlan_he_om_ctrl_ch_bw {
  8379. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8380. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8381. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8382. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8383. };
  8384. /**
  8385. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8386. *
  8387. * Indicates the frame types to use for keep alive data.
  8388. *
  8389. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8390. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8391. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8392. */
  8393. enum qca_wlan_keep_alive_data_type {
  8394. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8395. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8396. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8397. };
  8398. /**
  8399. * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
  8400. * HE operating mode control transmit request. These attributes are
  8401. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
  8402. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  8403. *
  8404. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  8405. * indicates the maximum number of spatial streams, NSS, that the STA
  8406. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  8407. * and is set to NSS - 1.
  8408. *
  8409. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  8410. * indicates the operating channel width supported by the STA for both
  8411. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  8412. *
  8413. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  8414. * indicates the all trigger based UL MU operations by the STA.
  8415. * 0 - UL MU operations are enabled by the STA.
  8416. * 1 - All triggered UL MU transmissions are suspended by the STA.
  8417. *
  8418. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  8419. * indicates the maximum number of space-time streams, NSTS, that
  8420. * the STA supports in transmission and is set to NSTS - 1.
  8421. *
  8422. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  8423. * combined with the UL MU Disable subfield and the recipient's setting
  8424. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  8425. * capabilities to determine which HE TB PPDUs are possible by the
  8426. * STA to transmit.
  8427. * 0 - UL MU data operations are enabled by the STA.
  8428. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  8429. * bit is not set, else UL MU Tx is suspended.
  8430. *
  8431. */
  8432. enum qca_wlan_vendor_attr_he_omi_tx {
  8433. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  8434. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  8435. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  8436. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  8437. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  8438. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  8439. /* keep last */
  8440. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
  8441. QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
  8442. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
  8443. };
  8444. /**
  8445. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  8446. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  8447. *
  8448. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  8449. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  8450. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  8451. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  8452. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  8453. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  8454. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  8455. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  8456. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  8457. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  8458. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  8459. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  8460. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  8461. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  8462. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  8463. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  8464. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  8465. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  8466. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  8467. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  8468. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  8469. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  8470. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  8471. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  8472. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  8473. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  8474. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  8475. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  8476. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  8477. */
  8478. enum qca_wlan_vendor_phy_mode {
  8479. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  8480. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  8481. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  8482. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  8483. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  8484. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  8485. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  8486. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  8487. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  8488. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  8489. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  8490. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  8491. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  8492. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  8493. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  8494. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  8495. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  8496. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  8497. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  8498. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  8499. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  8500. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  8501. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  8502. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  8503. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  8504. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  8505. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  8506. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  8507. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  8508. };
  8509. /* Attributes for data used by
  8510. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  8511. */
  8512. enum qca_wlan_vendor_attr_wifi_test_config {
  8513. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  8514. /* 8-bit unsigned value to configure the driver to enable/disable
  8515. * WMM feature. This attribute is used to configure testbed device.
  8516. * 1-enable, 0-disable
  8517. */
  8518. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  8519. /* 8-bit unsigned value to configure the driver to accept/reject
  8520. * the addba request from peer. This attribute is used to configure
  8521. * the testbed device.
  8522. * 1-accept addba, 0-reject addba
  8523. */
  8524. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  8525. /* 8-bit unsigned value to configure the driver to send or not to
  8526. * send the addba request to peer.
  8527. * This attribute is used to configure the testbed device.
  8528. * 1-send addba, 0-do not send addba
  8529. */
  8530. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  8531. /* 8-bit unsigned value to indicate the HE fragmentation support.
  8532. * Uses enum he_fragmentation_val values.
  8533. * This attribute is used to configure the testbed device to
  8534. * allow the advertised hardware capabilities to be downgraded
  8535. * for testing purposes.
  8536. */
  8537. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  8538. /* 8-bit unsigned value to indicate the HE MCS support.
  8539. * Uses enum he_mcs_config values.
  8540. * This attribute is used to configure the testbed device to
  8541. * allow the advertised hardware capabilities to be downgraded
  8542. * for testing purposes.
  8543. */
  8544. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  8545. /* 8-bit unsigned value to configure the driver to allow or not to
  8546. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  8547. * This attribute is used to configure the testbed device.
  8548. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  8549. */
  8550. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  8551. /* 8-bit unsigned value to configure the driver to add a
  8552. * new BA session or delete the existing BA session for
  8553. * given TID. ADDBA command uses the buffer size and tid
  8554. * configuration if user specifies the values else default
  8555. * value for buffer size is used for all tids if the tid
  8556. * also not specified. For DEL_BA command TID value is
  8557. * required to process the command.
  8558. * Uses enum qca_wlan_ba_session_config values.
  8559. * This attribute is used to configure the testbed device.
  8560. */
  8561. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  8562. /* 16-bit unsigned value to configure the buffer size in addba
  8563. * request and response frames.
  8564. * This attribute is used to configure the testbed device.
  8565. * The range of the value is 0 to 256.
  8566. */
  8567. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  8568. /* 8-bit unsigned value to configure the buffer size in addba
  8569. * request and response frames.
  8570. * This attribute is used to configure the testbed device.
  8571. */
  8572. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  8573. /* 8-bit unsigned value to configure the no ack policy.
  8574. * To configure no ack policy, access category value
  8575. * is required to process the command.
  8576. * This attribute is used to configure the testbed device.
  8577. * 1 - enable no ack, 0 - disable no ack
  8578. */
  8579. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  8580. /* 8-bit unsigned value to configure the AC for no ack policy
  8581. * This attribute is used to configure the testbed device.
  8582. * uses the enum qca_wlan_ac_type values
  8583. */
  8584. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  8585. /* 8-bit unsigned value to configure the HE LTF
  8586. * This attribute is used to configure the testbed device.
  8587. * Uses the enum qca_wlan_he_ltf_cfg values.
  8588. */
  8589. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  8590. /* 8-bit unsigned value to configure the tx beamformee.
  8591. * This attribute is used to configure the testbed device.
  8592. * 1 - enable, 0 - disable.
  8593. */
  8594. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  8595. /* 8-bit unsigned value to configure the tx beamformee number of
  8596. * space-time streams.
  8597. * This attribute is used to configure the testbed device.
  8598. * The range of the value is 0 to 8
  8599. */
  8600. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  8601. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  8602. * This attribute is used to configure the testbed device.
  8603. * Uses the enum qca_wlan_ac_type values.
  8604. */
  8605. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  8606. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  8607. * To configure MU EDCA AIFSN value, MU EDCA access category value
  8608. * is required to process the command.
  8609. * This attribute is used to configure the testbed device.
  8610. */
  8611. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  8612. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  8613. * given AC.
  8614. * To configure MU EDCA ECW min value, MU EDCA access category value
  8615. * is required to process the command.
  8616. * This attribute is used to configure the testbed device.
  8617. */
  8618. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  8619. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  8620. * given AC.
  8621. * To configure MU EDCA ECW max value, MU EDCA access category value
  8622. * is required to process the command.
  8623. * This attribute is used to configure the testbed device.
  8624. */
  8625. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  8626. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  8627. * To configure MU EDCA timer value, MU EDCA access category value
  8628. * is required to process the command.
  8629. * This attribute is used to configure the testbed device.
  8630. */
  8631. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  8632. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  8633. * duration.
  8634. * This attribute is used to configure the testbed device.
  8635. * Uses the enum qca_wlan_he_mac_padding_dur values.
  8636. */
  8637. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  8638. /* 8-bit unsigned value to override the MU EDCA params to defaults
  8639. * regardless of the AP beacon MU EDCA params. If it is enabled use
  8640. * the default values else use the MU EDCA params from AP beacon.
  8641. * This attribute is used to configure the testbed device.
  8642. * 1 - enable override, 0 - disable.
  8643. */
  8644. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  8645. /* 8-bit unsigned value to configure the support for receiving
  8646. * an MPDU that contains an operating mode control subfield.
  8647. * This attribute is used to configure the testbed device.
  8648. * 1-enable, 0-disable.
  8649. */
  8650. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  8651. /* Nested attribute values required to setup the TWT session.
  8652. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  8653. * information to set up the session. It contains broadcast flags,
  8654. * set_up flags, trigger value, flow type, flow ID, wake interval
  8655. * exponent, protection, target wake time, wake duration, wake interval
  8656. * mantissa. These nested attributes are used to setup a host triggered
  8657. * TWT session.
  8658. */
  8659. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  8660. /* This nested attribute is used to terminate the current TWT session.
  8661. * It does not currently carry any attributes.
  8662. */
  8663. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  8664. /* This nested attribute is used to suspend the current TWT session.
  8665. * It does not currently carry any attributes.
  8666. */
  8667. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  8668. /* Nested attribute values to indicate the request for resume.
  8669. * This attribute is used to resume the TWT session.
  8670. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  8671. * parameters required to resume the TWT session.
  8672. */
  8673. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  8674. /* 8-bit unsigned value to set the HE operating mode control
  8675. * (OM CTRL) Channel Width subfield.
  8676. * The Channel Width subfield indicates the operating channel width
  8677. * supported by the STA for both reception and transmission.
  8678. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  8679. * This setting is cleared with the
  8680. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8681. * flag attribute to reset defaults.
  8682. * This attribute is used to configure the testbed device.
  8683. */
  8684. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  8685. /* 8-bit unsigned value to configure the number of spatial
  8686. * streams in HE operating mode control field.
  8687. * This setting is cleared with the
  8688. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8689. * flag attribute to reset defaults.
  8690. * This attribute is used to configure the testbed device.
  8691. */
  8692. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  8693. /* Flag attribute to configure the UL MU disable bit in
  8694. * HE operating mode control field.
  8695. * This setting is cleared with the
  8696. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8697. * flag attribute to reset defaults.
  8698. * This attribute is used to configure the testbed device.
  8699. */
  8700. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  8701. /* Flag attribute to clear the previously set HE operating mode
  8702. * control field configuration.
  8703. * This attribute is used to configure the testbed device to reset
  8704. * defaults to clear any previously set HE operating mode control
  8705. * field configuration.
  8706. */
  8707. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  8708. /* 8-bit unsigned value to configure HE single user PPDU
  8709. * transmission. By default this setting is disabled and it
  8710. * is disabled in the reset defaults of the device configuration.
  8711. * This attribute is used to configure the testbed device.
  8712. * 1-enable, 0-disable
  8713. */
  8714. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  8715. /* 8-bit unsigned value to configure action frame transmission
  8716. * in HE trigger based PPDU transmission.
  8717. * By default this setting is disabled and it is disabled in
  8718. * the reset defaults of the device configuration.
  8719. * This attribute is used to configure the testbed device.
  8720. * 1-enable, 0-disable
  8721. */
  8722. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  8723. /* Nested attribute to indicate HE operating mode control field
  8724. * transmission. It contains operating mode control field Nss,
  8725. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  8726. * These nested attributes are used to send HE operating mode control
  8727. * with configured values.
  8728. * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
  8729. * This attribute is used to configure the testbed device.
  8730. */
  8731. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
  8732. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  8733. * support for the reception of a frame that carries an HE variant
  8734. * HT Control field.
  8735. * This attribute is used to configure the testbed device.
  8736. * 1-enable, 0-disable
  8737. */
  8738. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  8739. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  8740. * This attribute is used to configure the testbed device.
  8741. * 1-enable, 0-disable
  8742. */
  8743. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  8744. /* 8-bit unsigned value to configure HE testbed defaults.
  8745. * This attribute is used to configure the testbed device.
  8746. * 1-set the device HE capabilities to testbed defaults.
  8747. * 0-reset the device HE capabilities to supported config.
  8748. */
  8749. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  8750. /* 8-bit unsigned value to configure twt request support.
  8751. * This attribute is used to configure the testbed device.
  8752. * 1-enable, 0-disable.
  8753. */
  8754. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  8755. /* 8-bit unsigned value to configure protection for Management
  8756. * frames when PMF is enabled for the association.
  8757. * This attribute is used to configure the testbed device.
  8758. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  8759. */
  8760. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  8761. /* Flag attribute to inject Disassociation frame to the connected AP.
  8762. * This attribute is used to configure the testbed device.
  8763. */
  8764. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  8765. /* 8-bit unsigned value to configure an override for the RSNXE Used
  8766. * subfield in the MIC control field of the FTE in FT Reassociation
  8767. * Request frame.
  8768. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  8769. * This attribute is used to configure the testbed device.
  8770. * This attribute can be configured when STA is in disconnected or
  8771. * associated state and the configuration is valid until the next
  8772. * disconnection.
  8773. */
  8774. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  8775. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  8776. * Switch Announcement) when STA is in connected state.
  8777. * 0 - Default behavior, 1 - Ignore CSA.
  8778. * This attribute is used to configure the testbed device.
  8779. * This attribute can be configured when STA is in disconnected or
  8780. * associated state and the configuration is valid until the next
  8781. * disconnection.
  8782. */
  8783. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  8784. /* Nested attribute values required to configure OCI (Operating Channel
  8785. * Information). Attributes defined in enum
  8786. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  8787. * This attribute is used to configure the testbed device.
  8788. * This attribute can be configured when STA is in disconnected or
  8789. * associated state and the configuration is valid until the next
  8790. * disconnection.
  8791. */
  8792. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  8793. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  8794. * Query timeout. If this configuration is enabled STA shall not send
  8795. * Deauthentication frmae when SA Query times out (mainly, after a
  8796. * channel switch when OCV is enabled).
  8797. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  8798. * This attribute is used to configure the testbed device.
  8799. * This attribute can be configured only when STA is in associated state
  8800. * and the configuration is valid until the disconnection.
  8801. */
  8802. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  8803. /* 8-bit unsigned value to configure the driver/firmware to start or
  8804. * stop transmitting FILS discovery frames.
  8805. * 0 - Stop transmitting FILS discovery frames
  8806. * 1 - Start transmitting FILS discovery frames
  8807. * This attribute is used to configure the testbed device.
  8808. * This attribute can be configured only in AP mode and the
  8809. * configuration is valid until AP restart.
  8810. */
  8811. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  8812. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8813. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  8814. * information field.
  8815. * 0 - Disable full bandwidth UL MU-MIMO subfield
  8816. * 1 - Enable full bandwidth UL MU-MIMO subfield
  8817. * This attribute is used to configure the testbed device.
  8818. */
  8819. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  8820. /* 16-bit unsigned value to configure the driver with a specific BSS
  8821. * max idle period to advertise in the BSS Max Idle Period element
  8822. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  8823. * This attribute is used to configure the testbed device.
  8824. */
  8825. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  8826. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  8827. * for data transmission.
  8828. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  8829. * This attribute is used to configure the testbed device.
  8830. */
  8831. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  8832. /* 8-bit unsigned value to configure the driver to disable data and
  8833. * management response frame transmission to test the BSS max idle
  8834. * feature.
  8835. * 0 - Default behavior, 1 - Disable data and management response Tx.
  8836. * This attribute is used to configure the testbed device.
  8837. */
  8838. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  8839. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8840. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  8841. * information field.
  8842. * 0 - Disable Punctured Preamble Rx subfield
  8843. * 1 - Enable Punctured Preamble Rx subfield
  8844. * This attribute is used to configure the testbed device.
  8845. */
  8846. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  8847. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  8848. * requirement mismatch for 6 GHz connection.
  8849. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  8850. * This attribute is used to configure the testbed device.
  8851. */
  8852. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  8853. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  8854. * connection with all security modes.
  8855. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  8856. * modes.
  8857. * This attribute is used for testing purposes.
  8858. */
  8859. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  8860. /* 8-bit unsigned value to configure the driver to transmit data with
  8861. * ER SU PPDU type.
  8862. *
  8863. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  8864. * This attribute is used for testing purposes.
  8865. */
  8866. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  8867. /* 8-bit unsigned value to configure the driver to use Data or
  8868. * Management frame type for keep alive data.
  8869. * Uses enum qca_wlan_keep_alive_data_type values.
  8870. *
  8871. * This attribute is used for testing purposes.
  8872. */
  8873. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  8874. /* 8-bit unsigned value to configure the driver to use scan request
  8875. * BSSID value in Probe Request frame RA(A1) during the scan. The
  8876. * driver saves this configuration and applies this setting to all user
  8877. * space scan requests until the setting is cleared. If this
  8878. * configuration is set, the driver uses the BSSID value from the scan
  8879. * request to set the RA(A1) in the Probe Request frames during the
  8880. * scan.
  8881. *
  8882. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  8883. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  8884. * This attribute is used for testing purposes.
  8885. */
  8886. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  8887. /* 8-bit unsigned value to configure the driver to enable/disable the
  8888. * BSS max idle period support.
  8889. *
  8890. * 0 - Disable the BSS max idle support.
  8891. * 1 - Enable the BSS max idle support.
  8892. * This attribute is used for testing purposes.
  8893. */
  8894. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  8895. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8896. * disable Rx control frame to MultiBSS subfield in the HE MAC
  8897. * capabilities information field.
  8898. * 0 - Disable Rx control frame to MultiBSS subfield
  8899. * 1 - Enable Rx control frame to MultiBSS subfield
  8900. * This attribute is used to configure the testbed device.
  8901. */
  8902. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  8903. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8904. * disable Broadcast TWT support subfield in the HE MAC capabilities
  8905. * information field.
  8906. * 0 - Disable Broadcast TWT support subfield
  8907. * 1 - Enable Broadcast TWT support subfield
  8908. * This attribute is used to configure the testbed device.
  8909. */
  8910. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  8911. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  8912. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  8913. * and if the FW supports this capability too, then the STA host
  8914. * advertises this capability to AP over assoc request frame. This
  8915. * attribute will not have any effect on legacy devices with no 802.11be
  8916. * support.
  8917. * 0 - Default behavior
  8918. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  8919. * This attribute is used to configure the testbed device.
  8920. */
  8921. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  8922. /* 8-bit unsigned value to configure the driver to enable/disable the
  8923. * periodic sounding for Tx beamformer functionality. The default
  8924. * behavior uses algorithm to do sounding based on packet stats.
  8925. *
  8926. * 0 - Default behavior.
  8927. * 1 - Enable the periodic sounding for Tx beamformer.
  8928. * This attribute is used for testing purposes.
  8929. */
  8930. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
  8931. /* keep last */
  8932. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  8933. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  8934. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  8935. };
  8936. /**
  8937. * enum qca_wlan_twt_operation - Operation of the config TWT request
  8938. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  8939. * The response for the respective operations can be either synchronous or
  8940. * asynchronous (wherever specified). If synchronous, the response to this
  8941. * operation is obtained in the corresponding vendor command reply to the user
  8942. * space. For the asynchronous case the response is obtained as an event with
  8943. * the same operation type.
  8944. *
  8945. * Drivers shall support either of these modes but not both simultaneously.
  8946. * This support for asynchronous mode is advertised through the flag
  8947. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  8948. * the driver shall support synchronous mode.
  8949. *
  8950. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  8951. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8952. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  8953. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  8954. * synchronous or asynchronous operation.
  8955. *
  8956. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  8957. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8958. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  8959. *
  8960. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  8961. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8962. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8963. * This terminate can either get triggered by the user space or can as well be
  8964. * a notification from the firmware if it initiates a terminate.
  8965. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8966. * the request from user space can either be a synchronous or asynchronous
  8967. * operation.
  8968. *
  8969. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  8970. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8971. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8972. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8973. * this is either a synchronous or asynchronous operation.
  8974. *
  8975. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  8976. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8977. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  8978. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  8979. * request.
  8980. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8981. * capability, this is either a synchronous or asynchronous operation.
  8982. *
  8983. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  8984. * combination of suspend and resume in a single request. Required parameters
  8985. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  8986. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  8987. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8988. * capability, this is either a synchronous or asynchronous operation.
  8989. *
  8990. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  8991. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  8992. * session is setup. It's a synchronous operation.
  8993. *
  8994. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  8995. * Valid only after the TWT session is setup. It's a synchronous operation.
  8996. *
  8997. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  8998. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  8999. * operation.
  9000. *
  9001. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
  9002. * ready for a new TWT session setup after it issued a twt teardown.
  9003. *
  9004. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  9005. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  9006. * the enum qca_wlan_vendor_attr_twt_set_param.
  9007. *
  9008. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  9009. * related information for example TWT required bit in AP capabilities etc.
  9010. * The reason for the notification is sent using
  9011. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  9012. */
  9013. enum qca_wlan_twt_operation {
  9014. QCA_WLAN_TWT_SET = 0,
  9015. QCA_WLAN_TWT_GET = 1,
  9016. QCA_WLAN_TWT_TERMINATE = 2,
  9017. QCA_WLAN_TWT_SUSPEND = 3,
  9018. QCA_WLAN_TWT_RESUME = 4,
  9019. QCA_WLAN_TWT_NUDGE = 5,
  9020. QCA_WLAN_TWT_GET_STATS = 6,
  9021. QCA_WLAN_TWT_CLEAR_STATS = 7,
  9022. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  9023. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  9024. QCA_WLAN_TWT_SET_PARAM = 10,
  9025. QCA_WLAN_TWT_NOTIFY = 11,
  9026. };
  9027. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  9028. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  9029. *
  9030. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  9031. * u8 attribute. Specify the TWT operation of this request. Possible values
  9032. * are defined in enum qca_wlan_twt_operation. The parameters for the
  9033. * respective operation is specified through
  9034. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  9035. *
  9036. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  9037. * parameters configured for TWT. These parameters are represented by
  9038. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  9039. * enum qca_wlan_vendor_attr_twt_set_param or
  9040. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  9041. *
  9042. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  9043. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  9044. * The values used by this attribute are defined in
  9045. * enum qca_wlan_vendor_twt_status.
  9046. */
  9047. enum qca_wlan_vendor_attr_config_twt {
  9048. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  9049. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  9050. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  9051. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  9052. /* keep last */
  9053. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  9054. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  9055. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  9056. };
  9057. /**
  9058. * qca_wlan_twt_setup_state: Represents the TWT session states.
  9059. *
  9060. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  9061. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  9062. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  9063. */
  9064. enum qca_wlan_twt_setup_state {
  9065. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  9066. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  9067. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  9068. };
  9069. /**
  9070. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  9071. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  9072. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  9073. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9074. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9075. *
  9076. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  9077. * Disable (flag attribute not present) - Individual TWT
  9078. * Enable (flag attribute present) - Broadcast TWT.
  9079. * Individual means the session is between the STA and the AP.
  9080. * This session is established using a separate negotiation between
  9081. * STA and AP.
  9082. * Broadcast means the session is across multiple STAs and an AP. The
  9083. * configuration parameters are announced in Beacon frames by the AP.
  9084. * This is used in
  9085. * 1. TWT SET Request and Response
  9086. * 2. TWT GET Response
  9087. *
  9088. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  9089. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  9090. * specify the TWT request type. This is used in TWT SET operation.
  9091. *
  9092. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  9093. * Enable (flag attribute present) - TWT with trigger support.
  9094. * Disable (flag attribute not present) - TWT without trigger support.
  9095. * Trigger means the AP will send the trigger frame to allow STA to send data.
  9096. * Without trigger, the STA will wait for the MU EDCA timer before
  9097. * transmitting the data.
  9098. * This is used in
  9099. * 1. TWT SET Request and Response
  9100. * 2. TWT GET Response
  9101. *
  9102. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  9103. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  9104. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  9105. * NULL frame to AP.
  9106. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  9107. * This is a required parameter for
  9108. * 1. TWT SET Request and Response
  9109. * 2. TWT GET Response
  9110. *
  9111. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  9112. * Flow ID is the unique identifier for each TWT session.
  9113. * If not provided then dialog ID will be set to zero.
  9114. * This is an optional parameter for
  9115. * 1. TWT SET Request and Response
  9116. * 2. TWT GET Request and Response
  9117. * 3. TWT TERMINATE Request and Response
  9118. * 4. TWT SUSPEND Request and Response
  9119. * Flow Id values from 0 to 254 represent a single TWT session
  9120. * Flow ID value of 255 represents all twt sessions for the following
  9121. * 1. TWT TERMINATE Request and Response
  9122. * 2. TWT SUSPEND Request and Response
  9123. * 4. TWT CLEAR STATISTICS request
  9124. * 5. TWT GET STATISTICS request and response
  9125. * If an invalid dialog id is provided, status
  9126. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9127. *
  9128. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  9129. * This attribute (exp) is used along with the mantissa to derive the
  9130. * wake interval using the following formula:
  9131. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  9132. * Wake interval is the interval between 2 successive SP.
  9133. * This is a required parameter for
  9134. * 1. TWT SET Request and Response
  9135. * 2. TWT GET Response
  9136. *
  9137. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  9138. * Enable (flag attribute present) - Protection required.
  9139. * Disable (flag attribute not present) - Protection not required.
  9140. * If protection is enabled, then the AP will use protection
  9141. * mechanism using RTS/CTS to self to reserve the airtime.
  9142. * This is used in
  9143. * 1. TWT SET Request and Response
  9144. * 2. TWT GET Response
  9145. *
  9146. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  9147. * This attribute is used as the SP offset which is the offset from
  9148. * TSF after which the wake happens. The units are in microseconds. If
  9149. * this attribute is not provided, then the value will be set to zero.
  9150. * This is an optional parameter for
  9151. * 1. TWT SET Request and Response
  9152. * 2. TWT GET Response
  9153. *
  9154. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  9155. * This is the duration of the service period. This is specified as
  9156. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  9157. * This is a required parameter for
  9158. * 1. TWT SET Request and Response
  9159. * 2. TWT GET Response
  9160. *
  9161. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  9162. * This attribute is used to configure wake interval mantissa.
  9163. * The units are in TU.
  9164. * This is a required parameter for
  9165. * 1. TWT SET Request and Response
  9166. * 2. TWT GET Response
  9167. *
  9168. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  9169. * This field is applicable for TWT response only.
  9170. * This contains status values in enum qca_wlan_vendor_twt_status
  9171. * and is passed to the userspace. This is used in TWT SET operation.
  9172. * This is a required parameter for
  9173. * 1. TWT SET Response
  9174. * 2. TWT TERMINATE Response
  9175. * 3. TWT SUSPEND Response
  9176. * 4. TWT RESUME Response
  9177. * 5. TWT NUDGE Response
  9178. *
  9179. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  9180. * This field is applicable for TWT response only.
  9181. * This field contains response type from the TWT responder and is
  9182. * passed to the userspace. The values for this field are defined in
  9183. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  9184. * response.
  9185. *
  9186. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  9187. * In TWT setup command this field contains absolute TSF that will
  9188. * be used by TWT requester during setup.
  9189. * In TWT response this field contains absolute TSF value of the
  9190. * wake time received from the TWT responder and is passed to
  9191. * the userspace.
  9192. * This is an optional parameter for
  9193. * 1. TWT SET Request
  9194. * This is a required parameter for
  9195. * 1. TWT SET Response
  9196. * 2. TWT GET Response
  9197. *
  9198. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  9199. * Enable (flag attribute present) - Indicates that the TWT responder
  9200. * supports reception of TWT information frame from the TWT requestor.
  9201. * Disable (flag attribute not present) - Indicates that the responder
  9202. * doesn't support reception of TWT information frame from requestor.
  9203. * This is used in
  9204. * 1. TWT SET Response
  9205. * 2. TWT GET Response
  9206. *
  9207. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  9208. * Represents the MAC address of the peer for which the TWT session
  9209. * is being configured. This is used in AP mode to represent the respective
  9210. * client
  9211. * In AP mode, this is a required parameter in response for
  9212. * 1. TWT SET
  9213. * 2. TWT GET
  9214. * 3. TWT TERMINATE
  9215. * 4. TWT SUSPEND
  9216. * In STA mode, this is an optional parameter in request and response for
  9217. * the above four TWT operations.
  9218. * In AP mode, this is a required parameter in request for
  9219. * 1. TWT GET
  9220. * 2. TWT TERMINATE
  9221. *
  9222. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  9223. * Minimum tolerance limit of wake interval parameter in microseconds.
  9224. *
  9225. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  9226. * Maximum tolerance limit of wake interval parameter in microseconds.
  9227. *
  9228. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  9229. * Minimum tolerance limit of wake duration parameter in microseconds.
  9230. *
  9231. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  9232. * Maximum tolerance limit of wake duration parameter in microseconds.
  9233. *
  9234. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  9235. * TWT state for the given dialog id. The values for this are represented
  9236. * by enum qca_wlan_twt_setup_state.
  9237. * This is obtained through TWT GET operation.
  9238. *
  9239. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  9240. * This attribute is used to configure wake interval mantissa.
  9241. * The unit is microseconds. This attribute, when specified, takes
  9242. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  9243. * This parameter is used for
  9244. * 1. TWT SET Request and Response
  9245. * 2. TWT GET Response
  9246. *
  9247. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  9248. * This attribute is used to configure Broadcast TWT ID.
  9249. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  9250. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  9251. * This parameter is used for
  9252. * 1. TWT SET Request
  9253. * 2. TWT TERMINATE Request
  9254. *
  9255. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  9256. * This attribute is used to configure Broadcast TWT recommendation.
  9257. * The Broadcast TWT Recommendation subfield contains a value that indicates
  9258. * recommendations on the types of frames that are transmitted by TWT
  9259. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  9260. * The allowed values are 0 - 3.
  9261. * This parameter is used for
  9262. * 1. TWT SET Request
  9263. *
  9264. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  9265. * This attribute is used to configure Broadcast TWT Persistence.
  9266. * The Broadcast TWT Persistence subfield indicates the number of
  9267. * TBTTs during which the Broadcast TWT SPs corresponding to this
  9268. * broadcast TWT Parameter set are present. The number of beacon intervals
  9269. * during which the Broadcast TWT SPs are present is equal to the value in the
  9270. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  9271. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  9272. * This parameter is used for
  9273. * 1. TWT SET Request
  9274. *
  9275. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  9276. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  9277. * from TWT response frame.
  9278. * This parameter is used for
  9279. * 1. TWT SET Response
  9280. * 2. TWT GET Response
  9281. *
  9282. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  9283. * This attribute is used to configure the announce timeout value (in us) in
  9284. * firmware. This timeout value is only applicable for announced TWT. If
  9285. * timeout value is non-zero then firmware waits upto timeout value to use
  9286. * data frame as announcement frame. If timeout value is 0 then firmware sends
  9287. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  9288. * firmware is 0.
  9289. * This parameter is used for
  9290. * 1. TWT SET Request
  9291. */
  9292. enum qca_wlan_vendor_attr_twt_setup {
  9293. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  9294. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  9295. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  9296. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  9297. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  9298. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  9299. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  9300. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  9301. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  9302. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  9303. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  9304. /* TWT Response only attributes */
  9305. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  9306. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  9307. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  9308. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  9309. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  9310. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  9311. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  9312. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  9313. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  9314. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  9315. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  9316. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  9317. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  9318. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  9319. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  9320. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  9321. /* keep last */
  9322. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  9323. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  9324. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  9325. };
  9326. /**
  9327. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  9328. * TWT operation
  9329. *
  9330. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  9331. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  9332. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  9333. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  9334. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  9335. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  9336. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  9337. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  9338. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  9339. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  9340. * request/response frame
  9341. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  9342. * frame
  9343. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  9344. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  9345. * unknown reason
  9346. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  9347. * suspend state
  9348. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  9349. * invalid IE in the received TWT frame
  9350. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  9351. * the responder are not in the specified range
  9352. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  9353. * session due to request from the responder. Used on the TWT_TERMINATE
  9354. * notification from the firmware.
  9355. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  9356. * session due to roaming. Used on the TWT_TERMINATE notification from the
  9357. * firmware.
  9358. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  9359. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  9360. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  9361. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  9362. * request due to roaming in progress.
  9363. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  9364. * setup request due to channel switch in progress.
  9365. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  9366. * request due to scan in progress.
  9367. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  9368. * terminate an existing TWT session on power save exit request from userspace.
  9369. * Used on the TWT_TERMINATE notification from the driver/firmware.
  9370. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  9371. * required bit in its capabilities.
  9372. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  9373. * the TWT required bit(1->0) in its capabilities.
  9374. */
  9375. enum qca_wlan_vendor_twt_status {
  9376. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  9377. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  9378. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  9379. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  9380. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  9381. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  9382. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  9383. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  9384. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  9385. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  9386. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  9387. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  9388. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  9389. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  9390. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  9391. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  9392. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  9393. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  9394. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  9395. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  9396. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  9397. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  9398. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  9399. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  9400. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  9401. };
  9402. /**
  9403. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  9404. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  9405. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  9406. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9407. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9408. *
  9409. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  9410. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  9411. * These attributes are used as the SP offset which is the offset from TSF after
  9412. * which the wake happens. The units are in microseconds. Please note that
  9413. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  9414. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  9415. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  9416. * will be set to zero.
  9417. *
  9418. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  9419. * This attribute represents the next TWT subfield size.
  9420. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9421. * and 4 for 64 bits.
  9422. *
  9423. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  9424. * Flow ID is the unique identifier for each TWT session. This attribute
  9425. * represents the respective TWT session to resume.
  9426. * Flow Id values from 0 to 254 represent a single TWT session
  9427. * Flow ID value of 255 represents all TWT sessions.
  9428. * If an invalid dialog id is provided, status
  9429. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9430. *
  9431. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  9432. * Represents the MAC address of the peer to which TWT Resume is
  9433. * being sent. This is used in AP mode to represent the respective
  9434. * client and is a required parameter. In STA mode, this is an optional
  9435. * parameter
  9436. *
  9437. */
  9438. enum qca_wlan_vendor_attr_twt_resume {
  9439. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  9440. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  9441. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  9442. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  9443. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  9444. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  9445. /* keep last */
  9446. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  9447. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  9448. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  9449. };
  9450. /**
  9451. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  9452. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  9453. * and resume in a single request. These attributes are sent as part of
  9454. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9455. *
  9456. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9457. * Flow ID is the unique identifier for each TWT session. This attribute
  9458. * represents the respective TWT session to suspend and resume.
  9459. *
  9460. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9461. * Flow ID is the unique identifier for each TWT session. This attribute
  9462. * represents the respective TWT session to suspend and resume.
  9463. * Flow Id values from 0 to 254 represent a single TWT session
  9464. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  9465. * and response.
  9466. * If an invalid dialog id is provided, status
  9467. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9468. *
  9469. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  9470. * This attribute is used as the SP offset which is the offset from
  9471. * TSF after which the wake happens. The units are in microseconds.
  9472. *
  9473. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  9474. * This attribute represents the next TWT subfield size.
  9475. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9476. * and 4 for 64 bits.
  9477. *
  9478. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  9479. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  9480. * being sent. This is used in AP mode to represent the respective
  9481. * client and is a required parameter. In STA mode, this is an optional
  9482. * parameter.
  9483. *
  9484. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  9485. * This field contains absolute TSF value of the time at which twt
  9486. * sesion will be resumed.
  9487. *
  9488. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
  9489. * This field will be used when device supports Flexible TWT.
  9490. * This field contains an offset value by which to shift the starting time
  9491. * of the next service period. The value of offset can be negative or positive.
  9492. * If provided, this attribute will override
  9493. * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
  9494. */
  9495. enum qca_wlan_vendor_attr_twt_nudge {
  9496. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  9497. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  9498. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  9499. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  9500. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  9501. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  9502. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
  9503. /* keep last */
  9504. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  9505. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  9506. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  9507. };
  9508. /**
  9509. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  9510. * TWT (Target Wake Time) get statistics and clear statistics request.
  9511. * These attributes are sent as part of
  9512. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9513. *
  9514. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  9515. * Flow ID is the unique identifier for each TWT session. This attribute
  9516. * represents the respective TWT session for get and clear TWT statistics.
  9517. * Flow Id values from 0 to 254 represent a single TWT session
  9518. * Flow ID value of 255 represents all TWT sessions in
  9519. * 1) TWT GET STATISTICS request and response
  9520. * 2) TWT CLEAR STATISTICS request
  9521. *
  9522. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  9523. * Represents the MAC address of the peer for which TWT Statistics
  9524. * is required.
  9525. * In AP mode this is used to represent the respective
  9526. * client and is a required parameter for
  9527. * 1) TWT GET STATISTICS request and response
  9528. * 2) TWT CLEAR STATISTICS request and response
  9529. * In STA mode, this is an optional parameter.
  9530. *
  9531. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  9532. * This is the duration of the service period in microseconds.
  9533. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9534. *
  9535. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  9536. * Average of actual wake duration observed so far. Unit is microseconds.
  9537. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9538. *
  9539. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  9540. * Number of TWT service period elapsed so far.
  9541. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9542. *
  9543. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9544. * This is the minimum value of wake duration observed across
  9545. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9546. * microseconds.
  9547. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9548. *
  9549. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9550. * This is the maximum value of wake duration observed across
  9551. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9552. * microseconds.
  9553. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9554. *
  9555. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  9556. * Average number of MPDU's transmitted successfully across
  9557. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9558. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9559. *
  9560. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  9561. * Average number of MPDU's received successfully across
  9562. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9563. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9564. *
  9565. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  9566. * Average number of bytes transmitted successfully across
  9567. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9568. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9569. *
  9570. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  9571. * Average number of bytes received successfully across
  9572. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9573. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9574. *
  9575. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  9576. * Status of the TWT GET STATISTICS request.
  9577. * This contains status values in enum qca_wlan_vendor_twt_status
  9578. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9579. */
  9580. enum qca_wlan_vendor_attr_twt_stats {
  9581. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  9582. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  9583. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  9584. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  9585. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  9586. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  9587. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  9588. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  9589. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  9590. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  9591. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  9592. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  9593. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  9594. /* keep last */
  9595. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  9596. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  9597. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  9598. };
  9599. /**
  9600. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  9601. * supported by the device and peer.
  9602. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  9603. *
  9604. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  9605. * TWT non-scheduling STA. This capability is advertised in the HE
  9606. * capability/Extended capabilities information element in the
  9607. * Association request frame by the device.
  9608. *
  9609. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  9610. * by the TWT scheduling AP. This capability is advertised in the extended
  9611. * capabilities/HE capabilities information element.
  9612. *
  9613. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  9614. * for the broadcast TWT functionality. On responder side, this indicates
  9615. * support for the role of broadcast TWT scheduling functionality. This
  9616. * capability is advertised in the HE capabilities information element.
  9617. *
  9618. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  9619. * This capability is advertised in the HE capabilities information element.
  9620. *
  9621. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  9622. * that it mandates the associated HE STAs to support TWT. This capability is
  9623. * advertised by AP in the HE Operation Parameters field of the HE operation
  9624. * information element.
  9625. */
  9626. enum qca_wlan_twt_capa {
  9627. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  9628. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  9629. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  9630. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  9631. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  9632. };
  9633. /**
  9634. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  9635. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  9636. * operation.
  9637. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  9638. * Represents the MAC address of the peer for which the TWT capabilities
  9639. * are being queried. This is used in AP mode to represent the respective
  9640. * client. In STA mode, this is an optional parameter.
  9641. *
  9642. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  9643. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  9644. * enum qca_wlan_twt_capa.
  9645. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  9646. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  9647. * enum qca_wlan_twt_capa.
  9648. */
  9649. enum qca_wlan_vendor_attr_twt_capability {
  9650. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  9651. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  9652. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  9653. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  9654. /* keep last */
  9655. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  9656. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  9657. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  9658. };
  9659. /**
  9660. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  9661. * TWT (Target Wake Time) related parameters. It is used when
  9662. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  9663. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9664. *
  9665. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  9666. * This attribute configures AC parameters to be used for all TWT
  9667. * sessions in AP mode.
  9668. * Uses the enum qca_wlan_ac_type values.
  9669. */
  9670. enum qca_wlan_vendor_attr_twt_set_param {
  9671. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  9672. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  9673. /* keep last */
  9674. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  9675. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  9676. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  9677. };
  9678. /**
  9679. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  9680. * the TWT responder
  9681. *
  9682. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  9683. * parameters that are different from TWT requesting STA suggested
  9684. * or demanded TWT parameters
  9685. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  9686. * parameters that are different from TWT requesting STA TWT suggested
  9687. * or demanded parameters
  9688. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  9689. * setup
  9690. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  9691. * setup.
  9692. */
  9693. enum qca_wlan_vendor_twt_setup_resp_type {
  9694. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  9695. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  9696. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  9697. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  9698. };
  9699. /**
  9700. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  9701. * Represents the setup type being requested for TWT.
  9702. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  9703. * parameters but relying on AP to fill the parameters during the negotiation.
  9704. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  9705. * values which the AP may accept or AP may provide alternative parameters
  9706. * which the STA may accept.
  9707. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  9708. * alternate parameters than the requested ones.
  9709. */
  9710. enum qca_wlan_vendor_twt_setup_req_type {
  9711. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  9712. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  9713. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  9714. };
  9715. /**
  9716. * enum qca_wlan_throughput_level - Current throughput level
  9717. *
  9718. * Indicates the current level of throughput calculated by driver. The driver
  9719. * may choose different thresholds to decide whether the throughput level is
  9720. * low or medium or high based on variety of parameters like physical link
  9721. * capacity of current connection, number of pakcets being dispatched per
  9722. * second etc. The throughput level events might not be consistent with the
  9723. * actual current throughput value being observed.
  9724. *
  9725. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  9726. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  9727. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  9728. */
  9729. enum qca_wlan_throughput_level {
  9730. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  9731. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  9732. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  9733. };
  9734. /**
  9735. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  9736. * report throughput changes from driver to user space. enum values are used
  9737. * for NL attributes sent with
  9738. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  9739. */
  9740. enum qca_wlan_vendor_attr_throughput_change {
  9741. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  9742. /*
  9743. * Indicates the direction of throughput in which the change is being
  9744. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  9745. */
  9746. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  9747. /*
  9748. * Indicates the newly observed throughput level.
  9749. * qca_wlan_throughput_level describes the possible range of values.
  9750. * u8 attribute.
  9751. */
  9752. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  9753. /*
  9754. * Indicates the driver's guidance on the new value to be set to
  9755. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  9756. * may optionally include this attribute.
  9757. */
  9758. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  9759. /*
  9760. * Indicates the driver's guidance on the new value to be set to
  9761. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  9762. * values are from -31 to 31. Driver may optionally include this
  9763. * attribute.
  9764. */
  9765. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  9766. /*
  9767. * Indicates the driver's guidance on the new value to be set to
  9768. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  9769. * optionally include this attribute.
  9770. */
  9771. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  9772. /* keep last */
  9773. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  9774. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  9775. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  9776. };
  9777. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  9778. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  9779. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9780. */
  9781. enum qca_wlan_nan_ext_subcmd_type {
  9782. /* Subcmd of type NAN Enable Request */
  9783. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  9784. /* Subcmd of type NAN Disable Request */
  9785. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  9786. };
  9787. /**
  9788. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  9789. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9790. */
  9791. enum qca_wlan_vendor_attr_nan_params {
  9792. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  9793. /* Carries NAN command for firmware component. Every vendor command
  9794. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  9795. * payload containing the NAN command. NLA_BINARY attribute.
  9796. */
  9797. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  9798. /* Indicates the type of NAN command sent with
  9799. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  9800. * describes the possible range of values. This attribute is mandatory
  9801. * if the command being issued is either
  9802. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  9803. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  9804. */
  9805. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  9806. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  9807. * band. This attribute is mandatory when command type is
  9808. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  9809. */
  9810. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  9811. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  9812. * band. This attribute is optional and should be included when command
  9813. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  9814. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  9815. */
  9816. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  9817. /* keep last */
  9818. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  9819. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  9820. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  9821. };
  9822. /**
  9823. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  9824. * transport modes and is used by attribute
  9825. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  9826. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9827. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  9828. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  9829. * data. The data shall be encapsulated within
  9830. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
  9831. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  9832. */
  9833. enum qca_wlan_vendor_cfr_data_transport_modes {
  9834. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  9835. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  9836. };
  9837. /**
  9838. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  9839. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  9840. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9841. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  9842. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  9843. * with phase
  9844. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  9845. */
  9846. enum qca_wlan_vendor_cfr_method {
  9847. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  9848. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  9849. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  9850. };
  9851. /**
  9852. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  9853. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  9854. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  9855. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  9856. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  9857. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  9858. * is provided by one or more of below attributes:
  9859. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  9860. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  9861. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  9862. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  9863. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  9864. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  9865. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9866. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  9867. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  9868. */
  9869. enum qca_wlan_vendor_cfr_capture_type {
  9870. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  9871. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  9872. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  9873. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  9874. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  9875. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  9876. };
  9877. /**
  9878. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  9879. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  9880. * Channel Frequency Response capture parameters and enable periodic CFR
  9881. * capture.
  9882. *
  9883. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  9884. * MAC address of peer. This is for CFR version 1 only.
  9885. *
  9886. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  9887. * Enable peer CFR Capture. This attribute is mandatory to
  9888. * enable peer CFR capture. If this attribute is not present,
  9889. * peer CFR capture is disabled.
  9890. *
  9891. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  9892. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  9893. * Supported values: 20, 40, 80, 80+80, 160.
  9894. * Note that all targets may not support all bandwidths.
  9895. * This attribute is mandatory for version 1 if attribute
  9896. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9897. *
  9898. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  9899. * Periodicity of CFR measurement in msec.
  9900. * Periodicity should be a multiple of Base timer.
  9901. * Current Base timer value supported is 10 msecs (default).
  9902. * 0 for one shot capture.
  9903. * This attribute is mandatory for version 1 if attribute
  9904. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9905. *
  9906. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  9907. * Method used to capture Channel Frequency Response.
  9908. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  9909. * This attribute is mandatory for version 1 if attribute
  9910. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9911. *
  9912. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  9913. * Enable periodic CFR capture.
  9914. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  9915. * If this attribute is not present, periodic CFR capture is disabled.
  9916. *
  9917. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  9918. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  9919. * can't be enabled at same time. This attribute is mandatory if target
  9920. * support both versions and use one of them.
  9921. *
  9922. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  9923. * This attribute is mandatory for version 2 if
  9924. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  9925. * Bits 15:0 Bit fields indicating which group to be enabled.
  9926. * Bits 31:16 Reserved for future use.
  9927. *
  9928. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  9929. * CFR capture duration in microsecond. This attribute is mandatory for
  9930. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  9931. *
  9932. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  9933. * CFR capture interval in microsecond. This attribute is mandatory for
  9934. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  9935. *
  9936. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  9937. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  9938. * This attribute is mandatory for version 2.
  9939. *
  9940. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  9941. * Bit fields indicating which user in the current UL MU
  9942. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  9943. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  9944. * then the CFR capture will happen for user index 0 in the current
  9945. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  9946. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  9947. * This is for CFR version 2 only.
  9948. *
  9949. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  9950. * Indicates the number of consecutive Rx packets to be skipped
  9951. * before CFR capture is enabled again.
  9952. * This is for CFR version 2 only.
  9953. *
  9954. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  9955. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  9956. *
  9957. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  9958. * the following GROUP attributes:
  9959. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  9960. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  9961. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  9962. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  9963. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  9964. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  9965. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  9966. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  9967. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  9968. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9969. *
  9970. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  9971. * Target support multiple groups for some configurations. Group number could be
  9972. * any value between 0 and 15. This is for CFR version 2 only.
  9973. *
  9974. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  9975. * Transmitter address which is used to filter packets, this MAC address takes
  9976. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  9977. * This is for CFR version 2 only.
  9978. *
  9979. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  9980. * Receiver address which is used to filter packets, this MAC address takes
  9981. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  9982. * This is for CFR version 2 only.
  9983. *
  9984. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  9985. * Mask of transmitter address which is used to filter packets.
  9986. * This is for CFR version 2 only.
  9987. *
  9988. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  9989. * Mask of receiver address which is used to filter packets.
  9990. * This is for CFR version 2 only.
  9991. *
  9992. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  9993. * Indicates packets with a specific NSS will be filtered for CFR capture.
  9994. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  9995. * be done for packets matching the NSS specified within this bitmask.
  9996. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  9997. * bit 0 : NSS 1
  9998. * bit 1 : NSS 2
  9999. * ...
  10000. * bit 7 : NSS 8
  10001. *
  10002. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  10003. * Indicates packets with a specific BW will be filtered for CFR capture.
  10004. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  10005. * will be done for packets matching the bandwidths specified within this
  10006. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  10007. * numerated in enum nl80211_band (although not all bands may be supported
  10008. * by a given device).
  10009. *
  10010. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  10011. * Management packets matching the subtype filter categories will be
  10012. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10013. * represents the corresponding mgmt subtype value as per
  10014. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10015. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  10016. * This is for CFR version 2 only
  10017. *
  10018. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  10019. * Control packets matching the subtype filter categories will be
  10020. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10021. * represents the corresponding control subtype value as per
  10022. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10023. * This is for CFR version 2 only.
  10024. *
  10025. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  10026. * Data packets matching the subtype filter categories will be
  10027. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10028. * represents the corresponding data subtype value as per
  10029. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10030. * This is for CFR version 2 only.
  10031. *
  10032. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  10033. * Userspace can use this attribute to specify the driver about which transport
  10034. * mode shall be used by the driver to send CFR data to userspace. Uses values
  10035. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  10036. * not present, driver shall choose the default transport mechanism which is
  10037. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  10038. *
  10039. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  10040. * Userspace can use this attribute to specify the nl port id of the application
  10041. * which receives the CFR data and processes it further so that the drivers can
  10042. * unicast the NL events to a specific application. Optionally included when
  10043. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  10044. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  10045. * shall multicast the netlink events when this attribute is not included.
  10046. *
  10047. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  10048. * This attribute will be used by the driver to encapsulate and send CFR data
  10049. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  10050. * asynchronous event when the driver is configured to send CFR data using NL
  10051. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  10052. *
  10053. */
  10054. enum qca_wlan_vendor_peer_cfr_capture_attr {
  10055. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  10056. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  10057. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  10058. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  10059. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  10060. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  10061. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  10062. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  10063. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  10064. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  10065. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  10066. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  10067. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  10068. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  10069. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  10070. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  10071. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  10072. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  10073. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  10074. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  10075. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  10076. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  10077. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  10078. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  10079. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  10080. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  10081. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  10082. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  10083. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  10084. /* Keep last */
  10085. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  10086. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  10087. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  10088. };
  10089. /**
  10090. * enum qca_coex_config_profiles - This enum defines different types of
  10091. * traffic streams that can be prioritized one over the other during coex
  10092. * scenarios.
  10093. * The types defined in this enum are categorized in the below manner.
  10094. * 0 - 31 values corresponds to WLAN
  10095. * 32 - 63 values corresponds to BT
  10096. * 64 - 95 values corresponds to Zigbee
  10097. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  10098. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  10099. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  10100. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  10101. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  10102. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  10103. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  10104. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  10105. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  10106. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  10107. * @QCA_BT_A2DP: Prioritize BT A2DP
  10108. * @QCA_BT_BLE: Prioritize BT BLE
  10109. * @QCA_BT_SCO: Prioritize BT SCO
  10110. * @QCA_ZB_LOW: Prioritize Zigbee Low
  10111. * @QCA_ZB_HIGH: Prioritize Zigbee High
  10112. */
  10113. enum qca_coex_config_profiles {
  10114. /* 0 - 31 corresponds to WLAN */
  10115. QCA_WIFI_STA_DISCOVERY = 0,
  10116. QCA_WIFI_STA_CONNECTION = 1,
  10117. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  10118. QCA_WIFI_STA_DATA = 3,
  10119. QCA_WIFI_STA_ALL = 4,
  10120. QCA_WIFI_SAP_DISCOVERY = 5,
  10121. QCA_WIFI_SAP_CONNECTION = 6,
  10122. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  10123. QCA_WIFI_SAP_DATA = 8,
  10124. QCA_WIFI_SAP_ALL = 9,
  10125. QCA_WIFI_CASE_MAX = 31,
  10126. /* 32 - 63 corresponds to BT */
  10127. QCA_BT_A2DP = 32,
  10128. QCA_BT_BLE = 33,
  10129. QCA_BT_SCO = 34,
  10130. QCA_BT_CASE_MAX = 63,
  10131. /* 64 - 95 corresponds to Zigbee */
  10132. QCA_ZB_LOW = 64,
  10133. QCA_ZB_HIGH = 65,
  10134. QCA_ZB_CASE_MAX = 95,
  10135. /* 0xff is default value if the u8 profile value is not set. */
  10136. QCA_PROFILE_DEFAULT_VALUE = 255
  10137. };
  10138. /**
  10139. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  10140. * This enum defines the valid set of values of coex configuration types. These
  10141. * values may used by attribute
  10142. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  10143. *
  10144. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  10145. * weights to default values.
  10146. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  10147. * weights with configurability value.
  10148. */
  10149. enum qca_vendor_attr_coex_config_types {
  10150. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  10151. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  10152. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  10153. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  10154. };
  10155. /**
  10156. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  10157. * attributes
  10158. * Attributes for data used by
  10159. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  10160. *
  10161. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  10162. * Indicate config type.
  10163. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  10164. *
  10165. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  10166. * Indicate the Priority 1 profiles.
  10167. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10168. * In same priority level, maximum to 4 profiles can be set here.
  10169. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  10170. * Indicate the Priority 2 profiles.
  10171. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10172. * In same priority level, maximum to 4 profiles can be set here.
  10173. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  10174. * Indicate the Priority 3 profiles.
  10175. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10176. * In same priority level, maximum to 4 profiles can be set here.
  10177. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  10178. * Indicate the Priority 4 profiles.
  10179. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10180. * In same priority level, maximum to 4 profiles can be set here.
  10181. * NOTE:
  10182. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  10183. * arrangement:
  10184. * 1: In the same u32 attribute(priority x), the profiles enum values own
  10185. * same priority level.
  10186. * 2: 0xff is default value if the u8 profile value is not set.
  10187. * 3: max to 4 rules/profiles in same priority level.
  10188. * 4: max to 4 priority level (priority 1 - priority 4)
  10189. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  10190. * hybrid rules not support.
  10191. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  10192. * remain blank to reset all parameters.
  10193. * For example:
  10194. *
  10195. * If the attributes as follow:
  10196. * priority 1:
  10197. * ------------------------------------
  10198. * | 0xff | 0 | 1 | 2 |
  10199. * ------------------------------------
  10200. * priority 2:
  10201. * -------------------------------------
  10202. * | 0xff | 0xff | 0xff | 32 |
  10203. * -------------------------------------
  10204. * priority 3:
  10205. * -------------------------------------
  10206. * | 0xff | 0xff | 0xff | 65 |
  10207. * -------------------------------------
  10208. * then it means:
  10209. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10210. * owns same priority level.
  10211. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10212. * has priority over BT_A2DP and ZB_HIGH.
  10213. * 3: BT_A2DP has priority over ZB_HIGH.
  10214. */
  10215. enum qca_vendor_attr_coex_config_three_way {
  10216. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  10217. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  10218. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  10219. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  10220. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  10221. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  10222. /* Keep last */
  10223. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  10224. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  10225. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  10226. };
  10227. /**
  10228. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  10229. * This enum defines the valid set of values of peer stats cache types. These
  10230. * values are used by attribute
  10231. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  10232. *
  10233. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  10234. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  10235. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  10236. * statistics
  10237. */
  10238. enum qca_vendor_attr_peer_stats_cache_type {
  10239. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  10240. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  10241. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  10242. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  10243. };
  10244. /**
  10245. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  10246. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  10247. * Attributes are required to flush peer rate statistics from driver to
  10248. * user application.
  10249. *
  10250. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  10251. * Indicate peer stats cache type.
  10252. * The statistics types are 32-bit values from
  10253. * qca_vendor_attr_peer_stats_cache_type
  10254. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  10255. * of size 6, representing peer mac address.
  10256. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  10257. * containing buffer of statistics to send event to application layer entity.
  10258. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  10259. * representing cookie for peer unique session.
  10260. */
  10261. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  10262. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  10263. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  10264. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  10265. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  10266. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  10267. /* Keep last */
  10268. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  10269. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  10270. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  10271. };
  10272. /**
  10273. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  10274. * this enum defines all the possible state of zigbee, which can be
  10275. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  10276. *
  10277. * @ZIGBEE_IDLE: zigbee in idle state
  10278. * @ZIGBEE_FORM_NETWORK: zibee forming network
  10279. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  10280. * @ZIGBEE_JOIN: zigbee joining network
  10281. * @ZIGBEE_NETWORK_UP: zigbee network is up
  10282. * @ZIGBEE_HMI: zigbee in HMI mode
  10283. */
  10284. enum qca_mpta_helper_attr_zigbee_state {
  10285. ZIGBEE_IDLE = 0,
  10286. ZIGBEE_FORM_NETWORK = 1,
  10287. ZIGBEE_WAIT_JOIN = 2,
  10288. ZIGBEE_JOIN = 3,
  10289. ZIGBEE_NETWORK_UP = 4,
  10290. ZIGBEE_HMI = 5,
  10291. };
  10292. /**
  10293. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  10294. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  10295. */
  10296. enum qca_mpta_helper_vendor_attr {
  10297. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  10298. /* Optional attribute used to update zigbee state.
  10299. * enum qca_mpta_helper_attr_zigbee_state.
  10300. * NLA_U32 attribute.
  10301. */
  10302. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  10303. /* Optional attribute used to configure wlan duration for Shape-OCS
  10304. * during interrupt.
  10305. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  10306. * Value range 0 ~ 300 (ms).
  10307. * NLA_U32 attribute.
  10308. */
  10309. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  10310. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10311. * during interrupt.
  10312. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  10313. * Value range 0 ~ 300 (ms).
  10314. * NLA_U32 attribute.
  10315. */
  10316. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  10317. /* Optional attribute used to configure wlan duration for Shape-OCS
  10318. * monitor period.
  10319. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  10320. * Value range 0 ~ 300 (ms)
  10321. * NLA_U32 attribute
  10322. */
  10323. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  10324. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10325. * monitor period.
  10326. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  10327. * Value range 0 ~ 300 (ms)
  10328. * NLA_U32 attribute
  10329. */
  10330. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  10331. /* Optional attribute used to configure ocs interrupt duration.
  10332. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  10333. * Value range 1000 ~ 20000 (ms)
  10334. * NLA_U32 attribute
  10335. */
  10336. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  10337. /* Optional attribute used to configure ocs monitor duration.
  10338. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  10339. * Value range 1000 ~ 20000 (ms)
  10340. * NLA_U32 attribute
  10341. */
  10342. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  10343. /* Optional attribute used to notify wlan FW current zigbee channel.
  10344. * Value range 11 ~ 26
  10345. * NLA_U32 attribute
  10346. */
  10347. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  10348. /* Optional attribute used to configure wlan mute duration.
  10349. * Value range 0 ~ 400 (ms)
  10350. * NLA_U32 attribute
  10351. */
  10352. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  10353. /* keep last */
  10354. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  10355. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  10356. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  10357. };
  10358. /**
  10359. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  10360. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  10361. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  10362. *
  10363. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  10364. * to request the driver to start reporting Beacon frames.
  10365. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  10366. * to request the driver to stop reporting Beacon frames.
  10367. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  10368. * userspace to report received Beacon frames.
  10369. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  10370. * to indicate that the driver is going to pause reporting Beacon frames.
  10371. */
  10372. enum qca_wlan_vendor_beacon_reporting_op_types {
  10373. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  10374. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  10375. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  10376. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  10377. };
  10378. /**
  10379. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  10380. * types of reasons for which the driver is pausing reporting Beacon frames.
  10381. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  10382. *
  10383. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  10384. * reasons.
  10385. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  10386. * driver/firmware is starting a scan.
  10387. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  10388. * driver/firmware disconnects from the ESS and indicates the disconnection to
  10389. * userspace (non-seamless roaming case). This reason code will be used by the
  10390. * driver/firmware to indicate stopping of beacon report events. Userspace
  10391. * will need to start beacon reporting again (if desired) by sending vendor
  10392. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  10393. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  10394. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  10395. * completed.
  10396. */
  10397. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  10398. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  10399. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  10400. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  10401. };
  10402. /*
  10403. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  10404. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  10405. */
  10406. enum qca_wlan_vendor_attr_beacon_reporting_params {
  10407. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  10408. /* Specifies the type of operation that the vendor command/event is
  10409. * intended for. Possible values for this attribute are defined in
  10410. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  10411. */
  10412. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  10413. /* Optionally set by userspace to request the driver to report Beacon
  10414. * frames using asynchronous vendor events when the
  10415. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10416. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10417. * If this flag is not set, the driver will only update Beacon frames
  10418. * in cfg80211 scan cache but not send any vendor events.
  10419. */
  10420. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  10421. /* Optionally used by userspace to request the driver/firmware to
  10422. * report Beacon frames periodically when the
  10423. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10424. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  10425. * u32 attribute, indicates the period of Beacon frames to be reported
  10426. * and in the units of beacon interval.
  10427. * If this attribute is missing in the command, then the default value
  10428. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  10429. * Zero is an invalid value.
  10430. * If a valid value is received for this attribute, the driver will
  10431. * update the cfg80211 scan cache periodically as per the value
  10432. * received in this attribute in addition to updating the cfg80211 scan
  10433. * cache when there is significant change in Beacon frame IEs.
  10434. */
  10435. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  10436. /* Used by the driver to encapsulate the SSID when the
  10437. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10438. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10439. * u8 array with a maximum size of 32.
  10440. *
  10441. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  10442. * will be taken from the SSID element of the received Beacon frame.
  10443. *
  10444. * When generating beacon report from Multiple BSSID Beacon frame and
  10445. * if the BSSID of the current connected BSS matches the BSSID of the
  10446. * transmitting BSS, the SSID will be taken from the SSID element of
  10447. * the received Beacon frame.
  10448. *
  10449. * When generating beacon report from Multiple BSSID Beacon frame and
  10450. * if the BSSID of the current connected BSS matches the BSSID of one
  10451. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  10452. * field included in the nontransmitted BSS profile whose derived BSSI
  10453. * is same as the BSSID of the current connected BSS. When there is no
  10454. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  10455. * of current connected* BSS, this attribute will not be present.
  10456. */
  10457. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  10458. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  10459. * is currently connected to when the
  10460. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10461. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  10462. * fixed size of 6 bytes.
  10463. *
  10464. * When generating beacon report from a Multiple BSSID beacon and the
  10465. * current connected BSSID matches one of the nontransmitted BSSIDs in
  10466. * a Multiple BSSID set, this BSSID will be that particular
  10467. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  10468. * transmitting address of the Beacon frame).
  10469. */
  10470. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  10471. /* Used by the driver to encapsulate the frequency in MHz on which
  10472. * the Beacon frame was received when the
  10473. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  10474. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10475. * u32 attribute.
  10476. */
  10477. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  10478. /* Used by the driver to encapsulate the Beacon interval
  10479. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10480. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10481. * u16 attribute. The value will be copied from the Beacon frame and
  10482. * the units are TUs.
  10483. */
  10484. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  10485. /* Used by the driver to encapsulate the Timestamp field from the
  10486. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  10487. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10488. * u64 attribute.
  10489. */
  10490. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  10491. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  10492. * Beacon frame is received in the driver when the
  10493. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10494. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  10495. * the units of nanoseconds. This value is expected to have accuracy of
  10496. * about 10 ms.
  10497. */
  10498. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  10499. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  10500. * which this event is generated when the
  10501. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10502. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  10503. */
  10504. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  10505. /* Used by the driver to specify the reason for the driver/firmware to
  10506. * pause sending beacons to userspace when the
  10507. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10508. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  10509. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  10510. * attribute.
  10511. */
  10512. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  10513. /* Used by the driver to specify whether the driver will automatically
  10514. * resume reporting beacon events to userspace later (for example after
  10515. * the ongoing off-channel activity is completed etc.) when the
  10516. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10517. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  10518. */
  10519. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  10520. /* Optionally set by userspace to request the driver not to resume
  10521. * beacon reporting after a pause is completed, when the
  10522. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10523. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10524. * If this flag is set, the driver will not resume beacon reporting
  10525. * after any pause in beacon reporting is completed. Userspace has to
  10526. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  10527. * to initiate beacon reporting again. If this flag is set in the recent
  10528. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  10529. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  10530. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  10531. * set by the driver. Setting this flag until and unless there is a
  10532. * specific need is not recommended as there is a chance of some beacons
  10533. * received after pause command and next start command being not
  10534. * reported.
  10535. */
  10536. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  10537. /* Keep last */
  10538. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  10539. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  10540. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  10541. };
  10542. /**
  10543. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  10544. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  10545. *
  10546. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  10547. * a virtual device.
  10548. *
  10549. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  10550. * a physical device.
  10551. */
  10552. enum qca_vendor_oem_device_type {
  10553. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  10554. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  10555. };
  10556. /*
  10557. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  10558. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  10559. *
  10560. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  10561. * used to set/query the data to/from the firmware. On query, the same
  10562. * attribute is used to carry the respective data in the reply sent by the
  10563. * driver to userspace. The request to set/query the data and the format of the
  10564. * respective data from the firmware are embedded in the attribute. The
  10565. * maximum size of the attribute payload is 1024 bytes.
  10566. *
  10567. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  10568. * based on this field. This optional attribute is included to specify whether
  10569. * the device type is a virtual device or a physical device for the command.
  10570. * This attribute can be omitted for a virtual device (default) command.
  10571. * This u8 attribute is used to carry information for the device type using
  10572. * values defined by enum qca_vendor_oem_device_type.
  10573. *
  10574. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  10575. * attribute when the data is queried from the firmware.
  10576. *
  10577. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  10578. * is set when the userspace queries data from the firmware. This attribute
  10579. * should not be set when userspace sets the OEM data to the firmware.
  10580. */
  10581. enum qca_wlan_vendor_attr_oem_data_params {
  10582. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  10583. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  10584. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  10585. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  10586. /* keep last */
  10587. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  10588. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  10589. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  10590. };
  10591. /**
  10592. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  10593. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  10594. *
  10595. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  10596. * Nested attribute containing multiple ranges with following attributes:
  10597. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  10598. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  10599. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  10600. *
  10601. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  10602. * Starting center frequency in MHz.
  10603. *
  10604. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  10605. * Ending center frequency in MHz.
  10606. *
  10607. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  10608. * s32 attribute, optional. It is a per frequency range attribute.
  10609. * The maximum TX power limit from user space is to be applied on an
  10610. * unrestricted interface for corresponding frequency range. It is also
  10611. * possible that the actual TX power may be even lower than this cap due to
  10612. * other considerations such as regulatory compliance, SAR, etc. In absence of
  10613. * this attribute the driver shall follow current behavior which means
  10614. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  10615. * power derived by the driver based on regulatory/SAR during interface up.
  10616. *
  10617. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  10618. * u32 attribute, optional. Indicates all the interface types which are
  10619. * restricted for all frequency ranges provided in
  10620. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  10621. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  10622. * This attribute encapsulates bitmasks of interface types defined in
  10623. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  10624. * move to a safe channel and if no safe channel is available the driver shall
  10625. * terminate that interface functionality. In absence of this attribute,
  10626. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  10627. * TX power limit derived from either
  10628. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  10629. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  10630. * is not provided.
  10631. */
  10632. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  10633. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  10634. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  10635. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  10636. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  10637. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  10638. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  10639. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  10640. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  10641. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  10642. };
  10643. /*
  10644. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  10645. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  10646. */
  10647. enum qca_wlan_vendor_attr_add_sta_node_params {
  10648. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  10649. /* 6 byte MAC address of STA */
  10650. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  10651. /* Authentication algorithm used by the station of size u16;
  10652. * defined in enum nl80211_auth_type.
  10653. */
  10654. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  10655. /* keep last */
  10656. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  10657. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  10658. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  10659. };
  10660. /**
  10661. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  10662. * This enum defines the valid set of values of BT coex chain mode.
  10663. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  10664. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  10665. *
  10666. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
  10667. * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
  10668. * separated, hybrid mode.
  10669. * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
  10670. * separated, fixed FDD mode.
  10671. */
  10672. enum qca_btc_chain_mode {
  10673. QCA_BTC_CHAIN_SHARED = 0,
  10674. QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
  10675. QCA_BTC_CHAIN_SEPARATED_FDD = 2,
  10676. };
  10677. /* deprecated legacy name */
  10678. #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
  10679. /**
  10680. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  10681. * chain mode.
  10682. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  10683. *
  10684. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  10685. * Indicates the BT coex chain mode, are 32-bit values from
  10686. * enum qca_btc_chain_mode. This attribute is mandatory.
  10687. *
  10688. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  10689. * If set, vdev should be restarted when BT coex chain mode is updated.
  10690. * This attribute is optional.
  10691. */
  10692. enum qca_vendor_attr_btc_chain_mode {
  10693. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  10694. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  10695. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  10696. /* Keep last */
  10697. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  10698. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  10699. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  10700. };
  10701. /**
  10702. * enum qca_vendor_wlan_sta_flags - Station feature flags
  10703. * Bits will be set to 1 if the corresponding features are enabled.
  10704. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  10705. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  10706. for the station
  10707. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  10708. for the station
  10709. */
  10710. enum qca_vendor_wlan_sta_flags {
  10711. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  10712. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  10713. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  10714. };
  10715. /**
  10716. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  10717. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  10718. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  10719. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  10720. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  10721. */
  10722. enum qca_vendor_wlan_sta_guard_interval {
  10723. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  10724. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  10725. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  10726. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  10727. };
  10728. /**
  10729. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  10730. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  10731. *
  10732. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  10733. * Required attribute in request for AP mode only, 6-byte MAC address,
  10734. * corresponding to the station's MAC address for which information is
  10735. * requested. For STA mode this is not required as the info always correspond
  10736. * to the self STA and the current/last association.
  10737. *
  10738. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  10739. * Optionally used in response, u32 attribute, contains a bitmap of different
  10740. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  10741. *
  10742. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  10743. * Optionally used in response, u32 attribute, possible values are defined in
  10744. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  10745. * Guard interval used by the station.
  10746. *
  10747. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  10748. * Optionally used in response, u32 attribute, used in AP mode only.
  10749. * Value indicates the number of data frames received from station with retry
  10750. * bit set to 1 in FC.
  10751. *
  10752. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  10753. * Optionally used in response, u32 attribute, used in AP mode only.
  10754. * Counter for number of data frames with broadcast or multicast address in
  10755. * the destination address received from the station.
  10756. *
  10757. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  10758. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  10759. * Value indicates the number of data frames successfully transmitted only
  10760. * after retrying the packets and for which the TX status has been updated
  10761. * back to host from target.
  10762. *
  10763. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  10764. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  10765. * Value indicates the number of data frames not transmitted successfully even
  10766. * after retrying the packets for the number of times equal to the total number
  10767. * of retries allowed for that packet and for which the TX status has been
  10768. * updated back to host from target.
  10769. *
  10770. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  10771. * Optionally used in response, u32 attribute, used in AP mode only.
  10772. * Counter in the target for the number of data frames successfully transmitted
  10773. * to the station.
  10774. *
  10775. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  10776. * Optionally used in response, u32 attribute, used in AP mode only.
  10777. * Value indicates the number of data frames successfully transmitted only
  10778. * after retrying the packets.
  10779. *
  10780. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  10781. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  10782. * Value indicates the number of data frames not transmitted successfully even
  10783. * after retrying the packets for the number of times equal to the total number
  10784. * of retries allowed for that packet.
  10785. *
  10786. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  10787. * the STA mode only. Represent the number of probe requests sent by the STA
  10788. * while attempting to roam on missing certain number of beacons from the
  10789. * connected AP. If queried in the disconnected state, this represents the
  10790. * count for the last connected state.
  10791. *
  10792. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  10793. * the STA mode. Represent the number of probe responses received by the station
  10794. * while attempting to roam on missing certain number of beacons from the
  10795. * connected AP. When queried in the disconnected state, this represents the
  10796. * count when in last connected state.
  10797. *
  10798. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  10799. * STA mode only. Represents the total number of frames sent out by STA
  10800. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  10801. * only for the connect session. Represents the count of last connected session,
  10802. * when queried in the disconnected state.
  10803. *
  10804. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  10805. * Total number of RTS sent out by the STA. This data is maintained per connect
  10806. * session. Represents the count of last connected session, when queried in the
  10807. * disconnected state.
  10808. *
  10809. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  10810. * STA mode.Represent the number of RTS transmission failure that reach retry
  10811. * limit. This data is maintained per connect session. Represents the count of
  10812. * last connected session, when queried in the disconnected state.
  10813. *
  10814. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  10815. * the STA mode. Represent the total number of non aggregated frames transmitted
  10816. * by the STA. This data is maintained per connect session. Represents the count
  10817. * of last connected session, when queried in the disconnected state.
  10818. *
  10819. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  10820. * STA mode. Represent the total number of aggregated frames transmitted by the
  10821. * STA. This data is maintained per connect session. Represents the count of
  10822. * last connected session, when queried in the disconnected state.
  10823. *
  10824. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  10825. * the STA mode. Represents the number of received frames with a good PLCP. This
  10826. * data is maintained per connect session. Represents the count of last
  10827. * connected session, when queried in the disconnected state.
  10828. *
  10829. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  10830. * used in the STA mode. Represents the number of occasions that no valid
  10831. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  10832. * session. Represents the count of last connected session, when queried in the
  10833. * disconnected state.
  10834. *
  10835. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  10836. * STA mode. Represents the number of frames for which CRC check failed in the
  10837. * MAC. This data is maintained per connect session. Represents the count of
  10838. * last connected session, when queried in the disconnected state.
  10839. *
  10840. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  10841. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  10842. * data is maintained per connect session. Represents the count of last
  10843. * connected session, when queried in the disconnected state.
  10844. *
  10845. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  10846. * mode. Represents the number of received Block Acks. This data is maintained
  10847. * per connect session. Represents the count of last connected session, when
  10848. * queried in the disconnected state.
  10849. *
  10850. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  10851. * mode. Represents the number of beacons received from the connected BSS. This
  10852. * data is maintained per connect session. Represents the count of last
  10853. * connected session, when queried in the disconnected state.
  10854. *
  10855. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  10856. * STA mode. Represents the number of beacons received by the other BSS when in
  10857. * connected state (through the probes done by the STA). This data is maintained
  10858. * per connect session. Represents the count of last connected session, when
  10859. * queried in the disconnected state.
  10860. *
  10861. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  10862. * the STA mode. Represents the number of received DATA frames with good FCS and
  10863. * matching Receiver Address when in connected state. This data is maintained
  10864. * per connect session. Represents the count of last connected session, when
  10865. * queried in the disconnected state.
  10866. *
  10867. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  10868. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  10869. * when in the connected state. This data is maintained per connect session.
  10870. * Represents the count of last connected session, when queried in the
  10871. * disconnected state.
  10872. *
  10873. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  10874. * STA mode. This represents the target power in dBm for the transmissions done
  10875. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  10876. * connect session. Represents the count of last connected session, when
  10877. * queried in the disconnected state.
  10878. *
  10879. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  10880. * STA mode. This represents the Target power in dBm for transmissions done to
  10881. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10882. * session. Represents the count of last connected session, when queried in the
  10883. * disconnected state.
  10884. *
  10885. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  10886. * STA mode. This represents the Target power in dBm for transmissions done to
  10887. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  10888. * Represents the count of last connected session, when queried in the
  10889. * disconnected state.
  10890. *
  10891. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  10892. * STA mode. This represents the Target power in dBm for transmissions done to
  10893. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10894. * session. Represents the count of last connected session, when queried in
  10895. * the disconnected state.
  10896. *
  10897. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  10898. * STA mode. This represents the Target power in dBm for for transmissions done
  10899. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  10900. * Represents the count of last connected session, when queried in the
  10901. * disconnected state.
  10902. *
  10903. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  10904. * in the STA mode. This represents the Nested attribute representing the
  10905. * overflow counts of each receive buffer allocated to the hardware during the
  10906. * STA's connection. The number of hw buffers might vary for each WLAN
  10907. * solution and hence this attribute represents the nested array of all such
  10908. * HW buffer count. This data is maintained per connect session. Represents
  10909. * the count of last connected session, when queried in the disconnected state.
  10910. *
  10911. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  10912. * allowed as per the regulatory requirements for the current or last connected
  10913. * session. Used in the STA mode.
  10914. *
  10915. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  10916. * (dBm) used by the station in its latest unicast frame while communicating
  10917. * to the AP in the connected state. When queried in the disconnected state,
  10918. * this represents the TX power used by the STA with last AP communication
  10919. * when in connected state.
  10920. *
  10921. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  10922. * level used to adjust the RX sensitivity. Represents the current ANI level
  10923. * when queried in the connected state. When queried in the disconnected
  10924. * state, this corresponds to the latest ANI level at the instance of
  10925. * disconnection.
  10926. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  10927. * only. This represents the number of group addressed robust management frames
  10928. * received from this station with an invalid MIC or a missing MME when PMF is
  10929. * enabled.
  10930. *
  10931. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  10932. * only. This represents the number of group addressed robust management frames
  10933. * received from this station with the packet number less than or equal to the
  10934. * last received packet number when PMF is enabled.
  10935. *
  10936. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  10937. * mode only. This represents the number of Beacon frames received from this
  10938. * station with an invalid MIC or a missing MME when beacon protection is
  10939. * enabled.
  10940. *
  10941. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  10942. * only. This represents number of Beacon frames received from this station with
  10943. * the packet number less than or equal to the last received packet number when
  10944. * beacon protection is enabled.
  10945. *
  10946. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  10947. * STA mode only. Driver uses this attribute to populate the connection failure
  10948. * reason codes and the values are defined in
  10949. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  10950. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  10951. * connection failure from driver. The driver shall not include this attribute
  10952. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  10953. * connection failure observed in the last attempted connection.
  10954. *
  10955. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  10956. * used by the station in its last TX frame while communicating to the AP in the
  10957. * connected state. When queried in the disconnected state, this represents the
  10958. * rate used by the STA in the last TX frame to the AP when it was connected.
  10959. * This attribute is used for STA mode only.
  10960. *
  10961. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  10962. * This represents the rate index used by the STA for the last TX frame to the
  10963. * AP. When queried in the disconnected state, this gives the last RIX used by
  10964. * the STA in the last TX frame to the AP when it was connected.
  10965. *
  10966. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  10967. * mode only. This represents the number of times the STA TSF goes out of sync
  10968. * from the AP after the connection. If queried in the disconnected state, this
  10969. * gives the count of TSF out of sync for the last connection.
  10970. *
  10971. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  10972. * mode only. This represents the roam trigger reason for the last roaming
  10973. * attempted by the firmware. This can be queried either in connected state or
  10974. * disconnected state. Each bit of this attribute represents the different
  10975. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  10976. *
  10977. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  10978. * only. This represents the roam fail reason for the last failed roaming
  10979. * attempt by the firmware. Different roam failure reason codes are specified
  10980. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  10981. * connected state or disconnected state.
  10982. *
  10983. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  10984. * STA mode only. This represents the roam invoke fail reason for the last
  10985. * failed roam invoke. Different roam invoke failure reason codes
  10986. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  10987. * queried either in connected state or disconnected state.
  10988. *
  10989. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  10990. * This represents the average congestion duration of uplink frames in MAC
  10991. * queue in unit of ms. This can be queried either in connected state or
  10992. * disconnected state.
  10993. *
  10994. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
  10995. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  10996. * rate value of TX packets. Every index of this nested attribute corresponds
  10997. * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
  10998. * queried in connected state.
  10999. *
  11000. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
  11001. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11002. * rate value of RX packets. Every index of this nested attribute corresponds
  11003. * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
  11004. * queried in connected state.
  11005. */
  11006. enum qca_wlan_vendor_attr_get_sta_info {
  11007. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  11008. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  11009. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  11010. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  11011. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  11012. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  11013. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  11014. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  11015. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  11016. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  11017. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  11018. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  11019. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  11020. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  11021. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  11022. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  11023. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  11024. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  11025. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  11026. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  11027. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  11028. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  11029. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  11030. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  11031. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  11032. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  11033. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  11034. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  11035. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  11036. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  11037. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  11038. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  11039. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  11040. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  11041. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  11042. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  11043. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  11044. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  11045. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  11046. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  11047. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  11048. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  11049. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  11050. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  11051. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  11052. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  11053. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  11054. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  11055. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
  11056. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
  11057. /* keep last */
  11058. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  11059. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  11060. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  11061. };
  11062. /**
  11063. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  11064. * Used when the driver triggers the STA to disconnect from the AP.
  11065. *
  11066. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  11067. * disconnection with the AP due to unspecified reasons.
  11068. *
  11069. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  11070. * disconnection with the AP due to a roaming failure. This roaming is triggered
  11071. * internally (host driver/firmware).
  11072. *
  11073. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  11074. * the AP when the user/external triggered roaming fails.
  11075. *
  11076. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  11077. * by the host driver whenever gateway reachability failure is detected and the
  11078. * driver disconnects with AP.
  11079. *
  11080. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  11081. * the AP on a channel switch announcement from it with an unsupported channel.
  11082. *
  11083. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  11084. * with indoor channels disabled and if the STA is connected on one of these
  11085. * disabled channels, the host driver disconnected the STA with this reason
  11086. * code.
  11087. *
  11088. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  11089. * explicit request from the user to disable the current operating channel.
  11090. *
  11091. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  11092. * the internal host driver/firmware recovery.
  11093. *
  11094. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  11095. * a timeout for the key installations from the user space.
  11096. *
  11097. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  11098. * STA on a band change request from the user space to a different band from the
  11099. * current operation channel/band.
  11100. *
  11101. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  11102. * interface down trigger from the user space.
  11103. *
  11104. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  11105. * STA on getting continuous transmission failures for multiple Data frames.
  11106. *
  11107. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  11108. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  11109. * represents inactivity from AP on such transmissions.
  11110. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  11111. * disconnection when SA Query times out (AP does not respond to SA Query).
  11112. *
  11113. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  11114. * STA on missing the beacons continuously from the AP.
  11115. *
  11116. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  11117. * able to move to the channel mentioned by the AP in CSA.
  11118. *
  11119. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  11120. */
  11121. enum qca_disconnect_reason_codes {
  11122. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  11123. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  11124. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  11125. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  11126. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  11127. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  11128. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  11129. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  11130. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  11131. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  11132. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  11133. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  11134. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  11135. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  11136. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  11137. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  11138. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  11139. };
  11140. /**
  11141. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  11142. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  11143. *
  11144. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  11145. * This attribute represents the driver specific reason codes (local
  11146. * driver/firmware initiated reasons for disconnection) defined
  11147. * in enum qca_disconnect_reason_codes.
  11148. */
  11149. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  11150. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  11151. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  11152. /* keep last */
  11153. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  11154. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  11155. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  11156. };
  11157. /**
  11158. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  11159. *
  11160. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  11161. */
  11162. enum qca_wlan_tspec_operation {
  11163. QCA_WLAN_TSPEC_ADD = 0,
  11164. QCA_WLAN_TSPEC_DEL = 1,
  11165. QCA_WLAN_TSPEC_GET = 2,
  11166. };
  11167. /**
  11168. * enum qca_wlan_tspec_direction - Direction in TSPEC
  11169. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  11170. *
  11171. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  11172. */
  11173. enum qca_wlan_tspec_direction {
  11174. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  11175. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  11176. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  11177. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  11178. };
  11179. /**
  11180. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  11181. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  11182. *
  11183. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  11184. */
  11185. enum qca_wlan_tspec_ack_policy {
  11186. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  11187. QCA_WLAN_TSPEC_NO_ACK = 1,
  11188. /* Reserved */
  11189. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  11190. };
  11191. /**
  11192. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  11193. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  11194. *
  11195. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  11196. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  11197. * are defined in enum qca_wlan_tspec_operation.
  11198. * Mandatory attribute for all kinds of config TSPEC requests.
  11199. *
  11200. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  11201. * u8 attribute. TS ID. Possible values are 0-7.
  11202. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  11203. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  11204. *
  11205. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  11206. * u8 attribute. Direction of data carried by the TS. Possible values are
  11207. * defined in enum qca_wlan_tspec_direction.
  11208. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11209. *
  11210. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  11211. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  11212. * with the TS. set - enabled, not set - disabled.
  11213. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11214. *
  11215. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  11216. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  11217. * belonging to this TS. Possible values are 0-7.
  11218. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11219. *
  11220. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  11221. * u8 attribute. Indicate whether MAC acknowledgements are required for
  11222. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  11223. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  11224. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11225. *
  11226. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  11227. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  11228. * belonging to this TS.
  11229. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11230. *
  11231. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  11232. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  11233. * belonging to this TS.
  11234. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11235. *
  11236. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  11237. * u32 attribute. Specify the minimum interval in microseconds between the
  11238. * start of two successive SPs.
  11239. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11240. *
  11241. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  11242. * u32 attribute. Specify the maximum interval in microseconds between the
  11243. * start of two successive SPs.
  11244. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11245. *
  11246. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  11247. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11248. * without arrival or transfer of an MPDU belonging to the TS before this TS
  11249. * is deleted by the MAC entity at the HC.
  11250. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11251. *
  11252. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  11253. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11254. * without arrival or transfer of an MSDU belonging to the TS before the
  11255. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  11256. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  11257. * interval is always less than or equal to the inactivity interval.
  11258. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11259. *
  11260. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  11261. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  11262. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11263. * bounds of this TSPEC.
  11264. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11265. *
  11266. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  11267. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  11268. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11269. * bounds of this TSPEC.
  11270. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11271. *
  11272. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  11273. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  11274. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  11275. * the bounds of this TSPEC.
  11276. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11277. *
  11278. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  11279. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  11280. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  11281. * value of 0 indicates that there are no bursts.
  11282. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11283. *
  11284. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  11285. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  11286. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  11287. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11288. *
  11289. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  11290. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  11291. * and above the stated application rates required to transport an MSDU/A-MSDU
  11292. * belonging to the TS in this TSPEC.
  11293. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11294. */
  11295. enum qca_wlan_vendor_attr_config_tspec {
  11296. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  11297. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  11298. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  11299. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  11300. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  11301. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  11302. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  11303. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  11304. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  11305. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  11306. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  11307. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  11308. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  11309. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  11310. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  11311. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  11312. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  11313. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  11314. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  11315. /* keep last */
  11316. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  11317. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  11318. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  11319. };
  11320. /**
  11321. * enum qca_wlan_medium_assess_type - Type of medium assess request
  11322. *
  11323. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  11324. */
  11325. enum qca_wlan_medium_assess_type {
  11326. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  11327. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  11328. };
  11329. /**
  11330. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  11331. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  11332. *
  11333. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  11334. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  11335. * Specify the type of medium assess request and indicate its type in response.
  11336. * Possible values are defined in enum qca_wlan_medium_assess_type.
  11337. *
  11338. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  11339. * u32 attribute. Mandatory in CCA request.
  11340. * Specify the assessment period in terms of seconds. Assessment result will be
  11341. * sent as the response to the CCA request after the assessment period.
  11342. *
  11343. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  11344. * u32 attribute. Mandatory in response to CCA request.
  11345. * Total timer tick count of the assessment cycle.
  11346. *
  11347. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  11348. * u32 attribute. Mandatory in response to CCA request.
  11349. * Timer tick count of idle time in the assessment cycle.
  11350. *
  11351. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  11352. * u32 attribute. Mandatory in response to CCA request.
  11353. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  11354. *
  11355. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  11356. * u32 attribute. Mandatory in response to CCA request.
  11357. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  11358. *
  11359. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  11360. * s32 attribute. Mandatory in response to CCA request.
  11361. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  11362. *
  11363. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  11364. * s32 attribute. Mandatory in response to CCA request.
  11365. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  11366. *
  11367. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  11368. * u8 attribute. Mandatory in congestion report request.
  11369. * 1-enable 0-disable.
  11370. *
  11371. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  11372. * u8 attribute. Mandatory in congestion report enable request and will be
  11373. * ignored if present in congestion report disable request. Possible values are
  11374. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  11375. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  11376. * congestion percentage reaches the configured threshold.
  11377. *
  11378. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  11379. * u8 attribute. Optional in congestion report enable request and will be
  11380. * ignored if present in congestion report disable request.
  11381. * Specify the interval of congestion report event in terms of seconds. Possible
  11382. * values are 1-255. Default value 1 will be used if this attribute is omitted
  11383. * or using invalid values.
  11384. *
  11385. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  11386. * u8 attribute. Mandatory in congestion report event.
  11387. * Indicate the actual congestion percentage. Possible values are 0-100.
  11388. */
  11389. enum qca_wlan_vendor_attr_medium_assess {
  11390. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  11391. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  11392. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  11393. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  11394. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  11395. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  11396. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  11397. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  11398. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  11399. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  11400. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  11401. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  11402. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  11403. /* keep last */
  11404. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  11405. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  11406. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  11407. };
  11408. /**
  11409. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  11410. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  11411. *
  11412. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  11413. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  11414. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  11415. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  11416. *
  11417. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  11418. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  11419. *
  11420. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  11421. * u8 attribute, required. indicates group id of Tx VDEV
  11422. *
  11423. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  11424. * Nested attribute. This attribute shall be used by the driver to send
  11425. * group information. The attributes defined in enum
  11426. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  11427. * are nested in this attribute.
  11428. */
  11429. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  11430. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  11431. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  11432. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  11433. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  11434. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  11435. /* keep last */
  11436. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  11437. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  11438. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  11439. };
  11440. /**
  11441. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  11442. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  11443. *
  11444. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  11445. * u32 attribute, required. contains interface index.
  11446. *
  11447. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  11448. * u8 attribute, required. 0 - means vdev is in down state.
  11449. * 1- means vdev is in up state.
  11450. */
  11451. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  11452. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  11453. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  11454. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  11455. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  11456. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  11457. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  11458. };
  11459. /**
  11460. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  11461. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  11462. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  11463. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  11464. * frame
  11465. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  11466. * Request frame.
  11467. */
  11468. enum qca_wlan_vendor_oci_override_frame_type {
  11469. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  11470. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  11471. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  11472. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  11473. };
  11474. /**
  11475. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  11476. *
  11477. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  11478. * STA interface has to be given while selecting the connection policies
  11479. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  11480. * An interface is set as primary through the attribute
  11481. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  11482. * applicable if the primary interface has not been set earlier.
  11483. *
  11484. * The intention is not to downgrade the primary STA performance, such as:
  11485. * - Do not reduce the number of TX/RX chains of primary connection.
  11486. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  11487. * chains.
  11488. * - If using MCC, should set the MCC duty cycle of the primary connection to
  11489. * be higher than the secondary connection.
  11490. *
  11491. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  11492. * subsequent STA connection shall be chosen to balance with the existing
  11493. * concurrent STA's performance.
  11494. * Such as
  11495. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  11496. * capability.
  11497. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  11498. * to the secondary.
  11499. * - Prefer BSSID candidates which will help provide the best "overall"
  11500. * performance for all the STA connections.
  11501. */
  11502. enum qca_wlan_concurrent_sta_policy_config {
  11503. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  11504. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  11505. };
  11506. /**
  11507. * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
  11508. *
  11509. * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
  11510. * interface.
  11511. *
  11512. * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
  11513. * to meet gaming audio latency requirements.
  11514. *
  11515. * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
  11516. * concurrencies to meet lossless audio streaming requirements.
  11517. *
  11518. * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
  11519. * XR (eXtended Reality) requirements.
  11520. */
  11521. enum qca_wlan_concurrent_ap_policy_config {
  11522. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
  11523. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
  11524. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
  11525. QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
  11526. };
  11527. /**
  11528. * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
  11529. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
  11530. *
  11531. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
  11532. * u8 attribute. Configures the concurrent STA policy configuration.
  11533. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  11534. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
  11535. * u8 attribute. Configures the concurrent AP policy configuration.
  11536. * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
  11537. */
  11538. enum qca_wlan_vendor_attr_concurrent_policy {
  11539. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
  11540. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
  11541. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
  11542. /* keep last */
  11543. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
  11544. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
  11545. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
  11546. };
  11547. /* Compatibility defines for previously used enum
  11548. * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
  11549. * in any new implementation.
  11550. */
  11551. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
  11552. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
  11553. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
  11554. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
  11555. #define qca_wlan_vendor_attr_concurrent_sta_policy \
  11556. qca_wlan_vendor_attr_concurrent_policy
  11557. /**
  11558. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  11559. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  11560. * attribute.
  11561. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  11562. * for unicast probe request.
  11563. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  11564. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  11565. * ath request.
  11566. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  11567. * received from AP.
  11568. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  11569. * request.
  11570. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  11571. * assoc request.
  11572. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  11573. * received from AP.
  11574. */
  11575. enum qca_sta_connect_fail_reason_codes {
  11576. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  11577. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  11578. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  11579. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  11580. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  11581. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  11582. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  11583. };
  11584. /**
  11585. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  11586. * OCI override request. These attributes are used inside nested attribute
  11587. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  11588. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  11589. *
  11590. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  11591. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  11592. * attribute to specify the frame type in which the OCI is to be overridden.
  11593. *
  11594. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  11595. * OCI frequency (in MHz) to override in the specified frame type.
  11596. */
  11597. enum qca_wlan_vendor_attr_oci_override {
  11598. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  11599. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  11600. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  11601. /* keep last */
  11602. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  11603. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  11604. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  11605. };
  11606. /**
  11607. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  11608. * filters defined in this enum are used in attribute
  11609. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  11610. *
  11611. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  11612. * shall filter the channels which are not usable because of coexistence with
  11613. * cellular radio.
  11614. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  11615. * shall filter the channels which are not usable because of existing active
  11616. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  11617. *
  11618. */
  11619. enum qca_wlan_vendor_usable_channels_filter {
  11620. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  11621. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  11622. };
  11623. /**
  11624. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  11625. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  11626. *
  11627. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  11628. * u32 attribute, required. Indicates the center frequency of the primary
  11629. * channel in MHz.
  11630. *
  11631. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  11632. * u32 attribute. Indicates the center frequency of the primary segment of the
  11633. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  11634. * 160 MHz, and 320 MHz channels.
  11635. *
  11636. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  11637. * u32 attribute. Indicates the center frequency of the secondary segment of
  11638. * 80+80 channel in MHz. This attribute is required only when
  11639. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  11640. *
  11641. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  11642. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  11643. * values are defined in enum nl80211_chan_width.
  11644. *
  11645. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  11646. * u32 attribute, required. Indicates all the interface types for which this
  11647. * channel is usable. This attribute encapsulates bitmasks of interface types
  11648. * defined in enum nl80211_iftype.
  11649. *
  11650. */
  11651. enum qca_wlan_vendor_attr_chan_info {
  11652. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  11653. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  11654. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  11655. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  11656. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  11657. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  11658. /* keep last */
  11659. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  11660. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  11661. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  11662. };
  11663. /**
  11664. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  11665. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  11666. *
  11667. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  11668. * u32 attribute. Indicates the bands from which the channels should be reported
  11669. * in response. This attribute encapsulates bit masks of bands defined in enum
  11670. * nl80211_band. Optional attribute, if not present in the request the driver
  11671. * shall return channels from all supported bands.
  11672. *
  11673. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  11674. * u32 attribute. Indicates all the interface types for which the usable
  11675. * channels information is requested. This attribute encapsulates bitmasks of
  11676. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  11677. * present in the request the driver shall send information of all supported
  11678. * interface modes.
  11679. *
  11680. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  11681. * u32 attribute. This attribute carries information of all filters that shall
  11682. * be applied while populating usable channels information by the driver. This
  11683. * attribute carries bit masks of different filters defined in enum
  11684. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  11685. * in the request the driver shall send information of channels without applying
  11686. * any of the filters that can be configured through this attribute.
  11687. *
  11688. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  11689. * Nested attribute. This attribute shall be used by the driver to send
  11690. * usability information of each channel. The attributes defined in enum
  11691. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  11692. */
  11693. enum qca_wlan_vendor_attr_usable_channels {
  11694. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  11695. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  11696. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  11697. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  11698. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  11699. /* keep last */
  11700. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  11701. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  11702. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  11703. };
  11704. /**
  11705. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  11706. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  11707. *
  11708. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  11709. * the list of radar history entries.
  11710. * Each entry contains freq, timestamp, and radar signal detect flag.
  11711. * The driver shall add an entry when CAC has finished, or radar signal
  11712. * has been detected post AP beaconing. The driver shall maintain at least
  11713. * 8 entries in order to save CAC result for a 160 MHz channel.
  11714. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  11715. * Channel frequency in MHz.
  11716. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  11717. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  11718. * or radar detection.
  11719. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  11720. * This flag indicates radar signal has been detected.
  11721. */
  11722. enum qca_wlan_vendor_attr_radar_history {
  11723. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  11724. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  11725. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  11726. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  11727. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  11728. /* keep last */
  11729. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  11730. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  11731. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  11732. };
  11733. /**
  11734. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  11735. *
  11736. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  11737. * target exited MCC state and cleared the quota information. In the
  11738. * command it clears MCC quota setting and restores adaptive scheduling.
  11739. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  11740. * will not be changed.
  11741. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  11742. * and the target may change the quota based on the data activity.
  11743. */
  11744. enum qca_wlan_vendor_mcc_quota_type {
  11745. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  11746. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  11747. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  11748. };
  11749. /**
  11750. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  11751. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  11752. * quota information or as a command to set the required MCC quota for an
  11753. * interface.
  11754. *
  11755. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  11756. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  11757. * In a command this specifies the MCC quota type to be set for the interface.
  11758. * In an event this provides the current quota type in force.
  11759. * This is required in a command and an event.
  11760. *
  11761. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  11762. * the list of channel quota entries.
  11763. * In an event each entry contains the frequency and respective time quota for
  11764. * all the MCC interfaces.
  11765. * In a command it specifies the interface index and respective time quota.
  11766. * In a command only one entry (ifindex, quota pair) may be specified.
  11767. *
  11768. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  11769. * Channel frequency in MHz. This is present only in an event.
  11770. *
  11771. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  11772. * Channel time quota expressed as percentage.
  11773. * This is present in an event and a command.
  11774. * In an command, the user shall specify the quota to be allocated for the
  11775. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  11776. * In an event this provides the existing quota for the channel.
  11777. *
  11778. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  11779. * Specifies the interface index (netdev) for which the corresponding
  11780. * configurations are applied. This is required in a command only. Only one
  11781. * interface index may be specified. If not specified, the configuration is
  11782. * rejected.
  11783. */
  11784. enum qca_wlan_vendor_attr_mcc_quota {
  11785. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  11786. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  11787. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  11788. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  11789. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  11790. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  11791. /* keep last */
  11792. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  11793. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  11794. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  11795. };
  11796. /**
  11797. * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
  11798. * are used by the attribute
  11799. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
  11800. *
  11801. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
  11802. * invoke roam.
  11803. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
  11804. * detection failed when the roam trigger.
  11805. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
  11806. */
  11807. enum qca_wlan_roam_stats_invoke_reason {
  11808. QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
  11809. QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
  11810. QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
  11811. };
  11812. /**
  11813. * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
  11814. * values are used by the attribute
  11815. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
  11816. *
  11817. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
  11818. * roam by kickout.
  11819. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
  11820. * trigger by kickout.
  11821. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
  11822. * roam trigger by kickout.
  11823. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
  11824. * roam trigger by kickout.
  11825. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
  11826. * disappeared, and all TX is failing when roam trigger by kickout.
  11827. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
  11828. * timeout when roam trigger by kickout.
  11829. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
  11830. * peer has roamed to a repeater.
  11831. */
  11832. enum qca_wlan_roam_stats_tx_failures_reason {
  11833. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
  11834. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
  11835. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
  11836. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
  11837. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
  11838. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
  11839. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
  11840. };
  11841. /**
  11842. * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
  11843. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
  11844. *
  11845. * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
  11846. * detailed reason for roam scan being aborted.
  11847. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
  11848. * started due to high data RSSI during LOW-RSSI roaming.
  11849. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
  11850. * started due to good link speed during LOW-RSSI roaming.
  11851. * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
  11852. * due to high data RSSI during background roaming.
  11853. * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
  11854. * started due to high beacon RSSI during background roaming
  11855. */
  11856. enum qca_wlan_roam_stats_abort_reason {
  11857. QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
  11858. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
  11859. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
  11860. QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
  11861. QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
  11862. };
  11863. /**
  11864. * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
  11865. * These values are used by the attribute
  11866. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
  11867. *
  11868. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
  11869. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
  11870. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
  11871. * This is generally used in BTM events to indicate BTM frame exchange logs.
  11872. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
  11873. * from 2.4 GHz to 5 GHz or 6 GHz
  11874. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
  11875. * 5 GHz to 6 GHz
  11876. */
  11877. enum qca_wlan_roam_stats_scan_type {
  11878. QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
  11879. QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
  11880. QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
  11881. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
  11882. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
  11883. };
  11884. /**
  11885. * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
  11886. * These values are used by the attribute
  11887. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
  11888. *
  11889. * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
  11890. * detailed roam scan type.
  11891. * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
  11892. * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
  11893. */
  11894. enum qca_wlan_roam_stats_scan_dwell_type {
  11895. QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
  11896. QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
  11897. QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
  11898. };
  11899. /**
  11900. * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
  11901. * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
  11902. */
  11903. enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
  11904. /* 32-bit unsigned value to indicate center frequency of the primary
  11905. * channel in MHz for each roam scan channel.
  11906. */
  11907. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
  11908. /* 8-bit unsigned value to indicate channel scan type for each
  11909. * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
  11910. */
  11911. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
  11912. /* 32-bit unsigned value to indicate maximum scan time in milliseconds
  11913. * for each roam scan channel.
  11914. */
  11915. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
  11916. /* keep last */
  11917. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
  11918. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
  11919. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
  11920. };
  11921. /**
  11922. * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
  11923. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
  11924. *
  11925. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
  11926. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
  11927. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
  11928. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
  11929. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
  11930. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
  11931. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
  11932. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
  11933. */
  11934. enum qca_wlan_roam_stats_frame_subtype {
  11935. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
  11936. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
  11937. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
  11938. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
  11939. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
  11940. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
  11941. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
  11942. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
  11943. };
  11944. /**
  11945. * enum roam_frame_status - Specifies the valid values the vendor roam frame
  11946. * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
  11947. *
  11948. * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
  11949. * sent or received successfully.
  11950. * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
  11951. * receiving failed.
  11952. */
  11953. enum qca_wlan_roam_stats_frame_status {
  11954. QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
  11955. QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
  11956. };
  11957. /**
  11958. * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
  11959. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
  11960. */
  11961. enum qca_wlan_vendor_attr_roam_stats_frame_info {
  11962. /* 8-bit unsigned value to indicate the frame subtype during
  11963. * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
  11964. */
  11965. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
  11966. /* 8-bit unsigned value to indicate the frame is successful or failed
  11967. * during roaming, one of the values in
  11968. * qca_wlan_roam_stats_frame_status.
  11969. */
  11970. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
  11971. /* 64-bit unsigned value to indicate the timestamp for frame of
  11972. * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
  11973. * when sent or received during roaming, timestamp in milliseconds
  11974. * from system boot.
  11975. */
  11976. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
  11977. /* keep last */
  11978. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
  11979. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
  11980. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
  11981. };
  11982. /**
  11983. * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
  11984. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
  11985. */
  11986. enum qca_wlan_vendor_attr_roam_stats_info {
  11987. /* 64-bit unsigned value to indicate the timestamp when roam was
  11988. * triggered by the firmware, timestamp in milliseconds from system
  11989. * boot.
  11990. */
  11991. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
  11992. /* 32-bit unsigned value to indicate the roam trigger reason for the
  11993. * last roaming attempted by the firmware. This can be queried either
  11994. * in a connected state or disconnected state. The values of this
  11995. * attribute represent the roam trigger reason codes, which
  11996. * are defined in enum qca_roam_reason.
  11997. */
  11998. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
  11999. /* 8-bit unsigned value to indicate percentage of packets for which
  12000. * the RX rate is lower than the RX rate threshold in total RX packets,
  12001. * used for roaming trigger by per.
  12002. */
  12003. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
  12004. /* 8-bit unsigned value to indicate percentage of packets for which
  12005. * the TX rate is lower than TX rate threshold in total TX packets,
  12006. * used for roaming trigger by per.
  12007. */
  12008. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
  12009. /* 32-bit unsigned value to indicate final beacon miss count for
  12010. * trigger reason of beacon miss.
  12011. */
  12012. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
  12013. /* 32-bit unsigned value to indicate consecutive beacon miss count
  12014. * for trigger reason of beacon miss.
  12015. */
  12016. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
  12017. /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
  12018. * reason of beacon miss, 0 - success, 1 - fail.
  12019. * If QOS-NULL TX status is successful, beacon miss final count and
  12020. * consecutive beacon miss count will be reset to zero, and roam will
  12021. * not be triggered. If QOS-NULL TX status is failed, beacon miss final
  12022. * count and consecutive beacon miss count continue to calculate until
  12023. * roaming trigger by beacon miss.
  12024. */
  12025. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
  12026. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12027. * for trigger reason of poor RSSI.
  12028. */
  12029. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
  12030. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12031. * for trigger reason of poor RSSI.
  12032. */
  12033. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
  12034. /* 8-bit unsigned value to indicate RX link speed status
  12035. * for trigger reason of poor RSSI, 0 - good link speed,
  12036. * 1 - bad link speed.
  12037. */
  12038. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
  12039. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12040. * for trigger reason of better RSSI.
  12041. */
  12042. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
  12043. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12044. * for trigger reason of better RSSI.
  12045. */
  12046. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
  12047. /* 32-bit unsigned value to indicate RX throughput in bytes per second
  12048. * for trigger reason of congestion.
  12049. */
  12050. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
  12051. /* 32-bit unsigned value to indicate TX throughput in bytes per second
  12052. * for trigger reason of congestion.
  12053. */
  12054. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
  12055. /* 8-bit unsigned value to indicate roamable AP count
  12056. * for trigger reason of congestion.
  12057. */
  12058. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
  12059. /* 8-bit unsigned value to indicate invoke reason, one of the values
  12060. * defined in qca_wlan_roam_stats_invoke_reason.
  12061. */
  12062. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
  12063. /* 8-bit unsigned value to indicate request mode for trigger reason
  12064. * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
  12065. */
  12066. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
  12067. /* 32-bit unsigned value to indicate disassociate time in milliseconds
  12068. * for trigger reason of BTM.
  12069. */
  12070. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
  12071. /* 32-bit unsigned value to indicate preferred candidate list valid
  12072. * interval in milliseconds for trigger reason of BTM.
  12073. */
  12074. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
  12075. /* 8-bit unsigned value to indicate the number of preferred
  12076. * candidates for trigger reason of BTM.
  12077. */
  12078. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
  12079. /* 8-bit unsigned value to indicate response status for trigger
  12080. * reason of BTM, values are defined in IEEE Std 802.11-2020,
  12081. * Table 9-428 (BTM status code definitions).
  12082. */
  12083. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
  12084. /* 32-bit unsigned value to indicate BSS termination timeout value
  12085. * in milliseconds for trigger reason of BTM.
  12086. */
  12087. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
  12088. /* 32-bit unsigned value to indicate MBO associate retry timeout
  12089. * value in milliseconds for trigger reason of BTM.
  12090. */
  12091. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
  12092. /* 8-bit unsigned value to indicate dialog token number
  12093. * for trigger reason of BTM.
  12094. */
  12095. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
  12096. /* 8-bit unsigned value to indicate percentage of connected AP
  12097. * channel congestion utilization for trigger reason of BSS load.
  12098. */
  12099. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
  12100. /* 8-bit unsigned value to indicate disconnection type
  12101. * for trigger reason of disconnection. 1 - Deauthentication,
  12102. * 2 - Disassociation.
  12103. */
  12104. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
  12105. /* 16-bit unsigned value to indicate deauthentication or disassociation
  12106. * reason for trigger reason of disconnection, values are defined
  12107. * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
  12108. */
  12109. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
  12110. /* 32-bit unsigned value to indicate milliseconds of roam scan
  12111. * periodicity when needing to roam to find a better AP for trigger
  12112. * reason of periodic timer.
  12113. */
  12114. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
  12115. /* 8-bit signed value to indicate connected AP RSSI in dBm for
  12116. * trigger reason of background scan.
  12117. */
  12118. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
  12119. /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
  12120. * of background scan.
  12121. */
  12122. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
  12123. /* 8-bit signed value to indicate data RSSI threshold in dBm
  12124. * for trigger reason of background scan.
  12125. */
  12126. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
  12127. /* 32-bit unsigned value to indicate consecutive TX failure threshold
  12128. * for trigger reason of TX failures.
  12129. */
  12130. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
  12131. /* 8-bit unsigned value to indicate TX failure reason for trigger
  12132. * reason of TX failures, one of the values defined in
  12133. * qca_wlan_roam_stats_tx_failures_reason.
  12134. */
  12135. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
  12136. /* 8-bit unsigned value to indicate detail abort reason. One of the
  12137. * values in enum qca_wlan_roam_stats_abort_reason.
  12138. */
  12139. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
  12140. /* 8-bit signed value to indicate data RSSI in dBm when aborting the
  12141. * roam scan.
  12142. */
  12143. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
  12144. /* 8-bit signed value to indicate data RSSI threshold in dBm when
  12145. * aborting the roam scan.
  12146. */
  12147. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
  12148. /* 8-bit unsigned value to indicate data RSSI threshold in RX link
  12149. * speed status when aborting the roam scan.
  12150. * 0 - good link speed, 1 - bad link speed
  12151. */
  12152. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
  12153. /* 8-bit unsigned value to indicate roaming scan type.
  12154. * One of the values in enum qca_wlan_roam_stats_scan_type.
  12155. */
  12156. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
  12157. /* 8-bit unsigned value to indicate roaming result, used in STA mode
  12158. * only.
  12159. * 0-Roaming is successful, 1-Roaming is failed
  12160. */
  12161. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
  12162. /* 8-bit unsigned value to indicate the roam fail reason for the
  12163. * last failed roaming attempt by the firmware. Different roam failure
  12164. * reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12165. * This can be queried either in connected state or disconnected state.
  12166. */
  12167. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
  12168. /* Nested attribute. Indicate roam scan info for each channel, the
  12169. * attributes defined in enum
  12170. * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
  12171. * this attribute.
  12172. */
  12173. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
  12174. /* 32-bit unsigned value to indicate total scan time during roam scan
  12175. * all channels, time in milliseconds.
  12176. */
  12177. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
  12178. /* Nested attribute. This attribute shall be used by the driver to
  12179. * send roam information of each subtype. The attributes defined in
  12180. * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
  12181. * this attribute.
  12182. */
  12183. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
  12184. /* keep last */
  12185. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
  12186. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
  12187. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
  12188. };
  12189. /**
  12190. * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
  12191. * report cached roam info from the driver to user space, enum values are used
  12192. * for netlink attributes sent with the
  12193. * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
  12194. */
  12195. enum qca_wlan_vendor_attr_roam_cached_stats {
  12196. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
  12197. /* Nested attribute, this attribute contains nested array roam info
  12198. * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
  12199. */
  12200. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
  12201. /* keep last */
  12202. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
  12203. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
  12204. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
  12205. };
  12206. /**
  12207. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  12208. * radio configurations present in each radio combination.
  12209. *
  12210. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  12211. * the band info in the radio configuration. Uses the enum qca_set_band values.
  12212. *
  12213. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  12214. * the number of antennas info in the radio configuration.
  12215. */
  12216. enum qca_wlan_vendor_attr_supported_radio_cfg {
  12217. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  12218. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  12219. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  12220. /* keep last */
  12221. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  12222. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  12223. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  12224. };
  12225. /**
  12226. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  12227. * radio combinations supported by the device.
  12228. *
  12229. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  12230. * provides the radio configurations present in the radio combination.
  12231. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  12232. * This attribute provides the values for radio combination matrix.
  12233. * For standalone config, the number of config values is one and the config
  12234. * carries the band and antenna information for standalone configuration. For
  12235. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  12236. * configuration the number of config values is two and the config carries the
  12237. * band and antenna information for each simultaneous radio.
  12238. */
  12239. enum qca_wlan_vendor_attr_radio_combination {
  12240. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  12241. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  12242. /* keep last */
  12243. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  12244. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  12245. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  12246. };
  12247. /**
  12248. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  12249. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  12250. *
  12251. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  12252. * provides the radio combinations supported by the device.
  12253. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  12254. * For example, in the radio combination matrix for a device which has two
  12255. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  12256. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  12257. * combinations is 5 and the radio combinations are
  12258. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  12259. * {{5 GHz 2X2}}, //Standalone 5 GHz
  12260. * {{6 GHz 2X2}}, //Standalone 6 GHz
  12261. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  12262. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  12263. * The band and antenna info together as nested data provides one radio config.
  12264. * Standalone configuration has one config with band and antenna nested data.
  12265. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  12266. * have two nested band and antenna info data.
  12267. */
  12268. enum qca_wlan_vendor_attr_radio_combination_matrix {
  12269. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  12270. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  12271. /* keep last */
  12272. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  12273. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  12274. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  12275. };
  12276. /**
  12277. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  12278. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  12279. *
  12280. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  12281. * Enable mDNS offload. This attribute is mandatory to enable
  12282. * mDNS offload feature. If this attribute is not present, mDNS offload
  12283. * is disabled.
  12284. *
  12285. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  12286. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  12287. * attribute is mandatory when enabling the feature, and not required when
  12288. * disabling the feature.
  12289. *
  12290. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  12291. * the following attributes:
  12292. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  12293. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  12294. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  12295. *
  12296. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  12297. * It consists of a hostname and ".local" as the domain name. The character
  12298. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  12299. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  12300. * supported per vdev.
  12301. * For example: myphone.local
  12302. *
  12303. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  12304. * u16 attribute. It specifies the total number of resource records present
  12305. * in the answer section of the answer payload. This attribute is needed by the
  12306. * firmware to populate the mDNS response frame for mNDS queries without having
  12307. * to parse the answer payload.
  12308. *
  12309. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  12310. * attribute sent by the mdnsResponder from userspace. It contains resource
  12311. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  12312. * payload is passed down to firmware and is transmitted in response to
  12313. * mDNS queries.
  12314. * The maximum size of the answer payload supported is 512 bytes.
  12315. */
  12316. enum qca_wlan_vendor_attr_mdns_offload {
  12317. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  12318. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  12319. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  12320. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  12321. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  12322. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  12323. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  12324. /* keep last */
  12325. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  12326. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  12327. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  12328. };
  12329. /**
  12330. * enum qca_vendor_attr_diag_event_type - Attributes used by
  12331. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  12332. *
  12333. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  12334. * driver/firmware during Connection request from Userspace. Uses the
  12335. * following attributes of enum qca_wlan_vendor_attr_diag:
  12336. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12337. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  12338. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12339. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  12340. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12341. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  12342. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  12343. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  12344. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  12345. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12346. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  12347. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  12348. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12349. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12350. *
  12351. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  12352. * driver/firmware when a connection is failed. Uses the
  12353. * following attributes of enum qca_wlan_vendor_attr_diag:
  12354. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12355. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12356. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12357. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12358. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12359. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12360. *
  12361. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  12362. * driver/firmware during Authentication request from a device. Uses the
  12363. * following attributes of enum qca_wlan_vendor_attr_diag:
  12364. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12365. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12366. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12367. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12368. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12369. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12370. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12371. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12372. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12373. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12374. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12375. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12376. *
  12377. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  12378. * driver/firmware when device receives an authentication response. Uses the
  12379. * following attributes of enum qca_wlan_vendor_attr_diag:
  12380. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12381. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12382. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12383. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12384. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12385. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12386. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12387. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12388. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12389. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12390. *
  12391. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  12392. * driver/firmware when device sends an association request. Uses the
  12393. * following attributes of enum qca_wlan_vendor_attr_diag:
  12394. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12395. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12396. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12397. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12398. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12399. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12400. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12401. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12402. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12403. *
  12404. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  12405. * driver/firmware when device receives an association response. Uses the
  12406. * following attributes of enum qca_wlan_vendor_attr_diag:
  12407. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12408. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12409. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12410. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12411. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12412. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12413. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12414. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12415. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  12416. *
  12417. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  12418. * driver/userspace when device receives a deauthentication response. Uses the
  12419. * following attributes of enum qca_wlan_vendor_attr_diag:
  12420. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12421. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12422. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12423. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12424. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12425. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12426. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12427. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12428. *
  12429. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  12430. * driver/userspace when device sends a deauthentication request. Uses the
  12431. * following attributes of enum qca_wlan_vendor_attr_diag:
  12432. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12433. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12434. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12435. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12436. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12437. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12438. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12439. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12440. *
  12441. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  12442. * driver/firmware when device receives a disassociation response. Uses the
  12443. * following attributes of enum qca_wlan_vendor_attr_diag:
  12444. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12445. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12446. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12447. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12448. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12449. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12450. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12451. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12452. *
  12453. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  12454. * driver/firmware when device sends a disassociation request. Uses the
  12455. * following attributes of enum qca_wlan_vendor_attr_diag:
  12456. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12457. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12458. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12459. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12460. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12461. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12462. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12463. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12464. *
  12465. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  12466. * driver/firmware when device did not receive beacon packets during connection.
  12467. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  12468. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12469. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12470. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12471. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12472. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12473. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12474. *
  12475. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  12476. * driver/firmware when Roaming scan is triggered. Uses the following
  12477. * attributes of enum qca_wlan_vendor_attr_diag:
  12478. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12479. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  12480. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  12481. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12482. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12483. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  12484. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  12485. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12486. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12487. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12488. *
  12489. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  12490. * driver/firmware Roam scanning is processed. Uses the following
  12491. * attributes of enum qca_wlan_vendor_attr_diag:
  12492. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12493. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  12494. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  12495. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  12496. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12497. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12498. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12499. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12500. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  12501. *
  12502. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  12503. * driver/firmware to provide Roam information of the current AP. Uses the
  12504. * following attributes of enum qca_wlan_vendor_attr_diag:
  12505. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12506. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12507. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12508. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12509. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12510. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  12511. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12512. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12513. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12514. *
  12515. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  12516. * driver/firmware to provide Roam information of the candid AP. Uses the
  12517. * following attributes of enum qca_wlan_vendor_attr_diag:
  12518. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12519. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12520. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12521. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12522. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12523. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  12524. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  12525. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  12526. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12527. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12528. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12529. *
  12530. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  12531. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  12532. * following attributes of enum qca_wlan_vendor_attr_diag:
  12533. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12534. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  12535. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12536. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12537. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12538. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12539. *
  12540. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  12541. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  12542. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12543. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12544. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12545. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12546. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12547. *
  12548. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  12549. * /firmware when STA sends a BTM request frame. Uses the following attributes
  12550. * of enum qca_wlan_vendor_attr_diag:
  12551. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12552. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  12553. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  12554. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  12555. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  12556. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  12557. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12558. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12559. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12560. *
  12561. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  12562. * driver/firmware when STA queries about BTM transition. Uses the following
  12563. * attributes of enum qca_wlan_vendor_attr_diag:
  12564. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12565. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  12566. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  12567. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12568. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12569. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12570. *
  12571. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  12572. * /firmware when STA receives BTM response frame. Uses the following
  12573. * attributes of enum qca_wlan_vendor_attr_diag:
  12574. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12575. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  12576. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  12577. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  12578. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  12579. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12580. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12581. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12582. *
  12583. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  12584. * driver/firmware to provide BTM request candidate information. Uses the
  12585. * following attributes of enum qca_wlan_vendor_attr_diag:
  12586. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12587. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12588. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  12589. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  12590. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12591. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12592. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12593. *
  12594. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  12595. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  12596. * enum qca_wlan_vendor_attr_diag:
  12597. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12598. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  12599. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12600. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  12601. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12602. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12603. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12604. *
  12605. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  12606. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  12607. * attributes of enum qca_wlan_vendor_attr_diag:
  12608. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12609. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12610. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12611. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12612. *
  12613. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  12614. * driver/firmware to indicate DHCP offering to AP. Uses the following
  12615. * attributes of enum qca_wlan_vendor_attr_diag:
  12616. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12617. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12618. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12619. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12620. *
  12621. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  12622. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  12623. * attributes of enum qca_wlan_vendor_attr_diag:
  12624. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12625. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12626. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12627. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12628. *
  12629. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  12630. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  12631. * attributes of enum qca_wlan_vendor_attr_diag:
  12632. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12633. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12634. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12635. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12636. *
  12637. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  12638. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  12639. * following attributes of enum qca_wlan_vendor_attr_diag:
  12640. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12641. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12642. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12643. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12644. *
  12645. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  12646. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  12647. * enum qca_wlan_vendor_attr_diag:
  12648. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12649. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12650. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12651. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12652. *
  12653. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  12654. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  12655. * enum qca_wlan_vendor_attr_diag:
  12656. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12657. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12658. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12659. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12660. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12661. *
  12662. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  12663. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  12664. * enum qca_wlan_vendor_attr_diag:
  12665. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12666. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12667. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12668. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12669. *
  12670. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  12671. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  12672. * enum qca_wlan_vendor_attr_diag:
  12673. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12674. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12675. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12676. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12677. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12678. *
  12679. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  12680. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  12681. * enum qca_wlan_vendor_attr_diag:
  12682. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12683. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12684. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12685. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12686. *
  12687. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  12688. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  12689. * enum qca_wlan_vendor_attr_diag:
  12690. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12691. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12692. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12693. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12694. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12695. *
  12696. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  12697. * /firmware to indicate device sent EAP request. Uses the following attributes
  12698. * of enum qca_wlan_vendor_attr_diag:
  12699. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12700. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  12701. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  12702. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12703. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12704. *
  12705. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  12706. * /firmware to indicate device received EAP response. Uses the following
  12707. * attributes of enum qca_wlan_vendor_attr_diag:
  12708. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12709. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  12710. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  12711. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12712. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12713. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12714. *
  12715. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  12716. * /firmware to indicate EAP frame transmission is success. Uses the following
  12717. * attributes of enum qca_wlan_vendor_attr_diag:
  12718. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12719. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12720. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12721. *
  12722. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  12723. * /firmware to indicate EAP frame transmission is failed. Uses the following
  12724. * attributes of enum qca_wlan_vendor_attr_diag:
  12725. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12726. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12727. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12728. *
  12729. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  12730. * /firmware to indicate Reassocation request. Uses the following attributes
  12731. * of enum qca_wlan_vendor_attr_diag:
  12732. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12733. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12734. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12735. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12736. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12737. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12738. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12739. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  12740. *
  12741. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  12742. * /firmware to indicate Reassocation response. Uses the following attributes
  12743. * of enum qca_wlan_vendor_attr_diag:
  12744. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12745. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12746. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12747. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12748. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  12749. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12750. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12751. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  12752. */
  12753. enum qca_vendor_attr_diag_event_type {
  12754. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  12755. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  12756. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  12757. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  12758. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  12759. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  12760. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  12761. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  12762. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  12763. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  12764. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  12765. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  12766. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  12767. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  12768. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  12769. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  12770. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  12771. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  12772. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  12773. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  12774. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  12775. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  12776. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  12777. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  12778. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  12779. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  12780. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  12781. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  12782. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  12783. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  12784. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  12785. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  12786. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  12787. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  12788. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  12789. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  12790. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  12791. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  12792. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  12793. /* keep last */
  12794. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  12795. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  12796. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  12797. };
  12798. /**
  12799. * enum qca_wlan_vendor_tx_status - Used by attribute
  12800. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  12801. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  12802. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  12803. * is not received.
  12804. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  12805. * acknowledged.
  12806. */
  12807. enum qca_wlan_vendor_tx_status {
  12808. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  12809. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  12810. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  12811. };
  12812. /**
  12813. * enum qca_roam_sub_reason - Used by attribute
  12814. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  12815. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  12816. * timer expiry
  12817. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  12818. * to no candidate found during LOW RSSI trigger.
  12819. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  12820. * Imminent timeout
  12821. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  12822. * failure
  12823. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  12824. * emergency like deauth/disassoc.
  12825. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  12826. * BSS transition management request.
  12827. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  12828. * Roam scan triggered due to Low RSSI periodic timer
  12829. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  12830. * Roam trigger due to periodic timer after no candidate found during CU
  12831. * inactivity timer scan.
  12832. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  12833. * found in high CU roam trigger.
  12834. */
  12835. enum qca_roam_sub_reason {
  12836. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  12837. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  12838. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  12839. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  12840. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  12841. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  12842. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  12843. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  12844. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  12845. };
  12846. /*
  12847. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  12848. * to send diag data to the userspace. The attributes defined in this enum are
  12849. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  12850. *
  12851. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  12852. * by driver/firmware to send diag data. Each instance of this nested attribute
  12853. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  12854. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  12855. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  12856. * nested attribute can be sent with one vendor command
  12857. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  12858. *
  12859. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  12860. * attribute indicates the type of the diag event from driver/firmware. Uses
  12861. * values from enum qca_vendor_attr_diag_event_type.
  12862. *
  12863. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  12864. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  12865. * API to send time of the day in microseconds to userspace.
  12866. *
  12867. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  12868. * This attribute indicates firmware timestamp in microseconds.
  12869. *
  12870. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  12871. * indicates wlan interface index.
  12872. *
  12873. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  12874. * indicates 6-byte MAC address representing the BSSID of the AP.
  12875. *
  12876. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  12877. * indicates the 6-byte MAC address representing the BSSID hint sent in
  12878. * the connect request.
  12879. *
  12880. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  12881. * indicates the SSID in u8 array with a maximum length of 32.
  12882. *
  12883. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  12884. * indicates the frequency of AP in MHz.
  12885. *
  12886. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  12887. * indicates frequency hint given in the connect request in MHz.
  12888. *
  12889. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  12890. * This attribute indicates RSSI of the 802.11 frame in dBm.
  12891. *
  12892. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  12893. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  12894. * Table 12-10—Integrity and key wrap algorithms.
  12895. *
  12896. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  12897. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  12898. * Table 12-10—Integrity and key wrap algorithms.
  12899. *
  12900. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  12901. * attribute indicates Group management cipher suite defined in IEEE Std
  12902. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  12903. *
  12904. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  12905. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  12906. * Table 9-151—AKM suite selectors.
  12907. *
  12908. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  12909. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  12910. * Section 9.4.1.1 Authentication Algorithm Number field.
  12911. *
  12912. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  12913. * indicates bluetooth COEX is active or not.
  12914. *
  12915. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  12916. * attribute indicates SAE authentication frame type. The possible values are
  12917. * 1 - SAE commit frame
  12918. * 2 - SAE confirm frame
  12919. *
  12920. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  12921. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  12922. * Table 9-49—Reason codes.
  12923. *
  12924. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  12925. * attribute indicates sequence number of the frame defined in IEEE Std
  12926. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  12927. * field.
  12928. *
  12929. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  12930. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  12931. * 9-50—Status codes.
  12932. *
  12933. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  12934. * Uses enum qca_wlan_vendor_tx_status.
  12935. *
  12936. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  12937. * indicates if frame transmission is retried.
  12938. *
  12939. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  12940. * Uses enum qca_roam_reason.
  12941. *
  12942. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  12943. * Uses enum qca_roam_sub_reason.
  12944. *
  12945. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  12946. * indicates channel utilization in percentage.
  12947. *
  12948. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  12949. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  12950. *
  12951. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  12952. * This attribute indicates current RSSI threshold in dBm.
  12953. *
  12954. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  12955. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  12956. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  12957. *
  12958. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  12959. * This attribute indicates number of scanned candidate APs.
  12960. *
  12961. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  12962. * attribute indicates roam AP rank computed based on connection preference.
  12963. *
  12964. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  12965. * This attribute indicates expected throughput in kbps.
  12966. *
  12967. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  12968. * This attribute indicates the preference value of candidate AP / connected AP
  12969. * calculated in the firmware.
  12970. *
  12971. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  12972. * indicates connection/roaming is successful or not.
  12973. *
  12974. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  12975. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  12976. * IE present in the BTM frame.
  12977. *
  12978. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  12979. * This attribute indicates BTM WTC duration in milliseconds.
  12980. *
  12981. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  12982. * indicates dialog token value of BTM query/request/response frames.
  12983. *
  12984. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  12985. * attribute indicates the Transition Reason field indicates the reason why
  12986. * a transition attempt occurred and contains one of the values defined in IEEE
  12987. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  12988. *
  12989. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  12990. * indicates BTM mode defined in IEEE Std 802.11‐2020
  12991. * Figure 9-924—Request Mode field format.
  12992. *
  12993. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  12994. * This attribute indicates the Disassociation Timer field which is the number
  12995. * of beacon transmission times (TBTTs) until the serving AP will send a
  12996. * Disassociation frame to this STA.
  12997. *
  12998. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  12999. * This attribute indicates BTM validity interval field in TBTTs defined in
  13000. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  13001. * Action field format.
  13002. *
  13003. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  13004. * This attribute indicates BTM candidate list entries.
  13005. *
  13006. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  13007. * This attribute indicates network preference for BTM transition defined in
  13008. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  13009. *
  13010. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  13011. * This attribute indicates BTM transition status code defined in IEEE Std
  13012. * 802.11‐2020 Table 9-428—BTM status code definitions.
  13013. *
  13014. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  13015. * This attribute indicates BSS termination delay defined in IEEE Std
  13016. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  13017. *
  13018. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  13019. * This attribute indicates 6-byte MAC address representing the BSSID of the
  13020. * BSS that the non-AP STA transitions to.
  13021. *
  13022. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  13023. * indicates EAP frame type. The methods are enumerated by IANA at
  13024. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  13025. *
  13026. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  13027. * indicates EAP frame length.
  13028. *
  13029. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  13030. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  13031. * (Time from boot but not the time spent in suspend) to send in microseconds
  13032. * to userspace.
  13033. *
  13034. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  13035. * indicates the association id received in the (re)association response frame
  13036. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  13037. */
  13038. enum qca_wlan_vendor_attr_diag {
  13039. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  13040. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  13041. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  13042. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  13043. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  13044. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  13045. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  13046. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  13047. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  13048. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  13049. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  13050. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  13051. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  13052. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  13053. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  13054. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  13055. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  13056. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  13057. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  13058. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  13059. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  13060. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  13061. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  13062. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  13063. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  13064. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  13065. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  13066. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  13067. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  13068. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  13069. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  13070. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  13071. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  13072. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  13073. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  13074. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  13075. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  13076. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  13077. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  13078. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  13079. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  13080. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  13081. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  13082. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  13083. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  13084. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  13085. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  13086. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  13087. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  13088. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  13089. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  13090. /* keep last */
  13091. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  13092. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  13093. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  13094. };
  13095. /**
  13096. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  13097. * data types to be sent over the monitor interface.
  13098. */
  13099. enum qca_wlan_vendor_monitor_data_frame_type {
  13100. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  13101. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  13102. not set */
  13103. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  13104. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  13105. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  13106. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  13107. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  13108. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  13109. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  13110. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  13111. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  13112. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  13113. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  13114. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  13115. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  13116. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  13117. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  13118. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  13119. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  13120. };
  13121. /**
  13122. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  13123. * mgmt types to be sent over the monitor interface.
  13124. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  13125. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  13126. * except the Beacons. Valid only in the Connect state.
  13127. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  13128. * BSSID Beacons. Valid only in the Connect state.
  13129. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  13130. * the Beacons obtained during the scan (off channel and connected channel)
  13131. * when in connected state.
  13132. */
  13133. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  13134. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  13135. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  13136. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  13137. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  13138. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  13139. };
  13140. /**
  13141. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  13142. * ctrl types to be sent over the monitor interface.
  13143. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  13144. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  13145. */
  13146. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  13147. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  13148. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  13149. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  13150. };
  13151. /**
  13152. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  13153. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  13154. * monitor mode.
  13155. *
  13156. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  13157. * Represents the tx data packet type to be monitored (u32). These data packets
  13158. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13159. *
  13160. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  13161. * Represents the tx data packet type to be monitored (u32). These data packets
  13162. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13163. *
  13164. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  13165. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13166. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13167. *
  13168. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  13169. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13170. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13171. *
  13172. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  13173. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13174. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13175. *
  13176. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  13177. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13178. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13179. *
  13180. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  13181. * u32 attribute, An interval only for the connected beacon interval, which
  13182. * expects that the connected BSSID's beacons shall be sent on the monitor
  13183. * interface only on this specific interval.
  13184. */
  13185. enum qca_wlan_vendor_attr_set_monitor_mode {
  13186. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  13187. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  13188. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  13189. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  13190. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  13191. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  13192. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  13193. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  13194. /* keep last */
  13195. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  13196. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  13197. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  13198. };
  13199. /**
  13200. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  13201. * Bits will be set to 1 if the corresponding state is enabled.
  13202. *
  13203. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  13204. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  13205. */
  13206. enum qca_wlan_vendor_roam_scan_state {
  13207. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  13208. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  13209. };
  13210. /**
  13211. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  13212. * Bits will be set to 1 if the corresponding event is notified.
  13213. *
  13214. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  13215. * carries the trigger reason. When set, it is expected that the roam event
  13216. * carries the respective reason via the attribute
  13217. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  13218. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  13219. *
  13220. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  13221. * carries the roam fail reason. When set, it is expected that the roam event
  13222. * carries the respective reason via the attribute
  13223. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  13224. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  13225. *
  13226. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  13227. * event carries the roam invoke fail reason. When set, it is expected that
  13228. * the roam event carries the respective reason via the attribute
  13229. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  13230. *
  13231. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  13232. * carries the roam scan state. When set, it is expected that the roam event
  13233. * carries the respective scan state via the attribute
  13234. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  13235. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  13236. */
  13237. enum qca_wlan_vendor_roam_event_type {
  13238. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  13239. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  13240. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  13241. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  13242. };
  13243. /**
  13244. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  13245. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  13246. *
  13247. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  13248. * representing the BSSID of the AP to which the Roam is attempted.
  13249. *
  13250. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  13251. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  13252. * attempted.
  13253. *
  13254. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  13255. * on which the roam is attempted.
  13256. *
  13257. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  13258. * STA mode only. This represents the roam fail reason for the last failed
  13259. * roaming attempt by the firmware for the specific BSSID. Different roam
  13260. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  13261. */
  13262. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  13263. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  13264. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  13265. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  13266. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  13267. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  13268. /* keep last */
  13269. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  13270. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  13271. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  13272. };
  13273. /**
  13274. * enum qca_wlan_vendor_attr_roam_events - Used by the
  13275. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  13276. * roam events to the driver or notify these events from the driver.
  13277. *
  13278. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  13279. * driver/firmware to enable/disable the notification of roam events. It's a
  13280. * mandatory attribute and used only in the request from the userspace to the
  13281. * host driver. 1-Enable, 0-Disable.
  13282. * If the roaming is totally offloaded to the firmware, this request when
  13283. * enabled shall mandate the firmware to notify all the relevant roam events
  13284. * represented by the below attributes. If the host is in the suspend mode,
  13285. * the behavior of the firmware to notify these events is guided by
  13286. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  13287. * these events in the suspend state, the firmware is expected to wake up the
  13288. * host before the respective events are notified. Please note that such a
  13289. * request to get the events in the suspend state will have a definite power
  13290. * implication.
  13291. *
  13292. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  13293. * that the roam events need to be notified in the suspend state too. By
  13294. * default, these roam events are notified in the resume state. With this flag,
  13295. * the roam events are notified in both resume and suspend states.
  13296. * This attribute is used in the request from the userspace to the host driver.
  13297. *
  13298. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  13299. * Represents the different roam event types, signified by the enum
  13300. * qca_wlan_vendor_roam_event_type.
  13301. * Each bit of this attribute represents the different roam even types reported
  13302. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13303. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13304. *
  13305. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  13306. * mode only. This represents the roam trigger reason for the last roaming
  13307. * attempted by the firmware. Each bit of this attribute represents the
  13308. * different roam trigger reason code which are defined in enum
  13309. * qca_vendor_roam_triggers.
  13310. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13311. *
  13312. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  13313. * STA mode only. This represents the roam invoke fail reason for the last
  13314. * failed roam invoke. Different roam invoke failure reason codes
  13315. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  13316. *
  13317. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  13318. * for which the roam is attempted. Each entry is a nested attribute defined
  13319. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  13320. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13321. *
  13322. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  13323. * the scan state on which the roam events need to be notified. The values for
  13324. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  13325. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13326. *
  13327. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  13328. * u32 values. List of frequencies in MHz considered for a roam scan.
  13329. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13330. */
  13331. enum qca_wlan_vendor_attr_roam_events {
  13332. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  13333. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  13334. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  13335. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  13336. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  13337. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  13338. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  13339. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  13340. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  13341. /* keep last */
  13342. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  13343. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  13344. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  13345. };
  13346. /*
  13347. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  13348. *
  13349. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  13350. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  13351. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  13352. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  13353. */
  13354. enum qca_wlan_ratemask_params_type {
  13355. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  13356. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  13357. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  13358. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  13359. };
  13360. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  13361. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  13362. * This is used to set the rate mask value to be used in rate selection.
  13363. *
  13364. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  13365. * Array of nested containing attributes
  13366. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  13367. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  13368. *
  13369. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  13370. * the different phy types to which the rate mask config is to be applied.
  13371. * The values for this attribute are referred from enum
  13372. * qca_wlan_vendor_ratemask_params_type.
  13373. *
  13374. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  13375. * A bit value of 1 represents rate is enabled and a value of 0
  13376. * represents rate is disabled.
  13377. * For HE targets, 12 bits correpond to one NSS setting.
  13378. * b0-13 => NSS1, MCS 0-13
  13379. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  13380. * For VHT targets, 10 bits correspond to one NSS setting.
  13381. * b0-9 => NSS1, MCS 0-9
  13382. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  13383. * For HT targets, 8 bits correspond to one NSS setting.
  13384. * b0-7 => NSS1, MCS 0-7
  13385. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  13386. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  13387. */
  13388. enum qca_wlan_vendor_attr_ratemask_params {
  13389. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  13390. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  13391. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  13392. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  13393. /* keep last */
  13394. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  13395. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  13396. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  13397. };
  13398. /**
  13399. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  13400. * the policy to flush pending frames, configured via
  13401. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  13402. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  13403. *
  13404. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  13405. * the flush policy configured before. This command basically disables the
  13406. * flush config set by the user.
  13407. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  13408. * the flush policy to be immediate. All pending packets for the peer/TID are
  13409. * flushed when this command/policy is received.
  13410. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  13411. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  13412. * are flushed when the end of TWT SP is reached.
  13413. */
  13414. enum qca_wlan_vendor_flush_pending_policy {
  13415. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  13416. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  13417. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  13418. };
  13419. /**
  13420. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  13421. * flushing pending traffic in firmware.
  13422. *
  13423. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  13424. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  13425. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  13426. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  13427. * flush packets with access category. This is optional. See below.
  13428. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  13429. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  13430. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  13431. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  13432. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  13433. * it is an error.
  13434. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  13435. * packets corresponding to the peer/TID provided. It is a u32 value,
  13436. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  13437. * value is honored only when TID mask is provided. This is not honored when AC
  13438. * mask is provided.
  13439. */
  13440. enum qca_wlan_vendor_attr_flush_pending {
  13441. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  13442. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  13443. QCA_WLAN_VENDOR_ATTR_AC = 2,
  13444. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  13445. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  13446. /* keep last */
  13447. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  13448. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  13449. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  13450. };
  13451. /**
  13452. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  13453. * for) or drop existing PASN security association for the listed the
  13454. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  13455. * to userspace.
  13456. *
  13457. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  13458. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  13459. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  13460. * the driver to userspace to inform that the existing PASN keys of the
  13461. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  13462. * not valid anymore.
  13463. */
  13464. enum qca_wlan_vendor_pasn_action {
  13465. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  13466. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  13467. };
  13468. /**
  13469. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  13470. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  13471. *
  13472. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  13473. * event from the driver to userspace and represents the local MAC address
  13474. * to be used for PASN handshake. When this attribute is present, userspace
  13475. * shall use the source address specified in this attribute by the driver
  13476. * for PASN handshake with peer device.
  13477. * This attribute is required in a command response from userspace to the
  13478. * driver and represents the MAC address that was used in PASN handshake
  13479. * with the peer device.
  13480. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  13481. * peer device to which PASN handshake is requested in an event from the
  13482. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  13483. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  13484. * Indicates the MAC address of the peer device for which the keys are to
  13485. * be invalidated in an event from the driver to userspace when
  13486. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  13487. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  13488. * Indicates the MAC address of the peer device for which the status is
  13489. * being sent in a status report from userspace to the driver.
  13490. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  13491. * in the event from the driver to userspace. When set, userspace is
  13492. * required to derive LTF key seed from KDK and set it to the driver.
  13493. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  13494. * attribute is used in the command response from userspace to the driver.
  13495. * If present, it indicates the successful PASN handshake with the peer. If
  13496. * this flag is not present, it indicates that the PASN handshake with the
  13497. * peer device failed.
  13498. */
  13499. enum qca_wlan_vendor_attr_pasn_peer {
  13500. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  13501. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  13502. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  13503. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  13504. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  13505. /* keep last */
  13506. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  13507. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  13508. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  13509. };
  13510. /**
  13511. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  13512. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  13513. *
  13514. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  13515. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  13516. * from the driver to userspace.
  13517. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  13518. * details for each peer and used in both an event and a command response.
  13519. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  13520. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  13521. */
  13522. enum qca_wlan_vendor_attr_pasn {
  13523. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  13524. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  13525. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  13526. /* keep last */
  13527. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  13528. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  13529. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  13530. };
  13531. /**
  13532. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  13533. * the ranging security context derived from PASN for each peer. Used in
  13534. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  13535. *
  13536. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  13537. * context for the peer.
  13538. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  13539. * context for the peer.
  13540. */
  13541. enum qca_wlan_vendor_secure_ranging_ctx_action {
  13542. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  13543. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  13544. };
  13545. /**
  13546. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  13547. * used for deriving PASN keys to the driver. Used in
  13548. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  13549. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  13550. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  13551. */
  13552. enum qca_wlan_vendor_sha_type {
  13553. QCA_WLAN_VENDOR_SHA_256,
  13554. QCA_WLAN_VENDOR_SHA_384,
  13555. };
  13556. /**
  13557. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  13558. * to set security context for the PASN peer from userspace to the driver.
  13559. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  13560. *
  13561. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  13562. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  13563. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  13564. * was used during the PASN handshake.
  13565. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  13566. * the peer device for which secure ranging context is being configured.
  13567. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  13568. * hash algorithm to be used, possible values are defined in enum
  13569. * qca_wlan_vendor_sha_type.
  13570. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  13571. * the temporal key generated from the PASN handshake. The length of this
  13572. * attribute is dependent on the value of
  13573. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  13574. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  13575. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  13576. * (e.g., 0x000FAC04).
  13577. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  13578. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  13579. * The length of this attribute is dependent on the value of
  13580. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  13581. *
  13582. */
  13583. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  13584. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  13585. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  13586. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  13587. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  13588. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  13589. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  13590. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  13591. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  13592. /* keep last */
  13593. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  13594. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  13595. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  13596. };
  13597. /**
  13598. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  13599. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  13600. * nested attribute. The packets that match a filter will be replied with
  13601. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  13602. *
  13603. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  13604. * u32 attribute. Destination IPv4 address in network byte order, the
  13605. * IPv4 packets with different address will be filtered out.
  13606. * This attribute is optional.
  13607. *
  13608. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  13609. * Flag attribute. If it's present, indicates that
  13610. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  13611. * address; while if not, indicates that the address is a unicast/multicast
  13612. * address.
  13613. * This attribute is optional.
  13614. *
  13615. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  13616. * NLA_BINARY attribute, length is 16 bytes.
  13617. * Destination IPv6 address in network byte order, the IPv6 packets
  13618. * with different destination address will be filtered out.
  13619. * This attribute is optional.
  13620. *
  13621. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  13622. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  13623. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  13624. *
  13625. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  13626. * u16 attribute. Destination UDP port, the packets with different destination
  13627. * UDP port will be filtered out.
  13628. * This attribute is mandatory.
  13629. *
  13630. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  13631. * u32 attribute. Represents the offset (in UDP payload) of the data
  13632. * to be matched.
  13633. * This attribute is mandatory.
  13634. *
  13635. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  13636. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  13637. * Binary data that is compared bit-by-bit against the data (specified
  13638. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  13639. * payload, the packets don't match will be filtered out.
  13640. * This attribute is mandatory.
  13641. */
  13642. enum qca_wlan_vendor_attr_coap_offload_filter {
  13643. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  13644. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  13645. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  13646. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  13647. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  13648. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  13649. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  13650. /* keep last */
  13651. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  13652. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  13653. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  13654. };
  13655. /**
  13656. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  13657. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  13658. *
  13659. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  13660. * u32 attribute. Source address (in network byte order) for replying
  13661. * the matching broadcast/multicast IPv4 packets.
  13662. * This attribute is optional.
  13663. *
  13664. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  13665. * NLA_BINARY attribute, length is 16 bytes.
  13666. * Source address (in network byte order) for replying the matching
  13667. * multicast IPv6 packets.
  13668. * This attribute is optional.
  13669. *
  13670. * For broadcast/multicast offload reply, one of
  13671. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  13672. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  13673. * configured according to version of the IP address(es) configured in
  13674. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  13675. * while for unicast case, firmware will take the destination IP address
  13676. * in the received matching packet as the source address for replying.
  13677. *
  13678. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  13679. * Nested attribute. Filter for the received UDP packets, only the matching
  13680. * packets will be replied and cached.
  13681. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  13682. * attributes.
  13683. * This attribute is mandatory.
  13684. *
  13685. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  13686. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  13687. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  13688. * Firmware is responsible for adding any necessary protocol headers.
  13689. * This attribute is mandatory.
  13690. *
  13691. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  13692. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  13693. * A cached message will be dropped by firmware if it's expired.
  13694. * This attribute is optional. A default value of 40000 will be used in the
  13695. * absence of it.
  13696. */
  13697. enum qca_wlan_vendor_attr_coap_offload_reply {
  13698. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  13699. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  13700. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  13701. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  13702. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  13703. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  13704. /* keep last */
  13705. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  13706. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  13707. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  13708. };
  13709. /**
  13710. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  13711. * CoAP message (UDP) transmitting on IPv4.
  13712. *
  13713. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  13714. * u32 attribute. Source address (in network byte order) for transmitting
  13715. * packets on IPv4.
  13716. * This attribute is mandatory.
  13717. *
  13718. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  13719. * u16 attribute. Source UDP port.
  13720. * This attribute is optional, a random port is taken if it's not present.
  13721. *
  13722. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  13723. * u32 attribute. Destination IPv4 address (in network byte order).
  13724. * This attribute is mandatory.
  13725. *
  13726. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  13727. * Flag attribute. If it's present, indicates that
  13728. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  13729. * address; while if not, indicates that the address is unicast/multicast
  13730. * address.
  13731. * This attribute is optional.
  13732. *
  13733. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  13734. * u16 attribute. Destination UDP port.
  13735. * This attribute is mandatory.
  13736. */
  13737. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  13738. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  13739. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  13740. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  13741. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  13742. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  13743. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  13744. /* keep last */
  13745. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  13746. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  13747. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  13748. };
  13749. /**
  13750. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  13751. * CoAP message (UDP) transmitting on IPv6.
  13752. *
  13753. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  13754. * NLA_BINARY attribute, length is 16 bytes.
  13755. * Source address (in network byte order) for transmitting packets on IPv6.
  13756. * This attribute is mandatory.
  13757. *
  13758. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  13759. * u16 attribute. Source UDP port.
  13760. * This attribute is optional, a random port is taken if it's not present.
  13761. *
  13762. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  13763. * NLA_BINARY attribute, length is 16 bytes.
  13764. * Destination IPv6 address (in network byte order).
  13765. * This attribute is mandatory.
  13766. *
  13767. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  13768. * u16 attribute. Destination UDP port.
  13769. * This attribute is mandatory.
  13770. */
  13771. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  13772. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  13773. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  13774. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  13775. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  13776. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  13777. /* keep last */
  13778. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  13779. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  13780. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  13781. };
  13782. /**
  13783. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  13784. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  13785. *
  13786. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  13787. * Nested attribute. The IPv4 source/destination address/port for offload
  13788. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  13789. * of supported attributes.
  13790. * This attribute is optional.
  13791. *
  13792. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  13793. * Nested attribute. The IPv6 source/destination address/port for offload
  13794. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  13795. * of supported attributes.
  13796. * This attribute is optional.
  13797. *
  13798. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  13799. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  13800. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  13801. * configured.
  13802. *
  13803. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  13804. * u32 attribute. Period in milliseconds for the periodic transmitting.
  13805. * This attribute is mandatory.
  13806. *
  13807. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  13808. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  13809. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  13810. * is responsible for adding any necessary protocol headers.
  13811. * This attribute is mandatory.
  13812. */
  13813. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  13814. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  13815. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  13816. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  13817. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  13818. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  13819. /* keep last */
  13820. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  13821. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  13822. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  13823. };
  13824. /**
  13825. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  13826. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  13827. *
  13828. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  13829. * u64 attribute. Received time (since system booted in microseconds) of
  13830. * the cached CoAP message.
  13831. * This attribute is mandatory.
  13832. *
  13833. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  13834. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  13835. * CoAP message.
  13836. * This attribute is optional.
  13837. *
  13838. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  13839. * NLA_BINARY attribute, length is 16 bytes.
  13840. * Source IPv6 address (in network byte order) of the cached CoAP message.
  13841. * This attribute is optional.
  13842. *
  13843. * At most and at least one of
  13844. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  13845. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  13846. * an entry.
  13847. *
  13848. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  13849. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  13850. * The cached CoAP message (UDP payload). If the actual message size is
  13851. * greater than the maximum size, it will be truncated and leaving only
  13852. * the first 1152 bytes.
  13853. * This attribute is mandatory.
  13854. */
  13855. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  13856. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  13857. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  13858. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  13859. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  13860. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  13861. /* keep last */
  13862. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  13863. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  13864. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  13865. };
  13866. /**
  13867. * enum qca_wlan_vendor_coap_offload_action - Actions for
  13868. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  13869. *
  13870. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  13871. * Enable CoAP offload reply.
  13872. * If it's enabled, firmware will start offload processing on each suspend
  13873. * and stop on each resume.
  13874. *
  13875. * Offload reply on match works as follows:
  13876. * Reply the packets that match the filter with the given CoAP
  13877. * message (with necessary protocol headers), increase the CoAP message
  13878. * ID in the given CoAP message by one for the next use after each successful
  13879. * transmission, and try to store the information of the received packet,
  13880. * including the received time, source IP address, and CoAP message (UDP
  13881. * payload).
  13882. *
  13883. * Firmware has a limit to the maximum stored entries, it takes the source IP
  13884. * address as the key of an entry, and keeps at most one entry for each key.
  13885. * A packet won't be stored if no entry for the same key is present and the
  13886. * total number of the existing unexpired entries reaches the maximum value.
  13887. *
  13888. * If any configured item is changed, user space should disable offload reply
  13889. * first and then issue a new enable request.
  13890. *
  13891. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  13892. * Disable CoAP offload reply and return information of any cached CoAP
  13893. * messages.
  13894. *
  13895. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  13896. * Enable CoAP offload periodic transmitting.
  13897. * If it's enabled, firmware will start offload periodic transmitting on
  13898. * each suspend and stop on each resume.
  13899. *
  13900. * Offload periodic transmitting works as follows:
  13901. * Send the given CoAP message (with necessary protocol headers) with the given
  13902. * source/destination IP address/UDP port periodically based on the given
  13903. * period and increase the CoAP message ID in the given CoAP message by one
  13904. * for the next use after each successful transmission.
  13905. *
  13906. * If any configured item is changed, user space should disable offload
  13907. * periodic transmitting first and then issue a new enable request.
  13908. *
  13909. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  13910. * Disable CoAP offload periodic transmitting.
  13911. *
  13912. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  13913. * Get information of the CoAP messages cached during offload reply
  13914. * processing. The cache is cleared after retrieval.
  13915. */
  13916. enum qca_wlan_vendor_coap_offload_action {
  13917. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  13918. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  13919. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  13920. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  13921. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  13922. };
  13923. /**
  13924. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  13925. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  13926. * This is used to set parameters for CoAP offload processing, or get
  13927. * cached CoAP messages from firmware.
  13928. *
  13929. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  13930. * u32 attribute. Action to take in this vendor command.
  13931. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  13932. * This attribute is mandatory.
  13933. *
  13934. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  13935. * u32 attribute. Represents the Request ID for the CoAP offload
  13936. * configuration, which can help to identify the user entity starting
  13937. * the CoAP offload processing and accordingly stop the respective
  13938. * ones/get the cached CoAP messages with the matching ID.
  13939. * This attribute is mandatory.
  13940. *
  13941. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  13942. * Nested attribute. Parameters for offload reply.
  13943. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  13944. * supported attributes.
  13945. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  13946. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  13947. * otherwise.
  13948. *
  13949. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  13950. * Nested attribute. Parameters for offload periodic transmitting.
  13951. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  13952. * supported attributes.
  13953. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  13954. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  13955. * otherwise.
  13956. *
  13957. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  13958. * Array of nested attributes. Information of the cached CoAP messages,
  13959. * where each entry is taken from
  13960. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  13961. * This attribute is used for reporting the cached CoAP messages
  13962. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  13963. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  13964. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  13965. * cached item if this attribute is not present.
  13966. */
  13967. enum qca_wlan_vendor_attr_coap_offload {
  13968. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  13969. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  13970. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  13971. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  13972. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  13973. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  13974. /* keep last */
  13975. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  13976. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  13977. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  13978. };
  13979. /**
  13980. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  13981. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  13982. * Service (SCS) rule.
  13983. *
  13984. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  13985. * Represents the unique id of SCS rule to be configured.
  13986. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  13987. * Represents the request type: add, remove, or change.
  13988. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  13989. * Type definitions).
  13990. *
  13991. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  13992. * in case of add/change request type.
  13993. * Represents the output traffic identifier (TID) to be assigned to the flow
  13994. * matching the rule.
  13995. *
  13996. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  13997. * attribute in case of add/change request type.
  13998. * Represents type of classifier parameters present in SCS rule.
  13999. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  14000. * Only classifier types 4 and 10 are supported for SCS.
  14001. *
  14002. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  14003. * in case of add/change request type when classifier type is TCLAS4.
  14004. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  14005. *
  14006. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  14007. * attribute in case of add/change request type when classifier type is TCLAS4
  14008. * and version attribute is IPv4.
  14009. * Represents the source IPv4 address in the rule which is to be compared
  14010. * against the source IP address in the IPv4 header.
  14011. *
  14012. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  14013. * attribute in case of add/change request type when classifier type is TCLAS4
  14014. * and version attribute is IPv4.
  14015. * Represents the destination IPv4 address in the rule which is to be compared
  14016. * against the destination IP address in the IPv4 header.
  14017. *
  14018. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  14019. * attribute in case of add/change request type when classifier type is TCLAS4
  14020. * and version attribute is IPv6.
  14021. * Represents the source IPv6 address in the rule which is to be compared
  14022. * against the source IP address in the IPv6 header.
  14023. *
  14024. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  14025. * attribute in case of add/change request type when classifier type is TCLAS4
  14026. * and version attribute is IPv6.
  14027. * Represents the destination IPv6 address in the rule which is to be compared
  14028. * against the destination IP address in the IPv6 header.
  14029. *
  14030. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  14031. * in case of add/change request type when classifier type is TCLAS4.
  14032. * Represents the source port number in the rule which is to be compared against
  14033. * the source port number in the protocol header.
  14034. *
  14035. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  14036. * in case of add/change request type when classifier type is TCLAS4.
  14037. * Represents the destination port number in the rule which is to be compared
  14038. * against the destination port number in the protocol header.
  14039. *
  14040. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  14041. * in case of add/change request type when classifier type is TCLAS4.
  14042. * Represents the DSCP value in the rule which is to be compared against the
  14043. * DSCP field present in the IP header.
  14044. *
  14045. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  14046. * attribute in case of add/change request type when classifier type is TCLAS4.
  14047. * Represents the protocol/next header in the rule which is to be compared
  14048. * against the protocol/next header field present in the IPv4/IPv6 header.
  14049. *
  14050. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  14051. * attribute of size 3 bytes present in case of add/change request type
  14052. * when classifier type is TCLAS4 and version is IPv6.
  14053. * Represents the flow label value in the rule which is to be compared against
  14054. * the flow label field present in the IPv6 header.
  14055. *
  14056. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  14057. * attribute in case of add/change request type when classifier type is TCLAS10.
  14058. * Represents the protocol instance number in the rule.
  14059. *
  14060. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  14061. * attribute in case of add/change request type when classifier type is TCLAS10.
  14062. * Represents the protocol/next header in the rule which is to be compared
  14063. * against the protocol/next header field present in the IPv4/IPv6 header.
  14064. *
  14065. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  14066. * attribute of variable length present when request type is add/change and
  14067. * classifier type is TCLAS10.
  14068. * Represents the mask to be used for masking the header contents of the header
  14069. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  14070. * attribute.
  14071. *
  14072. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  14073. * attribute of variable length present when request type is add/change and
  14074. * classifier type is TCLAS10.
  14075. * Represents the value to be compared against after masking the header contents
  14076. * of the header specified by the
  14077. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  14078. * filter mask specified by the
  14079. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  14080. *
  14081. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
  14082. * attribute.
  14083. * Represents the service class id of the configured SCS rule.
  14084. *
  14085. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
  14086. * MAC address.
  14087. * Represents the destination MAC address in the rule.
  14088. *
  14089. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
  14090. * Represents the netdevice interface index in the rule.
  14091. */
  14092. enum qca_wlan_vendor_attr_scs_rule_config {
  14093. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  14094. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  14095. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  14096. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  14097. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  14098. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  14099. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  14100. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  14101. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  14102. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  14103. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  14104. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  14105. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  14106. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  14107. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  14108. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  14109. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  14110. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  14111. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  14112. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
  14113. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
  14114. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
  14115. /* Keep last */
  14116. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  14117. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  14118. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  14119. };
  14120. /**
  14121. * enum qca_wlan_vendor_sar_version - This describes the current SAR version
  14122. * used in the firmware.
  14123. *
  14124. * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
  14125. * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
  14126. *
  14127. * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
  14128. * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
  14129. * each CTL group. So user can select up to 6 SAR indexes from the current CTL
  14130. * groups.
  14131. *
  14132. * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
  14133. * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
  14134. * CTL group but user can choose up to 3 SAR set index only, as the top half
  14135. * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
  14136. * the SAR index (3 to 5) is used for DBS mode.
  14137. */
  14138. enum qca_wlan_vendor_sar_version {
  14139. QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
  14140. QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
  14141. QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
  14142. QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
  14143. };
  14144. /**
  14145. * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
  14146. * CTL grouping is enabled or disabled in the firmware.
  14147. *
  14148. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
  14149. * is enabled in firmware.
  14150. *
  14151. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
  14152. * is disabled in firmware.
  14153. *
  14154. */
  14155. enum qca_wlan_vendor_sar_ctl_group_state {
  14156. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
  14157. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
  14158. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
  14159. };
  14160. /**
  14161. * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
  14162. * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
  14163. * supported by the firmware.
  14164. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
  14165. * u32 attribute. This field describes current SAR version supported by the
  14166. * firmware.
  14167. * See enum qca_wlan_vendor_sar_version for more information.
  14168. * This attribute is mandatory.
  14169. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
  14170. * u32 attribute. This field describes whether CTL groups are enabled
  14171. * or disabled in the firmware.
  14172. * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
  14173. * This attribute is optional.
  14174. */
  14175. enum qca_wlan_vendor_attr_sar_capability {
  14176. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
  14177. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
  14178. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
  14179. /* Keep last */
  14180. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
  14181. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
  14182. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
  14183. };
  14184. /**
  14185. * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
  14186. * These statistics are sent from the driver in a response when userspace
  14187. * queries to get the statistics using the operation
  14188. * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
  14189. * by the driver when the SR feature is enabled, when the driver receives
  14190. * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
  14191. *
  14192. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14193. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14194. * This represents the number of non-SRG TX opportunities.
  14195. *
  14196. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14197. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14198. * This represents the number of non-SRG PPDUs tried to transmit.
  14199. *
  14200. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14201. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14202. * This represents the number of non-SRG PPDUs successfully transmitted.
  14203. *
  14204. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14205. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14206. * This represents the number of SRG TX opportunities.
  14207. *
  14208. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14209. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14210. * This represents the number of SRG PPDUs tried to transmit.
  14211. *
  14212. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14213. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14214. * This represents the number of SRG PPDUs successfully transmitted.
  14215. */
  14216. enum qca_wlan_vendor_attr_sr_stats {
  14217. QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
  14218. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
  14219. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
  14220. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
  14221. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
  14222. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
  14223. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
  14224. /* Keep last */
  14225. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
  14226. QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
  14227. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
  14228. };
  14229. /**
  14230. * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
  14231. * Spatial Reuse feature.
  14232. *
  14233. * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
  14234. * roaming to an AP that doesn't support/supports SR feature, respectively.
  14235. *
  14236. * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
  14237. * to change in concurrent interfaces that are supported by the driver.
  14238. */
  14239. enum qca_wlan_sr_reason_code {
  14240. QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
  14241. QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
  14242. };
  14243. /**
  14244. * enum qca_wlan_sr_operation - Defines the different types of SR operations.
  14245. * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
  14246. *
  14247. * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
  14248. * driver to enable the Spatial Reuse feature. Attributes
  14249. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14250. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
  14251. * operation.
  14252. *
  14253. * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
  14254. * driver to disable the Spatial Reuse feature.
  14255. *
  14256. * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
  14257. * asynchronous event sent to userspace when the SR feature is disabled.
  14258. * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
  14259. * and sent along with the asynchronous event.
  14260. *
  14261. * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
  14262. * asynchronous event when the SR feature is enabled again after the SR feature
  14263. * was suspended by the driver earlier. The enable reason is
  14264. * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
  14265. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14266. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
  14267. *
  14268. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
  14269. * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14270. * reuse transmissions. Userspace sends this operation to the driver.
  14271. * The driver/firmware upon receiving this operation shall prohibit PSR-based
  14272. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14273. *
  14274. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
  14275. * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14276. * reuse transmissions. Userspace sends this operation to the driver.
  14277. * The driver/firmware upon receiving this operation shall allow PSR-based
  14278. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14279. *
  14280. * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
  14281. * driver to get the SR statistics and the driver sends a synchronous response
  14282. * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
  14283. * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
  14284. *
  14285. * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
  14286. * driver to clear the SR statistics and upon receiving this operation
  14287. * the driver/firmware shall clear the SR statistics.
  14288. *
  14289. * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
  14290. * driver to get the SR parameters and the driver sends the synchronous response
  14291. * with the following required attributes:
  14292. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14293. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14294. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14295. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14296. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14297. *
  14298. * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
  14299. * asynchronous event to userspace to update any changes in SR parameters.
  14300. * The following attributes are used with this operation:
  14301. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14302. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14303. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14304. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14305. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14306. */
  14307. enum qca_wlan_sr_operation {
  14308. QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
  14309. QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
  14310. QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
  14311. QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
  14312. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
  14313. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
  14314. QCA_WLAN_SR_OPERATION_GET_STATS = 6,
  14315. QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
  14316. QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
  14317. QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
  14318. };
  14319. /**
  14320. * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
  14321. * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
  14322. *
  14323. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
  14324. * This attribute is optionally set in response to
  14325. * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
  14326. * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
  14327. * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
  14328. * about HESIGA_Spatial_reuse_value15_allowed.
  14329. *
  14330. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
  14331. * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
  14332. * operation. This indicates whether non-SRG OBSS PD SR transmissions are
  14333. * allowed or not at non-AP STAs that are associated with the AP. If present
  14334. * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
  14335. *
  14336. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
  14337. * attribute. This attribute is used in response to
  14338. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14339. * Min Offset field which contains an unsigned integer that is added to -82 dBm
  14340. * to generate the value of the SRG OBSS PD Min parameter.
  14341. *
  14342. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14343. * attribute. This attribute is used in response to
  14344. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14345. * Max Offset field which contains an unsigned integer that is added to -82 dBm
  14346. * to generate the value of the SRG OBSS PD Max parameter.
  14347. *
  14348. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14349. * attribute. This attribute is used in response to
  14350. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
  14351. * PD Max Offset field which contains an unsigned integer that is added to -82
  14352. * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
  14353. *
  14354. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14355. * Userspace optionally sends this attribute with
  14356. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14357. * preferred SRG PD threshold. The driver shall send this attribute to
  14358. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14359. * When there is change in SRG PD threshold (for example, due to roaming, etc.)
  14360. * the driver shall indicate the userspace the newly configured SRG PD threshold
  14361. * using an asynchronous event.
  14362. *
  14363. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14364. * Userspace optionally sends this attribute with
  14365. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14366. * preferred non-SRG PD threshold. The driver shall send this attribute to
  14367. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14368. * When there is change in non-SRG PD threshold (for example, due to roaming,
  14369. * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
  14370. * threshold using an asynchronous event.
  14371. *
  14372. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
  14373. * values are defined in enum qca_wlan_sr_reason_code. This
  14374. * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
  14375. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
  14376. */
  14377. enum qca_wlan_vendor_attr_sr_params {
  14378. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
  14379. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
  14380. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
  14381. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
  14382. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
  14383. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
  14384. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
  14385. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
  14386. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
  14387. /* keep last */
  14388. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
  14389. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
  14390. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
  14391. };
  14392. /**
  14393. * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
  14394. * command QCA_NL80211_VENDOR_SUBCMD_SR.
  14395. *
  14396. * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
  14397. * from userspace to the driver. Possible values are defined in enum
  14398. * qca_wlan_sr_operation.
  14399. *
  14400. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
  14401. * configuration parameters. The possible attributes inside this attribute are
  14402. * defined in enum qca_wlan_vendor_attr_sr_params.
  14403. * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  14404. * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
  14405. * also in response from the driver to userspace when the response is sent for
  14406. * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
  14407. * The driver uses this attribute in asynchronous events in which the operation
  14408. * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
  14409. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
  14410. *
  14411. * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
  14412. * statistics. These attributes used inside this are defined in enum
  14413. * qca_wlan_vendor_attr_sr_stats.
  14414. * This attribute is used in response from the driver to a command in which
  14415. * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  14416. * %QCA_WLAN_SR_OPERATION_GET_STATS.
  14417. */
  14418. enum qca_wlan_vendor_attr_sr {
  14419. QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
  14420. QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
  14421. QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
  14422. QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
  14423. /* Keep last */
  14424. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
  14425. QCA_WLAN_VENDOR_ATTR_SR_MAX =
  14426. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
  14427. };
  14428. /**
  14429. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
  14430. * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
  14431. *
  14432. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
  14433. * used by the peer on the link that corresponds to the link used for sending
  14434. * the event notification.
  14435. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
  14436. * MLD MAC address of the peer.
  14437. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
  14438. * used to pass ifindex of the primary netdev.
  14439. */
  14440. enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
  14441. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
  14442. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
  14443. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
  14444. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
  14445. /* keep last */
  14446. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
  14447. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
  14448. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
  14449. };
  14450. /**
  14451. * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
  14452. * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
  14453. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
  14454. * and PSD information.
  14455. *
  14456. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
  14457. * u32. This attribute is used to indicate the start of the queried frequency
  14458. * range in MHz.
  14459. *
  14460. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
  14461. * This attribute is used to indicate the end of the queried frequency range
  14462. * in MHz.
  14463. *
  14464. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
  14465. * This attribute will contain the PSD information for a single range as
  14466. * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
  14467. * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
  14468. *
  14469. * The PSD power info (dBm/MHz) from user space should be multiplied
  14470. * by a factor of 100 when sending to the driver to preserve granularity
  14471. * up to 2 decimal places.
  14472. * Example:
  14473. * PSD power value: 10.21 dBm/MHz
  14474. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
  14475. *
  14476. * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
  14477. * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
  14478. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
  14479. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14480. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  14481. *
  14482. * The following set of attributes will be used to exchange frequency and
  14483. * corresponding PSD information for AFC between the user space and the driver.
  14484. */
  14485. enum qca_wlan_vendor_attr_afc_freq_psd_info {
  14486. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
  14487. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
  14488. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
  14489. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
  14490. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
  14491. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
  14492. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
  14493. };
  14494. /**
  14495. * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
  14496. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
  14497. * channel list and corresponding EIRP information.
  14498. *
  14499. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
  14500. * This attribute is used to indicate queried channel from
  14501. * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
  14502. *
  14503. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
  14504. * This attribute is used to configure the EIRP power info corresponding
  14505. * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
  14506. * The EIRP power info(dBm) from user space should be multiplied
  14507. * by a factor of 100 when sending to Driver to preserve granularity up to
  14508. * 2 decimal places.
  14509. * Example:
  14510. * EIRP power value: 34.23 dBm
  14511. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
  14512. *
  14513. * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
  14514. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  14515. * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
  14516. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14517. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
  14518. *
  14519. * The following set of attributes will be used to exchange Channel and
  14520. * corresponding EIRP information for AFC between the user space and Driver.
  14521. */
  14522. enum qca_wlan_vendor_attr_afc_chan_eirp_info {
  14523. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
  14524. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
  14525. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
  14526. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
  14527. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
  14528. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
  14529. };
  14530. /**
  14531. * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
  14532. * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  14533. * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
  14534. * channel, and EIRP related information.
  14535. *
  14536. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
  14537. * This attribute is used to indicate the operating class, as listed under
  14538. * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
  14539. *
  14540. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
  14541. * for updating the channel number and EIRP power information.
  14542. * It uses the attributes defined in
  14543. * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
  14544. *
  14545. * Operating class information packing format for
  14546. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  14547. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14548. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
  14549. *
  14550. * m - Total number of operating classes.
  14551. * n, j - Number of queried channels for the corresponding operating class.
  14552. *
  14553. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  14554. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  14555. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  14556. * .....
  14557. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  14558. * ....
  14559. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  14560. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  14561. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  14562. * ....
  14563. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  14564. *
  14565. * Operating class information packing format for
  14566. * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  14567. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  14568. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14569. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  14570. *
  14571. * m - Total number of operating classes.
  14572. * n, j - Number of channels for the corresponding operating class.
  14573. *
  14574. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  14575. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  14576. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  14577. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  14578. * .....
  14579. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  14580. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
  14581. * ....
  14582. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  14583. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  14584. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  14585. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  14586. * ....
  14587. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  14588. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
  14589. *
  14590. * The following set of attributes will be used to exchange operating class
  14591. * information for AFC between the user space and the driver.
  14592. */
  14593. enum qca_wlan_vendor_attr_afc_opclass_info {
  14594. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
  14595. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
  14596. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
  14597. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
  14598. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
  14599. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
  14600. };
  14601. /**
  14602. * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
  14603. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
  14604. *
  14605. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
  14606. * driver to userspace in order to query the new AFC power values.
  14607. *
  14608. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
  14609. * complete event will be sent from the driver to userspace to indicate
  14610. * processing of the AFC response.
  14611. *
  14612. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
  14613. * will be sent from the driver to userspace to indicate last received
  14614. * AFC response data has been cleared on the AP due to invalid data
  14615. * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
  14616. *
  14617. * The following enum defines the different event types that will be
  14618. * used by the driver to help trigger corresponding AFC functionality in user
  14619. * space.
  14620. */
  14621. enum qca_wlan_vendor_afc_event_type {
  14622. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
  14623. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
  14624. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
  14625. };
  14626. /**
  14627. * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
  14628. * deployment type.
  14629. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
  14630. *
  14631. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
  14632. *
  14633. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
  14634. *
  14635. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
  14636. *
  14637. * The following enum defines different deployment modes that the AP might
  14638. * come up in. This information will be essential to retrieve deployment-type
  14639. * specific SP power values for AFC operation.
  14640. */
  14641. enum qca_wlan_vendor_afc_ap_deployment_type {
  14642. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
  14643. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
  14644. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
  14645. };
  14646. /**
  14647. * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
  14648. * indicate AFC response status.
  14649. * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
  14650. *
  14651. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
  14652. *
  14653. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
  14654. * command was not received within the expected time of the AFC expiry event
  14655. * being triggered.
  14656. *
  14657. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
  14658. * parsing error by the driver.
  14659. *
  14660. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
  14661. * error.
  14662. *
  14663. * The following enum defines the status codes that the driver will use to
  14664. * indicate whether the AFC data is valid or not.
  14665. */
  14666. enum qca_wlan_vendor_afc_evt_status_code {
  14667. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
  14668. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
  14669. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
  14670. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
  14671. };
  14672. /**
  14673. * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
  14674. * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
  14675. * support sending only a single request to the user space at a time.
  14676. *
  14677. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
  14678. * Used with event to notify the type of AFC event received.
  14679. * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
  14680. *
  14681. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
  14682. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  14683. * otherwise unused.
  14684. *
  14685. * This attribute is used to indicate the AP deployment type in the AFC request.
  14686. * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
  14687. *
  14688. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
  14689. * Unique request identifier generated by the AFC client for every
  14690. * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
  14691. * The user space application is responsible for ensuring no duplicate values
  14692. * are in-flight with the server, e.g., by delaying a request, should the same
  14693. * value be received from different radios in parallel.
  14694. *
  14695. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
  14696. * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14697. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
  14698. *
  14699. * This attribute indicates the AFC spec version information. This will
  14700. * indicate the AFC version AFC client must use to query the AFC data.
  14701. * Bits 15:0 - Minor version
  14702. * Bits 31:16 - Major version
  14703. *
  14704. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
  14705. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  14706. * otherwise unused.
  14707. * This attribute indicates the minimum desired power (in dBm) for
  14708. * the queried spectrum.
  14709. *
  14710. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
  14711. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14712. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14713. *
  14714. * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
  14715. * This attribute is used to indicate if there were any errors parsing the
  14716. * AFC response.
  14717. *
  14718. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
  14719. * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14720. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14721. *
  14722. * This attribute indicates the AFC response code. The AFC response codes are
  14723. * in the following categories:
  14724. * -1: General Failure.
  14725. * 0: Success.
  14726. * 100 - 199: General errors related to protocol.
  14727. * 300 - 399: Error events specific to message exchange
  14728. * for the Available Spectrum Inquiry.
  14729. *
  14730. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
  14731. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14732. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14733. *
  14734. * This attribute indicates the date until which the current response is
  14735. * valid for in UTC format.
  14736. * Date format: bits 7:0 - DD (Day 1-31)
  14737. * bits 15:8 - MM (Month 1-12)
  14738. * bits 31:16 - YYYY (Year)
  14739. *
  14740. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
  14741. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14742. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14743. *
  14744. * This attribute indicates the time until which the current response is
  14745. * valid for in UTC format.
  14746. * Time format: bits 7:0 - SS (Seconds 0-59)
  14747. * bits 15:8 - MM (Minutes 0-59)
  14748. * bits 23:16 - HH (Hours 0-23)
  14749. * bits 31:24 - Reserved
  14750. *
  14751. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
  14752. * for updating the list of frequency ranges to be queried.
  14753. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14754. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  14755. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14756. * It uses the attributes defined in
  14757. * enum qca_wlan_vendor_attr_afc_freq_psd_info.
  14758. *
  14759. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
  14760. * for updating the list of operating classes and corresponding channels to be
  14761. * queried.
  14762. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14763. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  14764. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  14765. * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
  14766. */
  14767. enum qca_wlan_vendor_attr_afc_event {
  14768. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
  14769. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
  14770. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
  14771. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
  14772. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
  14773. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
  14774. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
  14775. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
  14776. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
  14777. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
  14778. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
  14779. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
  14780. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
  14781. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
  14782. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
  14783. };
  14784. /**
  14785. * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
  14786. * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
  14787. * will support sending only a single AFC response to the driver at a time.
  14788. *
  14789. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
  14790. * This attribute will be used to send a single Spectrum Inquiry response object
  14791. * from the 'availableSpectrumInquiryResponses' array object from the response
  14792. * JSON.
  14793. *
  14794. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
  14795. *
  14796. * This attribute indicates the period (in seconds) for which the response
  14797. * data received is valid for.
  14798. *
  14799. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
  14800. *
  14801. * This attribute indicates the request ID for which the corresponding
  14802. * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
  14803. *
  14804. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
  14805. *
  14806. * This attribute indicates the date until which the current response is
  14807. * valid for in UTC format.
  14808. * Date format: bits 7:0 - DD (Day 1-31)
  14809. * bits 15:8 - MM (Month 1-12)
  14810. * bits 31:16 - YYYY (Year)
  14811. *
  14812. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
  14813. *
  14814. * This attribute indicates the time until which the current response is
  14815. * valid for in UTC format.
  14816. * Time format: bits 7:0 - SS (Seconds 0-59)
  14817. * bits 15:8 - MM (Minutes 0-59)
  14818. * bits 23:16 - HH (Hours 0-23)
  14819. * bits 31:24 - Reserved
  14820. *
  14821. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
  14822. *
  14823. * This attribute indicates the AFC response code. The AFC response codes are
  14824. * in the following categories:
  14825. * -1: General Failure.
  14826. * 0: Success.
  14827. * 100 - 199: General errors related to protocol.
  14828. * 300 - 399: Error events specific to message exchange
  14829. * for the Available Spectrum Inquiry.
  14830. *
  14831. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
  14832. * for PSD info of all the queried frequency ranges. It uses the attributes
  14833. * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
  14834. *
  14835. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
  14836. * attributes for EIRP info of all queried operating class/channels. It uses
  14837. * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
  14838. * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
  14839. *
  14840. */
  14841. enum qca_wlan_vendor_attr_afc_response {
  14842. QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
  14843. QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
  14844. QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
  14845. QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
  14846. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
  14847. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
  14848. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
  14849. QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
  14850. QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
  14851. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
  14852. QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
  14853. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
  14854. };
  14855. /**
  14856. * enum qca_wlan_dozed_ap_state - Doze states for AP interface
  14857. *
  14858. * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
  14859. *
  14860. * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
  14861. * beaconing at higher beacon interval with Rx disabled.
  14862. */
  14863. enum qca_wlan_dozed_ap_state {
  14864. QCA_WLAN_DOZED_AP_DISABLE = 0,
  14865. QCA_WLAN_DOZED_AP_ENABLE = 1,
  14866. };
  14867. /**
  14868. * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
  14869. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
  14870. * configuration.
  14871. *
  14872. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
  14873. * Configures the doze state for an AP interface. Possible values are defined
  14874. * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
  14875. * gets triggered asynchronously to provide updated AP interface configuration.
  14876. *
  14877. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
  14878. * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
  14879. * command, which is used later to maintain synchronization between commands
  14880. * and asynchronous events.
  14881. *
  14882. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
  14883. * Used in event to indicate the next TBTT TSF timer value after applying the
  14884. * doze mode configuration. Next TBTT TSF is the time at which the AP sends
  14885. * the first beacon after entering or exiting dozed mode.
  14886. *
  14887. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
  14888. * Used with event to inform the periodicity of beacon transmission that would
  14889. * be skipped at all TBTTs in between.
  14890. */
  14891. enum qca_wlan_vendor_attr_dozed_ap {
  14892. QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
  14893. QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
  14894. QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
  14895. QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
  14896. QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
  14897. /* Keep last */
  14898. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
  14899. QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
  14900. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
  14901. };
  14902. #endif