qca_vendor.h 593 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2022 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_MULTI_STA_POLICY: Vendor command to
  483. * configure the concurrent session policies when multiple STA interfaces
  484. * are (getting) active. The attributes used by this command are defined
  485. * in enum qca_wlan_vendor_attr_concurrent_sta_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_SCS_RULE_CONFIG: Subcommand to configure
  600. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  601. *
  602. * The attributes used with this event are defined in
  603. * enum qca_wlan_vendor_attr_scs_rule_config.
  604. */
  605. enum qca_nl80211_vendor_subcmds {
  606. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  607. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  608. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  609. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  610. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  611. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  612. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  613. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  614. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  615. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  616. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  617. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  618. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  619. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  620. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  621. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  622. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  623. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  624. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  625. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  626. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  627. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  628. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  629. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  630. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  631. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  632. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  633. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  634. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  635. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  636. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  637. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  638. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  639. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  640. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  641. /* Get Concurrency Matrix */
  642. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  643. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  644. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  645. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  646. /* Deprecated */
  647. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  648. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  649. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  650. /* Off loaded DFS events */
  651. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  652. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  653. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  654. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  655. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  656. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  657. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  658. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  659. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  660. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  661. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  662. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  663. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  664. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  665. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  666. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  667. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  668. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  669. /* Wi-Fi Configuration subcommands */
  670. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  671. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  672. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  673. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  674. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  675. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  676. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  677. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  678. /* NS Offload enable/disable cmd */
  679. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  680. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  681. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  682. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  683. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  684. /* OCB commands */
  685. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  686. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  687. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  688. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  689. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  690. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  691. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  692. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  693. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  694. /* subcommand to get link properties */
  695. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  696. /* LFR Subnet Detection */
  697. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  698. /* DBS subcommands */
  699. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  700. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  701. /* Vendor setband command */
  702. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  703. /* Vendor scan commands */
  704. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  705. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  706. /* OTA test subcommand */
  707. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  708. /* Tx power scaling subcommands */
  709. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  710. /* Tx power scaling in db subcommands */
  711. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  712. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  713. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  714. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  715. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  716. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  717. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  718. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  719. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  720. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  721. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  722. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  723. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  724. /* FTM/indoor location subcommands */
  725. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  726. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  727. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  728. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  729. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  730. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  731. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  732. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  733. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  734. /* Encrypt/Decrypt command */
  735. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  736. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  737. /* DMG low level RF sector operations */
  738. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  739. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  740. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  741. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  742. /* Configure the TDLS mode from user space */
  743. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  744. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  745. /* Vendor abort scan command */
  746. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  747. /* Set Specific Absorption Rate(SAR) Power Limits */
  748. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  749. /* External Auto channel configuration setting */
  750. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  751. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  752. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  753. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  754. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  755. /* Set the trace level for QDF */
  756. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  757. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  758. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  759. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  760. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  761. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  762. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  763. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  764. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  765. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  766. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  767. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  768. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  769. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  770. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  771. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  772. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  773. /* Wi-Fi test configuration subcommand */
  774. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  775. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  776. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  777. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  778. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  779. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  780. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  781. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  782. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  783. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  784. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  785. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  786. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  787. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  788. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  789. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  790. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  791. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  792. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  793. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  794. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  795. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  796. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  797. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  798. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  799. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197,
  800. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  801. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  802. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  803. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  804. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  805. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  806. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  807. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  808. /* 206..212 - reserved for QCA */
  809. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  810. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  811. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  812. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  813. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  814. };
  815. enum qca_wlan_vendor_tos {
  816. QCA_WLAN_VENDOR_TOS_BK = 0,
  817. QCA_WLAN_VENDOR_TOS_BE = 1,
  818. QCA_WLAN_VENDOR_TOS_VI = 2,
  819. QCA_WLAN_VENDOR_TOS_VO = 3,
  820. };
  821. /**
  822. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  823. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  824. */
  825. enum qca_wlan_vendor_attr_active_tos {
  826. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  827. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  828. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  829. /* Flag attribute representing the start (attribute included) or stop
  830. * (attribute not included) of the respective TOS.
  831. */
  832. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  833. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  834. };
  835. enum qca_wlan_vendor_hang_reason {
  836. /* Unspecified reason */
  837. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  838. /* No Map for the MAC entry for the received frame */
  839. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  840. /* peer deletion timeout happened */
  841. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  842. /* peer unmap timeout */
  843. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  844. /* Scan request timed out */
  845. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  846. /* Consecutive Scan attempt failures */
  847. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  848. /* Unable to get the message buffer */
  849. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  850. /* Current command processing is timedout */
  851. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  852. /* Timeout for an ACK from FW for suspend request */
  853. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  854. /* Timeout for an ACK from FW for resume request */
  855. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  856. /* Transmission timeout for consecutive data frames */
  857. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  858. /* Timeout for the TX completion status of data frame */
  859. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  860. /* DXE failure for tx/Rx, DXE resource unavailability */
  861. QCA_WLAN_HANG_DXE_FAILURE = 12,
  862. /* WMI pending commands exceed the maximum count */
  863. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  864. /* Timeout for peer STA connection accept command's response from the
  865. * FW in AP mode. This command is triggered when a STA (peer) connects
  866. * to AP (DUT).
  867. */
  868. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  869. /* Timeout for the AP connection accept command's response from the FW
  870. * in STA mode. This command is triggered when the STA (DUT) connects
  871. * to an AP (peer).
  872. */
  873. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  874. /* Timeout waiting for the response to the MAC HW mode change command
  875. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  876. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  877. * Channel Concurrency) mode.
  878. */
  879. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  880. /* Timeout waiting for the response from FW to configure the MAC HW's
  881. * mode. This operation is to configure the single/two MACs in either
  882. * SCC/MCC/DBS mode.
  883. */
  884. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  885. /* Timeout waiting for response of VDEV start command from the FW */
  886. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  887. /* Timeout waiting for response of VDEV restart command from the FW */
  888. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  889. /* Timeout waiting for response of VDEV stop command from the FW */
  890. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  891. /* Timeout waiting for response of VDEV delete command from the FW */
  892. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  893. /* Timeout waiting for response of peer all delete request command to
  894. * the FW on a specific VDEV.
  895. */
  896. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  897. /* WMI sequence mismatch between WMI command and Tx completion */
  898. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  899. /* Write to Device HAL register failed */
  900. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  901. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  902. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  903. /* Bus failure */
  904. QCA_WLAN_HANG_BUS_FAILURE = 26,
  905. /* tasklet/credit latency found */
  906. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  907. };
  908. /**
  909. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  910. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  911. */
  912. enum qca_wlan_vendor_attr_hang {
  913. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  914. /*
  915. * Reason for the Hang - Represented by enum
  916. * qca_wlan_vendor_hang_reason.
  917. */
  918. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  919. /* The binary blob data associated with the hang reason specified by
  920. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  921. * contain the required dump to analyze the reason for the hang.
  922. * NLA_BINARY attribute, the max size is 1024 bytes.
  923. */
  924. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  925. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  926. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  927. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  928. };
  929. /**
  930. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  931. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  932. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  933. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  934. level needs to be updated.
  935. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  936. * to be set.
  937. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  938. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  939. */
  940. enum qca_vendor_attr_set_trace_level {
  941. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  942. /*
  943. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  944. * attributes.
  945. */
  946. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  947. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  948. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  949. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  950. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  951. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  952. };
  953. /**
  954. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  955. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  956. * station information. The information obtained through these
  957. * commands signify the current info in connected state and
  958. * latest cached information during the connected state , if queried
  959. * when in disconnected state.
  960. *
  961. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  962. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  963. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  964. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  965. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  966. */
  967. enum qca_wlan_vendor_attr_get_station {
  968. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  969. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  970. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  971. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  972. /* keep last */
  973. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  974. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  975. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  976. };
  977. /**
  978. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  979. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  980. *
  981. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  982. * Used in STA mode. This attribute represents the list of channel center
  983. * frequencies in MHz (u32) the station has learnt during the last connection
  984. * or roaming attempt. This information shall not signify the channels for
  985. * an explicit scan request from the user space. Host drivers can update this
  986. * information to the user space in both connected and disconnected state.
  987. * In the disconnected state this information shall signify the channels
  988. * scanned in the last connection/roam attempt that lead to the disconnection.
  989. */
  990. enum qca_wlan_vendor_attr_update_sta_info {
  991. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  992. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  993. /* keep last */
  994. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  995. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  996. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  997. };
  998. /**
  999. * enum qca_wlan_802_11_mode - dot11 mode
  1000. * @QCA_WLAN_802_11_MODE_11B: mode B
  1001. * @QCA_WLAN_802_11_MODE_11G: mode G
  1002. * @QCA_WLAN_802_11_MODE_11N: mode N
  1003. * @QCA_WLAN_802_11_MODE_11A: mode A
  1004. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1005. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1006. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1007. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1008. */
  1009. enum qca_wlan_802_11_mode {
  1010. QCA_WLAN_802_11_MODE_11B,
  1011. QCA_WLAN_802_11_MODE_11G,
  1012. QCA_WLAN_802_11_MODE_11N,
  1013. QCA_WLAN_802_11_MODE_11A,
  1014. QCA_WLAN_802_11_MODE_11AC,
  1015. QCA_WLAN_802_11_MODE_11AX,
  1016. QCA_WLAN_802_11_MODE_11BE,
  1017. QCA_WLAN_802_11_MODE_INVALID,
  1018. };
  1019. /**
  1020. * enum qca_wlan_auth_type - Authentication key management type
  1021. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1022. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1023. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1024. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1025. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1026. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1027. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1028. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1029. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1030. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1031. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1032. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1033. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1034. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1035. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1036. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1037. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1038. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1039. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1040. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1041. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1042. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1043. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1044. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1045. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1046. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1047. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1048. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1049. */
  1050. enum qca_wlan_auth_type {
  1051. QCA_WLAN_AUTH_TYPE_INVALID,
  1052. QCA_WLAN_AUTH_TYPE_OPEN,
  1053. QCA_WLAN_AUTH_TYPE_SHARED,
  1054. QCA_WLAN_AUTH_TYPE_WPA,
  1055. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1056. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1057. QCA_WLAN_AUTH_TYPE_RSN,
  1058. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1059. QCA_WLAN_AUTH_TYPE_FT,
  1060. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1061. QCA_WLAN_AUTH_TYPE_SHA256,
  1062. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1063. QCA_WLAN_AUTH_TYPE_WAI,
  1064. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1065. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1066. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1067. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1068. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1069. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1070. QCA_WLAN_AUTH_TYPE_SAE,
  1071. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1072. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1073. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1074. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1075. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1076. QCA_WLAN_AUTH_TYPE_OWE,
  1077. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1078. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1079. };
  1080. /**
  1081. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1082. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1083. *
  1084. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1085. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1086. * Get the standard NL attributes Nested with this attribute.
  1087. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1088. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1089. * NL80211_ATTR_STA_INFO
  1090. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1091. * Get the standard NL attributes Nested with this attribute.
  1092. * Ex : Query HT/VHT Capability advertized by the AP.
  1093. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1094. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1095. * Number of successful Roam attempts before a
  1096. * disconnect, Unsigned 32 bit value
  1097. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1098. * Authentication Key Management Type used for the connected session.
  1099. * Signified by enum qca_wlan_auth_type
  1100. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1101. * connected Session, signified by enum qca_wlan_802_11_mode
  1102. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1103. * HS20 Indication Element
  1104. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1105. * Status Code Corresponding to the Association Failure.
  1106. * Unsigned 32 bit value.
  1107. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1108. * Max phy rate of remote station
  1109. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1110. * TX packets to remote station
  1111. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1112. * TX bytes to remote station
  1113. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1114. * RX packets from remote station
  1115. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1116. * RX bytes from remote station
  1117. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1118. * Last TX rate with remote station
  1119. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1120. * Last RX rate with remote station
  1121. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1122. * Remote station enable/disable WMM
  1123. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1124. * Remote station connection mode
  1125. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1126. * Remote station AMPDU enable/disable
  1127. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1128. * Remote station TX Space-time block coding enable/disable
  1129. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1130. * Remote station RX Space-time block coding enable/disable
  1131. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1132. * Remote station channel width
  1133. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1134. * Remote station short GI enable/disable
  1135. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1136. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1137. * containing the raw information elements from Beacon frames. Represents
  1138. * the Beacon frames of the current BSS in the connected state. When queried
  1139. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1140. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1141. * disconnect reason for the last disconnection if the disconnection is
  1142. * triggered from the host driver. The values are referred from
  1143. * enum qca_disconnect_reason_codes. If the disconnect is from
  1144. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1145. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1146. * Applicable in AP mode only. It contains the raw information elements
  1147. * from assoc request frame of the given peer station. User queries with the
  1148. * mac address of peer station when it disconnects. Host driver sends
  1149. * assoc request frame of the given station. Host driver doesn't provide
  1150. * the IEs when the peer station is still in connected state.
  1151. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1152. * sending HE operation info.
  1153. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1154. *
  1155. */
  1156. enum qca_wlan_vendor_attr_get_station_info {
  1157. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1158. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1159. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1160. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1161. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1162. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1163. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1164. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1165. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1166. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1167. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1168. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1169. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1170. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1171. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1172. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1173. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1174. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1175. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1176. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1177. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1178. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1179. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1180. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1181. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1182. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1183. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1184. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1185. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1186. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1187. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1188. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1189. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1190. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1191. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1192. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1193. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1194. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1195. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1196. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1197. /* keep last */
  1198. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1199. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1200. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1201. };
  1202. /**
  1203. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  1204. *
  1205. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  1206. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  1207. * value
  1208. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  1209. * keep as unsigned for now
  1210. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  1211. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  1212. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  1213. * in KBPS
  1214. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  1215. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  1216. */
  1217. enum qca_wlan_vendor_attr_tdls_enable {
  1218. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  1219. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  1220. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  1221. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  1222. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  1223. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  1224. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  1225. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  1226. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  1227. };
  1228. /**
  1229. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  1230. *
  1231. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  1232. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  1233. * 8-bit value
  1234. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  1235. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  1236. */
  1237. enum qca_wlan_vendor_attr_tdls_disable {
  1238. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  1239. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  1240. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  1241. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  1242. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  1243. };
  1244. /**
  1245. * qca_chip_power_save_failure_reason: Power save failure reason
  1246. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1247. * due to protocol/module.
  1248. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1249. * due to hardware
  1250. */
  1251. enum qca_chip_power_save_failure_reason {
  1252. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1253. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1254. };
  1255. /**
  1256. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1257. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1258. * information leading to the power save failure.
  1259. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1260. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1261. * represented by enum qca_chip_power_save_failure_reason
  1262. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1263. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1264. */
  1265. enum qca_attr_chip_power_save_failure {
  1266. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1267. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1268. /* keep last */
  1269. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1270. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1271. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1272. };
  1273. /**
  1274. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1275. *
  1276. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1277. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1278. * 8-bit value
  1279. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1280. * unsigned 32-bit value
  1281. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1282. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1283. * unsigned 32-bit value
  1284. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1285. * class, unsigned 32-bit value
  1286. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1287. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1288. */
  1289. enum qca_wlan_vendor_attr_tdls_get_status {
  1290. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1291. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1292. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1293. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1294. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1295. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1296. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1297. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1298. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1299. };
  1300. /**
  1301. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1302. *
  1303. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1304. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1305. * 8-bit value
  1306. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1307. * unsigned 32-bit value
  1308. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1309. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1310. * unsigned 32-bit value
  1311. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1312. * operating class, unsigned 32-bit value
  1313. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1314. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1315. */
  1316. enum qca_wlan_vendor_attr_tdls_state {
  1317. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1318. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1319. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1320. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1321. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1322. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1323. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1324. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1325. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  1326. };
  1327. /* enum's to provide TDLS capabilities */
  1328. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1329. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1330. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1331. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1332. /* keep last */
  1333. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1334. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1335. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1336. };
  1337. enum qca_wlan_vendor_attr {
  1338. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1339. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1340. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1341. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1342. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1343. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1344. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1345. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1346. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1347. /*
  1348. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1349. * by enum qca_roaming_policy.
  1350. */
  1351. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1352. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1353. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1354. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1355. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1356. /*
  1357. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1358. * Unsigned 32-bit value.
  1359. */
  1360. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1361. /* Unsigned 32-bit value */
  1362. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1363. /* Unsigned 32-bit value */
  1364. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1365. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1366. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1367. * is deprecated. Recommendation is to use
  1368. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1369. * using both the attributes, the ones configured through
  1370. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1371. */
  1372. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1373. /* Dummy (NOP) attribute for 64 bit padding */
  1374. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1375. /*
  1376. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1377. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1378. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1379. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1380. */
  1381. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1382. /*
  1383. * Indoor location capabilities, returned by
  1384. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1385. * see enum qca_wlan_vendor_attr_loc_capa.
  1386. */
  1387. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1388. /*
  1389. * Array of nested attributes containing information about each peer
  1390. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1391. * for supported attributes for each peer.
  1392. */
  1393. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1394. /*
  1395. * Array of nested attributes containing measurement results for
  1396. * one or more peers, reported by the
  1397. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1398. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1399. * attributes.
  1400. */
  1401. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1402. /* Flag attribute for enabling or disabling responder functionality. */
  1403. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1404. /*
  1405. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1406. * command to specify the LCI report that will be sent by
  1407. * the responder during a measurement exchange. The format is
  1408. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1409. */
  1410. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1411. /*
  1412. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1413. * command to specify the location civic report that will
  1414. * be sent by the responder during a measurement exchange.
  1415. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1416. */
  1417. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1418. /*
  1419. * Session/measurement completion status code,
  1420. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1421. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1422. * see enum qca_vendor_attr_loc_session_status.
  1423. */
  1424. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1425. /*
  1426. * Initial dialog token used by responder (0 if not specified),
  1427. * unsigned 8 bit value.
  1428. */
  1429. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1430. /*
  1431. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1432. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1433. * AOA measurements are needed as part of an FTM session.
  1434. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1435. * enum qca_wlan_vendor_attr_aoa_type.
  1436. */
  1437. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1438. /*
  1439. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1440. * by indoor location measurements. Refers to the antenna
  1441. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1442. */
  1443. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1444. /*
  1445. * AOA measurement data. Its contents depends on the AOA measurement
  1446. * type and antenna array mask:
  1447. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1448. * phase of the strongest CIR path for each antenna in the measured
  1449. * array(s).
  1450. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1451. * values, phase and amplitude of the strongest CIR path for each
  1452. * antenna in the measured array(s).
  1453. */
  1454. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1455. /*
  1456. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1457. * to specify the chain number (unsigned 32 bit value) to inquire
  1458. * the corresponding antenna RSSI value */
  1459. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1460. /*
  1461. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1462. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1463. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1464. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1465. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1466. /*
  1467. * TSF timer value, unsigned 64 bit value.
  1468. * May be returned by various commands.
  1469. */
  1470. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1471. /*
  1472. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1473. * 0..127 for sector indices or 65535 as special value used to
  1474. * unlock sector selection in
  1475. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1476. */
  1477. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1478. /*
  1479. * DMG RF sector type, unsigned 8 bit value. One of the values
  1480. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1481. */
  1482. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1483. /*
  1484. * Bitmask of DMG RF modules for which information is requested. Each
  1485. * bit corresponds to an RF module with the same index as the bit
  1486. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1487. * all DMG chips currently have up to 8 RF modules.
  1488. */
  1489. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1490. /*
  1491. * Array of nested attributes where each entry is DMG RF sector
  1492. * configuration for a single RF module.
  1493. * Attributes for each entry are taken from enum
  1494. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1495. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1496. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1497. */
  1498. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1499. /*
  1500. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1501. * to report frame aggregation statistics to userspace.
  1502. */
  1503. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1504. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1505. /*
  1506. * Unsigned 8-bit value representing MBO transition reason code as
  1507. * provided by the AP used by subcommand
  1508. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1509. * specified by the userspace in the request to the driver.
  1510. */
  1511. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1512. /*
  1513. * Array of nested attributes, BSSID and status code, used by subcommand
  1514. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1515. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1516. * The userspace space specifies the list/array of candidate BSSIDs in
  1517. * the order of preference in the request. The driver specifies the
  1518. * status code, for each BSSID in the list, in the response. The
  1519. * acceptable candidates are listed in the order preferred by the
  1520. * driver.
  1521. */
  1522. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1523. /*
  1524. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1525. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1526. */
  1527. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1528. /*
  1529. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1530. * to define the number of antennas to use for BRP.
  1531. * different purpose in each ANT_LIMIT_MODE:
  1532. * DISABLE - ignored
  1533. * EFFECTIVE - upper limit to number of antennas to be used
  1534. * FORCE - exact number of antennas to be used
  1535. * unsigned 8 bit value
  1536. */
  1537. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1538. /*
  1539. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1540. * to report the corresponding antenna index to the chain RSSI value
  1541. */
  1542. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1543. /*
  1544. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1545. * to report the specific antenna EVM value (unsigned 32 bit value).
  1546. * With a determinate group of antennas, the driver specifies the
  1547. * EVM value for each antenna ID, and application extract them
  1548. * in user space.
  1549. */
  1550. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1551. /*
  1552. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1553. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1554. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1555. */
  1556. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1557. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1558. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1559. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1560. * This attribute shall consider the bitmask combinations to define
  1561. * the respective Band combinations and always takes precedence over
  1562. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1563. */
  1564. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1565. /* keep last */
  1566. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1567. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1568. };
  1569. enum qca_wlan_vendor_attr_extscan_config_params {
  1570. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1571. /* Unsigned 32-bit value */
  1572. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1573. /*
  1574. * Attributes for data used by
  1575. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1576. */
  1577. /* Unsigned 32-bit value */
  1578. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1579. = 2,
  1580. /* Unsigned 32-bit value */
  1581. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1582. = 3,
  1583. /*
  1584. * Attributes for input params used by
  1585. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1586. */
  1587. /* Unsigned 32-bit value; channel frequency */
  1588. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1589. /* Unsigned 32-bit value; dwell time in ms. */
  1590. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1591. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1592. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1593. /* Unsigned 8-bit value; channel class */
  1594. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1595. /* Unsigned 8-bit value; bucket index, 0 based */
  1596. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1597. /* Unsigned 8-bit value; band. */
  1598. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1599. /* Unsigned 32-bit value; desired period, in ms. */
  1600. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1601. /* Unsigned 8-bit value; report events semantics. */
  1602. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1603. /*
  1604. * Unsigned 32-bit value. Followed by a nested array of
  1605. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1606. */
  1607. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1608. /*
  1609. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1610. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1611. */
  1612. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1613. /* Unsigned 32-bit value; base timer period in ms. */
  1614. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1615. /*
  1616. * Unsigned 32-bit value; number of APs to store in each scan in the
  1617. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1618. */
  1619. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1620. /*
  1621. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1622. * up AP.
  1623. */
  1624. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1625. = 16,
  1626. /*
  1627. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1628. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1629. * of the array is determined by NUM_BUCKETS.
  1630. */
  1631. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1632. /*
  1633. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1634. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1635. */
  1636. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1637. /* Unsigned 8-bit value */
  1638. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1639. = 19,
  1640. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1641. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1642. = 20,
  1643. /* An array of 6 x unsigned 8-bit value */
  1644. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1645. /* Signed 32-bit value */
  1646. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1647. /* Signed 32-bit value */
  1648. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1649. /* Unsigned 32-bit value */
  1650. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1651. /*
  1652. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1653. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1654. * array is determined by NUM_AP.
  1655. */
  1656. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1657. /*
  1658. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1659. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1660. */
  1661. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1662. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1663. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1664. = 27,
  1665. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1666. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1667. = 28,
  1668. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1669. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1670. /*
  1671. * Unsigned 32-bit value; number of APs. Followed by an array of
  1672. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1673. */
  1674. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1675. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1676. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1677. = 31,
  1678. /*
  1679. * Unsigned 32-bit value. If max_period is non zero or different than
  1680. * period, then this bucket is an exponential backoff bucket.
  1681. */
  1682. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1683. /* Unsigned 32-bit value. */
  1684. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1685. /*
  1686. * Unsigned 32-bit value. For exponential back off bucket, number of
  1687. * scans to perform for a given period.
  1688. */
  1689. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1690. /*
  1691. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1692. * many scans.
  1693. */
  1694. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1695. = 35,
  1696. /*
  1697. * Attributes for data used by
  1698. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1699. */
  1700. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1701. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1702. = 36,
  1703. /*
  1704. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1705. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1706. * size of the array is determined by NUM_SSID.
  1707. */
  1708. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1709. /*
  1710. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1711. * attributes.
  1712. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1713. */
  1714. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1715. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1716. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1717. /* Unsigned 8-bit value */
  1718. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1719. /* Signed 32-bit value */
  1720. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1721. /* Signed 32-bit value */
  1722. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1723. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1724. */
  1725. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1726. /* keep last */
  1727. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1728. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1729. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1730. };
  1731. enum qca_wlan_vendor_attr_extscan_results {
  1732. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1733. /*
  1734. * Unsigned 32-bit value; must match the request Id supplied by
  1735. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1736. */
  1737. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1738. /*
  1739. * Unsigned 32-bit value; used to indicate the status response from
  1740. * firmware/driver for the vendor sub-command.
  1741. */
  1742. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1743. /*
  1744. * EXTSCAN Valid Channels attributes */
  1745. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1746. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1747. /*
  1748. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1749. * representing channel numbers.
  1750. */
  1751. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1752. /* EXTSCAN Capabilities attributes */
  1753. /* Unsigned 32-bit value */
  1754. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1755. /* Unsigned 32-bit value */
  1756. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1757. /* Unsigned 32-bit value */
  1758. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1759. = 7,
  1760. /* Unsigned 32-bit value */
  1761. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1762. = 8,
  1763. /* Signed 32-bit value */
  1764. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1765. = 9,
  1766. /* Unsigned 32-bit value */
  1767. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1768. /* Unsigned 32-bit value */
  1769. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1770. = 11,
  1771. /* Unsigned 32-bit value */
  1772. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1773. = 12,
  1774. /*
  1775. * EXTSCAN Attributes used with
  1776. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1777. */
  1778. /* Unsigned 32-bit value */
  1779. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1780. /*
  1781. * EXTSCAN attributes used with
  1782. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1783. */
  1784. /*
  1785. * An array of NUM_RESULTS_AVAILABLE x
  1786. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1787. */
  1788. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1789. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1790. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1791. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1792. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1793. /* An array of 6 x unsigned 8-bit value */
  1794. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1795. /* Unsigned 32-bit value; channel frequency in MHz */
  1796. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1797. /* Signed 32-bit value */
  1798. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1799. /* Unsigned 32-bit value */
  1800. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1801. /* Unsigned 32-bit value */
  1802. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1803. /* Unsigned 16-bit value */
  1804. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1805. /* Unsigned 16-bit value */
  1806. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1807. /* Unsigned 32-bit value; size of the IE DATA blob */
  1808. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1809. /*
  1810. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1811. * information elements found in the beacon; this data should be a
  1812. * packed list of wifi_information_element objects, one after the
  1813. * other.
  1814. */
  1815. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1816. /*
  1817. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1818. * available.
  1819. */
  1820. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1821. /*
  1822. * EXTSCAN attributes for
  1823. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1824. */
  1825. /* Unsigned 8-bit value */
  1826. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1827. /* Unsigned 32-bit value */
  1828. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1829. /*
  1830. * EXTSCAN attributes for
  1831. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  1832. */
  1833. /*
  1834. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1835. * to indicate number of results.
  1836. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1837. * list of results.
  1838. */
  1839. /*
  1840. * EXTSCAN attributes for
  1841. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  1842. */
  1843. /* An array of 6 x unsigned 8-bit value */
  1844. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  1845. /* Unsigned 32-bit value */
  1846. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  1847. = 30,
  1848. /* Unsigned 32-bit value. */
  1849. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  1850. = 31,
  1851. /*
  1852. * A nested array of signed 32-bit RSSI values. Size of the array is
  1853. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  1854. */
  1855. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  1856. = 32,
  1857. /*
  1858. * EXTSCAN attributes used with
  1859. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  1860. */
  1861. /*
  1862. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1863. * to indicate number of extscan cached results returned.
  1864. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  1865. * the list of extscan cached results.
  1866. */
  1867. /*
  1868. * An array of NUM_RESULTS_AVAILABLE x
  1869. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  1870. */
  1871. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  1872. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  1873. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  1874. /*
  1875. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  1876. */
  1877. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  1878. /*
  1879. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1880. * to indicate number of wifi scan results/bssids retrieved by the scan.
  1881. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1882. * list of wifi scan results returned for each cached result block.
  1883. */
  1884. /*
  1885. * EXTSCAN attributes for
  1886. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  1887. */
  1888. /*
  1889. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  1890. * number of results.
  1891. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1892. * list of wifi scan results returned for each
  1893. * wifi_passpoint_match_result block.
  1894. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  1895. */
  1896. /*
  1897. * EXTSCAN attributes for
  1898. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  1899. */
  1900. /* Unsigned 32-bit value */
  1901. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  1902. = 36,
  1903. /*
  1904. * A nested array of
  1905. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  1906. * attributes. Array size =
  1907. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  1908. */
  1909. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  1910. /* Unsigned 32-bit value; network block id for the matched network */
  1911. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  1912. /*
  1913. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1914. * list of wifi scan results returned for each
  1915. * wifi_passpoint_match_result block.
  1916. */
  1917. /* Unsigned 32-bit value */
  1918. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  1919. /*
  1920. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  1921. * ANQP data in the information_element format.
  1922. */
  1923. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  1924. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1925. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  1926. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1927. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  1928. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1929. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  1930. = 43,
  1931. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1932. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  1933. = 44,
  1934. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  1935. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  1936. /* keep last */
  1937. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  1938. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  1939. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  1940. };
  1941. /**
  1942. * enum qca_vendor_interop_issues_ap_type - interop issues type
  1943. * This enum defines the valid set of values of interop issues type. These
  1944. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  1945. *
  1946. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  1947. * when the STA's Qpower feature is enabled.
  1948. */
  1949. enum qca_vendor_interop_issues_ap_type {
  1950. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  1951. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  1952. };
  1953. /**
  1954. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  1955. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  1956. *
  1957. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  1958. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  1959. * 32-bit unsigned value, The type defined in enum
  1960. * qca_vendor_interop_issues_ap_type are used.
  1961. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  1962. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  1963. * it is present and mandatory for the command but is not used for
  1964. * the event since only a single BSSID is reported in an event.
  1965. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  1966. * 6-byte MAC address. It is used within the nested
  1967. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  1968. * and without such encapsulation in the event case.
  1969. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  1970. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  1971. */
  1972. enum qca_vendor_attr_interop_issues_ap {
  1973. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  1974. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  1975. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  1976. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  1977. /* keep last */
  1978. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  1979. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  1980. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  1981. };
  1982. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  1983. /**
  1984. * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
  1985. *
  1986. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
  1987. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
  1988. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
  1989. * Aggresive stats gathering
  1990. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
  1991. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
  1992. */
  1993. enum qca_wlan_vendor_attr_ll_stats_set {
  1994. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  1995. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  1996. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
  1997. /* keep last */
  1998. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  1999. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2000. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
  2001. };
  2002. /**
  2003. * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
  2004. *
  2005. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
  2006. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
  2007. * provided by the caller issuing the GET stats command. When reporting
  2008. * the stats results, the driver uses the same value to indicate which
  2009. * GET request the results correspond to.
  2010. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
  2011. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  2012. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  2013. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
  2014. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
  2015. */
  2016. enum qca_wlan_vendor_attr_ll_stats_get {
  2017. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2018. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
  2019. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
  2020. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2021. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2022. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
  2023. };
  2024. /**
  2025. * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
  2026. *
  2027. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
  2028. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
  2029. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
  2030. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  2031. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  2032. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
  2033. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
  2034. */
  2035. enum qca_wlan_vendor_attr_ll_stats_clr {
  2036. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2037. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
  2038. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
  2039. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
  2040. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
  2041. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2042. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2043. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
  2044. };
  2045. /**
  2046. * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
  2047. *
  2048. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
  2049. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
  2050. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
  2051. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
  2052. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
  2053. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
  2054. */
  2055. enum qca_wlan_vendor_attr_ll_stats_results_type {
  2056. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
  2057. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
  2058. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
  2059. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
  2060. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
  2061. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
  2062. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
  2063. };
  2064. enum qca_wlan_vendor_attr_ll_stats_results {
  2065. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2066. /* Unsigned 32bit value. Used by the driver; must match the request id
  2067. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2068. */
  2069. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2070. /* Unsigned 32 bit value */
  2071. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2072. /* Unsigned 32 bit value */
  2073. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2074. /* Unsigned 32 bit value */
  2075. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2076. /* Unsigned 32 bit value */
  2077. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2078. /* Signed 32 bit value */
  2079. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2080. /* Signed 32 bit value */
  2081. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2082. /* Signed 32 bit value */
  2083. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2084. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2085. * nested within the interface stats.
  2086. */
  2087. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2088. * Type = enum wifi_interface_mode.
  2089. */
  2090. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2091. /* Interface MAC address. An array of 6 Unsigned int8 */
  2092. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2093. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2094. * AUTHENTICATING, etc. valid for STA, CLI only.
  2095. */
  2096. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2097. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2098. */
  2099. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2100. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2101. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2102. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2103. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2104. /* BSSID. An array of 6 unsigned 8 bit values */
  2105. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2106. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2107. * values.
  2108. */
  2109. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2110. /* Country string for this association. An array of 3 unsigned 8 bit
  2111. * values.
  2112. */
  2113. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2114. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2115. * be nested within the interface stats.
  2116. */
  2117. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2118. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2119. /* Unsigned int 32 value corresponding to respective AC */
  2120. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2121. /* Unsigned int 32 value corresponding to respective AC */
  2122. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2123. /* Unsigned int 32 value corresponding to respective AC */
  2124. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2125. /* Unsigned int 32 value corresponding to respective AC */
  2126. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2127. /* Unsigned int 32 value corresponding to respective AC */
  2128. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2129. /* Unsigned int 32 value corresponding to respective AC */
  2130. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2131. /* Unsigned int 32 value corresponding to respective AC */
  2132. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2133. /* Unsigned int 32 value corresponding to respective AC */
  2134. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2135. /* Unsigned int 32 value corresponding to respective AC */
  2136. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2137. /* Unsigned int 32 values corresponding to respective AC */
  2138. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2139. /* Unsigned int 32 values corresponding to respective AC */
  2140. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2141. /* Unsigned int 32 values corresponding to respective AC */
  2142. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2143. /* Unsigned int 32 values corresponding to respective AC */
  2144. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2145. /* Unsigned int 32 values corresponding to respective AC */
  2146. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2147. /* Unsigned 32 bit value. Number of peers */
  2148. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2149. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2150. * nested within the interface stats.
  2151. */
  2152. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2153. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2154. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2155. * 8 bit values.
  2156. */
  2157. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2158. /* Unsigned int 32 bit value representing capabilities corresponding
  2159. * to respective peer.
  2160. */
  2161. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2162. /* Unsigned 32 bit value. Number of rates */
  2163. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2164. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2165. * are nested within the rate stat.
  2166. */
  2167. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2168. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2169. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2170. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2171. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2172. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2173. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2174. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2175. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2176. */
  2177. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2178. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2179. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2180. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2181. * nested within the peer info stats.
  2182. */
  2183. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2184. * packets, i.e., with ACK received corresponding to the respective
  2185. * rate.
  2186. */
  2187. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2188. /* Unsigned int 32 bit value. Number of received data packets
  2189. * corresponding to the respective rate.
  2190. */
  2191. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2192. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2193. * received corresponding to the respective rate.
  2194. */
  2195. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2196. /* Unsigned int 32 bit value. Total number of data packet retries for
  2197. * the respective rate.
  2198. */
  2199. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2200. /* Unsigned int 32 bit value. Total number of short data packet retries
  2201. * for the respective rate.
  2202. */
  2203. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2204. /* Unsigned int 32 bit value. Total number of long data packet retries
  2205. * for the respective rate.
  2206. */
  2207. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2208. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2209. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2210. * accruing over time.
  2211. */
  2212. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2213. /* Unsigned 32 bit value. Total number of msecs the radio is
  2214. * transmitting accruing over time.
  2215. */
  2216. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2217. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2218. * receive accruing over time.
  2219. */
  2220. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2221. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2222. * to all scan accruing over time.
  2223. */
  2224. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2225. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2226. * to NAN accruing over time.
  2227. */
  2228. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2229. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2230. * to GSCAN accruing over time.
  2231. */
  2232. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2233. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2234. * to roam scan accruing over time.
  2235. */
  2236. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2237. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2238. * to PNO scan accruing over time.
  2239. */
  2240. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2241. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2242. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2243. */
  2244. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2245. /* Unsigned 32 bit value. Number of channels. */
  2246. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2247. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2248. * be nested within the channel stats.
  2249. */
  2250. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2251. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2252. /* Unsigned 32 bit value. Primary 20 MHz channel. */
  2253. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2254. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2255. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2256. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2257. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2258. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2259. * nested within the radio stats.
  2260. */
  2261. /* Unsigned int 32 bit value representing total number of msecs the
  2262. * radio is awake on that channel accruing over time, corresponding to
  2263. * the respective channel.
  2264. */
  2265. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2266. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2267. * register is busy accruing over time corresponding to the respective
  2268. * channel.
  2269. */
  2270. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2271. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2272. /* Signifies the nested list of channel attributes
  2273. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2274. */
  2275. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2276. /* Signifies the nested list of peer info attributes
  2277. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
  2278. */
  2279. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2280. /* Signifies the nested list of rate info attributes
  2281. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2282. */
  2283. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2284. /* Signifies the nested list of wmm info attributes
  2285. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2286. */
  2287. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2288. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2289. * that more stats, e.g., peers or radio, are to follow in the next
  2290. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2291. * Otherwise, it is set to 0.
  2292. */
  2293. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2294. /* Unsigned 64 bit value */
  2295. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2296. /* Unsigned 32 bit value */
  2297. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2298. /* Unsigned 32 bit value */
  2299. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2300. /* Unsigned 32 bit value */
  2301. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2302. /* Unsigned 32 bit value */
  2303. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2304. /* Unsigned 32 bit value */
  2305. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2306. /* Number of msecs the radio spent in transmitting for each power level
  2307. */
  2308. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2309. /* Unsigned 32 bit value */
  2310. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2311. /* Unsigned 32 bit value */
  2312. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2313. /* Unsigned 32 bit value */
  2314. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2315. /* Unsigned 32 bit value */
  2316. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2317. /* Unsigned int 32 value.
  2318. * Pending MSDUs corresponding to respective AC.
  2319. */
  2320. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2321. /* u32 value representing total time in milliseconds for which the radio
  2322. * is transmitting on this channel. This attribute will be nested
  2323. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2324. */
  2325. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2326. /* u32 value representing total time in milliseconds for which the radio
  2327. * is receiving all 802.11 frames intended for this device on this
  2328. * channel. This attribute will be nested within
  2329. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2330. */
  2331. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2332. /* u8 value representing the channel load percentage. Possible values
  2333. * are 0-100.
  2334. */
  2335. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2336. /* u8 value representing the time slicing duty cycle percentage.
  2337. * Possible values are 0-100.
  2338. */
  2339. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2340. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2341. * from the associated AP and indicate buffered unicast frame(s) for us
  2342. * in the TIM element.
  2343. */
  2344. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2345. /* Unsigned 32 bit value. The total number of Beacon frames received
  2346. * from the associated AP that have wrongly indicated buffered unicast
  2347. * traffic in the TIM element for us.
  2348. * Below scenarios will be considered as wrong TIM element beacon:
  2349. * 1) The related TIM element is set in the beacon for STA but STA
  2350. * doesn’t receive any unicast data after this beacon.
  2351. * 2) The related TIM element is still set in the beacon for STA
  2352. * after STA has indicated power save exit by QoS Null Data frame.
  2353. */
  2354. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2355. /* keep last */
  2356. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2357. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2358. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2359. };
  2360. enum qca_wlan_vendor_attr_ll_stats_type {
  2361. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2362. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2363. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2364. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2365. /* keep last */
  2366. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2367. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2368. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2369. };
  2370. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2371. /**
  2372. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2373. *
  2374. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2375. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2376. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2377. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2378. */
  2379. enum qca_wlan_vendor_attr_get_supported_features {
  2380. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2381. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2382. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2383. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2384. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2385. };
  2386. /**
  2387. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2388. *
  2389. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2390. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2391. * value
  2392. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2393. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2394. */
  2395. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2396. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2397. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2398. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2399. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2400. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2401. };
  2402. /**
  2403. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2404. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2405. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2406. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2407. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2408. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2409. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2410. */
  2411. enum qca_wlan_vendor_scan_priority {
  2412. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2413. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2414. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2415. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2416. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2417. };
  2418. /**
  2419. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2420. *
  2421. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2422. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2423. * with frequencies to be scanned (in MHz)
  2424. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2425. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2426. * rates to be included
  2427. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2428. * at non CCK rate in 2GHz band
  2429. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2430. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2431. * driver for the specific scan request
  2432. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2433. * request decoded as in enum scan_status
  2434. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2435. * scan flag is set
  2436. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2437. * randomisation
  2438. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2439. * specific BSSID to scan for.
  2440. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2441. * microseconds. This is a common value which applies across all
  2442. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2443. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2444. * other scan requests. It is a u32 attribute and takes values from enum
  2445. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2446. * If this attribute is not configured, the driver shall use
  2447. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2448. */
  2449. enum qca_wlan_vendor_attr_scan {
  2450. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2451. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2452. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2453. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2454. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2455. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2456. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2457. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2458. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2459. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2460. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2461. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2462. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2463. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2464. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2465. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2466. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2467. };
  2468. /**
  2469. * enum scan_status - Specifies the valid values the vendor scan attribute
  2470. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2471. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2472. * new scan results
  2473. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2474. */
  2475. enum scan_status {
  2476. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2477. VENDOR_SCAN_STATUS_ABORTED,
  2478. VENDOR_SCAN_STATUS_MAX,
  2479. };
  2480. /**
  2481. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2482. *
  2483. * NL attributes for data used by
  2484. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2485. *
  2486. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2487. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2488. * Unsigned 32-bit value
  2489. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2490. * Unsigned 32-bit value
  2491. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2492. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2493. * combinations
  2494. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2495. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2496. */
  2497. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2498. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2499. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2500. = 1,
  2501. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2502. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2503. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2504. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2505. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2506. };
  2507. /**
  2508. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2509. *
  2510. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2511. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2512. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2513. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2514. */
  2515. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2516. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2517. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2518. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2519. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2520. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2521. };
  2522. /**
  2523. * enum qca_vendor_attr_wisa_cmd
  2524. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2525. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2526. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2527. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2528. * WISA setup vendor commands
  2529. */
  2530. enum qca_vendor_attr_wisa_cmd {
  2531. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2532. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2533. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2534. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2535. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2536. };
  2537. enum qca_roaming_policy {
  2538. QCA_ROAMING_NOT_ALLOWED,
  2539. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2540. };
  2541. /**
  2542. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2543. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2544. *
  2545. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2546. * reasons.
  2547. *
  2548. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2549. * the configured threshold.
  2550. *
  2551. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2552. * beacon misses from the then connected AP.
  2553. *
  2554. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2555. * by the connected AP.
  2556. *
  2557. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2558. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2559. * not poor.
  2560. *
  2561. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2562. * or environment being very noisy / congested.
  2563. *
  2564. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2565. * from the user (user space).
  2566. *
  2567. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2568. * connected AP.
  2569. *
  2570. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2571. * breaching out the configured threshold.
  2572. *
  2573. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2574. * transition request.
  2575. *
  2576. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2577. * there is no data activity with the AP and the current rssi falls below a
  2578. * certain threshold.
  2579. *
  2580. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2581. * deauthentication or disassociation frames received from the connected AP.
  2582. *
  2583. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2584. * scan that happens when there is no candiate AP found during the poor
  2585. * RSSI scan trigger.
  2586. *
  2587. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2588. * results obtained from an external scan (not aimed at roaming).
  2589. *
  2590. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2591. * connection is established when the station is connected in 2.4 Ghz band.
  2592. */
  2593. enum qca_roam_reason {
  2594. QCA_ROAM_REASON_UNKNOWN,
  2595. QCA_ROAM_REASON_PER,
  2596. QCA_ROAM_REASON_BEACON_MISS,
  2597. QCA_ROAM_REASON_POOR_RSSI,
  2598. QCA_ROAM_REASON_BETTER_RSSI,
  2599. QCA_ROAM_REASON_CONGESTION,
  2600. QCA_ROAM_REASON_USER_TRIGGER,
  2601. QCA_ROAM_REASON_BTM,
  2602. QCA_ROAM_REASON_BSS_LOAD,
  2603. QCA_ROAM_REASON_WTC,
  2604. QCA_ROAM_REASON_IDLE,
  2605. QCA_ROAM_REASON_DISCONNECTION,
  2606. QCA_ROAM_REASON_PERIODIC_TIMER,
  2607. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2608. QCA_ROAM_REASON_BT_ACTIVITY,
  2609. };
  2610. /**
  2611. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2612. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP
  2613. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2614. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2615. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2616. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2617. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2618. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2619. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2620. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2621. * Indicates the status of re-association requested by user space for
  2622. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2623. * Type u16.
  2624. * Represents the status code from AP. Use
  2625. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2626. * real status code for failures.
  2627. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2628. * This attribute indicates that the old association was maintained when
  2629. * a re-association is requested by user space and that re-association
  2630. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2631. * remain associated with the BSS with which the association was in
  2632. * place when being requested to roam). Used along with
  2633. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2634. * re-association status. Type flag.
  2635. * This attribute is applicable only for re-association failure cases.
  2636. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2637. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2638. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2639. * seq number
  2640. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2641. * representing the reasons for the roaming. Defined by enum
  2642. * qca_roam_reason.
  2643. */
  2644. enum qca_wlan_vendor_attr_roam_auth {
  2645. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2646. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2647. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2648. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2649. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2650. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2651. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2652. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2653. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2654. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2655. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2656. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2657. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2658. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2659. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  2660. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  2661. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  2662. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  2663. };
  2664. /**
  2665. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  2666. *
  2667. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  2668. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  2669. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  2670. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  2671. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  2672. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  2673. */
  2674. enum qca_wlan_vendor_attr_wifi_config {
  2675. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  2676. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  2677. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  2678. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  2679. /* keep last */
  2680. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  2681. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  2682. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  2683. };
  2684. /**
  2685. * enum qca_wlan_epno_type - the type of request to the EPNO command
  2686. * @QCA_WLAN_EPNO: epno type request
  2687. * @QCA_WLAN_PNO: pno type request
  2688. */
  2689. enum qca_wlan_epno_type {
  2690. QCA_WLAN_EPNO,
  2691. QCA_WLAN_PNO
  2692. };
  2693. /**
  2694. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  2695. *
  2696. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  2697. *
  2698. * NL attributes for data used by
  2699. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  2700. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  2701. * Unsigned 32-bit value; pno passpoint number of networks
  2702. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  2703. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  2704. * attributes. Array size =
  2705. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  2706. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  2707. * Unsigned 32-bit value; network id
  2708. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  2709. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  2710. * realm, 0 if unspecified.
  2711. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  2712. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  2713. * to match, 0 if unspecified.
  2714. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  2715. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  2716. * unspecified.
  2717. *
  2718. * NL attributes for data used by
  2719. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  2720. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  2721. * Unsigned 32-bit value; set pno number of networks
  2722. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  2723. * Array of nested
  2724. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  2725. * attributes. Array size =
  2726. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  2727. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  2728. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  2729. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  2730. * Signed 8-bit value; threshold for considering this SSID as found,
  2731. * required granularity for this threshold is 4dBm to 8dBm
  2732. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  2733. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  2734. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  2735. * Unsigned 8-bit value; auth bit field for matching WPA IE
  2736. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  2737. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  2738. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  2739. * Nested attribute to send the channel list
  2740. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  2741. * Unsigned 32-bit value; indicates the Interval between PNO scan
  2742. * cycles in msec
  2743. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  2744. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  2745. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  2746. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  2747. * This attribute is obsolete now.
  2748. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  2749. * Signed 32-bit value; the maximum score that a network
  2750. * can have before bonuses
  2751. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  2752. * Signed 32-bit value; only report when there is a network's
  2753. * score this much higher han the current connection
  2754. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  2755. * Signed 32-bit value; score bonus for all networks with
  2756. * the same network flag
  2757. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  2758. * Signed 32-bit value; score bonus for networks that are not open
  2759. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  2760. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  2761. * 5GHz networks
  2762. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  2763. * Unsigned 32-bit value, representing the PNO Request ID
  2764. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  2765. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  2766. */
  2767. enum qca_wlan_vendor_attr_pno_config_params {
  2768. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  2769. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  2770. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  2771. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  2772. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  2773. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  2774. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  2775. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  2776. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  2777. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  2778. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  2779. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  2780. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  2781. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  2782. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  2783. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  2784. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  2785. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  2786. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  2787. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  2788. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  2789. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  2790. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  2791. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  2792. /* keep last */
  2793. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  2794. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  2795. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  2796. };
  2797. /**
  2798. * enum qca_scan_freq_list_type: Frequency list types
  2799. *
  2800. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  2801. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2802. * a preferred frequency list for roaming.
  2803. *
  2804. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  2805. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2806. * a specific frequency list for roaming.
  2807. */
  2808. enum qca_scan_freq_list_type {
  2809. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  2810. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  2811. };
  2812. /**
  2813. * enum qca_roam_scan_scheme: scan scheme
  2814. *
  2815. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  2816. * Indicates the driver to not scan on a Roam Trigger scenario, but
  2817. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  2818. * disconnect from the current connected AP by notifying a failure
  2819. * code in the BTM response.
  2820. *
  2821. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  2822. * trigger partial frequency scans. These frequencies are the ones learnt
  2823. * or maintained by the driver based on the probability of finding the
  2824. * BSSID's in the ESS for which the roaming is triggered.
  2825. *
  2826. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  2827. * trigger the scan on all the valid frequencies to find the better
  2828. * candidates to roam.
  2829. */
  2830. enum qca_roam_scan_scheme {
  2831. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  2832. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  2833. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  2834. };
  2835. /**
  2836. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  2837. *
  2838. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  2839. * List of frequencies in MHz to be considered for a roam scan.
  2840. *
  2841. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  2842. * Type of frequency list scheme being configured/gotten as defined by the
  2843. * enum qca_scan_freq_list_type.
  2844. */
  2845. enum qca_vendor_attr_scan_freq_list_scheme {
  2846. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  2847. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  2848. /* keep last */
  2849. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  2850. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  2851. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  2852. };
  2853. /*
  2854. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  2855. *
  2856. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  2857. * a bad packet error rates (PER).
  2858. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  2859. * based on beacon misses from the connected AP.
  2860. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  2861. * due to poor RSSI of the connected AP.
  2862. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  2863. * upon finding a BSSID with a better RSSI than the connected BSSID.
  2864. * Here the RSSI of the current BSSID need not be poor.
  2865. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  2866. * by triggering a periodic scan to find a better AP to roam.
  2867. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  2868. * when the connected channel environment is too noisy/congested.
  2869. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  2870. * when BTM Request frame is received from the connected AP.
  2871. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  2872. * when the channel utilization is goes above the configured threshold.
  2873. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  2874. * based on the request from the user (space).
  2875. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  2876. * device receives Deauthentication/Disassociation frame from connected
  2877. * AP.
  2878. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  2879. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  2880. * is determined to be a poor one.
  2881. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  2882. * based on continuous TX Data Frame failures to the connected AP.
  2883. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  2884. * based on the scan results obtained from an external scan (not
  2885. * triggered to aim roaming)
  2886. *
  2887. * Set the corresponding roam trigger reason bit to consider it for roam
  2888. * trigger.
  2889. * Userspace can set multiple bits and send to the driver. The driver shall
  2890. * consider all of them to trigger/initiate a roam scan.
  2891. */
  2892. enum qca_vendor_roam_triggers {
  2893. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  2894. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  2895. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  2896. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  2897. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  2898. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  2899. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  2900. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  2901. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  2902. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  2903. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  2904. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  2905. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  2906. };
  2907. /*
  2908. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  2909. * fail reasons. This enum value is used in
  2910. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  2911. *
  2912. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  2913. * able to trigger the scan.
  2914. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  2915. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  2916. * scan.
  2917. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  2918. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  2919. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  2920. * status code.
  2921. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  2922. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  2923. * frame.
  2924. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  2925. * with error status code.
  2926. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  2927. * received.
  2928. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  2929. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  2930. * frame.
  2931. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  2932. * internally before transmission.
  2933. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  2934. * Request frame.
  2935. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  2936. * dropped internally.
  2937. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  2938. * times out.
  2939. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  2940. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  2941. * internally.
  2942. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  2943. * M2 frame.
  2944. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  2945. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  2946. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  2947. * internally.
  2948. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  2949. * frame.
  2950. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  2951. * started for final beacon miss case.
  2952. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  2953. * received from the AP during roaming handoff.
  2954. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  2955. * or host is suspended and gives the indication of the last roamed AP only
  2956. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  2957. * progress, this ongoing roaming is aborted and the last roamed AP is
  2958. * indicated to host.
  2959. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  2960. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  2961. * out.
  2962. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  2963. */
  2964. enum qca_vendor_roam_fail_reasons {
  2965. QCA_ROAM_FAIL_REASON_NONE = 0,
  2966. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  2967. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  2968. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  2969. QCA_ROAM_FAIL_REASON_HOST = 4,
  2970. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  2971. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  2972. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  2973. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  2974. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  2975. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  2976. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  2977. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  2978. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  2979. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  2980. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  2981. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  2982. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  2983. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  2984. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  2985. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  2986. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  2987. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  2988. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  2989. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  2990. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  2991. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  2992. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  2993. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  2994. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  2995. };
  2996. /*
  2997. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  2998. * invoke fail reasons. This enum value is used in
  2999. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3000. *
  3001. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3002. * in roam invoke command.
  3003. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3004. * enabled.
  3005. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3006. * length is invalid.
  3007. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3008. * in progress.
  3009. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3010. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3011. * firmware when the given AP is configured to be ignored or SSID/security
  3012. * does not match.
  3013. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3014. * firmware internal reasons.
  3015. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3016. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3017. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3018. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3019. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3020. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3021. */
  3022. enum qca_vendor_roam_invoke_fail_reasons {
  3023. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3024. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3025. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3026. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3027. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3028. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3029. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3030. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3031. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3032. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3033. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3034. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3035. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3036. };
  3037. /**
  3038. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3039. *
  3040. * Each attribute carries a weightage in percentage (%).
  3041. *
  3042. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3043. * Represents the weightage to be given for the RSSI selection
  3044. * criteria among other parameters.
  3045. *
  3046. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3047. * Represents the weightage to be given for the rate selection
  3048. * criteria among other parameters.
  3049. *
  3050. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3051. * Represents the weightage to be given for the band width selection
  3052. * criteria among other parameters.
  3053. *
  3054. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3055. * Represents the weightage to be given for the band selection
  3056. * criteria among other parameters.
  3057. *
  3058. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3059. * Represents the weightage to be given for the NSS selection
  3060. * criteria among other parameters.
  3061. *
  3062. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3063. * Represents the weightage to be given for the channel congestion
  3064. * selection criteria among other parameters.
  3065. *
  3066. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3067. * Represents the weightage to be given for the beamforming selection
  3068. * criteria among other parameters.
  3069. *
  3070. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3071. * Represents the weightage to be given for the OCE selection
  3072. * criteria among other parameters.
  3073. */
  3074. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3075. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3076. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3077. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3078. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3079. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3080. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3081. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3082. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3083. /* keep last */
  3084. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3085. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3086. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3087. };
  3088. /**
  3089. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3090. * The following attributes are used to set/get/clear the respective
  3091. * configurations to/from the driver.
  3092. * For the get, the attribute for the configuration to be queried shall
  3093. * carry any of its acceptable values to the driver. In return, the driver
  3094. * shall send the configured values within the same attribute to the user
  3095. * space.
  3096. *
  3097. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3098. * Signifies to enable/disable roam control in driver.
  3099. * 1-enable, 0-disable
  3100. * Enable: Mandates the driver to do the further roams using the
  3101. * configuration parameters set through
  3102. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3103. * Disable: Disables the driver/firmware roaming triggered through
  3104. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3105. * expected to continue with the default configurations.
  3106. *
  3107. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3108. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3109. * Roam control status is obtained through this attribute.
  3110. *
  3111. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3112. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3113. * is to be cleared in the driver.
  3114. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3115. * and shall be ignored if used with other sub commands.
  3116. * If this attribute is specified along with subcmd
  3117. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3118. * all other attributes, if there are any.
  3119. * If this attribute is not specified when the subcmd
  3120. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3121. * clear the data corresponding to the attributes specified.
  3122. *
  3123. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3124. * list of frequencies and its type, represented by
  3125. * enum qca_vendor_attr_scan_freq_list_scheme.
  3126. * Frequency list and its type are mandatory for this attribute to set
  3127. * the frequencies.
  3128. * Frequency type is mandatory for this attribute to get the frequencies
  3129. * and the frequency list is obtained through
  3130. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3131. * Frequency list type is mandatory for this attribute to clear the
  3132. * frequencies.
  3133. *
  3134. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3135. * Carries the value of scan period in seconds to set.
  3136. * The value of scan period is obtained with the same attribute for get.
  3137. * Clears the scan period in the driver when specified with clear command.
  3138. * Scan period is the idle time in seconds between each subsequent
  3139. * channel scans.
  3140. *
  3141. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3142. * Carries the value of full scan period in seconds to set.
  3143. * The value of full scan period is obtained with the same attribute for
  3144. * get.
  3145. * Clears the full scan period in the driver when specified with clear
  3146. * command. Full scan period is the idle period in seconds between two
  3147. * successive full channel roam scans.
  3148. *
  3149. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3150. * Carries a bitmap of the roam triggers specified in
  3151. * enum qca_vendor_roam_triggers.
  3152. * The driver shall enable roaming by enabling corresponding roam triggers
  3153. * based on the trigger bits sent with this attribute.
  3154. * If this attribute is not configured, the driver shall proceed with
  3155. * default behavior.
  3156. * The bitmap configured is obtained with the same attribute for get.
  3157. * Clears the bitmap configured in driver when specified with clear
  3158. * command.
  3159. *
  3160. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3161. * weightage in percentage (%) to be given for each selection criteria.
  3162. * Different roam candidate selection criteria are represented by
  3163. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3164. * The driver shall select the roam candidate based on corresponding
  3165. * candidate selection scores sent.
  3166. *
  3167. * An empty nested attribute is used to indicate that no specific
  3168. * preference score/criteria is configured (i.e., to disable this mechanism
  3169. * in the set case and to show that the mechanism is disabled in the get
  3170. * case).
  3171. *
  3172. * Userspace can send multiple attributes out of this enum to the driver.
  3173. * Since this attribute represents the weight/percentage of preference for
  3174. * the respective selection criteria, it is preferred to configure 100%
  3175. * total weightage. The value in each attribute or cumulative weight of the
  3176. * values in all the nested attributes should not exceed 100%. The driver
  3177. * shall reject such configuration.
  3178. *
  3179. * If the weights configured through this attribute are less than 100%,
  3180. * the driver shall honor the weights (x%) passed for the corresponding
  3181. * selection criteria and choose/distribute rest of the weight (100-x)%
  3182. * for the other selection criteria, based on its internal logic.
  3183. *
  3184. * The selection criteria configured is obtained with the same
  3185. * attribute for get.
  3186. *
  3187. * Clears the selection criteria configured in the driver when specified
  3188. * with clear command.
  3189. *
  3190. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3191. * Represents value of scan frequency scheme from
  3192. * enum qca_roam_scan_scheme.
  3193. *
  3194. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3195. * signifying the RSSI threshold of the current connected AP, indicating
  3196. * the driver to trigger roam only when the current connected AP's RSSI
  3197. * is lesser than this threshold.
  3198. *
  3199. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3200. * signifying the RSSI threshold of the candidate AP, indicating
  3201. * the driver to trigger roam only to the candidate AP with RSSI
  3202. * better than this threshold. If RSSI thresholds for candidate APs found
  3203. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3204. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3205. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3206. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3207. * will take precedence over the value configured using
  3208. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3209. *
  3210. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3211. * user triggered reason code to be sent to the AP in response to AP's
  3212. * request to trigger the roam if the roaming cannot be triggered.
  3213. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3214. *
  3215. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3216. * Carries a bitmap of the roam triggers specified in
  3217. * enum qca_vendor_roam_triggers.
  3218. * Represents the roam triggers for which the specific scan scheme from
  3219. * enum qca_roam_scan_scheme has to be applied.
  3220. * It's an optional attribute. If this attribute is not configured, but
  3221. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3222. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3223. * all the roams.
  3224. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3225. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3226. * driver shall proceed with the default behavior.
  3227. *
  3228. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3229. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3230. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3231. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3232. * threshold. Optional attribute. If this attribute is not included, then
  3233. * threshold value specified by the
  3234. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3235. *
  3236. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3237. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3238. * band. The driver/firmware shall trigger roaming to the candidate AP
  3239. * found in 5GHz band only if it's RSSI value is better than this
  3240. * threshold. Optional attribute. If this attribute is not included, then
  3241. * threshold value specified by the
  3242. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3243. *
  3244. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3245. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3246. * band. The driver/firmware shall trigger roaming to the candidate AP
  3247. * found in 6GHz band only if it's RSSI value is better than this
  3248. * threshold. Optional attribute. If this attribute is not included, then
  3249. * threshold value specified by the
  3250. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3251. *
  3252. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3253. * Carries bitmask value of bits from &enum qca_set_band and represents
  3254. * all the bands in which roaming is allowed. The configuration is valid
  3255. * until next disconnection. If this attribute is not present, the
  3256. * existing configuration shall be used. By default, roaming is allowed
  3257. * on all bands supported by local device. When the value is set to
  3258. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3259. *
  3260. */
  3261. enum qca_vendor_attr_roam_control {
  3262. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3263. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3264. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3265. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3266. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3267. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3268. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3269. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3270. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3271. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3272. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3273. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3274. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3275. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3276. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3277. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3278. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3279. /* keep last */
  3280. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3281. QCA_ATTR_ROAM_CONTROL_MAX =
  3282. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3283. };
  3284. /**
  3285. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3286. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3287. *
  3288. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3289. * Represents the different roam sub commands referred by
  3290. * enum qca_wlan_vendor_roaming_subcmd.
  3291. *
  3292. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3293. * Represents the Request ID for the specific set of commands.
  3294. * This also helps to map specific set of commands to the respective
  3295. * ID / client. e.g., helps to identify the user entity configuring the
  3296. * Blacklist BSSID and accordingly clear the respective ones with the
  3297. * matching ID.
  3298. *
  3299. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3300. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3301. *
  3302. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3303. * to carry the list of Whitelist SSIDs.
  3304. *
  3305. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3306. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3307. * represent the list of SSIDs to which the firmware/driver can consider
  3308. * to roam to.
  3309. *
  3310. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3311. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3312. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3313. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3314. *
  3315. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3316. * value, RSSI threshold above which 5GHz RSSI is favored.
  3317. *
  3318. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3319. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3320. *
  3321. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3322. * value, factor by which 5GHz RSSI is boosted.
  3323. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3324. *
  3325. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3326. * value, factor by which 5GHz RSSI is penalized.
  3327. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3328. *
  3329. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3330. * value, maximum boost that can be applied to a 5GHz RSSI.
  3331. *
  3332. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3333. * value, boost applied to current BSSID to ensure the currently
  3334. * associated BSSID is favored so as to prevent ping-pong situations.
  3335. *
  3336. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3337. * value, RSSI below which "Alert" roam is enabled.
  3338. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3339. * because the RSSI is low, or because many successive beacons have been
  3340. * lost or other bad link conditions.
  3341. *
  3342. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3343. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3344. * firmware is hunting for a better BSSID or white listed SSID even though
  3345. * the RSSI of the link is good. The parameters enabling the roaming are
  3346. * configured through the PARAM_A_BAND_XX attrbutes.
  3347. *
  3348. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3349. * represents the BSSIDs preferred over others while evaluating them
  3350. * for the roaming.
  3351. *
  3352. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3353. * 32-bit value. Represents the number of preferred BSSIDs set.
  3354. *
  3355. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3356. * address representing the BSSID to be preferred.
  3357. *
  3358. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3359. * 32-bit value, representing the modifier to be applied to the RSSI of
  3360. * the BSSID for the purpose of comparing it with other roam candidate.
  3361. *
  3362. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3363. * represents the BSSIDs to get blacklisted for roaming.
  3364. *
  3365. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3366. * 32-bit value, represents the number of blacklisted BSSIDs.
  3367. *
  3368. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3369. * address representing the Blacklisted BSSID.
  3370. *
  3371. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3372. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3373. * select this BSSID in the worst case (when no other BSSIDs are better).
  3374. *
  3375. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3376. * set/get/clear the roam control config as
  3377. * defined @enum qca_vendor_attr_roam_control.
  3378. *
  3379. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3380. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3381. */
  3382. enum qca_wlan_vendor_attr_roaming_config_params {
  3383. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3384. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3385. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3386. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3387. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3388. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3389. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3390. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3391. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3392. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3393. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3394. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3395. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3396. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3397. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3398. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3399. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3400. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3401. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3402. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3403. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3404. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3405. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3406. /* keep last */
  3407. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3408. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3409. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3410. };
  3411. /**
  3412. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3413. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3414. *
  3415. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3416. * configure the white list SSIDs. These are configured through
  3417. * the following attributes.
  3418. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3419. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3420. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3421. *
  3422. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3423. * configure the Roam params. These parameters are evaluated on the extscan
  3424. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3425. * params.
  3426. *
  3427. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3428. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3429. * to enable/disable Lazy roam.
  3430. *
  3431. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3432. * preference. Contains the attribute
  3433. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3434. * preference.
  3435. *
  3436. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3437. *
  3438. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3439. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3440. * set the same.
  3441. *
  3442. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3443. * roam control config to the driver with the attribute
  3444. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3445. *
  3446. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3447. * roam control config from driver with the attribute
  3448. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3449. * For the get, the attribute for the configuration to be queried shall
  3450. * carry any of its acceptable value to the driver. In return, the driver
  3451. * shall send the configured values within the same attribute to the user
  3452. * space.
  3453. *
  3454. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3455. * roam control config in the driver with the attribute
  3456. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3457. * The driver shall continue with its default roaming behavior when data
  3458. * corresponding to an attribute is cleared.
  3459. */
  3460. enum qca_wlan_vendor_roaming_subcmd {
  3461. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3462. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3463. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3464. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3465. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3466. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3467. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3468. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3469. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3470. };
  3471. /**
  3472. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3473. *
  3474. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3475. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3476. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3477. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3478. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3479. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3480. */
  3481. enum qca_wlan_vendor_attr_get_wifi_info {
  3482. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3483. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3484. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3485. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3486. /* KEEP LAST */
  3487. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3488. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3489. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3490. };
  3491. enum qca_wlan_vendor_attr_logger_results {
  3492. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3493. /*
  3494. * Unsigned 32-bit value; must match the request Id supplied by
  3495. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3496. */
  3497. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3498. /*
  3499. * Unsigned 32-bit value; used to indicate the size of memory
  3500. * dump to be allocated.
  3501. */
  3502. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3503. /* keep last */
  3504. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3505. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3506. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3507. };
  3508. /**
  3509. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3510. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3511. */
  3512. enum qca_wlan_vendor_channel_prop_flags {
  3513. /* Bits 0, 1, 2, and 3 are reserved */
  3514. /* Turbo channel */
  3515. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3516. /* CCK channel */
  3517. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3518. /* OFDM channel */
  3519. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3520. /* 2.4 GHz spectrum channel. */
  3521. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3522. /* 5 GHz spectrum channel */
  3523. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3524. /* Only passive scan allowed */
  3525. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3526. /* Dynamic CCK-OFDM channel */
  3527. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3528. /* GFSK channel (FHSS PHY) */
  3529. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3530. /* Radar found on channel */
  3531. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3532. /* 11a static turbo channel only */
  3533. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3534. /* Half rate channel */
  3535. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3536. /* Quarter rate channel */
  3537. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3538. /* HT 20 channel */
  3539. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3540. /* HT 40 with extension channel above */
  3541. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3542. /* HT 40 with extension channel below */
  3543. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3544. /* HT 40 intolerant */
  3545. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3546. /* VHT 20 channel */
  3547. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3548. /* VHT 40 with extension channel above */
  3549. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3550. /* VHT 40 with extension channel below */
  3551. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3552. /* VHT 80 channel */
  3553. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3554. /* HT 40 intolerant mark bit for ACS use */
  3555. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3556. /* Channel temporarily blocked due to noise */
  3557. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3558. /* VHT 160 channel */
  3559. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3560. /* VHT 80+80 channel */
  3561. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3562. /* HE 20 channel */
  3563. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3564. /* HE 40 with extension channel above */
  3565. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3566. /* HE 40 with extension channel below */
  3567. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3568. /* HE 40 intolerant */
  3569. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
  3570. };
  3571. /**
  3572. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3573. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3574. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  3575. */
  3576. enum qca_wlan_vendor_channel_prop_flags_2 {
  3577. /* HE 40 intolerant mark bit for ACS use */
  3578. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  3579. /* HE 80 channel */
  3580. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  3581. /* HE 160 channel */
  3582. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  3583. /* HE 80+80 channel */
  3584. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  3585. };
  3586. /**
  3587. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  3588. * each channel. This is used by
  3589. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  3590. */
  3591. enum qca_wlan_vendor_channel_prop_flags_ext {
  3592. /* Radar found on channel */
  3593. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  3594. /* DFS required on channel */
  3595. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  3596. /* DFS required on channel for 2nd band of 80+80 */
  3597. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  3598. /* If channel has been checked for DFS */
  3599. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  3600. /* Excluded in 802.11d */
  3601. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  3602. /* Channel Switch Announcement received on this channel */
  3603. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  3604. /* Ad-hoc is not allowed */
  3605. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  3606. /* Station only channel */
  3607. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  3608. /* DFS radar history for slave device (STA mode) */
  3609. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  3610. /* DFS CAC valid for slave device (STA mode) */
  3611. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  3612. };
  3613. /**
  3614. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  3615. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  3616. * information to start/stop the NUD statistics collection.
  3617. */
  3618. enum qca_attr_nud_stats_set {
  3619. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  3620. /*
  3621. * Flag to start/stop the NUD statistics collection.
  3622. * Start - If included, Stop - If not included
  3623. */
  3624. QCA_ATTR_NUD_STATS_SET_START = 1,
  3625. /* IPv4 address of the default gateway (in network byte order) */
  3626. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  3627. /*
  3628. * Represents the data packet type to be monitored.
  3629. * Host driver tracks the stats corresponding to each data frame
  3630. * represented by these flags.
  3631. * These data packets are represented by
  3632. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  3633. */
  3634. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  3635. /* keep last */
  3636. QCA_ATTR_NUD_STATS_SET_LAST,
  3637. QCA_ATTR_NUD_STATS_SET_MAX =
  3638. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  3639. };
  3640. /**
  3641. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  3642. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3643. * information to start / stop the NUD stats collection.
  3644. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  3645. * Bitmap to Flag to Start / Stop the NUD stats collection
  3646. * Start - If included , Stop - If not included
  3647. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
  3648. * IPv4 address of Default Gateway (in network byte order)
  3649. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3650. * information to start / stop the NUD stats collection.
  3651. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  3652. * Flag to Start / Stop the NUD stats collection
  3653. * Start - If included , Stop - If not included
  3654. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
  3655. * IPv4 address of Default Gateway (in network byte order)
  3656. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3657. * information to start / stop the NUD stats collection.
  3658. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  3659. * Flag to Start / Stop the NUD stats collection
  3660. * Start - If included , Stop - If not included
  3661. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
  3662. * IPv4 address of Default Gateway (in network byte order)
  3663. */
  3664. enum qca_attr_connectivity_check_stats_set {
  3665. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  3666. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  3667. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  3668. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  3669. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  3670. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  3671. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  3672. /* keep last */
  3673. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  3674. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  3675. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  3676. };
  3677. /**
  3678. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  3679. * data types for which the stats have to get collected.
  3680. */
  3681. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  3682. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  3683. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  3684. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  3685. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  3686. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  3687. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  3688. * to represent the stats of respective data type.
  3689. */
  3690. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  3691. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  3692. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  3693. };
  3694. enum qca_attr_connectivity_check_stats {
  3695. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  3696. /* Data packet type for which the stats are collected.
  3697. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  3698. */
  3699. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  3700. /* ID corresponding to the DNS frame for which the respective DNS stats
  3701. * are monitored (u32).
  3702. */
  3703. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  3704. /* source / destination port on which the respective proto stats are
  3705. * collected (u32).
  3706. */
  3707. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  3708. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  3709. /* IPv4/IPv6 address for which the destined data packets are
  3710. * monitored. (in network byte order)
  3711. */
  3712. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  3713. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  3714. /* Data packet Request count received from netdev */
  3715. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  3716. /* Data packet Request count sent to lower MAC from upper MAC */
  3717. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  3718. /* Data packet Request count received by lower MAC from upper MAC */
  3719. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  3720. /* Data packet Request count successfully transmitted by the device */
  3721. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  3722. /* Data packet Response count received by lower MAC */
  3723. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  3724. /* Data packet Response count received by upper MAC */
  3725. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  3726. /* Data packet Response count delivered to netdev */
  3727. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  3728. /* Data Packet Response count that are dropped out of order */
  3729. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  3730. /* keep last */
  3731. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  3732. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  3733. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  3734. };
  3735. /**
  3736. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  3737. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  3738. * NUD statistics collected when queried.
  3739. */
  3740. enum qca_attr_nud_stats_get {
  3741. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  3742. /* ARP Request count from netdev */
  3743. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  3744. /* ARP Request count sent to lower MAC from upper MAC */
  3745. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  3746. /* ARP Request count received by lower MAC from upper MAC */
  3747. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  3748. /* ARP Request count successfully transmitted by the device */
  3749. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  3750. /* ARP Response count received by lower MAC */
  3751. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  3752. /* ARP Response count received by upper MAC */
  3753. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  3754. /* ARP Response count delivered to netdev */
  3755. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  3756. /* ARP Response count delivered to netdev */
  3757. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  3758. /*
  3759. * Flag indicating if the station's link to the AP is active.
  3760. * Active Link - If included, Inactive link - If not included
  3761. */
  3762. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  3763. /*
  3764. * Flag indicating if there is any duplicate address detected (DAD).
  3765. * Yes - If detected, No - If not detected.
  3766. */
  3767. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  3768. /*
  3769. * List of Data types for which the stats are requested.
  3770. * This list does not carry ARP stats as they are done by the
  3771. * above attributes. Represented by enum qca_attr_nud_data_stats.
  3772. */
  3773. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  3774. /* keep last */
  3775. QCA_ATTR_NUD_STATS_GET_LAST,
  3776. QCA_ATTR_NUD_STATS_GET_MAX =
  3777. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  3778. };
  3779. enum qca_wlan_btm_candidate_status {
  3780. QCA_STATUS_ACCEPT = 0,
  3781. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  3782. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  3783. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  3784. QCA_STATUS_REJECT_LOW_RSSI = 4,
  3785. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  3786. QCA_STATUS_REJECT_UNKNOWN = 6,
  3787. };
  3788. enum qca_wlan_vendor_attr_btm_candidate_info {
  3789. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  3790. /* 6-byte MAC address representing the BSSID of transition candidate */
  3791. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  3792. /*
  3793. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  3794. * returned by the driver. It says whether the BSSID provided in
  3795. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  3796. * the driver, if not it specifies the reason for rejection.
  3797. * Note that the user-space can overwrite the transition reject reason
  3798. * codes provided by driver based on more information.
  3799. */
  3800. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  3801. /* keep last */
  3802. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  3803. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  3804. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  3805. };
  3806. enum qca_attr_trace_level {
  3807. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  3808. /*
  3809. * Nested array of the following attributes:
  3810. * QCA_ATTR_TRACE_LEVEL_MODULE,
  3811. * QCA_ATTR_TRACE_LEVEL_MASK.
  3812. */
  3813. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  3814. /*
  3815. * Specific QCA host driver module. Please refer to the QCA host
  3816. * driver implementation to get the specific module ID.
  3817. */
  3818. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  3819. /* Different trace level masks represented in the QCA host driver. */
  3820. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  3821. /* keep last */
  3822. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  3823. QCA_ATTR_TRACE_LEVEL_MAX =
  3824. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  3825. };
  3826. /**
  3827. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  3828. * supported features
  3829. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  3830. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  3831. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  3832. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  3833. *
  3834. * enum values are used for NL attributes for data used by
  3835. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  3836. */
  3837. enum qca_wlan_vendor_attr_get_logger_features {
  3838. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  3839. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  3840. /* keep last */
  3841. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  3842. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  3843. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  3844. };
  3845. /**
  3846. * enum qca_wlan_vendor_attr_link_properties - link properties
  3847. *
  3848. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  3849. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  3850. * specify the number of spatial streams negotiated
  3851. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  3852. * to specify negotiated rate flags i.e. ht, vht and channel width
  3853. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  3854. * specify the operating frequency
  3855. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  3856. * (STA / AP ) for the connected link.
  3857. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  3858. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  3859. * address of the peer represented by
  3860. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  3861. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  3862. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  3863. */
  3864. enum qca_wlan_vendor_attr_link_properties {
  3865. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  3866. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  3867. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  3868. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  3869. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  3870. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  3871. /* KEEP LAST */
  3872. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  3873. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  3874. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  3875. };
  3876. /**
  3877. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  3878. *
  3879. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  3880. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  3881. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  3882. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  3883. *
  3884. * enum values are used for NL attributes for data used by
  3885. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  3886. */
  3887. enum qca_wlan_vendor_attr_nd_offload {
  3888. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  3889. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  3890. /* Keep last */
  3891. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  3892. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  3893. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  3894. };
  3895. /**
  3896. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  3897. *
  3898. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  3899. * management offload, a mechanism where the station's firmware
  3900. * does the exchange with the AP to establish the temporal keys
  3901. * after roaming, rather than having the user space wpa_supplicant do it.
  3902. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  3903. * band selection based on channel selection results.
  3904. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  3905. * simultaneous off-channel operations.
  3906. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  3907. * Listen offload; a mechanism where the station's firmware takes care of
  3908. * responding to incoming Probe Request frames received from other P2P
  3909. * Devices whilst in Listen state, rather than having the user space
  3910. * wpa_supplicant do it. Information from received P2P requests are
  3911. * forwarded from firmware to host whenever the host processor wakes up.
  3912. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  3913. * specific features.
  3914. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  3915. * features.
  3916. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  3917. * specific features only. If a Device sets this bit but not the
  3918. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  3919. * this Device may not support all OCE AP functionalities but can support
  3920. * only OCE STA-CFON functionalities.
  3921. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  3922. * managed regulatory.
  3923. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  3924. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  3925. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  3926. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  3927. * and applying thermal configuration through
  3928. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  3929. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  3930. * userspace.
  3931. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  3932. * With Adaptive 11r feature, access points advertise the vendor
  3933. * specific IEs and MDE but do not include FT AKM in the RSNE.
  3934. * The Adaptive 11r supported stations are expected to identify
  3935. * such vendor specific IEs and connect to the AP in FT mode though
  3936. * the profile is configured in non-FT mode.
  3937. * The driver-based SME cases also need to have this support for
  3938. * Adaptive 11r to handle the connection and roaming scenarios.
  3939. * This flag indicates the support for the same to the user space.
  3940. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  3941. * concurrent network sessions on different Wi-Fi Bands. This feature
  3942. * capability is attributed to the hardware's capability to support
  3943. * the same (e.g., DBS).
  3944. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  3945. * responses for the respective TWT operations are asynchronous (separate)
  3946. * event message) from the driver. If not specified, the responses are
  3947. * synchronous (in vendor command reply) to the request. Each TWT
  3948. * operation is specifically mentioned (against its respective)
  3949. * documentation) to support either of these or both modes.
  3950. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  3951. * that the driver requires add/del virtual interface path using the
  3952. * generic nl80211 commands for NDP interface create/delete and to
  3953. * register/unregister the netdev instead of creating/deleting the NDP
  3954. * interface using the vendor commands
  3955. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  3956. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  3957. * (5.12 version onward), interface creation/deletion is not allowed using
  3958. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  3959. * during the register/unregister of netdev. Create and delete NDP
  3960. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  3961. * commands respectively if the driver advertises this capability set.
  3962. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  3963. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  3964. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  3965. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  3966. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  3967. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  3968. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  3969. * station mode supports secure RTT measurement exchange. If
  3970. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  3971. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  3972. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  3973. * mode supports secure RTT measurement exchange. If
  3974. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  3975. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  3976. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  3977. * the device in station mode supports protection of range negotiation and
  3978. * measurement management frames. If
  3979. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  3980. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  3981. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  3982. * the device in AP mode supports protection of range negotiation and
  3983. * measurement management frames. If
  3984. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  3985. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  3986. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  3987. */
  3988. enum qca_wlan_vendor_features {
  3989. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  3990. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  3991. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  3992. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  3993. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  3994. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  3995. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  3996. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  3997. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  3998. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  3999. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4000. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4001. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4002. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4003. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4004. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4005. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4006. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4007. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4008. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4009. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4010. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4011. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4012. };
  4013. /**
  4014. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4015. * conditional channel switch
  4016. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4017. * value
  4018. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4019. * frequency list (an array of u32 values in host byte order)
  4020. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4021. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4022. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4023. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4024. */
  4025. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4026. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4027. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4028. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4029. /* Keep Last */
  4030. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4031. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4032. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4033. };
  4034. /**
  4035. * enum wifi_logger_supported_features - values for supported logger features
  4036. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4037. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4038. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4039. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4040. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4041. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4042. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4043. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4044. */
  4045. enum wifi_logger_supported_features {
  4046. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4047. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4048. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4049. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4050. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4051. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4052. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4053. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4054. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4055. };
  4056. /**
  4057. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4058. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4059. *
  4060. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4061. * Used with event to notify the primary channel number selected in ACS
  4062. * operation.
  4063. * Note: If both the driver and user-space application supports the 6 GHz band,
  4064. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4065. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4066. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4067. * is still used if either of the driver or user space application doesn't
  4068. * support the 6 GHz band.
  4069. *
  4070. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4071. * Used with event to notify the secondary channel number selected in ACS
  4072. * operation.
  4073. * Note: If both the driver and user-space application supports the 6 GHz band,
  4074. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4075. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4076. * To maintain backward compatibility,
  4077. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4078. * the driver or user space application doesn't support 6 GHz band.
  4079. *
  4080. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4081. * (a) Used with command to configure hw_mode from
  4082. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4083. * (b) Also used with event to notify the hw_mode of selected primary channel
  4084. * in ACS operation.
  4085. *
  4086. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4087. * Used with command to configure ACS operation for HT mode.
  4088. * Disable (flag attribute not present) - HT disabled and
  4089. * Enable (flag attribute present) - HT enabled.
  4090. *
  4091. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4092. * Used with command to configure ACS operation for HT40 mode.
  4093. * Disable (flag attribute not present) - HT40 disabled and
  4094. * Enable (flag attribute present) - HT40 enabled.
  4095. *
  4096. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4097. * Used with command to configure ACS operation for VHT mode.
  4098. * Disable (flag attribute not present) - VHT disabled and
  4099. * Enable (flag attribute present) - VHT enabled.
  4100. *
  4101. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4102. * mandatory with event.
  4103. * If specified in command path, ACS operation is configured with the given
  4104. * channel width (in MHz).
  4105. * In event path, specifies the channel width of the primary channel selected.
  4106. *
  4107. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4108. * Used with command to configure channel list using an array of
  4109. * channel numbers (u8).
  4110. * Note: If both the driver and user-space application supports the 6 GHz band,
  4111. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4112. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4113. *
  4114. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4115. * Used with event to notify the VHT segment 0 center channel number selected in
  4116. * ACS operation.
  4117. * Note: If both the driver and user-space application supports the 6 GHz band,
  4118. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4119. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4120. * To maintain backward compatibility,
  4121. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4122. * the driver or user space application doesn't support the 6 GHz band.
  4123. *
  4124. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4125. * Used with event to notify the VHT segment 1 center channel number selected in
  4126. * ACS operation.
  4127. * Note: If both the driver and user-space application supports the 6 GHz band,
  4128. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4129. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4130. * To maintain backward compatibility,
  4131. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4132. * the driver or user space application doesn't support the 6 GHz band.
  4133. *
  4134. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4135. * Used with command to configure the channel list using an array of channel
  4136. * center frequencies in MHz (u32).
  4137. * Note: If both the driver and user-space application supports the 6 GHz band,
  4138. * the driver first parses the frequency list and if it fails to get a frequency
  4139. * list, parses the channel list specified using
  4140. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4141. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4142. *
  4143. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4144. * Used with event to notify the primary channel center frequency (MHz) selected
  4145. * in ACS operation.
  4146. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4147. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4148. *
  4149. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4150. * Used with event to notify the secondary channel center frequency (MHz)
  4151. * selected in ACS operation.
  4152. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4153. * includes this attribute along with
  4154. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4155. *
  4156. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4157. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4158. * selected in ACS operation.
  4159. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4160. * includes this attribute along with
  4161. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4162. *
  4163. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4164. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4165. * selected in ACS operation.
  4166. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4167. * includes this attribute along with
  4168. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4169. *
  4170. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4171. * Used with command to notify the driver of EDMG request for ACS
  4172. * operation.
  4173. *
  4174. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4175. * Used with event to notify the EDMG channel number selected in ACS
  4176. * operation.
  4177. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4178. *
  4179. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4180. * Used with event to notify the puncture pattern selected in ACS operation.
  4181. * Encoding for this attribute will follow the convention used in the Disabled
  4182. * Subchannel Bitmap field of the EHT Operation IE.
  4183. *
  4184. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4185. * Used with command to configure ACS operation for EHT mode.
  4186. * Disable (flag attribute not present) - EHT disabled and
  4187. * Enable (flag attribute present) - EHT enabled.
  4188. *
  4189. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4190. * Used with command to configure how older scan can be considered for ACS
  4191. * scoring. In case scan was performed on partial set of channels configured
  4192. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4193. * (in ms), then scan only remaining channels.
  4194. */
  4195. enum qca_wlan_vendor_attr_acs_offload {
  4196. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4197. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4198. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4199. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4200. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4201. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4202. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4203. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4204. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4205. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4206. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4207. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4208. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4209. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4210. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4211. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4212. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4213. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4214. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4215. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4216. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4217. /* keep last */
  4218. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4219. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4220. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4221. };
  4222. /**
  4223. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4224. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4225. *
  4226. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4227. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4228. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4229. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4230. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4231. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4232. */
  4233. enum qca_wlan_vendor_acs_hw_mode {
  4234. QCA_ACS_MODE_IEEE80211B,
  4235. QCA_ACS_MODE_IEEE80211G,
  4236. QCA_ACS_MODE_IEEE80211A,
  4237. QCA_ACS_MODE_IEEE80211AD,
  4238. QCA_ACS_MODE_IEEE80211ANY,
  4239. QCA_ACS_MODE_IEEE80211AX,
  4240. };
  4241. /**
  4242. * enum qca_access_policy - access control policy
  4243. *
  4244. * Access control policy is applied on the configured IE
  4245. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4246. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4247. *
  4248. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4249. *» with the specific configuration (IE) set, i.e. allow all the
  4250. *» connections which do not match the configuration.
  4251. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4252. *» with the specific configuration (IE) set, i.e. deny all the
  4253. *» connections which do not match the configuration.
  4254. */
  4255. enum qca_access_policy {
  4256. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4257. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4258. };
  4259. /**
  4260. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4261. *
  4262. * The valid values for the ignore assoc disallowed
  4263. *
  4264. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4265. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4266. *
  4267. */
  4268. enum qca_ignore_assoc_disallowed {
  4269. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4270. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4271. };
  4272. /* Attributes for data used by
  4273. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4274. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4275. */
  4276. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4277. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4278. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4279. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4280. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4281. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4282. enum qca_wlan_vendor_attr_config {
  4283. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4284. /*
  4285. * Unsigned 32-bit value to set the DTIM period.
  4286. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4287. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4288. * DTIM beacons.
  4289. */
  4290. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4291. /*
  4292. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4293. * used to calculate statistics like average the TSF offset or average
  4294. * number of frame leaked.
  4295. * For instance, upon Beacon frame reception:
  4296. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4297. * For instance, when evaluating leaky APs:
  4298. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4299. */
  4300. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4301. /*
  4302. * Unsigned 32-bit value to configure guard time, i.e., when
  4303. * implementing IEEE power management based on frame control PM bit, how
  4304. * long the driver waits before shutting down the radio and after
  4305. * receiving an ACK frame for a Data frame with PM bit set.
  4306. */
  4307. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4308. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4309. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4310. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4311. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4312. /*
  4313. * Unsigned 32-bit value to configure the number of continuous
  4314. * Beacon Miss which shall be used by the firmware to penalize
  4315. * the RSSI.
  4316. */
  4317. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4318. /*
  4319. * Unsigned 8-bit value to configure the channel avoidance indication
  4320. * behavior. Firmware to send only one indication and ignore duplicate
  4321. * indications when set to avoid multiple Apps wakeups.
  4322. */
  4323. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4324. /*
  4325. * 8-bit unsigned value to configure the maximum TX MPDU for
  4326. * aggregation.
  4327. */
  4328. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4329. /*
  4330. * 8-bit unsigned value to configure the maximum RX MPDU for
  4331. * aggregation.
  4332. */
  4333. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4334. /*
  4335. * 8-bit unsigned value to configure the Non aggregrate/11g sw
  4336. * retry threshold (0 disable, 31 max).
  4337. */
  4338. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4339. /*
  4340. * 8-bit unsigned value to configure the aggregrate sw
  4341. * retry threshold (0 disable, 31 max).
  4342. */
  4343. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4344. /*
  4345. * 8-bit unsigned value to configure the MGMT frame
  4346. * retry threshold (0 disable, 31 max).
  4347. */
  4348. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4349. /*
  4350. * 8-bit unsigned value to configure the CTRL frame
  4351. * retry threshold (0 disable, 31 max).
  4352. */
  4353. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4354. /*
  4355. * 8-bit unsigned value to configure the propagation delay for
  4356. * 2G/5G band (0~63, units in us)
  4357. */
  4358. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4359. /*
  4360. * Unsigned 32-bit value to configure the number of unicast TX fail
  4361. * packet count. The peer is disconnected once this threshold is
  4362. * reached.
  4363. */
  4364. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4365. /*
  4366. * Attribute used to set scan default IEs to the driver.
  4367. *
  4368. * These IEs can be used by scan operations that will be initiated by
  4369. * the driver/firmware.
  4370. *
  4371. * For further scan requests coming to the driver, these IEs should be
  4372. * merged with the IEs received along with scan request coming to the
  4373. * driver. If a particular IE is present in the scan default IEs but not
  4374. * present in the scan request, then that IE should be added to the IEs
  4375. * sent in the Probe Request frames for that scan request.
  4376. */
  4377. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4378. /* Unsigned 32-bit attribute for generic commands */
  4379. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4380. /* Unsigned 32-bit value attribute for generic commands */
  4381. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4382. /* Unsigned 32-bit data attribute for generic command response */
  4383. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4384. /*
  4385. * Unsigned 32-bit length attribute for
  4386. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4387. */
  4388. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4389. /*
  4390. * Unsigned 32-bit flags attribute for
  4391. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4392. */
  4393. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4394. /*
  4395. * Unsigned 32-bit, defining the access policy.
  4396. * See enum qca_access_policy. Used with
  4397. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4398. */
  4399. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4400. /*
  4401. * Sets the list of full set of IEs for which a specific access policy
  4402. * has to be applied. Used along with
  4403. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4404. * Zero length payload can be used to clear this access constraint.
  4405. */
  4406. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4407. /*
  4408. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4409. * corresponding configurations are applied. If the interface index is
  4410. * not specified, the configurations are attributed to the respective
  4411. * wiphy.
  4412. */
  4413. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4414. /*
  4415. * 8-bit unsigned value to trigger QPower:
  4416. * 1-Enable, 0-Disable
  4417. */
  4418. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4419. /*
  4420. * 8-bit unsigned value to configure the driver and below layers to
  4421. * ignore the assoc disallowed set by APs while connecting
  4422. * 1-Ignore, 0-Don't ignore
  4423. */
  4424. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4425. /*
  4426. * 32-bit unsigned value to trigger antenna diversity features:
  4427. * 1-Enable, 0-Disable
  4428. */
  4429. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4430. /* 32-bit unsigned value to configure specific chain antenna */
  4431. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4432. /*
  4433. * 32-bit unsigned value to trigger cycle selftest
  4434. * 1-Enable, 0-Disable
  4435. */
  4436. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4437. /*
  4438. * 32-bit unsigned to configure the cycle time of selftest
  4439. * the unit is micro-second
  4440. */
  4441. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4442. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4443. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4444. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4445. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4446. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4447. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4448. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4449. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4450. /* 6-byte MAC address to point out the specific peer */
  4451. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4452. /* 32-bit unsigned value to set window size for specific peer */
  4453. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4454. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4455. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4456. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4457. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4458. /*
  4459. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4460. * station device while in disconnect state. The attribute use the
  4461. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4462. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4463. * 10 MHz channel width, the station will not connect to a BSS using 20
  4464. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4465. * clear this constraint.
  4466. */
  4467. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4468. /*
  4469. * 32-bit unsigned value to configure the propagation absolute delay
  4470. * for 2G/5G band (units in us)
  4471. */
  4472. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4473. /* 32-bit unsigned value to set probe period */
  4474. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4475. /* 32-bit unsigned value to set stay period */
  4476. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4477. /* 32-bit unsigned value to set snr diff */
  4478. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4479. /* 32-bit unsigned value to set probe dwell time */
  4480. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4481. /* 32-bit unsigned value to set mgmt snr weight */
  4482. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4483. /* 32-bit unsigned value to set data snr weight */
  4484. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4485. /* 32-bit unsigned value to set ack snr weight */
  4486. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4487. /*
  4488. * 32-bit unsigned value to configure the listen interval.
  4489. * This is in units of beacon intervals. This configuration alters
  4490. * the negotiated listen interval with the AP during the connection.
  4491. * It is highly recommended to configure a value less than or equal to
  4492. * the one negotiated during the association. Configuring any greater
  4493. * value can have adverse effects (frame loss, AP disassociating STA,
  4494. * etc.).
  4495. */
  4496. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4497. /*
  4498. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4499. * disable operations that would cause the AP/GO to leave its operating
  4500. * channel.
  4501. *
  4502. * This will restrict the scans to the AP/GO operating channel and the
  4503. * channels of the other band, if DBS is supported.A STA/CLI interface
  4504. * brought up after this setting is enabled, will be restricted to
  4505. * connecting to devices only on the AP/GO interface's operating channel
  4506. * or on the other band in DBS case. P2P supported channel list is
  4507. * modified, to only include AP interface's operating-channel and the
  4508. * channels of the other band if DBS is supported.
  4509. *
  4510. * These restrictions are only applicable as long as the AP/GO interface
  4511. * is alive. If the AP/GO interface is brought down then this
  4512. * setting/restriction is forgotten.
  4513. *
  4514. * If this variable is set on an AP/GO interface while a multi-channel
  4515. * concurrent session is active, it has no effect on the operation of
  4516. * the current interfaces, other than restricting the scan to the AP/GO
  4517. * operating channel and the other band channels if DBS is supported.
  4518. * However, if the STA is brought down and restarted then the new STA
  4519. * connection will either be formed on the AP/GO channel or on the
  4520. * other band in a DBS case. This is because of the scan being
  4521. * restricted on these channels as mentioned above.
  4522. *
  4523. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4524. */
  4525. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4526. /*
  4527. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4528. * on an interface.
  4529. * 1 - Enable , 0 - Disable.
  4530. */
  4531. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4532. /*
  4533. * 8 bit unsigned value to globally enable/disable scan
  4534. * 1 - Enable, 0 - Disable.
  4535. */
  4536. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4537. /* 8-bit unsigned value to set the total beacon miss count */
  4538. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4539. /*
  4540. * Unsigned 32-bit value to configure the number of continuous
  4541. * Beacon Miss which shall be used by the firmware to penalize
  4542. * the RSSI for BTC.
  4543. */
  4544. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4545. /*
  4546. * 8-bit unsigned value to configure the driver and below layers to
  4547. * enable/disable all fils features.
  4548. * 0-enable, 1-disable
  4549. */
  4550. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4551. /* 16-bit unsigned value to configure the level of WLAN latency
  4552. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4553. */
  4554. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4555. /*
  4556. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  4557. * the connect interface. Exclusively used for the scenarios where the
  4558. * device is used as a test bed device with special functionality and
  4559. * not recommended for production. This helps driver to not validate the
  4560. * RSNE passed from user space and thus allow arbitrary IE data to be
  4561. * used for testing purposes.
  4562. * 1-enable, 0-disable.
  4563. * Applications set/reset this configuration. If not reset, this
  4564. * parameter remains in use until the driver is unloaded.
  4565. */
  4566. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  4567. /*
  4568. * 8-bit unsigned value to trigger green Tx power saving.
  4569. * 1-Enable, 0-Disable
  4570. */
  4571. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  4572. /*
  4573. * Attribute to configure disconnect IEs to the driver.
  4574. * This carries an array of unsigned 8-bit characters.
  4575. *
  4576. * If this is configured, driver shall fill the IEs in disassoc/deauth
  4577. * frame.
  4578. * These IEs are expected to be considered only for the next
  4579. * immediate disconnection (disassoc/deauth frame) originated by
  4580. * the DUT, irrespective of the entity (user space/driver/firmware)
  4581. * triggering the disconnection.
  4582. * The host drivers are not expected to use the IEs set through
  4583. * this interface for further disconnections after the first immediate
  4584. * disconnection initiated post the configuration.
  4585. * If the IEs are also updated through cfg80211 interface (after the
  4586. * enhancement to cfg80211_disconnect), host driver is expected to
  4587. * take the union of IEs from both of these interfaces and send in
  4588. * further disassoc/deauth frames.
  4589. */
  4590. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  4591. /* 8-bit unsigned value for ELNA bypass.
  4592. * 0 - Disable eLNA bypass.
  4593. * 1 - Enable eLNA bypass.
  4594. * 2 - Reset eLNA bypass configuration, the driver should
  4595. * revert to the default configuration of eLNA bypass.
  4596. */
  4597. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  4598. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4599. * to send the Beacon Report response with failure reason for the
  4600. * scenarios where STA cannot honor the Beacon report request from AP.
  4601. * 1-Enable, 0-Disable.
  4602. */
  4603. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  4604. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4605. * to send roam reason information in the reassociation request to the
  4606. * AP. 1-Enable, 0-Disable.
  4607. */
  4608. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  4609. /* 32-bit unsigned value to configure different PHY modes to the
  4610. * driver/firmware. The possible values are defined in
  4611. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  4612. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  4613. * the driver.
  4614. */
  4615. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  4616. /* 8-bit unsigned value to configure the maximum supported channel width
  4617. * for STA mode. If this value is configured when STA is in connected
  4618. * state, it should not exceed the negotiated channel width. If it is
  4619. * configured when STA is in disconnected state, the configured value
  4620. * will take effect for the next immediate connection.
  4621. * Possible values are:
  4622. * NL80211_CHAN_WIDTH_20
  4623. * NL80211_CHAN_WIDTH_40
  4624. * NL80211_CHAN_WIDTH_80
  4625. * NL80211_CHAN_WIDTH_80P80
  4626. * NL80211_CHAN_WIDTH_160
  4627. */
  4628. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  4629. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  4630. * This attribute is only applicable for STA mode. When dynamic
  4631. * bandwidth adjustment is disabled, STA will use static channel width
  4632. * the value of which is negotiated during connection.
  4633. * 1-enable (default), 0-disable
  4634. */
  4635. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  4636. /* 8-bit unsigned value to configure the maximum number of subframes of
  4637. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4638. * it is decided by hardware.
  4639. */
  4640. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  4641. /* 8-bit unsigned value to configure the maximum number of subframes of
  4642. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4643. * it is decided by hardware.
  4644. */
  4645. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  4646. /* 8-bit unsigned value. This attribute is used to dynamically
  4647. * enable/disable the LDPC capability of the device. When configured in
  4648. * the disconnected state, the updated configuration will be considered
  4649. * for the immediately following connection attempt. If this
  4650. * configuration is modified while the device is in the connected state,
  4651. * the LDPC TX will be updated with this configuration immediately,
  4652. * while the LDPC RX configuration update will take place starting from
  4653. * the subsequent association attempt.
  4654. * 1-Enable, 0-Disable.
  4655. */
  4656. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  4657. /* 8-bit unsigned value. This attribute is used to dynamically
  4658. * enable/disable the TX STBC capability of the device. When configured
  4659. * in the disconnected state, the updated configuration will be
  4660. * considered for the immediately following connection attempt. If the
  4661. * connection is formed with TX STBC enabled and if this configuration
  4662. * is disabled during that association, the TX will be impacted
  4663. * immediately. Further connection attempts will disable TX STBC.
  4664. * However, enabling the TX STBC for a connected session with disabled
  4665. * capability is not allowed and will fail.
  4666. * 1-Enable, 0-Disable.
  4667. */
  4668. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  4669. /* 8-bit unsigned value. This attribute is used to dynamically
  4670. * enable/disable the RX STBC capability of the device. When configured
  4671. * in the disconnected state, the updated configuration will be
  4672. * considered for the immediately following connection attempt. If the
  4673. * configuration is modified in the connected state, there will be no
  4674. * impact for the current association, but further connection attempts
  4675. * will use the updated configuration.
  4676. * 1-Enable, 0-Disable.
  4677. */
  4678. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  4679. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4680. * the number of spatial streams. When configured in the disconnected
  4681. * state, the updated configuration will be considered for the
  4682. * immediately following connection attempt. If the NSS is updated after
  4683. * the connection, the updated NSS value is notified to the peer using
  4684. * the Operating Mode Notification/Spatial Multiplexing Power Save
  4685. * frame. The updated NSS value after the connection shall not be
  4686. * greater than the one negotiated during the connection. Any such
  4687. * higher value configuration shall be returned with a failure.
  4688. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  4689. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  4690. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  4691. * configure the asymmetric NSS configuration (such as 1X2).
  4692. */
  4693. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  4694. /*
  4695. * 8-bit unsigned value to trigger Optimized Power Management:
  4696. * 1-Enable, 0-Disable
  4697. */
  4698. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  4699. /* 8-bit unsigned value. This attribute takes the QOS/access category
  4700. * value represented by the enum qca_wlan_ac_type and expects the driver
  4701. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  4702. * is invalid for this attribute. This will override the DSCP value
  4703. * configured in the frame with the intention to only upgrade the QOS.
  4704. * That said, it is not intended to downgrade the QOS for the frames.
  4705. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  4706. * to disable.
  4707. */
  4708. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  4709. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4710. * the number of chains to be used for transmitting data. This
  4711. * configuration is allowed only when in connected state and will be
  4712. * effective until disconnected. The driver rejects this configuration
  4713. * if the number of spatial streams being used in the current connection
  4714. * cannot be supported by this configuration.
  4715. */
  4716. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  4717. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4718. * the number of chains to be used for receiving data. This
  4719. * configuration is allowed only when in connected state and will be
  4720. * effective until disconnected. The driver rejects this configuration
  4721. * if the number of spatial streams being used in the current connection
  4722. * cannot be supported by this configuration.
  4723. */
  4724. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  4725. /* 8-bit unsigned value to configure ANI setting type.
  4726. * See &enum qca_wlan_ani_setting for possible values.
  4727. */
  4728. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  4729. /* 32-bit signed value to configure ANI level. This is used when
  4730. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  4731. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  4732. * is invalid, the driver will return a failure.
  4733. */
  4734. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  4735. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4736. * the number of spatial streams used for transmitting the data. When
  4737. * configured in the disconnected state, the configured value will
  4738. * be considered for the following connection attempt.
  4739. * If the NSS is updated after the connection, the updated NSS value
  4740. * is notified to the peer using the Operating Mode Notification/Spatial
  4741. * Multiplexing Power Save frame.
  4742. * The TX NSS value configured after the connection shall not be greater
  4743. * than the value negotiated during the connection. Any such higher
  4744. * value configuration shall be treated as invalid configuration by
  4745. * the driver. This attribute shall be configured along with
  4746. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  4747. * configuration (such as 2X2 or 1X1) or the asymmetric
  4748. * configuration (such as 1X2).
  4749. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4750. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  4751. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  4752. */
  4753. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  4754. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4755. * the number of spatial streams used for receiving the data. When
  4756. * configured in the disconnected state, the configured value will
  4757. * be considered for the following connection attempt.
  4758. * If the NSS is updated after the connection, the updated NSS value
  4759. * is notified to the peer using the Operating Mode Notification/Spatial
  4760. * Multiplexing Power Save frame.
  4761. * The RX NSS value configured after the connection shall not be greater
  4762. * than the value negotiated during the connection. Any such higher
  4763. * value configuration shall be treated as invalid configuration by
  4764. * the driver. This attribute shall be configured along with
  4765. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  4766. * configuration (such as 2X2 or 1X1) or the asymmetric
  4767. * configuration (such as 1X2).
  4768. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4769. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  4770. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  4771. */
  4772. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  4773. /*
  4774. * 8-bit unsigned value. This attribute, when set, indicates whether the
  4775. * specified interface is the primary STA interface when there are more
  4776. * than one STA interfaces concurrently active.
  4777. *
  4778. * This configuration helps the firmware/hardware to support certain
  4779. * features (e.g., roaming) on this primary interface, if the same
  4780. * cannot be supported on the concurrent STA interfaces simultaneously.
  4781. *
  4782. * This configuration is only applicable for a single STA interface on
  4783. * a device and gives the priority for it only over other concurrent STA
  4784. * interfaces.
  4785. *
  4786. * If the device is a multi wiphy/soc, this configuration applies to a
  4787. * single STA interface across the wiphys.
  4788. *
  4789. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  4790. */
  4791. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  4792. /*
  4793. * 8-bit unsigned value. This attribute can be used to configure the
  4794. * driver to enable/disable FT-over-DS feature. Possible values for
  4795. * this attribute are 1-Enable and 0-Disable.
  4796. */
  4797. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  4798. /*
  4799. * 8-bit unsigned value. This attribute can be used to configure the
  4800. * firmware to enable/disable ARP/NS offload feature. Possible values
  4801. * for this attribute are 0-Disable and 1-Enable.
  4802. *
  4803. * This attribute is only applicable for STA/P2P-Client interface,
  4804. * and is optional, default behavior is APR/NS offload Enable.
  4805. *
  4806. * This attribute can be set in disconncted and connected state, and
  4807. * will restore to default behavior if interface is closed.
  4808. */
  4809. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  4810. /*
  4811. * 8-bit unsigned value. This attribute can be used to configure the
  4812. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  4813. * for this attribute are defined in the enum qca_dbam_config.
  4814. */
  4815. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  4816. /* keep last */
  4817. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  4818. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  4819. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  4820. };
  4821. /**
  4822. * enum qca_dbam_config - Specifies DBAM config mode
  4823. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  4824. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  4825. * internal criteria are met.
  4826. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  4827. */
  4828. enum qca_dbam_config {
  4829. QCA_DBAM_DISABLE = 0,
  4830. QCA_DBAM_ENABLE = 1,
  4831. QCA_DBAM_FORCE_ENABLE = 2,
  4832. };
  4833. /**
  4834. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  4835. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  4836. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  4837. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  4838. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  4839. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  4840. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  4841. */
  4842. enum qca_wlan_vendor_attr_wifi_logger_start {
  4843. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  4844. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  4845. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  4846. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  4847. /* keep last */
  4848. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  4849. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  4850. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  4851. };
  4852. /*
  4853. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  4854. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  4855. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  4856. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  4857. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  4858. */
  4859. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  4860. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  4861. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  4862. /* keep last */
  4863. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  4864. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  4865. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  4866. };
  4867. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  4868. /**
  4869. * enum wlan_offloaded_packets_control - control commands
  4870. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  4871. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  4872. *
  4873. */
  4874. enum wlan_offloaded_packets_control {
  4875. WLAN_START_OFFLOADED_PACKETS = 1,
  4876. WLAN_STOP_OFFLOADED_PACKETS = 2
  4877. };
  4878. /**
  4879. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  4880. *
  4881. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  4882. * the offloaded data.
  4883. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  4884. * data.
  4885. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  4886. * indication.
  4887. */
  4888. enum qca_wlan_vendor_attr_data_offload_ind {
  4889. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  4890. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  4891. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  4892. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  4893. /* keep last */
  4894. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  4895. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  4896. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  4897. };
  4898. /**
  4899. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  4900. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  4901. */
  4902. enum qca_wlan_vendor_attr_offloaded_packets {
  4903. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  4904. /* Takes valid value from the enum
  4905. * qca_wlan_offloaded_packets_sending_control
  4906. * Unsigned 32-bit value
  4907. */
  4908. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  4909. /* Unsigned 32-bit value */
  4910. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  4911. /* array of u8 len: Max packet size */
  4912. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  4913. /* 6-byte MAC address used to represent source MAC address */
  4914. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  4915. /* 6-byte MAC address used to represent destination MAC address */
  4916. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  4917. /* Unsigned 32-bit value, in milli seconds */
  4918. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  4919. /* This optional unsigned 16-bit attribute is used for specifying
  4920. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  4921. */
  4922. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  4923. /* keep last */
  4924. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  4925. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  4926. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  4927. };
  4928. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  4929. /**
  4930. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  4931. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  4932. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  4933. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  4934. */
  4935. enum qca_wlan_rssi_monitoring_control {
  4936. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  4937. QCA_WLAN_RSSI_MONITORING_START,
  4938. QCA_WLAN_RSSI_MONITORING_STOP,
  4939. };
  4940. /**
  4941. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  4942. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  4943. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  4944. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  4945. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  4946. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  4947. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  4948. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  4949. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  4950. */
  4951. enum qca_wlan_vendor_attr_rssi_monitoring {
  4952. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  4953. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  4954. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  4955. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  4956. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  4957. /* attributes to be used/received in callback */
  4958. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  4959. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  4960. /* keep last */
  4961. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  4962. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  4963. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  4964. };
  4965. /**
  4966. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  4967. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  4968. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  4969. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  4970. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  4971. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
  4972. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  4973. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  4974. * address
  4975. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  4976. * created
  4977. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  4978. * NCS_SK_TYPE/PMK/SCID instead
  4979. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  4980. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  4981. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  4982. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  4983. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  4984. * code: accept/reject
  4985. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  4986. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  4987. * driver
  4988. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  4989. * driver
  4990. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  4991. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  4992. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  4993. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  4994. * PMKID
  4995. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  4996. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  4997. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  4998. * update:
  4999. * BIT_0: NSS Update
  5000. * BIT_1: Channel list update
  5001. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5002. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5003. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5004. * 0:20 MHz,
  5005. * 1:40 MHz,
  5006. * 2:80 MHz,
  5007. * 3:160 MHz
  5008. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5009. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5010. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5011. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5012. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5013. * transport port used by NDP.
  5014. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5015. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5016. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5017. * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5018. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5019. * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5020. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5021. * A lower-case representation of the Service Name shall be used to
  5022. * calculate the Service ID.
  5023. * Array of u8: length is 6 bytes
  5024. * This attribute is used and optional for ndp indication.
  5025. */
  5026. enum qca_wlan_vendor_attr_ndp_params {
  5027. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5028. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5029. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5030. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5031. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5032. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5033. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5034. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5035. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5036. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5037. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5038. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5039. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5040. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5041. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5042. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5043. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5044. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5045. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5046. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5047. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5048. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5049. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5050. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5051. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5052. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5053. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5054. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5055. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5056. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5057. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5058. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5059. /* keep last */
  5060. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5061. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5062. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5063. };
  5064. /**
  5065. * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
  5066. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5067. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5068. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5069. * data path interface.
  5070. * This command was initially designed to both create and start a NAN
  5071. * data path interface. However, changes to Linux 5.12 no longer allow
  5072. * interface creation via vendor commands. When the driver advertises
  5073. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5074. * userspace must explicitly first create the interface using
  5075. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5076. * to start the interface.
  5077. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5078. * data path interface.
  5079. * This command was initially designed to both stop and delete a NAN
  5080. * data path interface. However, changes to Linux 5.12 no longer allow
  5081. * interface deletion via vendor commands. When the driver advertises
  5082. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5083. * userspace must explicitly delete the interface using
  5084. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5085. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5086. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5087. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5088. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5089. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5090. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5091. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5092. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5093. * being received
  5094. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5095. * update
  5096. */
  5097. enum qca_wlan_ndp_sub_cmd {
  5098. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5099. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5100. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5101. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5102. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5103. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5104. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5105. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5106. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5107. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5108. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5109. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5110. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5111. };
  5112. /**
  5113. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5114. * information. These attributes are sent as part of
  5115. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5116. * attributes correspond to a single channel.
  5117. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5118. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5119. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5120. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5121. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5122. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5123. * regulatory transmission power
  5124. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5125. * transmission power
  5126. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5127. * transmission power
  5128. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5129. * class id
  5130. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5131. * antenna gain in dbm
  5132. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5133. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5134. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5135. * segment 0 in center freq in MHz.
  5136. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5137. * segment 1 in center freq in MHz.
  5138. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5139. * flag indicating the AP power modes supported by the channel, as given by
  5140. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5141. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5142. * attributes for each power mode. It takes attr as defined in enum
  5143. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5144. *
  5145. */
  5146. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5147. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5148. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5149. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5150. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5151. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5152. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5153. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5154. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5155. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5156. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5157. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5158. /*
  5159. * A bitmask (u32) with flags specified in
  5160. * enum qca_wlan_vendor_channel_prop_flags_2.
  5161. */
  5162. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5163. /*
  5164. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5165. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5166. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5167. * along with
  5168. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5169. *
  5170. * If both the driver and user-space application supports the 6 GHz
  5171. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5172. * is deprecated and
  5173. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5174. * should be used.
  5175. *
  5176. * To maintain backward compatibility,
  5177. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5178. * is still used if either of the driver or user space application
  5179. * doesn't support the 6 GHz band.
  5180. */
  5181. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
  5182. /*
  5183. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5184. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5185. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5186. * along with
  5187. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5188. *
  5189. * If both the driver and user-space application supports the 6 GHz
  5190. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5191. * is deprecated and
  5192. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5193. * should be considered.
  5194. *
  5195. * To maintain backward compatibility,
  5196. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5197. * is still used if either of the driver or user space application
  5198. * doesn't support the 6 GHz band.
  5199. */
  5200. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
  5201. /*
  5202. * 16-bit attribute of bits indicating the AP power modes supported by
  5203. * the channel (u16).
  5204. * Note: Currently, only 3 bits are used in the attribute and each bit
  5205. * corresponds to the power mode mentioned in enum
  5206. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5207. * set if the associated mode is supported.
  5208. */
  5209. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5210. = 14,
  5211. /* Array of nested attributes for each power mode. It takes attr as
  5212. * defined in enum
  5213. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5214. */
  5215. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5216. /* keep last */
  5217. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  5218. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  5219. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  5220. };
  5221. /**
  5222. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  5223. * values that the vendor external ACS channel power attribute
  5224. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  5225. * take.
  5226. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  5227. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  5228. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  5229. */
  5230. enum qca_wlan_vendor_external_acs_chan_power_level {
  5231. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  5232. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  5233. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  5234. };
  5235. /**
  5236. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  5237. * attributes for power mode type and power values corresponding to that.
  5238. * These attributes are sent as part of
  5239. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  5240. */
  5241. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  5242. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  5243. /*
  5244. * Power mode (u8) takes the values defined in enum
  5245. * qca_wlan_vendor_external_acs_chan_power_mode
  5246. */
  5247. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  5248. = 1,
  5249. /*
  5250. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  5251. * present, it indicates a PSD value.
  5252. */
  5253. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  5254. /*
  5255. * Power value (u32) PSD/EIRP as indicated by
  5256. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  5257. * for power mode corresponding to the
  5258. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  5259. * Units for PSD - dBm/MHz
  5260. * Units for EIRP - dBm
  5261. */
  5262. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  5263. = 3,
  5264. /* keep last */
  5265. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  5266. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  5267. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  5268. };
  5269. /**
  5270. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  5271. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  5272. * driver.
  5273. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  5274. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  5275. * ACS need to be started
  5276. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  5277. * driver supports spectral scanning or not
  5278. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  5279. * offloaded to firmware.
  5280. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  5281. * provides additional channel capability as part of scan operation.
  5282. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  5283. * interface status is UP
  5284. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  5285. * interface. It takes one of nl80211_iftype values.
  5286. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  5287. * of chan width. ACS logic should try to get a channel with specified width
  5288. * if not found then look for lower values.
  5289. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  5290. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  5291. * a/b/g/n/ac.
  5292. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  5293. * among which ACS should choose best frequency.
  5294. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  5295. * driver which will have <channel(u8), weight(u8)> format as array of
  5296. * nested values.
  5297. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  5298. * for each channel. It takes attr as defined in
  5299. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  5300. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  5301. * qca_wlan_vendor_attr_external_acs_policy.
  5302. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  5303. * Operating Parameter (RROP) availability information (u16). It uses values
  5304. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  5305. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  5306. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  5307. */
  5308. enum qca_wlan_vendor_attr_external_acs_event {
  5309. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  5310. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  5311. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  5312. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  5313. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  5314. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  5315. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  5316. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  5317. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  5318. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  5319. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  5320. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  5321. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  5322. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  5323. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  5324. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  5325. /* keep last */
  5326. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  5327. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  5328. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  5329. };
  5330. enum qca_iface_type {
  5331. QCA_IFACE_TYPE_STA,
  5332. QCA_IFACE_TYPE_AP,
  5333. QCA_IFACE_TYPE_P2P_CLIENT,
  5334. QCA_IFACE_TYPE_P2P_GO,
  5335. QCA_IFACE_TYPE_IBSS,
  5336. QCA_IFACE_TYPE_TDLS,
  5337. };
  5338. /**
  5339. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  5340. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  5341. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  5342. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  5343. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  5344. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  5345. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  5346. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  5347. */
  5348. enum qca_wlan_vendor_attr_pcl_config {
  5349. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  5350. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  5351. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  5352. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  5353. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  5354. };
  5355. enum qca_set_band {
  5356. QCA_SETBAND_AUTO = 0,
  5357. QCA_SETBAND_5G = BIT(0),
  5358. QCA_SETBAND_2G = BIT(1),
  5359. QCA_SETBAND_6G = BIT(2),
  5360. };
  5361. /**
  5362. * enum set_reset_packet_filter - set packet filter control commands
  5363. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  5364. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  5365. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  5366. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  5367. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  5368. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  5369. */
  5370. enum set_reset_packet_filter {
  5371. QCA_WLAN_SET_PACKET_FILTER = 1,
  5372. QCA_WLAN_GET_PACKET_FILTER = 2,
  5373. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  5374. QCA_WLAN_READ_PACKET_FILTER = 4,
  5375. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  5376. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  5377. };
  5378. /**
  5379. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  5380. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  5381. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  5382. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  5383. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  5384. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  5385. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  5386. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  5387. * section in packet filter buffer
  5388. */
  5389. enum qca_wlan_vendor_attr_packet_filter {
  5390. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  5391. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  5392. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  5393. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  5394. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  5395. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  5396. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  5397. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  5398. /* keep last */
  5399. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  5400. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  5401. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  5402. };
  5403. /**
  5404. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  5405. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  5406. */
  5407. enum qca_wlan_vendor_attr_wake_stats {
  5408. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  5409. /* Unsigned 32-bit value indicating the total count of wake event */
  5410. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  5411. /* Array of individual wake count, each index representing wake reason
  5412. */
  5413. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  5414. /* Unsigned 32-bit value representing wake count array */
  5415. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  5416. /* Unsigned 32-bit total wake count value of driver/fw */
  5417. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  5418. /* Array of wake stats of driver/fw */
  5419. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  5420. /* Unsigned 32-bit total wake count value of driver/fw */
  5421. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  5422. /* Unsigned 32-bit total wake count value of packets received */
  5423. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  5424. /* Unsigned 32-bit wake count value unicast packets received */
  5425. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  5426. /* Unsigned 32-bit wake count value multicast packets received */
  5427. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  5428. /* Unsigned 32-bit wake count value broadcast packets received */
  5429. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  5430. /* Unsigned 32-bit wake count value of ICMP packets */
  5431. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  5432. /* Unsigned 32-bit wake count value of ICMP6 packets */
  5433. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  5434. /* Unsigned 32-bit value ICMP6 router advertisement */
  5435. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  5436. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  5437. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  5438. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  5439. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  5440. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  5441. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  5442. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  5443. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  5444. /* Unsigned 32-bit wake count value of receive side multicast */
  5445. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  5446. /* Unsigned 32-bit wake count value of a given RSSI breach */
  5447. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  5448. /* Unsigned 32-bit wake count value of low RSSI */
  5449. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  5450. /* Unsigned 32-bit value GSCAN count */
  5451. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  5452. /* Unsigned 32-bit value PNO complete count */
  5453. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  5454. /* Unsigned 32-bit value PNO match count */
  5455. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  5456. /* keep last */
  5457. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  5458. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  5459. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  5460. };
  5461. /**
  5462. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  5463. * configured by userspace to the driver/firmware. The values will be
  5464. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  5465. * The driver/firmware takes necessary actions requested by userspace
  5466. * such as throttling wifi tx etc. in order to mitigate high temperature.
  5467. *
  5468. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  5469. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  5470. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  5471. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  5472. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  5473. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  5474. */
  5475. enum qca_wlan_vendor_thermal_level {
  5476. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  5477. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  5478. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  5479. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  5480. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  5481. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  5482. };
  5483. /**
  5484. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  5485. * cmd value. Used for NL attributes for data used by
  5486. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5487. */
  5488. enum qca_wlan_vendor_attr_thermal_cmd {
  5489. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  5490. /* The value of command, driver will implement different operations
  5491. * according to this value. It uses values defined in
  5492. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  5493. * u32 attribute.
  5494. */
  5495. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  5496. /* Userspace uses this attribute to configure thermal level to the
  5497. * driver/firmware, or get thermal level from the driver/firmware.
  5498. * Used in request or response, u32 attribute,
  5499. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  5500. */
  5501. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  5502. /* Userspace uses this attribute to configure the time in which the
  5503. * driver/firmware should complete applying settings it received from
  5504. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  5505. * command type. Used in request, u32 attribute, value is in
  5506. * milliseconds. A value of zero indicates to apply the settings
  5507. * immediately. The driver/firmware can delay applying the configured
  5508. * thermal settings within the time specified in this attribute if
  5509. * there is any critical ongoing operation.
  5510. */
  5511. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  5512. /* Nested attribute, driver/firmware uses this attribute to report
  5513. * thermal stats of different thermal levels to userspace when requested
  5514. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  5515. * type. This attribute contains nested array of records of thermal
  5516. * statistics of multiple levels. The attributes used inside this nested
  5517. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  5518. */
  5519. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  5520. /* keep last */
  5521. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  5522. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  5523. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  5524. };
  5525. /**
  5526. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  5527. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  5528. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  5529. * thermal command types sent to driver.
  5530. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  5531. * get thermal shutdown configuration parameters for display. Parameters
  5532. * responded from driver are defined in
  5533. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  5534. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  5535. * get temperature. Host should respond with a temperature data. It is defined
  5536. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  5537. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  5538. * suspend action.
  5539. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  5540. * resume action.
  5541. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  5542. * the driver/firmware.
  5543. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  5544. * thermal level from the driver/firmware. The driver should respond with a
  5545. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  5546. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  5547. * current thermal stats from the driver/firmware. The driver should respond
  5548. * with stats of all thermal levels encapsulated in attribute
  5549. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  5550. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  5551. * the current thermal stats all thermal levels maintained in the
  5552. * driver/firmware and start counting from zero again.
  5553. */
  5554. enum qca_wlan_vendor_attr_thermal_cmd_type {
  5555. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  5556. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  5557. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  5558. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  5559. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  5560. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  5561. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  5562. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  5563. };
  5564. /**
  5565. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  5566. * to get chip temperature by user.
  5567. * enum values are used for NL attributes for data used by
  5568. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  5569. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5570. */
  5571. enum qca_wlan_vendor_attr_thermal_get_temperature {
  5572. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  5573. /* Temperature value (degree Celsius) from driver.
  5574. * u32 attribute.
  5575. */
  5576. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  5577. /* keep last */
  5578. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  5579. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  5580. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  5581. };
  5582. /**
  5583. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  5584. * report thermal events from driver to user space.
  5585. * enum values are used for NL attributes for data used by
  5586. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  5587. */
  5588. enum qca_wlan_vendor_attr_thermal_event {
  5589. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  5590. /* Temperature value (degree Celsius) from driver.
  5591. * u32 attribute.
  5592. */
  5593. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  5594. /* Indication of resume completion from power save mode.
  5595. * NLA_FLAG attribute.
  5596. */
  5597. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  5598. /* Thermal level from the driver.
  5599. * u32 attribute. Possible values are defined in
  5600. * enum qca_wlan_vendor_thermal_level.
  5601. */
  5602. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  5603. /* keep last */
  5604. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  5605. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  5606. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  5607. };
  5608. /**
  5609. * enum qca_vendor_element_id - QCA Vendor Specific element types
  5610. *
  5611. * These values are used to identify QCA Vendor Specific elements. The
  5612. * payload of the element starts with the three octet OUI (OUI_QCA) and
  5613. * is followed by a single octet type which is defined by this enum.
  5614. *
  5615. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  5616. * This element can be used to specify preference order for supported
  5617. * channels. The channels in this list are in preference order (the first
  5618. * one has the highest preference) and are described as a pair of
  5619. * (global) Operating Class and Channel Number (each one octet) fields.
  5620. *
  5621. * This extends the standard P2P functionality by providing option to have
  5622. * more than one preferred operating channel. When this element is present,
  5623. * it replaces the preference indicated in the Operating Channel attribute.
  5624. * For supporting other implementations, the Operating Channel attribute is
  5625. * expected to be used with the highest preference channel. Similarly, all
  5626. * the channels included in this Preferred channel list element are
  5627. * expected to be included in the Channel List attribute.
  5628. *
  5629. * This vendor element may be included in GO Negotiation Request, P2P
  5630. * Invitation Request, and Provision Discovery Request frames.
  5631. *
  5632. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  5633. * This element can be used for pre-standard publication testing of HE
  5634. * before P802.11ax draft assigns the element ID. The payload of this
  5635. * vendor specific element is defined by the latest P802.11ax draft.
  5636. * Please note that the draft is still work in progress and this element
  5637. * payload is subject to change.
  5638. *
  5639. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  5640. * This element can be used for pre-standard publication testing of HE
  5641. * before P802.11ax draft assigns the element ID. The payload of this
  5642. * vendor specific element is defined by the latest P802.11ax draft.
  5643. * Please note that the draft is still work in progress and this element
  5644. * payload is subject to change.
  5645. *
  5646. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  5647. * element).
  5648. * This element can be used for pre-standard publication testing of HE
  5649. * before P802.11ax draft assigns the element ID extension. The payload of
  5650. * this vendor specific element is defined by the latest P802.11ax draft
  5651. * (not including the Element ID Extension field). Please note that the
  5652. * draft is still work in progress and this element payload is subject to
  5653. * change.
  5654. *
  5655. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  5656. * This element can be used for pre-standard publication testing of HE
  5657. * before P802.11ax draft assigns the element ID extension. The payload of
  5658. * this vendor specific element is defined by the latest P802.11ax draft
  5659. * (not including the Element ID Extension field). Please note that the
  5660. * draft is still work in progress and this element payload is subject to
  5661. * change.
  5662. *
  5663. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  5664. * This element can be used for pre-standard publication testing of HE
  5665. * before P802.11ax draft assigns the element ID extension. The payload of
  5666. * this vendor specific element is defined by the latest P802.11ax draft
  5667. * (not including the Element ID Extension field). Please note that the
  5668. * draft is still work in progress and this element payload is subject to
  5669. * change.
  5670. */
  5671. enum qca_vendor_element_id {
  5672. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  5673. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  5674. QCA_VENDOR_ELEM_HE_OPER = 2,
  5675. QCA_VENDOR_ELEM_RAPS = 3,
  5676. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  5677. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  5678. };
  5679. /**
  5680. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  5681. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  5682. * Specify the TSF command. Possible values are defined in
  5683. * &enum qca_tsf_cmd.
  5684. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  5685. * This attribute contains TSF timer value. This attribute is only available
  5686. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  5687. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  5688. * This attribute contains SOC timer value at TSF capture. This attribute is
  5689. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  5690. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  5691. * This attribute is used to provide TSF sync interval and only applicable when
  5692. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  5693. * driver will use the default value. Time unit is in milliseconds.
  5694. */
  5695. enum qca_vendor_attr_tsf_cmd {
  5696. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  5697. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  5698. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  5699. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  5700. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  5701. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  5702. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  5703. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  5704. };
  5705. /**
  5706. * enum qca_tsf_cmd: TSF driver commands
  5707. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  5708. * @QCA_TSF_GET: Get TSF capture value
  5709. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  5710. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  5711. * will automatically send TSF report to the host. To query
  5712. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  5713. * initiated first.
  5714. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  5715. * will not automatically send TSF report to the host. If
  5716. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  5717. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  5718. * operation needs to be initiated.
  5719. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  5720. * fetches TSF and host time mapping from the firmware with interval configured
  5721. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  5722. * interval value is not provided the driver will use the default value. The
  5723. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  5724. * command.
  5725. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  5726. */
  5727. enum qca_tsf_cmd {
  5728. QCA_TSF_CAPTURE,
  5729. QCA_TSF_GET,
  5730. QCA_TSF_SYNC_GET,
  5731. QCA_TSF_AUTO_REPORT_ENABLE,
  5732. QCA_TSF_AUTO_REPORT_DISABLE,
  5733. QCA_TSF_SYNC_START,
  5734. QCA_TSF_SYNC_STOP,
  5735. };
  5736. /**
  5737. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  5738. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  5739. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  5740. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  5741. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  5742. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  5743. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  5744. */
  5745. enum qca_vendor_attr_get_preferred_freq_list {
  5746. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  5747. /* A 32-unsigned value; the interface type/mode for which the preferred
  5748. * frequency list is requested (see enum qca_iface_type for possible
  5749. * values); used in both south- and north-bound.
  5750. */
  5751. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  5752. /* An array of 32-unsigned values; values are frequency (MHz); used
  5753. * in north-bound only.
  5754. */
  5755. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  5756. /* An array of nested values as per enum
  5757. * qca_wlan_vendor_attr_pcl_config attribute.
  5758. * Each element contains frequency (MHz), weight, and flag
  5759. * bit mask indicating how the frequency should be used in P2P
  5760. * negotiation.
  5761. */
  5762. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  5763. /* keep last */
  5764. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  5765. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  5766. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  5767. };
  5768. /**
  5769. * enum qca_vendor_attr_probable_oper_channel - channel hint
  5770. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  5771. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  5772. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  5773. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  5774. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  5775. */
  5776. enum qca_vendor_attr_probable_oper_channel {
  5777. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  5778. /* 32-bit unsigned value; indicates the connection/iface type likely to
  5779. * come on this channel (see enum qca_iface_type).
  5780. */
  5781. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  5782. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  5783. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  5784. /* keep last */
  5785. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  5786. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  5787. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  5788. };
  5789. /**
  5790. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  5791. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  5792. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  5793. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  5794. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  5795. */
  5796. enum qca_wlan_vendor_attr_gw_param_config {
  5797. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  5798. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  5799. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  5800. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  5801. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  5802. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  5803. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  5804. };
  5805. /**
  5806. * enum drv_dbs_capability - DBS capability
  5807. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  5808. * @DRV_DBS_CAPABILITY_1X1: 1x1
  5809. * @DRV_DBS_CAPABILITY_2X2: 2x2
  5810. */
  5811. enum drv_dbs_capability {
  5812. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  5813. DRV_DBS_CAPABILITY_1X1,
  5814. DRV_DBS_CAPABILITY_2X2,
  5815. };
  5816. /**
  5817. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  5818. *
  5819. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  5820. */
  5821. enum qca_vendor_attr_txpower_decr_db {
  5822. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  5823. /*
  5824. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  5825. * a virtual interface.
  5826. */
  5827. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  5828. /* keep last */
  5829. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  5830. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  5831. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  5832. };
  5833. /**
  5834. * enum qca_vendor_attr_ota_test - Enable OTA test
  5835. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  5836. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  5837. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  5838. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  5839. */
  5840. enum qca_vendor_attr_ota_test {
  5841. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  5842. /* 8-bit unsigned value to indicate if OTA test is enabled */
  5843. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  5844. /* keep last */
  5845. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  5846. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  5847. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  5848. };
  5849. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  5850. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  5851. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  5852. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  5853. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  5854. */
  5855. enum qca_vendor_attr_txpower_scale {
  5856. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  5857. /* 8-bit unsigned value to indicate the scaling of tx power */
  5858. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  5859. /* keep last */
  5860. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  5861. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  5862. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  5863. };
  5864. /**
  5865. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  5866. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  5867. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  5868. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  5869. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  5870. */
  5871. enum qca_vendor_attr_txpower_scale_decr_db {
  5872. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  5873. /* 8-bit unsigned value to indicate the scaling of tx power */
  5874. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  5875. /* keep last */
  5876. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  5877. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  5878. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  5879. };
  5880. /**
  5881. * enum dfs_mode - state of DFS mode
  5882. * @DFS_MODE_NONE: DFS mode attribute is none
  5883. * @DFS_MODE_ENABLE: DFS mode is enabled
  5884. * @DFS_MODE_DISABLE: DFS mode is disabled
  5885. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  5886. */
  5887. enum dfs_mode {
  5888. DFS_MODE_NONE,
  5889. DFS_MODE_ENABLE,
  5890. DFS_MODE_DISABLE,
  5891. DFS_MODE_DEPRIORITIZE
  5892. };
  5893. /**
  5894. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  5895. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  5896. *
  5897. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  5898. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  5899. *
  5900. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  5901. * channel number hint for ACS operation, if valid channel is specified then
  5902. * ACS operation gives priority to this channel.
  5903. * Note: If both the driver and user space application supports the 6 GHz band,
  5904. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  5905. * should be used.
  5906. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  5907. * is still used if either of the driver or user space application doesn't
  5908. * support the 6 GHz band.
  5909. *
  5910. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  5911. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  5912. * frequency is specified, ACS operation gives priority to this channel.
  5913. */
  5914. enum qca_wlan_vendor_attr_acs_config {
  5915. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  5916. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  5917. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  5918. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  5919. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  5920. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  5921. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  5922. };
  5923. /**
  5924. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  5925. */
  5926. enum qca_wlan_vendor_attr_get_hw_capability {
  5927. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  5928. /*
  5929. * Antenna isolation
  5930. * An attribute used in the response.
  5931. * The content of this attribute is encoded in a byte array. Each byte
  5932. * value is an antenna isolation value. The array length is the number
  5933. * of antennas.
  5934. */
  5935. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  5936. /*
  5937. * Request HW capability
  5938. * An attribute used in the request.
  5939. * The content of this attribute is a u32 array for one or more of
  5940. * hardware capabilities (attribute IDs) that are being requested. Each
  5941. * u32 value has a value from this
  5942. * enum qca_wlan_vendor_attr_get_hw_capability
  5943. * identifying which capabilities are requested.
  5944. */
  5945. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  5946. /* keep last */
  5947. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  5948. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  5949. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  5950. };
  5951. /**
  5952. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  5953. * config params for sta roam policy
  5954. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  5955. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  5956. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  5957. * If sta should skip unsafe channels or not in scanning
  5958. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  5959. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  5960. */
  5961. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  5962. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  5963. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  5964. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  5965. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  5966. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  5967. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  5968. };
  5969. /* Attributes for FTM commands and events */
  5970. /**
  5971. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  5972. *
  5973. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  5974. * enum qca_wlan_vendor_attr_loc_capa_flags.
  5975. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  5976. * of measurement sessions that can run concurrently.
  5977. * Default is one session (no session concurrency).
  5978. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  5979. * peers that are supported in running sessions. For example,
  5980. * if the value is 8 and maximum number of sessions is 2, you can
  5981. * have one session with 8 unique peers, or 2 sessions with 4 unique
  5982. * peers each, and so on.
  5983. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  5984. * of bursts per peer, as an exponent (2^value). Default is 0,
  5985. * meaning no multi-burst support.
  5986. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  5987. * of measurement exchanges allowed in a single burst.
  5988. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  5989. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  5990. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  5991. */
  5992. enum qca_wlan_vendor_attr_loc_capa {
  5993. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  5994. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  5995. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  5996. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  5997. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  5998. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  5999. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6000. /* keep last */
  6001. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6002. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6003. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6004. };
  6005. /**
  6006. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6007. *
  6008. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6009. * can be configured as an FTM responder (for example, an AP that
  6010. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6011. * will be supported if set.
  6012. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6013. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6014. * will be supported if set.
  6015. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6016. * supports immediate (ASAP) response.
  6017. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6018. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6019. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6020. * requesting AOA measurements as part of an FTM session.
  6021. */
  6022. enum qca_wlan_vendor_attr_loc_capa_flags {
  6023. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6024. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6025. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6026. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6027. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6028. };
  6029. /**
  6030. * enum qca_wlan_ani_setting - ANI setting type
  6031. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6032. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6033. */
  6034. enum qca_wlan_ani_setting {
  6035. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6036. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6037. };
  6038. /**
  6039. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6040. *
  6041. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6042. * Channel number on which Access Point should restart.
  6043. * Note: If both the driver and user space application supports the 6 GHz band,
  6044. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6045. * should be used.
  6046. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6047. * is still used if either of the driver or user space application doesn't
  6048. * support the 6 GHz band.
  6049. *
  6050. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6051. * Nested attribute to hold list of center frequencies on which AP is
  6052. * expected to operate. This is irrespective of ACS configuration.
  6053. * This list is a priority based one and is looked for before the AP is
  6054. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6055. * co-exist in the system.
  6056. *
  6057. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6058. * Channel center frequency (MHz) on which the access point should restart.
  6059. */
  6060. enum qca_wlan_vendor_attr_sap_config {
  6061. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6062. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6063. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6064. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6065. /* Keep last */
  6066. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6067. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6068. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6069. };
  6070. /**
  6071. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6072. * a single peer in a measurement session.
  6073. *
  6074. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6075. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6076. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6077. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6078. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6079. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6080. * list of supported attributes.
  6081. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6082. * secure measurement.
  6083. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6084. * measurement every <value> bursts. If 0 or not specified,
  6085. * AOA measurements will be disabled for this peer.
  6086. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6087. * the measurement frames are exchanged. Optional; if not
  6088. * specified, try to locate the peer in the kernel scan
  6089. * results cache and use frequency from there.
  6090. */
  6091. enum qca_wlan_vendor_attr_ftm_peer_info {
  6092. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6093. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6094. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6095. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6096. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6097. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6098. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6099. /* keep last */
  6100. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6101. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6102. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6103. };
  6104. /**
  6105. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6106. * per-peer
  6107. *
  6108. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6109. * immediate (ASAP) response from peer.
  6110. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6111. * LCI report from peer. The LCI report includes the absolute
  6112. * location of the peer in "official" coordinates (similar to GPS).
  6113. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6114. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6115. * Location civic report from peer. The LCR includes the location
  6116. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6117. * 11.24.6.7 for more information.
  6118. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6119. * request a secure measurement.
  6120. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6121. */
  6122. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6123. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6124. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6125. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6126. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6127. };
  6128. /**
  6129. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6130. *
  6131. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6132. * to perform in a single burst.
  6133. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6134. * perform, specified as an exponent (2^value).
  6135. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6136. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6137. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6138. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6139. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6140. */
  6141. enum qca_wlan_vendor_attr_ftm_meas_param {
  6142. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6143. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6144. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6145. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6146. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6147. /* keep last */
  6148. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6149. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6150. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6151. };
  6152. /**
  6153. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6154. *
  6155. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6156. * peer.
  6157. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6158. * request for this peer.
  6159. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6160. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6161. * to measurement results for this peer.
  6162. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6163. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6164. * request failed and peer requested not to send an additional request
  6165. * for this number of seconds.
  6166. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6167. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6168. * 9.4.2.22.10.
  6169. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6170. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6171. * 9.4.2.22.13.
  6172. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6173. * overridden some measurement request parameters. See
  6174. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6175. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6176. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6177. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6178. * results. Each entry is a nested attribute defined
  6179. * by enum qca_wlan_vendor_attr_ftm_meas.
  6180. */
  6181. enum qca_wlan_vendor_attr_ftm_peer_result {
  6182. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6183. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6184. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6185. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6186. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6187. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6188. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6189. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6190. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6191. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6192. /* keep last */
  6193. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  6194. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  6195. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  6196. };
  6197. /**
  6198. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  6199. *
  6200. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  6201. * will be provided. Peer may have overridden some measurement parameters,
  6202. * in which case overridden parameters will be report by
  6203. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  6204. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  6205. * of performing the measurement request. No more results will be sent
  6206. * for this peer in this session.
  6207. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  6208. * failed, and requested not to send an additional request for number
  6209. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  6210. * attribute.
  6211. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  6212. * failed. Request was not sent over the air.
  6213. */
  6214. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  6215. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  6216. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  6217. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  6218. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  6219. };
  6220. /**
  6221. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  6222. * for measurement result, per-peer
  6223. *
  6224. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  6225. * measurement completed for this peer. No more results will be reported
  6226. * for this peer in this session.
  6227. */
  6228. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  6229. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  6230. };
  6231. /**
  6232. * enum qca_vendor_attr_loc_session_status: Session completion status code
  6233. *
  6234. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  6235. * successfully.
  6236. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  6237. * by request.
  6238. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  6239. * was invalid and was not started.
  6240. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  6241. * and did not complete normally (for example out of resources).
  6242. */
  6243. enum qca_vendor_attr_loc_session_status {
  6244. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  6245. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  6246. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  6247. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  6248. };
  6249. /**
  6250. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  6251. *
  6252. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  6253. * recorded by responder, in picoseconds.
  6254. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6255. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  6256. * initiator, in picoseconds.
  6257. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6258. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  6259. * initiator, in picoseconds.
  6260. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6261. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  6262. * responder, in picoseconds.
  6263. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6264. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  6265. * during this measurement exchange. Optional and will be provided if
  6266. * the hardware can measure it.
  6267. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  6268. * responder. Not always provided.
  6269. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6270. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  6271. * responder. Not always provided.
  6272. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6273. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  6274. * initiator. Not always provided.
  6275. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6276. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  6277. * initiator. Not always provided.
  6278. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6279. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  6280. */
  6281. enum qca_wlan_vendor_attr_ftm_meas {
  6282. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  6283. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  6284. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  6285. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  6286. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  6287. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  6288. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  6289. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  6290. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  6291. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  6292. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  6293. /* keep last */
  6294. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  6295. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  6296. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  6297. };
  6298. /**
  6299. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  6300. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  6301. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  6302. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  6303. * of the social channels.
  6304. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  6305. * A 32-bit unsigned value; the P2P listen offload period (ms).
  6306. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  6307. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  6308. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  6309. * A 32-bit unsigned value; number of interval times the Firmware needs
  6310. * to run the offloaded P2P listen operation before it stops.
  6311. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  6312. * An array of unsigned 8-bit characters; vendor information elements.
  6313. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  6314. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  6315. * A 32-bit unsigned value; a control flag to indicate whether listen
  6316. * results need to be flushed to wpa_supplicant.
  6317. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  6318. * A 8-bit unsigned value; reason code for P2P listen offload stop
  6319. * event.
  6320. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  6321. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  6322. */
  6323. enum qca_wlan_vendor_attr_p2p_listen_offload {
  6324. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  6325. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  6326. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  6327. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  6328. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  6329. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  6330. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  6331. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  6332. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  6333. /* keep last */
  6334. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  6335. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  6336. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  6337. };
  6338. /**
  6339. * enum qca_wlan_vendor_drv_info - WLAN driver info
  6340. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  6341. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  6342. * between Firmware & Host.
  6343. */
  6344. enum qca_wlan_vendor_drv_info {
  6345. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  6346. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  6347. /* keep last */
  6348. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  6349. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  6350. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  6351. };
  6352. /**
  6353. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  6354. *
  6355. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  6356. * CIR (channel impulse response) path for each antenna.
  6357. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  6358. * of the strongest CIR path for each antenna.
  6359. */
  6360. enum qca_wlan_vendor_attr_aoa_type {
  6361. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  6362. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  6363. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  6364. };
  6365. /**
  6366. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  6367. * validate encryption engine
  6368. *
  6369. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  6370. * This will be included if the request is for decryption; if not included,
  6371. * the request is treated as a request for encryption by default.
  6372. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  6373. * indicating the key cipher suite. Takes same values as
  6374. * NL80211_ATTR_KEY_CIPHER.
  6375. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  6376. * Key Id to be used for encryption
  6377. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  6378. * Key (TK) to be used for encryption/decryption
  6379. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  6380. * Packet number to be specified for encryption/decryption
  6381. * 6 bytes for TKIP/CCMP/GCMP.
  6382. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  6383. * representing the 802.11 packet (header + payload + FCS) that
  6384. * needs to be encrypted/decrypted.
  6385. * Encrypted/decrypted response from the driver will also be sent
  6386. * to userspace with the same attribute.
  6387. */
  6388. enum qca_wlan_vendor_attr_encryption_test {
  6389. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  6390. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  6391. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  6392. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  6393. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  6394. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  6395. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  6396. /* keep last */
  6397. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  6398. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  6399. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  6400. };
  6401. /**
  6402. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  6403. * sector for DMG RF sector operations.
  6404. *
  6405. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  6406. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  6407. */
  6408. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  6409. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  6410. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  6411. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  6412. };
  6413. /**
  6414. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  6415. *
  6416. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  6417. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  6418. */
  6419. enum qca_wlan_vendor_attr_fw_state {
  6420. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  6421. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  6422. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  6423. };
  6424. /**
  6425. * BRP antenna limit mode
  6426. *
  6427. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  6428. * antenna limit, BRP will be performed as usual.
  6429. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  6430. * antennas limit. the hardware may use less antennas than the
  6431. * maximum limit.
  6432. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  6433. * use exactly the specified number of antennas for BRP.
  6434. */
  6435. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  6436. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  6437. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  6438. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  6439. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  6440. };
  6441. /**
  6442. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  6443. * DMG RF sector configuration for a single RF module.
  6444. * The values are defined in a compact way which closely matches
  6445. * the way it is stored in HW registers.
  6446. * The configuration provides values for 32 antennas and 8 distribution
  6447. * amplifiers, and together describes the characteristics of the RF
  6448. * sector - such as a beam in some direction with some gain.
  6449. *
  6450. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  6451. * of RF module for this configuration.
  6452. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  6453. * amplifier gain index. Unsigned 32 bit number containing
  6454. * bits for all 32 antennas.
  6455. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  6456. * amplifier gain index. Unsigned 32 bit number containing
  6457. * bits for all 32 antennas.
  6458. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  6459. * amplifier gain index. Unsigned 32 bit number containing
  6460. * bits for all 32 antennas.
  6461. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  6462. * for first 16 antennas, 2 bits per antenna.
  6463. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  6464. * for last 16 antennas, 2 bits per antenna.
  6465. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  6466. * DTYPE values (3 bits) for each distribution amplifier, followed
  6467. * by X16 switch bits for each distribution amplifier. There are
  6468. * total of 8 distribution amplifiers.
  6469. */
  6470. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  6471. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  6472. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  6473. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  6474. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  6475. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  6476. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  6477. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  6478. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  6479. /* keep last */
  6480. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  6481. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  6482. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  6483. };
  6484. /**
  6485. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  6486. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  6487. *
  6488. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  6489. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  6490. * represents the different TDLS trigger modes.
  6491. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  6492. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  6493. * of packets shall meet the criteria for implicit TDLS setup.
  6494. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  6495. * packets within a duration.
  6496. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  6497. * a TDLS setup.
  6498. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
  6499. * a TDLS Discovery to the Peer.
  6500. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  6501. * discovery attempts to know the TDLS capability of the peer. A peer is
  6502. * marked as TDLS not capable if there is no response for all the attempts.
  6503. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  6504. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  6505. * number of TX / RX frames meet the criteria for TDLS teardown.
  6506. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  6507. * (u32) of Tx/Rx packets within a duration
  6508. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  6509. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  6510. * corresponding to the RSSI of the peer below which a TDLS
  6511. * setup is triggered.
  6512. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  6513. * corresponding to the RSSI of the peer above which
  6514. * a TDLS teardown is triggered.
  6515. */
  6516. enum qca_wlan_vendor_attr_tdls_configuration {
  6517. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  6518. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  6519. /* Attributes configuring the TDLS Implicit Trigger */
  6520. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  6521. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  6522. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  6523. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  6524. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  6525. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  6526. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  6527. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  6528. /* keep last */
  6529. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  6530. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  6531. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  6532. };
  6533. /**
  6534. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  6535. * the driver.
  6536. *
  6537. * The following are the different values for
  6538. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  6539. *
  6540. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  6541. * initiate/teardown the TDLS connection to a respective peer comes
  6542. * from the user space. wpa_supplicant provides the commands
  6543. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  6544. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  6545. * setup/teardown to the eligible peer once the configured criteria
  6546. * (such as TX/RX threshold, RSSI) is met. The attributes
  6547. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  6548. * the different configuration criteria for the TDLS trigger from the
  6549. * host driver.
  6550. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  6551. * the TDLS setup / teardown through the implicit mode, only to the
  6552. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  6553. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  6554. * External mode works on top of the implicit mode, thus the host Driver
  6555. * is expected to be configured in TDLS Implicit mode too to operate in
  6556. * External mode. Configuring External mode alone without Implicit
  6557. * mode is invalid.
  6558. *
  6559. * All the above implementations work as expected only when the host driver
  6560. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  6561. * representing that the TDLS message exchange is not internal to the host
  6562. * driver, but depends on wpa_supplicant to do the message exchange.
  6563. */
  6564. enum qca_wlan_vendor_tdls_trigger_mode {
  6565. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  6566. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  6567. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  6568. };
  6569. /**
  6570. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  6571. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  6572. * that is hard-coded in the Board Data File (BDF).
  6573. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  6574. * that is hard-coded in the Board Data File (BDF).
  6575. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  6576. * that is hard-coded in the Board Data File (BDF).
  6577. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  6578. * that is hard-coded in the Board Data File (BDF).
  6579. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  6580. * that is hard-coded in the Board Data File (BDF).
  6581. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  6582. * source of SAR power limits, thereby disabling the SAR power
  6583. * limit feature.
  6584. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  6585. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6586. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  6587. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6588. *
  6589. * This enumerates the valid set of values that may be supplied for
  6590. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  6591. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  6592. * the response to an instance of the
  6593. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6594. */
  6595. enum qca_vendor_attr_sar_limits_selections {
  6596. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  6597. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  6598. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  6599. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  6600. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  6601. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  6602. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  6603. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  6604. };
  6605. /**
  6606. * enum qca_vendor_attr_sar_limits_spec_modulations -
  6607. * SAR limits specification modulation
  6608. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  6609. * CCK modulation
  6610. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  6611. * OFDM modulation
  6612. *
  6613. * This enumerates the valid set of values that may be supplied for
  6614. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  6615. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  6616. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  6617. * command or in the response to an instance of the
  6618. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6619. */
  6620. enum qca_vendor_attr_sar_limits_spec_modulations {
  6621. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  6622. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  6623. };
  6624. /**
  6625. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  6626. *
  6627. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  6628. * select which SAR power limit table should be used. Valid
  6629. * values are enumerated in enum
  6630. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  6631. * power limit selection is unchanged if this attribute is not
  6632. * present.
  6633. *
  6634. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  6635. * which specifies the number of SAR power limit specifications
  6636. * which will follow.
  6637. *
  6638. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  6639. * limit specifications. The number of specifications is
  6640. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  6641. * specification contains a set of
  6642. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  6643. * specification is uniquely identified by the attributes
  6644. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  6645. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  6646. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  6647. * contains as a payload the attribute
  6648. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  6649. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  6650. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  6651. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  6652. * needed based upon the value of
  6653. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  6654. *
  6655. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  6656. * indicate for which band this specification applies. Valid
  6657. * values are enumerated in enum %nl80211_band (although not all
  6658. * bands may be supported by a given device). If the attribute is
  6659. * not supplied then the specification will be applied to all
  6660. * supported bands.
  6661. *
  6662. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  6663. * to indicate for which antenna chain this specification
  6664. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  6665. * attribute is not supplied then the specification will be
  6666. * applied to all chains.
  6667. *
  6668. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  6669. * value to indicate for which modulation scheme this
  6670. * specification applies. Valid values are enumerated in enum
  6671. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  6672. * is not supplied then the specification will be applied to all
  6673. * modulation schemes.
  6674. *
  6675. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  6676. * value to specify the actual power limit value in units of 0.5
  6677. * dBm (i.e., a value of 11 represents 5.5 dBm).
  6678. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6679. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  6680. *
  6681. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  6682. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  6683. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6684. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  6685. *
  6686. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  6687. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  6688. */
  6689. enum qca_vendor_attr_sar_limits {
  6690. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  6691. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  6692. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  6693. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  6694. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  6695. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  6696. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  6697. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  6698. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  6699. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  6700. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  6701. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  6702. };
  6703. /**
  6704. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  6705. * offload which is an extension for LL_STATS.
  6706. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  6707. * If MAC counters do not exceed the threshold, FW will report monitored
  6708. * link layer counters periodically as this setting. The first report is
  6709. * always triggered by this timer.
  6710. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  6711. * For each MAC layer counter, FW holds two copies. One is the current value.
  6712. * The other is the last report. Once a current counter's increment is larger
  6713. * than the threshold, FW will indicate that counter to host even if the
  6714. * monitoring timer does not expire.
  6715. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  6716. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  6717. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  6718. * failure code.
  6719. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  6720. * 1: TX packet discarded
  6721. * 2: No ACK
  6722. * 3: Postpone
  6723. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  6724. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  6725. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  6726. * Threshold for all monitored parameters. If per counter dedicated threshold
  6727. * is not enabled, this threshold will take effect.
  6728. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  6729. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  6730. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  6731. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  6732. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  6733. * Bit0: TX counter unit in MSDU
  6734. * Bit1: TX counter unit in MPDU
  6735. * Bit2: TX counter unit in PPDU
  6736. * Bit3: TX counter unit in byte
  6737. * Bit4: Dropped MSDUs
  6738. * Bit5: Dropped Bytes
  6739. * Bit6: MPDU retry counter
  6740. * Bit7: MPDU failure counter
  6741. * Bit8: PPDU failure counter
  6742. * Bit9: MPDU aggregation counter
  6743. * Bit10: MCS counter for ACKed MPDUs
  6744. * Bit11: MCS counter for Failed MPDUs
  6745. * Bit12: TX Delay counter
  6746. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  6747. * Bit0: MAC RX counter unit in MPDU
  6748. * Bit1: MAC RX counter unit in byte
  6749. * Bit2: PHY RX counter unit in PPDU
  6750. * Bit3: PHY RX counter unit in byte
  6751. * Bit4: Disorder counter
  6752. * Bit5: Retry counter
  6753. * Bit6: Duplication counter
  6754. * Bit7: Discard counter
  6755. * Bit8: MPDU aggregation size counter
  6756. * Bit9: MCS counter
  6757. * Bit10: Peer STA power state change (wake to sleep) counter
  6758. * Bit11: Peer STA power save counter, total time in PS mode
  6759. * Bit12: Probe request counter
  6760. * Bit13: Other management frames counter
  6761. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  6762. * Bit0: Idle time
  6763. * Bit1: TX time
  6764. * Bit2: time RX in current bss
  6765. * Bit3: Out of current bss time
  6766. * Bit4: Wireless medium busy time
  6767. * Bit5: RX in bad condition time
  6768. * Bit6: TX in bad condition time
  6769. * Bit7: time wlan card not available
  6770. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  6771. * Bit0: Per channel SNR counter
  6772. * Bit1: Per channel noise floor counter
  6773. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  6774. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  6775. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  6776. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  6777. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  6778. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  6779. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  6780. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  6781. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  6782. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  6783. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  6784. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  6785. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  6786. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  6787. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  6788. * aggregation stats buffer length
  6789. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  6790. * buffer for ACKed MPDUs.
  6791. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  6792. * buffer for failed MPDUs.
  6793. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  6794. * length of delay stats array.
  6795. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  6796. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  6797. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  6798. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  6799. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  6800. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  6801. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  6802. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  6803. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  6804. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  6805. * flagged as retransmissions
  6806. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  6807. * flagged as duplicated
  6808. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  6809. * packets discarded
  6810. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  6811. * stats buffer.
  6812. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  6813. * stats buffer.
  6814. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  6815. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  6816. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  6817. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  6818. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  6819. * requests received
  6820. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  6821. * frames received
  6822. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  6823. * there is no TX, nor RX, nor interference.
  6824. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  6825. * transmitting packets.
  6826. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  6827. * for receiving.
  6828. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  6829. * interference detected.
  6830. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  6831. * receiving packets with errors.
  6832. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  6833. * TX no-ACK.
  6834. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  6835. * the chip is unable to work in normal conditions.
  6836. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  6837. * receiving packets in current BSS.
  6838. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  6839. * receiving packets not in current BSS.
  6840. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  6841. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  6842. * This is a container for per antenna signal stats.
  6843. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  6844. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  6845. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  6846. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  6847. */
  6848. enum qca_wlan_vendor_attr_ll_stats_ext {
  6849. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  6850. /* Attributes for configurations */
  6851. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  6852. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  6853. /* Peer STA power state change */
  6854. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  6855. /* TX failure event */
  6856. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  6857. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  6858. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  6859. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  6860. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  6861. /* MAC counters */
  6862. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  6863. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  6864. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  6865. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  6866. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  6867. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  6868. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  6869. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  6870. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  6871. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  6872. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  6873. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  6874. /* Sub-attributes for PEER_AC_TX */
  6875. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  6876. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  6877. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  6878. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  6879. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  6880. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  6881. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  6882. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  6883. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  6884. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  6885. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  6886. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  6887. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  6888. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  6889. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  6890. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  6891. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  6892. /* Sub-attributes for PEER_AC_RX */
  6893. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  6894. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  6895. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  6896. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  6897. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  6898. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  6899. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  6900. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  6901. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  6902. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  6903. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  6904. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  6905. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  6906. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  6907. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  6908. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  6909. /* Sub-attributes for CCA_BSS */
  6910. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  6911. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  6912. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  6913. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  6914. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  6915. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  6916. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  6917. /* sub-attribute for BSS_RX_TIME */
  6918. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  6919. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  6920. /* Sub-attributes for PEER_SIGNAL */
  6921. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  6922. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  6923. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  6924. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  6925. /* Sub-attributes for IFACE_BSS */
  6926. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  6927. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  6928. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  6929. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  6930. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  6931. };
  6932. /**
  6933. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  6934. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  6935. * in priority order as decided after ACS operation in userspace.
  6936. *
  6937. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  6938. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  6939. *
  6940. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  6941. * Array of nested values for each channel with following attributes:
  6942. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  6943. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  6944. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  6945. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  6946. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  6947. * Note: If both the driver and user-space application supports the 6 GHz band,
  6948. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  6949. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  6950. * To maintain backward compatibility,
  6951. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  6952. * is still used if either of the driver or user space application doesn't
  6953. * support the 6 GHz band.
  6954. *
  6955. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  6956. * Primary channel number
  6957. * Note: If both the driver and user-space application supports the 6 GHz band,
  6958. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  6959. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  6960. * To maintain backward compatibility,
  6961. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  6962. * is still used if either of the driver or user space application doesn't
  6963. * support the 6 GHz band.
  6964. *
  6965. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  6966. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  6967. * Note: If both the driver and user-space application supports the 6 GHz band,
  6968. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  6969. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  6970. * To maintain backward compatibility,
  6971. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  6972. * is still used if either of the driver or user space application
  6973. * doesn't support the 6 GHz band.
  6974. *
  6975. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  6976. * VHT seg0 channel number
  6977. * Note: If both the driver and user-space application supports the 6 GHz band,
  6978. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  6979. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  6980. * To maintain backward compatibility,
  6981. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  6982. * is still used if either of the driver or user space application
  6983. * doesn't support the 6 GHz band.
  6984. *
  6985. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  6986. * VHT seg1 channel number
  6987. * Note: If both the driver and user-space application supports the 6 GHz band,
  6988. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  6989. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  6990. * To maintain backward compatibility,
  6991. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  6992. * is still used if either of the driver or user space application
  6993. * doesn't support the 6 GHz band.
  6994. *
  6995. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  6996. * Takes one of enum nl80211_chan_width values.
  6997. *
  6998. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  6999. * Array of nested values for each channel with following attributes:
  7000. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7001. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7002. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7003. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7004. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7005. * Note: If user-space application has no support of the 6 GHz band, this
  7006. * attribute is optional.
  7007. *
  7008. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7009. * Primary channel frequency in MHz
  7010. * Note: If user-space application has no support of the 6 GHz band, this
  7011. * attribute is optional.
  7012. *
  7013. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7014. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7015. * Note: If user-space application has no support of the 6 GHz band, this
  7016. * attribute is optional.
  7017. *
  7018. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7019. * VHT seg0 channel frequency in MHz
  7020. * Note: If user-space application has no support of the 6GHz band, this
  7021. * attribute is optional.
  7022. *
  7023. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7024. * VHT seg1 channel frequency in MHz
  7025. * Note: If user-space application has no support of the 6 GHz band, this
  7026. * attribute is optional.
  7027. */
  7028. enum qca_wlan_vendor_attr_external_acs_channels {
  7029. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7030. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7031. */
  7032. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7033. /* Array of nested values for each channel with following attributes:
  7034. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7035. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7036. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7037. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7038. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7039. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7040. */
  7041. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7042. /* This (u8) will hold values of one of enum nl80211_bands */
  7043. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7044. /* Primary channel (u8) */
  7045. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7046. /* Secondary channel (u8) used for HT 40 MHz channels */
  7047. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7048. /* VHT seg0 channel (u8) */
  7049. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7050. /* VHT seg1 channel (u8) */
  7051. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7052. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7053. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7054. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7055. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7056. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7057. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7058. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7059. /* keep last */
  7060. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7061. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7062. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7063. };
  7064. /**
  7065. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7066. * the ACS has to be triggered. These values are used by
  7067. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7068. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7069. */
  7070. enum qca_wlan_vendor_acs_select_reason {
  7071. /* Represents the reason that the ACS triggered during the AP start */
  7072. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7073. /* Represents the reason that DFS found with the current channel */
  7074. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7075. /* Represents the reason that LTE co-exist in the current band. */
  7076. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7077. /* Represents the reason that generic, uncategorized interference has
  7078. * been found in the current channel.
  7079. */
  7080. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7081. /* Represents the reason that excessive 802.11 interference has been
  7082. * found in the current channel.
  7083. */
  7084. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7085. /* Represents the reason that generic Continuous Wave (CW) interference
  7086. * has been found in the current channel.
  7087. */
  7088. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7089. /* Represents the reason that Microwave Oven (MWO) interference has been
  7090. * found in the current channel.
  7091. */
  7092. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7093. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7094. * (FHSS) interference has been found in the current channel. This may
  7095. * include 802.11 waveforms.
  7096. */
  7097. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7098. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7099. * Spread Spectrum (FHSS) interference has been found in the current
  7100. * channel.
  7101. */
  7102. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7103. /* Represents the reason that generic Wideband (WB) interference has
  7104. * been found in the current channel. This may include 802.11 waveforms.
  7105. */
  7106. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7107. /* Represents the reason that non-802.11 generic Wideband (WB)
  7108. * interference has been found in the current channel.
  7109. */
  7110. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7111. /* Represents the reason that Jammer interference has been found in the
  7112. * current channel.
  7113. */
  7114. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7115. /* Represents the reason that ACS triggered by AFC */
  7116. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7117. };
  7118. /**
  7119. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7120. *
  7121. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7122. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7123. * to get the available value that this item can use.
  7124. *
  7125. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7126. * value to specify the gpio number.
  7127. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7128. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7129. *
  7130. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7131. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7132. * to get the available value that this item can use.
  7133. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7134. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7135. *
  7136. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7137. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7138. * to get the available value that this item can use.
  7139. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7140. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7141. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7142. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7143. * attribute is present.
  7144. *
  7145. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7146. * value to specify the gpio interrupt mode, please refer to enum
  7147. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7148. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7149. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7150. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7151. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7152. * attribute is present.
  7153. *
  7154. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7155. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7156. * to get the available value that this item can use.
  7157. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7158. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7159. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7160. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7161. * attribute is present.
  7162. *
  7163. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7164. * Value to specify the mux config. Meaning of a given value is dependent
  7165. * on the target chipset and gpio pin. Must be of the range 0-15.
  7166. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7167. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7168. *
  7169. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7170. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7171. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7172. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7173. *
  7174. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7175. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7176. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7177. * other parameters for the given GPIO will be obtained from internal
  7178. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7179. * specified to indicate the GPIO pin being configured.
  7180. */
  7181. enum qca_wlan_gpio_attr {
  7182. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7183. /* Unsigned 32-bit attribute for GPIO command */
  7184. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7185. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7186. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  7187. /* Unsigned 32-bit attribute for GPIO value to configure */
  7188. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  7189. /* Unsigned 32-bit attribute for GPIO pull type */
  7190. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  7191. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  7192. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  7193. /* Unsigned 32-bit attribute for GPIO direction to configure */
  7194. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  7195. /* Unsigned 32-bit attribute for GPIO mux config */
  7196. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  7197. /* Unsigned 32-bit attribute for GPIO drive */
  7198. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  7199. /* Flag attribute for using internal gpio configuration */
  7200. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  7201. /* keep last */
  7202. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  7203. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  7204. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  7205. };
  7206. /**
  7207. * enum gpio_cmd_type - GPIO configuration command type
  7208. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  7209. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  7210. */
  7211. enum qca_gpio_cmd_type {
  7212. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  7213. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  7214. };
  7215. /**
  7216. * enum qca_gpio_pull_type - GPIO pull type
  7217. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  7218. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  7219. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  7220. */
  7221. enum qca_gpio_pull_type {
  7222. QCA_WLAN_GPIO_PULL_NONE = 0,
  7223. QCA_WLAN_GPIO_PULL_UP = 1,
  7224. QCA_WLAN_GPIO_PULL_DOWN = 2,
  7225. QCA_WLAN_GPIO_PULL_MAX,
  7226. };
  7227. /**
  7228. * enum qca_gpio_direction - GPIO direction
  7229. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  7230. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  7231. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  7232. */
  7233. enum qca_gpio_direction {
  7234. QCA_WLAN_GPIO_INPUT = 0,
  7235. QCA_WLAN_GPIO_OUTPUT = 1,
  7236. QCA_WLAN_GPIO_DIR_MAX,
  7237. };
  7238. /**
  7239. * enum qca_gpio_value - GPIO Value
  7240. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  7241. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  7242. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  7243. */
  7244. enum qca_gpio_value {
  7245. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  7246. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  7247. QCA_WLAN_GPIO_LEVEL_MAX,
  7248. };
  7249. /**
  7250. * enum gpio_interrupt_mode - GPIO interrupt mode
  7251. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  7252. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  7253. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  7254. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  7255. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  7256. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  7257. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  7258. */
  7259. enum qca_gpio_interrupt_mode {
  7260. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  7261. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  7262. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  7263. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  7264. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  7265. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  7266. QCA_WLAN_GPIO_INTMODE_MAX,
  7267. };
  7268. /**
  7269. * enum gpio_drive - GPIO drive
  7270. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  7271. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  7272. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  7273. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  7274. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  7275. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  7276. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  7277. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  7278. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  7279. */
  7280. enum qca_gpio_drive {
  7281. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  7282. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  7283. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  7284. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  7285. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  7286. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  7287. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  7288. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  7289. QCA_WLAN_GPIO_DRIVE_MAX,
  7290. };
  7291. /**
  7292. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  7293. * MSDUQ depth threshold per peer per tid in the target
  7294. *
  7295. * Associated Vendor Command:
  7296. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  7297. */
  7298. enum qca_wlan_set_qdepth_thresh_attr {
  7299. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  7300. /* 6-byte MAC address */
  7301. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  7302. /* Unsigned 32-bit attribute for holding the TID */
  7303. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  7304. /* Unsigned 32-bit attribute for holding the update mask
  7305. * bit 0 - Update high priority msdu qdepth threshold
  7306. * bit 1 - Update low priority msdu qdepth threshold
  7307. * bit 2 - Update UDP msdu qdepth threshold
  7308. * bit 3 - Update Non UDP msdu qdepth threshold
  7309. * rest of bits are reserved
  7310. */
  7311. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  7312. /* Unsigned 32-bit attribute for holding the threshold value */
  7313. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  7314. /* keep last */
  7315. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  7316. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  7317. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  7318. };
  7319. /**
  7320. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  7321. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  7322. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  7323. * external ACS policies to select the channels w.r.t. the PCL weights.
  7324. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  7325. * their PCL weights.)
  7326. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  7327. * select a channel with non-zero PCL weight.
  7328. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  7329. * channel with non-zero PCL weight.
  7330. *
  7331. */
  7332. enum qca_wlan_vendor_attr_external_acs_policy {
  7333. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  7334. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  7335. };
  7336. /**
  7337. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  7338. */
  7339. enum qca_wlan_vendor_attr_spectral_scan {
  7340. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  7341. /*
  7342. * Number of times the chip enters spectral scan mode before
  7343. * deactivating spectral scans. When set to 0, chip will enter spectral
  7344. * scan mode continuously. u32 attribute.
  7345. */
  7346. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  7347. /*
  7348. * Spectral scan period. Period increment resolution is 256*Tclk,
  7349. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  7350. */
  7351. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  7352. /* Spectral scan priority. u32 attribute. */
  7353. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  7354. /* Number of FFT data points to compute. u32 attribute. */
  7355. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  7356. /*
  7357. * Enable targeted gain change before starting the spectral scan FFT.
  7358. * u32 attribute.
  7359. */
  7360. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  7361. /* Restart a queued spectral scan. u32 attribute. */
  7362. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  7363. /*
  7364. * Noise floor reference number for the calculation of bin power.
  7365. * u32 attribute.
  7366. */
  7367. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  7368. /*
  7369. * Disallow spectral scan triggers after TX/RX packets by setting
  7370. * this delay value to roughly SIFS time period or greater.
  7371. * u32 attribute.
  7372. */
  7373. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  7374. /*
  7375. * Number of strong bins (inclusive) per sub-channel, below
  7376. * which a signal is declared a narrow band tone. u32 attribute.
  7377. */
  7378. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  7379. /*
  7380. * Specify the threshold over which a bin is declared strong (for
  7381. * scan bandwidth analysis). u32 attribute.
  7382. */
  7383. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  7384. /* Spectral scan report mode. u32 attribute. */
  7385. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  7386. /*
  7387. * RSSI report mode, if the ADC RSSI is below
  7388. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  7389. * then FFTs will not trigger, but timestamps and summaries get
  7390. * reported. u32 attribute.
  7391. */
  7392. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  7393. /*
  7394. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  7395. * to ensure spectral scan reporting with normal error code.
  7396. * u32 attribute.
  7397. */
  7398. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  7399. /*
  7400. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  7401. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  7402. * u32 attribute.
  7403. */
  7404. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  7405. /*
  7406. * Format of FFT report to software for spectral scan triggered FFTs.
  7407. * 0: No FFT report (only spectral scan summary report)
  7408. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  7409. * report
  7410. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  7411. * bins (in-band) per FFT + spectral scan summary report
  7412. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  7413. * bins (all) per FFT + spectral scan summary report
  7414. * u32 attribute.
  7415. */
  7416. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  7417. /*
  7418. * Number of LSBs to shift out in order to scale the FFT bins.
  7419. * u32 attribute.
  7420. */
  7421. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  7422. /*
  7423. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  7424. * in dBm power. u32 attribute.
  7425. */
  7426. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  7427. /*
  7428. * Per chain enable mask to select input ADC for search FFT.
  7429. * u32 attribute.
  7430. */
  7431. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  7432. /*
  7433. * An unsigned 64-bit integer provided by host driver to identify the
  7434. * spectral scan request. This attribute is included in the scan
  7435. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  7436. * and used as an attribute in
  7437. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  7438. * specific scan to be stopped.
  7439. */
  7440. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  7441. /* Skip interval for FFT reports. u32 attribute */
  7442. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  7443. /* Set to report only one set of FFT results.
  7444. * u32 attribute.
  7445. */
  7446. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  7447. /* Debug level for spectral module in driver.
  7448. * 0 : Verbosity level 0
  7449. * 1 : Verbosity level 1
  7450. * 2 : Verbosity level 2
  7451. * 3 : Matched filterID display
  7452. * 4 : One time dump of FFT report
  7453. * u32 attribute.
  7454. */
  7455. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  7456. /* Type of spectral scan request. u32 attribute.
  7457. * It uses values defined in enum
  7458. * qca_wlan_vendor_attr_spectral_scan_request_type.
  7459. */
  7460. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  7461. /* This specifies the frequency span over which spectral
  7462. * scan would be carried out. Its value depends on the
  7463. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  7464. * the relation is as follows.
  7465. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7466. * Not applicable. Spectral scan would happen in the
  7467. * operating span.
  7468. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7469. * Center frequency (in MHz) of the span of interest or
  7470. * for convenience, center frequency (in MHz) of any channel
  7471. * in the span of interest. For 80+80 MHz agile spectral scan
  7472. * request it represents center frequency (in MHz) of the primary
  7473. * 80 MHz span or for convenience, center frequency (in MHz) of any
  7474. * channel in the primary 80 MHz span. If agile spectral scan is
  7475. * initiated without setting a valid frequency it returns the
  7476. * error code
  7477. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  7478. * u32 attribute.
  7479. */
  7480. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  7481. /* Spectral scan mode. u32 attribute.
  7482. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7483. * If this attribute is not present, it is assumed to be
  7484. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  7485. */
  7486. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  7487. /* Spectral scan error code. u32 attribute.
  7488. * It uses values defined in enum
  7489. * qca_wlan_vendor_spectral_scan_error_code.
  7490. * This attribute is included only in failure scenarios.
  7491. */
  7492. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  7493. /* 8-bit unsigned value to enable/disable debug of the
  7494. * Spectral DMA ring.
  7495. * 1-enable, 0-disable
  7496. */
  7497. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  7498. /* 8-bit unsigned value to enable/disable debug of the
  7499. * Spectral DMA buffers.
  7500. * 1-enable, 0-disable
  7501. */
  7502. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  7503. /* This specifies the frequency span over which spectral scan would be
  7504. * carried out. Its value depends on the value of
  7505. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  7506. * follows.
  7507. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7508. * Not applicable. Spectral scan would happen in the operating span.
  7509. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7510. * This attribute is applicable only for agile spectral scan
  7511. * requests in 80+80 MHz mode. It represents center frequency (in
  7512. * MHz) of the secondary 80 MHz span or for convenience, center
  7513. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  7514. * u32 attribute.
  7515. */
  7516. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  7517. /* This attribute specifies the bandwidth to be used for Spectral scan
  7518. * operation. This is an u8 attribute and uses the values in enum
  7519. * nl80211_chan_width. This is an optional attribute.
  7520. * If this attribute is not populated, the driver should configure the
  7521. * Spectral scan bandwidth to the maximum value supported by the target
  7522. * for the current operating bandwidth.
  7523. */
  7524. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  7525. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  7526. * recapture. Recapture can only be enabled for Scan period greater
  7527. * than 52us.
  7528. * If this attribute is enabled, re-triggers will be enabled in uCode
  7529. * when AGC gain changes.
  7530. */
  7531. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  7532. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  7533. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  7534. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  7535. };
  7536. /**
  7537. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  7538. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  7539. */
  7540. enum qca_wlan_vendor_attr_spectral_diag_stats {
  7541. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  7542. /* Number of spectral TLV signature mismatches.
  7543. * u64 attribute.
  7544. */
  7545. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  7546. /* Number of spectral phyerror events with insufficient length when
  7547. * parsing for secondary 80 search FFT report. u64 attribute.
  7548. */
  7549. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  7550. /* Number of spectral phyerror events without secondary 80
  7551. * search FFT report. u64 attribute.
  7552. */
  7553. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  7554. /* Number of spectral phyerror events with vht operation segment 1 id
  7555. * mismatches in search fft report. u64 attribute.
  7556. */
  7557. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  7558. /* Number of spectral phyerror events with vht operation segment 2 id
  7559. * mismatches in search fft report. u64 attribute.
  7560. */
  7561. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  7562. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  7563. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  7564. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  7565. };
  7566. /**
  7567. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  7568. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  7569. */
  7570. enum qca_wlan_vendor_attr_spectral_cap {
  7571. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  7572. /* Flag attribute to indicate phydiag capability */
  7573. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  7574. /* Flag attribute to indicate radar detection capability */
  7575. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  7576. /* Flag attribute to indicate spectral capability */
  7577. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  7578. /* Flag attribute to indicate advanced spectral capability */
  7579. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  7580. /* Spectral hardware generation. u32 attribute.
  7581. * It uses values defined in enum
  7582. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  7583. */
  7584. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  7585. /* Spectral bin scaling formula ID. u16 attribute.
  7586. * It uses values defined in enum
  7587. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  7588. */
  7589. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  7590. /* Spectral bin scaling param - low level offset.
  7591. * s16 attribute.
  7592. */
  7593. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  7594. /* Spectral bin scaling param - high level offset.
  7595. * s16 attribute.
  7596. */
  7597. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  7598. /* Spectral bin scaling param - RSSI threshold.
  7599. * s16 attribute.
  7600. */
  7601. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  7602. /* Spectral bin scaling param - default AGC max gain.
  7603. * u8 attribute.
  7604. */
  7605. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  7606. /* Flag attribute to indicate agile spectral scan capability
  7607. * for 20/40/80 MHz modes.
  7608. */
  7609. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  7610. /* Flag attribute to indicate agile spectral scan capability
  7611. * for 160 MHz mode.
  7612. */
  7613. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  7614. /* Flag attribute to indicate agile spectral scan capability
  7615. * for 80+80 MHz mode.
  7616. */
  7617. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  7618. /* Number of spectral detectors used for scan in 20 MHz.
  7619. * u32 attribute.
  7620. */
  7621. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  7622. /* Number of spectral detectors used for scan in 40 MHz.
  7623. * u32 attribute.
  7624. */
  7625. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  7626. /* Number of spectral detectors used for scan in 80 MHz.
  7627. * u32 attribute.
  7628. */
  7629. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  7630. /* Number of spectral detectors used for scan in 160 MHz.
  7631. * u32 attribute.
  7632. */
  7633. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  7634. /* Number of spectral detectors used for scan in 80+80 MHz.
  7635. * u32 attribute.
  7636. */
  7637. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  7638. /* Flag attribute to indicate agile spectral scan capability
  7639. * for 320 MHz mode.
  7640. */
  7641. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  7642. /* Number of spectral detectors used for scan in 320 MHz.
  7643. * u32 attribute.
  7644. */
  7645. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  7646. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  7647. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  7648. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  7649. };
  7650. /**
  7651. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  7652. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  7653. */
  7654. enum qca_wlan_vendor_attr_spectral_scan_status {
  7655. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  7656. /* Flag attribute to indicate whether spectral scan is enabled */
  7657. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  7658. /* Flag attribute to indicate whether spectral scan is in progress*/
  7659. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  7660. /* Spectral scan mode. u32 attribute.
  7661. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7662. * If this attribute is not present, normal mode
  7663. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  7664. * requested.
  7665. */
  7666. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  7667. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  7668. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  7669. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  7670. };
  7671. /**
  7672. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  7673. * wlan latency module.
  7674. *
  7675. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  7676. * power saving which would causing data exchange out of service, this
  7677. * would be a big impact on latency. For latency sensitive applications over
  7678. * Wi-Fi are intolerant to such operations and thus would configure them
  7679. * to meet their respective needs. It is well understood by such applications
  7680. * that altering the default behavior would degrade the Wi-Fi functionality
  7681. * w.r.t the above pointed WLAN operations.
  7682. *
  7683. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  7684. * Default WLAN operation level which throughput orientated.
  7685. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  7686. * Use XR level to benefit XR (extended reality) application to achieve
  7687. * latency and power by via constraint scan/roaming/adaptive PS.
  7688. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  7689. * Use low latency level to benifit application like concurrent
  7690. * downloading or video streaming via constraint scan/adaptive PS.
  7691. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  7692. * Use ultra low latency level to benefit for gaming/voice
  7693. * application via constraint scan/roaming/adaptive PS.
  7694. */
  7695. enum qca_wlan_vendor_attr_config_latency_level {
  7696. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  7697. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  7698. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  7699. /* legacy name */
  7700. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  7701. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  7702. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  7703. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  7704. /* keep last */
  7705. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  7706. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  7707. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  7708. };
  7709. /**
  7710. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  7711. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  7712. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  7713. * spectral scan request types.
  7714. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  7715. * set the spectral parameters and start scan.
  7716. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  7717. * only set the spectral parameters.
  7718. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  7719. * only start the spectral scan.
  7720. */
  7721. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  7722. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  7723. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  7724. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  7725. };
  7726. /**
  7727. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  7728. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  7729. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  7730. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  7731. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  7732. * spectral scan modes.
  7733. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  7734. * spectral scan in the current operating span.
  7735. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  7736. * spectral scan in the configured agile span.
  7737. */
  7738. enum qca_wlan_vendor_spectral_scan_mode {
  7739. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  7740. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  7741. };
  7742. /**
  7743. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  7744. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  7745. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  7746. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  7747. * of a parameter is not supported.
  7748. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  7749. * mode is not supported.
  7750. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  7751. * has invalid value.
  7752. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  7753. * is not initialized.
  7754. */
  7755. enum qca_wlan_vendor_spectral_scan_error_code {
  7756. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  7757. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  7758. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  7759. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  7760. };
  7761. /**
  7762. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  7763. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  7764. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  7765. * spectral hardware generation.
  7766. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  7767. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  7768. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  7769. */
  7770. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  7771. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  7772. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  7773. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  7774. };
  7775. /**
  7776. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  7777. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  7778. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  7779. * Spectral bin scaling formula ID.
  7780. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  7781. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  7782. * and RSSI threshold based formula.
  7783. */
  7784. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  7785. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  7786. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  7787. };
  7788. /**
  7789. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  7790. * RF Operating Parameter (RROP) information is available, and if so, at which
  7791. * point in the application-driver interaction sequence it can be retrieved by
  7792. * the application from the driver. This point may vary by architecture and
  7793. * other factors. This is a u16 value.
  7794. */
  7795. enum qca_wlan_vendor_attr_rropavail_info {
  7796. /* RROP information is unavailable. */
  7797. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  7798. /* RROP information is available and the application can retrieve the
  7799. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  7800. * event from the driver.
  7801. */
  7802. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  7803. /* RROP information is available only after a vendor specific scan
  7804. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  7805. * successfully completed. The application can retrieve the information
  7806. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  7807. * the driver.
  7808. */
  7809. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  7810. };
  7811. /**
  7812. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  7813. * Representative RF Operating Parameter (RROP) information. It is sent for the
  7814. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  7815. * intended for use by external Auto Channel Selection applications. It provides
  7816. * guidance values for some RF parameters that are used by the system during
  7817. * operation. These values could vary by channel, band, radio, and so on.
  7818. */
  7819. enum qca_wlan_vendor_attr_rrop_info {
  7820. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  7821. /* Representative Tx Power List (RTPL) which has an array of nested
  7822. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  7823. */
  7824. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  7825. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  7826. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  7827. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  7828. };
  7829. /**
  7830. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  7831. * entry instances in the Representative Tx Power List (RTPL). It provides
  7832. * simplified power values intended for helping external Auto channel Selection
  7833. * applications compare potential Tx power performance between channels, other
  7834. * operating conditions remaining identical. These values are not necessarily
  7835. * the actual Tx power values that will be used by the system. They are also not
  7836. * necessarily the max or average values that will be used. Instead, they are
  7837. * relative, summarized keys for algorithmic use computed by the driver or
  7838. * underlying firmware considering a number of vendor specific factors.
  7839. */
  7840. enum qca_wlan_vendor_attr_rtplinst {
  7841. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  7842. /* Primary channel number (u8).
  7843. * Note: If both the driver and user space application support the
  7844. * 6 GHz band, this attribute is deprecated and
  7845. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  7846. * maintain backward compatibility,
  7847. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  7848. * driver or user space application or both do not support the 6 GHz
  7849. * band.
  7850. */
  7851. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  7852. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  7853. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  7854. /* Representative Tx power in dBm (s32) with emphasis on range. */
  7855. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  7856. /* Primary channel center frequency (u32) in MHz */
  7857. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  7858. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  7859. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  7860. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  7861. };
  7862. /**
  7863. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  7864. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  7865. *
  7866. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  7867. * array of nested values as per attributes in
  7868. * enum qca_wlan_vendor_attr_mac_mode_info.
  7869. */
  7870. enum qca_wlan_vendor_attr_mac {
  7871. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  7872. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  7873. /* keep last */
  7874. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  7875. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  7876. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  7877. };
  7878. /**
  7879. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  7880. * WiFi netdev interface on a respective MAC. Used by the attribute
  7881. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  7882. *
  7883. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  7884. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  7885. * the connected Wi-Fi interface(u32).
  7886. */
  7887. enum qca_wlan_vendor_attr_mac_iface_info {
  7888. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  7889. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  7890. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  7891. /* keep last */
  7892. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  7893. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  7894. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  7895. };
  7896. /**
  7897. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  7898. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  7899. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  7900. *
  7901. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  7902. * MAC (u32)
  7903. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  7904. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  7905. * in enum nl80211_band.
  7906. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  7907. * interfaces associated with this MAC. Represented by enum
  7908. * qca_wlan_vendor_attr_mac_iface_info.
  7909. */
  7910. enum qca_wlan_vendor_attr_mac_info {
  7911. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  7912. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  7913. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  7914. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  7915. /* keep last */
  7916. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  7917. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  7918. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  7919. };
  7920. /**
  7921. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  7922. * to get thermal status from driver/firmware.
  7923. * enum values are used for NL attributes encapsulated inside
  7924. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  7925. *
  7926. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  7927. * of a thermal level in Celsius. u32 size.
  7928. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  7929. * of a thermal level in Celsius. u32 size.
  7930. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  7931. * thermal level in milliseconds. u32 size.
  7932. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  7933. * of times the temperature crossed into the temperature range defined by the
  7934. * thermal level from both higher and lower directions. u32 size.
  7935. */
  7936. enum qca_wlan_vendor_attr_thermal_stats {
  7937. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  7938. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  7939. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  7940. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  7941. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  7942. /* keep last */
  7943. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  7944. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  7945. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  7946. };
  7947. /**
  7948. * enum he_fragmentation_val - HE fragmentation support values
  7949. * Indicates level of dynamic fragmentation that is supported by
  7950. * a STA as a recipient.
  7951. * HE fragmentation values are defined as per 11ax spec and are used in
  7952. * HE capability IE to advertise the support. These values are validated
  7953. * in the driver to check the device capability and advertised in the HE
  7954. * capability element.
  7955. *
  7956. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  7957. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  7958. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  7959. * within an A-MPDU that is not an S-MPDU.
  7960. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  7961. * contained within an MPDU or S-MPDU and support for up to one dynamic
  7962. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  7963. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  7964. * MPDU or S-MPDU.
  7965. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  7966. * contained within an MPDU or S-MPDU and support for multiple dynamic
  7967. * fragments for each MSDU and for each A-MSDU if supported by the
  7968. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  7969. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  7970. */
  7971. enum he_fragmentation_val {
  7972. HE_FRAG_DISABLE,
  7973. HE_FRAG_LEVEL1,
  7974. HE_FRAG_LEVEL2,
  7975. HE_FRAG_LEVEL3,
  7976. };
  7977. /**
  7978. * enum he_mcs_config - HE MCS support configuration
  7979. *
  7980. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  7981. * These values are used in driver to configure the HE MCS map to advertise
  7982. * Tx/Rx MCS map in HE capability and these values are applied for all the
  7983. * streams supported by the device. To configure MCS for different bandwidths,
  7984. * vendor command needs to be sent using this attribute with appropriate value.
  7985. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  7986. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  7987. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  7988. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  7989. *
  7990. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  7991. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  7992. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  7993. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  7994. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  7995. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  7996. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  7997. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  7998. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  7999. */
  8000. enum he_mcs_config {
  8001. HE_80_MCS0_7 = 0,
  8002. HE_80_MCS0_9 = 1,
  8003. HE_80_MCS0_11 = 2,
  8004. HE_160_MCS0_7 = 4,
  8005. HE_160_MCS0_9 = 5,
  8006. HE_160_MCS0_11 = 6,
  8007. HE_80p80_MCS0_7 = 8,
  8008. HE_80p80_MCS0_9 = 9,
  8009. HE_80p80_MCS0_11 = 10,
  8010. };
  8011. /**
  8012. * enum qca_wlan_ba_session_config - BA session configuration
  8013. *
  8014. * Indicates the configuration values for BA session configuration attribute.
  8015. *
  8016. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8017. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8018. */
  8019. enum qca_wlan_ba_session_config {
  8020. QCA_WLAN_ADD_BA = 1,
  8021. QCA_WLAN_DELETE_BA = 2,
  8022. };
  8023. /**
  8024. * enum qca_wlan_ac_type - access category type
  8025. *
  8026. * Indicates the access category type value.
  8027. *
  8028. * @QCA_WLAN_AC_BE: BE access category
  8029. * @QCA_WLAN_AC_BK: BK access category
  8030. * @QCA_WLAN_AC_VI: VI access category
  8031. * @QCA_WLAN_AC_VO: VO access category
  8032. * @QCA_WLAN_AC_ALL: All ACs
  8033. */
  8034. enum qca_wlan_ac_type {
  8035. QCA_WLAN_AC_BE = 0,
  8036. QCA_WLAN_AC_BK = 1,
  8037. QCA_WLAN_AC_VI = 2,
  8038. QCA_WLAN_AC_VO = 3,
  8039. QCA_WLAN_AC_ALL = 4,
  8040. };
  8041. /**
  8042. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8043. *
  8044. * Indicates the HE LTF configuration value.
  8045. *
  8046. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8047. * the mandatory HE-LTF based on the GI setting
  8048. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8049. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8050. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8051. */
  8052. enum qca_wlan_he_ltf_cfg {
  8053. QCA_WLAN_HE_LTF_AUTO = 0,
  8054. QCA_WLAN_HE_LTF_1X = 1,
  8055. QCA_WLAN_HE_LTF_2X = 2,
  8056. QCA_WLAN_HE_LTF_4X = 3,
  8057. };
  8058. /**
  8059. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8060. *
  8061. * Indicates the HE trigger frame MAC padding duration value.
  8062. *
  8063. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8064. * process the trigger frame.
  8065. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8066. * trigger frame.
  8067. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8068. * trigger frame.
  8069. */
  8070. enum qca_wlan_he_mac_padding_dur {
  8071. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8072. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8073. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8074. };
  8075. /**
  8076. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8077. *
  8078. * Indicates the HE Operating mode control channel width setting value.
  8079. *
  8080. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8081. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8082. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8083. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8084. */
  8085. enum qca_wlan_he_om_ctrl_ch_bw {
  8086. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8087. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8088. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8089. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8090. };
  8091. /**
  8092. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8093. *
  8094. * Indicates the frame types to use for keep alive data.
  8095. *
  8096. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8097. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8098. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8099. */
  8100. enum qca_wlan_keep_alive_data_type {
  8101. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8102. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8103. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8104. };
  8105. /**
  8106. * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
  8107. * HE operating mode control transmit request. These attributes are
  8108. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
  8109. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  8110. *
  8111. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  8112. * indicates the maximum number of spatial streams, NSS, that the STA
  8113. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  8114. * and is set to NSS - 1.
  8115. *
  8116. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  8117. * indicates the operating channel width supported by the STA for both
  8118. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  8119. *
  8120. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  8121. * indicates the all trigger based UL MU operations by the STA.
  8122. * 0 - UL MU operations are enabled by the STA.
  8123. * 1 - All triggered UL MU transmissions are suspended by the STA.
  8124. *
  8125. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  8126. * indicates the maximum number of space-time streams, NSTS, that
  8127. * the STA supports in transmission and is set to NSTS - 1.
  8128. *
  8129. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  8130. * combined with the UL MU Disable subfield and the recipient's setting
  8131. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  8132. * capabilities to determine which HE TB PPDUs are possible by the
  8133. * STA to transmit.
  8134. * 0 - UL MU data operations are enabled by the STA.
  8135. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  8136. * bit is not set, else UL MU Tx is suspended.
  8137. *
  8138. */
  8139. enum qca_wlan_vendor_attr_he_omi_tx {
  8140. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  8141. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  8142. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  8143. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  8144. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  8145. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  8146. /* keep last */
  8147. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
  8148. QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
  8149. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
  8150. };
  8151. /**
  8152. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  8153. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  8154. *
  8155. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  8156. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  8157. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  8158. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  8159. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  8160. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  8161. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  8162. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  8163. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  8164. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  8165. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  8166. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  8167. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  8168. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  8169. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  8170. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  8171. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  8172. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  8173. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  8174. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  8175. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  8176. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  8177. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  8178. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  8179. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  8180. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  8181. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  8182. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  8183. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  8184. */
  8185. enum qca_wlan_vendor_phy_mode {
  8186. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  8187. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  8188. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  8189. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  8190. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  8191. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  8192. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  8193. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  8194. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  8195. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  8196. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  8197. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  8198. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  8199. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  8200. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  8201. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  8202. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  8203. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  8204. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  8205. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  8206. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  8207. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  8208. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  8209. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  8210. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  8211. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  8212. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  8213. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  8214. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  8215. };
  8216. /* Attributes for data used by
  8217. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  8218. */
  8219. enum qca_wlan_vendor_attr_wifi_test_config {
  8220. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  8221. /* 8-bit unsigned value to configure the driver to enable/disable
  8222. * WMM feature. This attribute is used to configure testbed device.
  8223. * 1-enable, 0-disable
  8224. */
  8225. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  8226. /* 8-bit unsigned value to configure the driver to accept/reject
  8227. * the addba request from peer. This attribute is used to configure
  8228. * the testbed device.
  8229. * 1-accept addba, 0-reject addba
  8230. */
  8231. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  8232. /* 8-bit unsigned value to configure the driver to send or not to
  8233. * send the addba request to peer.
  8234. * This attribute is used to configure the testbed device.
  8235. * 1-send addba, 0-do not send addba
  8236. */
  8237. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  8238. /* 8-bit unsigned value to indicate the HE fragmentation support.
  8239. * Uses enum he_fragmentation_val values.
  8240. * This attribute is used to configure the testbed device to
  8241. * allow the advertised hardware capabilities to be downgraded
  8242. * for testing purposes.
  8243. */
  8244. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  8245. /* 8-bit unsigned value to indicate the HE MCS support.
  8246. * Uses enum he_mcs_config values.
  8247. * This attribute is used to configure the testbed device to
  8248. * allow the advertised hardware capabilities to be downgraded
  8249. * for testing purposes.
  8250. */
  8251. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  8252. /* 8-bit unsigned value to configure the driver to allow or not to
  8253. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  8254. * This attribute is used to configure the testbed device.
  8255. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  8256. */
  8257. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  8258. /* 8-bit unsigned value to configure the driver to add a
  8259. * new BA session or delete the existing BA session for
  8260. * given TID. ADDBA command uses the buffer size and tid
  8261. * configuration if user specifies the values else default
  8262. * value for buffer size is used for all tids if the tid
  8263. * also not specified. For DEL_BA command TID value is
  8264. * required to process the command.
  8265. * Uses enum qca_wlan_ba_session_config values.
  8266. * This attribute is used to configure the testbed device.
  8267. */
  8268. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  8269. /* 16-bit unsigned value to configure the buffer size in addba
  8270. * request and response frames.
  8271. * This attribute is used to configure the testbed device.
  8272. * The range of the value is 0 to 256.
  8273. */
  8274. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  8275. /* 8-bit unsigned value to configure the buffer size in addba
  8276. * request and response frames.
  8277. * This attribute is used to configure the testbed device.
  8278. */
  8279. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  8280. /* 8-bit unsigned value to configure the no ack policy.
  8281. * To configure no ack policy, access category value
  8282. * is required to process the command.
  8283. * This attribute is used to configure the testbed device.
  8284. * 1 - enable no ack, 0 - disable no ack
  8285. */
  8286. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  8287. /* 8-bit unsigned value to configure the AC for no ack policy
  8288. * This attribute is used to configure the testbed device.
  8289. * uses the enum qca_wlan_ac_type values
  8290. */
  8291. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  8292. /* 8-bit unsigned value to configure the HE LTF
  8293. * This attribute is used to configure the testbed device.
  8294. * Uses the enum qca_wlan_he_ltf_cfg values.
  8295. */
  8296. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  8297. /* 8-bit unsigned value to configure the tx beamformee.
  8298. * This attribute is used to configure the testbed device.
  8299. * 1 - enable, 0 - disable.
  8300. */
  8301. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  8302. /* 8-bit unsigned value to configure the tx beamformee number of
  8303. * space-time streams.
  8304. * This attribute is used to configure the testbed device.
  8305. * The range of the value is 0 to 8
  8306. */
  8307. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  8308. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  8309. * This attribute is used to configure the testbed device.
  8310. * Uses the enum qca_wlan_ac_type values.
  8311. */
  8312. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  8313. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  8314. * To configure MU EDCA AIFSN value, MU EDCA access category value
  8315. * is required to process the command.
  8316. * This attribute is used to configure the testbed device.
  8317. */
  8318. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  8319. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  8320. * given AC.
  8321. * To configure MU EDCA ECW min value, MU EDCA access category value
  8322. * is required to process the command.
  8323. * This attribute is used to configure the testbed device.
  8324. */
  8325. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  8326. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  8327. * given AC.
  8328. * To configure MU EDCA ECW max value, MU EDCA access category value
  8329. * is required to process the command.
  8330. * This attribute is used to configure the testbed device.
  8331. */
  8332. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  8333. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  8334. * To configure MU EDCA timer value, MU EDCA access category value
  8335. * is required to process the command.
  8336. * This attribute is used to configure the testbed device.
  8337. */
  8338. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  8339. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  8340. * duration.
  8341. * This attribute is used to configure the testbed device.
  8342. * Uses the enum qca_wlan_he_mac_padding_dur values.
  8343. */
  8344. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  8345. /* 8-bit unsigned value to override the MU EDCA params to defaults
  8346. * regardless of the AP beacon MU EDCA params. If it is enabled use
  8347. * the default values else use the MU EDCA params from AP beacon.
  8348. * This attribute is used to configure the testbed device.
  8349. * 1 - enable override, 0 - disable.
  8350. */
  8351. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  8352. /* 8-bit unsigned value to configure the support for receiving
  8353. * an MPDU that contains an operating mode control subfield.
  8354. * This attribute is used to configure the testbed device.
  8355. * 1-enable, 0-disable.
  8356. */
  8357. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  8358. /* Nested attribute values required to setup the TWT session.
  8359. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  8360. * information to set up the session. It contains broadcast flags,
  8361. * set_up flags, trigger value, flow type, flow ID, wake interval
  8362. * exponent, protection, target wake time, wake duration, wake interval
  8363. * mantissa. These nested attributes are used to setup a host triggered
  8364. * TWT session.
  8365. */
  8366. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  8367. /* This nested attribute is used to terminate the current TWT session.
  8368. * It does not currently carry any attributes.
  8369. */
  8370. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  8371. /* This nested attribute is used to suspend the current TWT session.
  8372. * It does not currently carry any attributes.
  8373. */
  8374. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  8375. /* Nested attribute values to indicate the request for resume.
  8376. * This attribute is used to resume the TWT session.
  8377. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  8378. * parameters required to resume the TWT session.
  8379. */
  8380. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  8381. /* 8-bit unsigned value to set the HE operating mode control
  8382. * (OM CTRL) Channel Width subfield.
  8383. * The Channel Width subfield indicates the operating channel width
  8384. * supported by the STA for both reception and transmission.
  8385. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  8386. * This setting is cleared with the
  8387. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8388. * flag attribute to reset defaults.
  8389. * This attribute is used to configure the testbed device.
  8390. */
  8391. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  8392. /* 8-bit unsigned value to configure the number of spatial
  8393. * streams in HE operating mode control field.
  8394. * This setting is cleared with the
  8395. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8396. * flag attribute to reset defaults.
  8397. * This attribute is used to configure the testbed device.
  8398. */
  8399. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  8400. /* Flag attribute to configure the UL MU disable bit in
  8401. * HE operating mode control field.
  8402. * This setting is cleared with the
  8403. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8404. * flag attribute to reset defaults.
  8405. * This attribute is used to configure the testbed device.
  8406. */
  8407. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  8408. /* Flag attribute to clear the previously set HE operating mode
  8409. * control field configuration.
  8410. * This attribute is used to configure the testbed device to reset
  8411. * defaults to clear any previously set HE operating mode control
  8412. * field configuration.
  8413. */
  8414. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  8415. /* 8-bit unsigned value to configure HE single user PPDU
  8416. * transmission. By default this setting is disabled and it
  8417. * is disabled in the reset defaults of the device configuration.
  8418. * This attribute is used to configure the testbed device.
  8419. * 1-enable, 0-disable
  8420. */
  8421. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  8422. /* 8-bit unsigned value to configure action frame transmission
  8423. * in HE trigger based PPDU transmission.
  8424. * By default this setting is disabled and it is disabled in
  8425. * the reset defaults of the device configuration.
  8426. * This attribute is used to configure the testbed device.
  8427. * 1-enable, 0-disable
  8428. */
  8429. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  8430. /* Nested attribute to indicate HE operating mode control field
  8431. * transmission. It contains operating mode control field Nss,
  8432. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  8433. * These nested attributes are used to send HE operating mode control
  8434. * with configured values.
  8435. * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
  8436. * This attribute is used to configure the testbed device.
  8437. */
  8438. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
  8439. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  8440. * support for the reception of a frame that carries an HE variant
  8441. * HT Control field.
  8442. * This attribute is used to configure the testbed device.
  8443. * 1-enable, 0-disable
  8444. */
  8445. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  8446. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  8447. * This attribute is used to configure the testbed device.
  8448. * 1-enable, 0-disable
  8449. */
  8450. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  8451. /* 8-bit unsigned value to configure HE testbed defaults.
  8452. * This attribute is used to configure the testbed device.
  8453. * 1-set the device HE capabilities to testbed defaults.
  8454. * 0-reset the device HE capabilities to supported config.
  8455. */
  8456. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  8457. /* 8-bit unsigned value to configure twt request support.
  8458. * This attribute is used to configure the testbed device.
  8459. * 1-enable, 0-disable.
  8460. */
  8461. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  8462. /* 8-bit unsigned value to configure protection for Management
  8463. * frames when PMF is enabled for the association.
  8464. * This attribute is used to configure the testbed device.
  8465. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  8466. */
  8467. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  8468. /* Flag attribute to inject Disassociation frame to the connected AP.
  8469. * This attribute is used to configure the testbed device.
  8470. */
  8471. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  8472. /* 8-bit unsigned value to configure an override for the RSNXE Used
  8473. * subfield in the MIC control field of the FTE in FT Reassociation
  8474. * Request frame.
  8475. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  8476. * This attribute is used to configure the testbed device.
  8477. * This attribute can be configured when STA is in disconnected or
  8478. * associated state and the configuration is valid until the next
  8479. * disconnection.
  8480. */
  8481. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  8482. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  8483. * Switch Announcement) when STA is in connected state.
  8484. * 0 - Default behavior, 1 - Ignore CSA.
  8485. * This attribute is used to configure the testbed device.
  8486. * This attribute can be configured when STA is in disconnected or
  8487. * associated state and the configuration is valid until the next
  8488. * disconnection.
  8489. */
  8490. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  8491. /* Nested attribute values required to configure OCI (Operating Channel
  8492. * Information). Attributes defined in enum
  8493. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  8494. * This attribute is used to configure the testbed device.
  8495. * This attribute can be configured when STA is in disconnected or
  8496. * associated state and the configuration is valid until the next
  8497. * disconnection.
  8498. */
  8499. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  8500. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  8501. * Query timeout. If this configuration is enabled STA shall not send
  8502. * Deauthentication frmae when SA Query times out (mainly, after a
  8503. * channel switch when OCV is enabled).
  8504. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  8505. * This attribute is used to configure the testbed device.
  8506. * This attribute can be configured only when STA is in associated state
  8507. * and the configuration is valid until the disconnection.
  8508. */
  8509. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  8510. /* 8-bit unsigned value to configure the driver/firmware to start or
  8511. * stop transmitting FILS discovery frames.
  8512. * 0 - Stop transmitting FILS discovery frames
  8513. * 1 - Start transmitting FILS discovery frames
  8514. * This attribute is used to configure the testbed device.
  8515. * This attribute can be configured only in AP mode and the
  8516. * configuration is valid until AP restart.
  8517. */
  8518. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  8519. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8520. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  8521. * information field.
  8522. * 0 - Disable full bandwidth UL MU-MIMO subfield
  8523. * 1 - Enable full bandwidth UL MU-MIMO subfield
  8524. * This attribute is used to configure the testbed device.
  8525. */
  8526. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  8527. /* 16-bit unsigned value to configure the driver with a specific BSS
  8528. * max idle period to advertise in the BSS Max Idle Period element
  8529. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  8530. * This attribute is used to configure the testbed device.
  8531. */
  8532. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  8533. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  8534. * for data transmission.
  8535. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  8536. * This attribute is used to configure the testbed device.
  8537. */
  8538. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  8539. /* 8-bit unsigned value to configure the driver to disable data and
  8540. * management response frame transmission to test the BSS max idle
  8541. * feature.
  8542. * 0 - Default behavior, 1 - Disable data and management response Tx.
  8543. * This attribute is used to configure the testbed device.
  8544. */
  8545. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  8546. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8547. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  8548. * information field.
  8549. * 0 - Disable Punctured Preamble Rx subfield
  8550. * 1 - Enable Punctured Preamble Rx subfield
  8551. * This attribute is used to configure the testbed device.
  8552. */
  8553. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  8554. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  8555. * requirement mismatch for 6 GHz connection.
  8556. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  8557. * This attribute is used to configure the testbed device.
  8558. */
  8559. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  8560. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  8561. * connection with all security modes.
  8562. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  8563. * modes.
  8564. * This attribute is used for testing purposes.
  8565. */
  8566. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  8567. /* 8-bit unsigned value to configure the driver to transmit data with
  8568. * ER SU PPDU type.
  8569. *
  8570. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  8571. * This attribute is used for testing purposes.
  8572. */
  8573. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  8574. /* 8-bit unsigned value to configure the driver to use Data or
  8575. * Management frame type for keep alive data.
  8576. * Uses enum qca_wlan_keep_alive_data_type values.
  8577. *
  8578. * This attribute is used for testing purposes.
  8579. */
  8580. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  8581. /* 8-bit unsigned value to configure the driver to use scan request
  8582. * BSSID value in Probe Request frame RA(A1) during the scan. The
  8583. * driver saves this configuration and applies this setting to all user
  8584. * space scan requests until the setting is cleared. If this
  8585. * configuration is set, the driver uses the BSSID value from the scan
  8586. * request to set the RA(A1) in the Probe Request frames during the
  8587. * scan.
  8588. *
  8589. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  8590. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  8591. * This attribute is used for testing purposes.
  8592. */
  8593. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  8594. /* 8-bit unsigned value to configure the driver to enable/disable the
  8595. * BSS max idle period support.
  8596. *
  8597. * 0 - Disable the BSS max idle support.
  8598. * 1 - Enable the BSS max idle support.
  8599. * This attribute is used for testing purposes.
  8600. */
  8601. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  8602. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8603. * disable Rx control frame to MultiBSS subfield in the HE MAC
  8604. * capabilities information field.
  8605. * 0 - Disable Rx control frame to MultiBSS subfield
  8606. * 1 - Enable Rx control frame to MultiBSS subfield
  8607. * This attribute is used to configure the testbed device.
  8608. */
  8609. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  8610. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8611. * disable Broadcast TWT support subfield in the HE MAC capabilities
  8612. * information field.
  8613. * 0 - Disable Broadcast TWT support subfield
  8614. * 1 - Enable Broadcast TWT support subfield
  8615. * This attribute is used to configure the testbed device.
  8616. */
  8617. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  8618. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  8619. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  8620. * and if the FW supports this capability too, then the STA host
  8621. * advertises this capability to AP over assoc request frame. This
  8622. * attribute will not have any effect on legacy devices with no 802.11be
  8623. * support.
  8624. * 0 - Default behavior
  8625. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  8626. * This attribute is used to configure the testbed device.
  8627. */
  8628. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  8629. /* keep last */
  8630. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  8631. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  8632. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  8633. };
  8634. /**
  8635. * enum qca_wlan_twt_operation - Operation of the config TWT request
  8636. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  8637. * The response for the respective operations can be either synchronous or
  8638. * asynchronous (wherever specified). If synchronous, the response to this
  8639. * operation is obtained in the corresponding vendor command reply to the user
  8640. * space. For the asynchronous case the response is obtained as an event with
  8641. * the same operation type.
  8642. *
  8643. * Drivers shall support either of these modes but not both simultaneously.
  8644. * This support for asynchronous mode is advertised through the flag
  8645. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  8646. * the driver shall support synchronous mode.
  8647. *
  8648. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  8649. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8650. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  8651. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  8652. * synchronous or asynchronous operation.
  8653. *
  8654. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  8655. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8656. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  8657. *
  8658. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  8659. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8660. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8661. * This terminate can either get triggered by the user space or can as well be
  8662. * a notification from the firmware if it initiates a terminate.
  8663. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8664. * the request from user space can either be a synchronous or asynchronous
  8665. * operation.
  8666. *
  8667. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  8668. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8669. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8670. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8671. * this is either a synchronous or asynchronous operation.
  8672. *
  8673. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  8674. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8675. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  8676. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  8677. * request.
  8678. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8679. * capability, this is either a synchronous or asynchronous operation.
  8680. *
  8681. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  8682. * combination of suspend and resume in a single request. Required parameters
  8683. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  8684. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  8685. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8686. * capability, this is either a synchronous or asynchronous operation.
  8687. *
  8688. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  8689. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  8690. * session is setup. It's a synchronous operation.
  8691. *
  8692. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  8693. * Valid only after the TWT session is setup. It's a synchronous operation.
  8694. *
  8695. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  8696. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  8697. * operation.
  8698. *
  8699. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is
  8700. * ready for a new TWT session setup after it issued a twt teardown.
  8701. *
  8702. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  8703. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  8704. * the enum qca_wlan_vendor_attr_twt_set_param.
  8705. *
  8706. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  8707. * related information for example TWT required bit in AP capabilities etc.
  8708. * The reason for the notification is sent using
  8709. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  8710. */
  8711. enum qca_wlan_twt_operation {
  8712. QCA_WLAN_TWT_SET = 0,
  8713. QCA_WLAN_TWT_GET = 1,
  8714. QCA_WLAN_TWT_TERMINATE = 2,
  8715. QCA_WLAN_TWT_SUSPEND = 3,
  8716. QCA_WLAN_TWT_RESUME = 4,
  8717. QCA_WLAN_TWT_NUDGE = 5,
  8718. QCA_WLAN_TWT_GET_STATS = 6,
  8719. QCA_WLAN_TWT_CLEAR_STATS = 7,
  8720. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  8721. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  8722. QCA_WLAN_TWT_SET_PARAM = 10,
  8723. QCA_WLAN_TWT_NOTIFY = 11,
  8724. };
  8725. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  8726. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  8727. *
  8728. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  8729. * u8 attribute. Specify the TWT operation of this request. Possible values
  8730. * are defined in enum qca_wlan_twt_operation. The parameters for the
  8731. * respective operation is specified through
  8732. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  8733. *
  8734. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  8735. * parameters configured for TWT. These parameters are represented by
  8736. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  8737. * enum qca_wlan_vendor_attr_twt_set_param or
  8738. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  8739. *
  8740. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  8741. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  8742. * The values used by this attribute are defined in
  8743. * enum qca_wlan_vendor_twt_status.
  8744. */
  8745. enum qca_wlan_vendor_attr_config_twt {
  8746. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  8747. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  8748. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  8749. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  8750. /* keep last */
  8751. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  8752. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  8753. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  8754. };
  8755. /**
  8756. * qca_wlan_twt_setup_state: Represents the TWT session states.
  8757. *
  8758. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  8759. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  8760. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  8761. */
  8762. enum qca_wlan_twt_setup_state {
  8763. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  8764. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  8765. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  8766. };
  8767. /**
  8768. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  8769. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  8770. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  8771. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  8772. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8773. *
  8774. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  8775. * Disable (flag attribute not present) - Individual TWT
  8776. * Enable (flag attribute present) - Broadcast TWT.
  8777. * Individual means the session is between the STA and the AP.
  8778. * This session is established using a separate negotiation between
  8779. * STA and AP.
  8780. * Broadcast means the session is across multiple STAs and an AP. The
  8781. * configuration parameters are announced in Beacon frames by the AP.
  8782. * This is used in
  8783. * 1. TWT SET Request and Response
  8784. * 2. TWT GET Response
  8785. *
  8786. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  8787. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  8788. * specify the TWT request type. This is used in TWT SET operation.
  8789. *
  8790. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  8791. * Enable (flag attribute present) - TWT with trigger support.
  8792. * Disable (flag attribute not present) - TWT without trigger support.
  8793. * Trigger means the AP will send the trigger frame to allow STA to send data.
  8794. * Without trigger, the STA will wait for the MU EDCA timer before
  8795. * transmitting the data.
  8796. * This is used in
  8797. * 1. TWT SET Request and Response
  8798. * 2. TWT GET Response
  8799. *
  8800. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  8801. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  8802. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  8803. * NULL frame to AP.
  8804. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  8805. * This is a required parameter for
  8806. * 1. TWT SET Request and Response
  8807. * 2. TWT GET Response
  8808. *
  8809. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  8810. * Flow ID is the unique identifier for each TWT session.
  8811. * If not provided then dialog ID will be set to zero.
  8812. * This is an optional parameter for
  8813. * 1. TWT SET Request and Response
  8814. * 2. TWT GET Request and Response
  8815. * 3. TWT TERMINATE Request and Response
  8816. * 4. TWT SUSPEND Request and Response
  8817. * Flow Id values from 0 to 254 represent a single TWT session
  8818. * Flow ID value of 255 represents all twt sessions for the following
  8819. * 1. TWT TERMINATE Request and Response
  8820. * 2. TWT SUSPEND Request and Response
  8821. * 4. TWT CLEAR STATISTICS request
  8822. * 5. TWT GET STATISTICS request and response
  8823. * If an invalid dialog id is provided, status
  8824. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  8825. *
  8826. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  8827. * This attribute (exp) is used along with the mantissa to derive the
  8828. * wake interval using the following formula:
  8829. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  8830. * Wake interval is the interval between 2 successive SP.
  8831. * This is a required parameter for
  8832. * 1. TWT SET Request and Response
  8833. * 2. TWT GET Response
  8834. *
  8835. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  8836. * Enable (flag attribute present) - Protection required.
  8837. * Disable (flag attribute not present) - Protection not required.
  8838. * If protection is enabled, then the AP will use protection
  8839. * mechanism using RTS/CTS to self to reserve the airtime.
  8840. * This is used in
  8841. * 1. TWT SET Request and Response
  8842. * 2. TWT GET Response
  8843. *
  8844. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  8845. * This attribute is used as the SP offset which is the offset from
  8846. * TSF after which the wake happens. The units are in microseconds. If
  8847. * this attribute is not provided, then the value will be set to zero.
  8848. * This is an optional parameter for
  8849. * 1. TWT SET Request and Response
  8850. * 2. TWT GET Response
  8851. *
  8852. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  8853. * This is the duration of the service period. This is specified as
  8854. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  8855. * This is a required parameter for
  8856. * 1. TWT SET Request and Response
  8857. * 2. TWT GET Response
  8858. *
  8859. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  8860. * This attribute is used to configure wake interval mantissa.
  8861. * The units are in TU.
  8862. * This is a required parameter for
  8863. * 1. TWT SET Request and Response
  8864. * 2. TWT GET Response
  8865. *
  8866. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  8867. * This field is applicable for TWT response only.
  8868. * This contains status values in enum qca_wlan_vendor_twt_status
  8869. * and is passed to the userspace. This is used in TWT SET operation.
  8870. * This is a required parameter for
  8871. * 1. TWT SET Response
  8872. * 2. TWT TERMINATE Response
  8873. * 3. TWT SUSPEND Response
  8874. * 4. TWT RESUME Response
  8875. * 5. TWT NUDGE Response
  8876. *
  8877. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  8878. * This field is applicable for TWT response only.
  8879. * This field contains response type from the TWT responder and is
  8880. * passed to the userspace. The values for this field are defined in
  8881. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  8882. * response.
  8883. *
  8884. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  8885. * In TWT setup command this field contains absolute TSF that will
  8886. * be used by TWT requester during setup.
  8887. * In TWT response this field contains absolute TSF value of the
  8888. * wake time received from the TWT responder and is passed to
  8889. * the userspace.
  8890. * This is an optional parameter for
  8891. * 1. TWT SET Request
  8892. * This is a required parameter for
  8893. * 1. TWT SET Response
  8894. * 2. TWT GET Response
  8895. *
  8896. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  8897. * Enable (flag attribute present) - Indicates that the TWT responder
  8898. * supports reception of TWT information frame from the TWT requestor.
  8899. * Disable (flag attribute not present) - Indicates that the responder
  8900. * doesn't support reception of TWT information frame from requestor.
  8901. * This is used in
  8902. * 1. TWT SET Response
  8903. * 2. TWT GET Response
  8904. *
  8905. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  8906. * Represents the MAC address of the peer for which the TWT session
  8907. * is being configured. This is used in AP mode to represent the respective
  8908. * client
  8909. * In AP mode, this is a required parameter in response for
  8910. * 1. TWT SET
  8911. * 2. TWT GET
  8912. * 3. TWT TERMINATE
  8913. * 4. TWT SUSPEND
  8914. * In STA mode, this is an optional parameter in request and response for
  8915. * the above four TWT operations.
  8916. * In AP mode, this is a required parameter in request for
  8917. * 1. TWT GET
  8918. * 2. TWT TERMINATE
  8919. *
  8920. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  8921. * Minimum tolerance limit of wake interval parameter in microseconds.
  8922. *
  8923. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  8924. * Maximum tolerance limit of wake interval parameter in microseconds.
  8925. *
  8926. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  8927. * Minimum tolerance limit of wake duration parameter in microseconds.
  8928. *
  8929. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  8930. * Maximum tolerance limit of wake duration parameter in microseconds.
  8931. *
  8932. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  8933. * TWT state for the given dialog id. The values for this are represented
  8934. * by enum qca_wlan_twt_setup_state.
  8935. * This is obtained through TWT GET operation.
  8936. *
  8937. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  8938. * This attribute is used to configure wake interval mantissa.
  8939. * The unit is microseconds. This attribute, when specified, takes
  8940. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  8941. * This parameter is used for
  8942. * 1. TWT SET Request and Response
  8943. * 2. TWT GET Response
  8944. *
  8945. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  8946. * This attribute is used to configure Broadcast TWT ID.
  8947. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  8948. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  8949. * This parameter is used for
  8950. * 1. TWT SET Request
  8951. * 2. TWT TERMINATE Request
  8952. *
  8953. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  8954. * This attribute is used to configure Broadcast TWT recommendation.
  8955. * The Broadcast TWT Recommendation subfield contains a value that indicates
  8956. * recommendations on the types of frames that are transmitted by TWT
  8957. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  8958. * The allowed values are 0 - 3.
  8959. * This parameter is used for
  8960. * 1. TWT SET Request
  8961. *
  8962. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  8963. * This attribute is used to configure Broadcast TWT Persistence.
  8964. * The Broadcast TWT Persistence subfield indicates the number of
  8965. * TBTTs during which the Broadcast TWT SPs corresponding to this
  8966. * broadcast TWT Parameter set are present. The number of beacon intervals
  8967. * during which the Broadcast TWT SPs are present is equal to the value in the
  8968. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  8969. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  8970. * This parameter is used for
  8971. * 1. TWT SET Request
  8972. *
  8973. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  8974. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  8975. * from TWT response frame.
  8976. * This parameter is used for
  8977. * 1. TWT SET Response
  8978. * 2. TWT GET Response
  8979. *
  8980. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  8981. * This attribute is used to configure the announce timeout value (in us) in
  8982. * firmware. This timeout value is only applicable for announced TWT. If
  8983. * timeout value is non-zero then firmware waits upto timeout value to use
  8984. * data frame as announcement frame. If timeout value is 0 then firmware sends
  8985. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  8986. * firmware is 0.
  8987. * This parameter is used for
  8988. * 1. TWT SET Request
  8989. */
  8990. enum qca_wlan_vendor_attr_twt_setup {
  8991. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  8992. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  8993. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  8994. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  8995. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  8996. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  8997. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  8998. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  8999. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  9000. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  9001. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  9002. /* TWT Response only attributes */
  9003. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  9004. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  9005. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  9006. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  9007. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  9008. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  9009. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  9010. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  9011. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  9012. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  9013. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  9014. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  9015. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  9016. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  9017. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  9018. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  9019. /* keep last */
  9020. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  9021. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  9022. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  9023. };
  9024. /**
  9025. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  9026. * TWT operation
  9027. *
  9028. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  9029. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  9030. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  9031. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  9032. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  9033. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  9034. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  9035. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  9036. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  9037. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  9038. * request/response frame
  9039. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  9040. * frame
  9041. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  9042. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  9043. * unknown reason
  9044. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  9045. * suspend state
  9046. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  9047. * invalid IE in the received TWT frame
  9048. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  9049. * the responder are not in the specified range
  9050. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  9051. * session due to request from the responder. Used on the TWT_TERMINATE
  9052. * notification from the firmware.
  9053. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  9054. * session due to roaming. Used on the TWT_TERMINATE notification from the
  9055. * firmware.
  9056. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  9057. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  9058. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  9059. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  9060. * request due to roaming in progress.
  9061. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  9062. * setup request due to channel switch in progress.
  9063. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  9064. * request due to scan in progress.
  9065. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  9066. * terminate an existing TWT session on power save exit request from userspace.
  9067. * Used on the TWT_TERMINATE notification from the driver/firmware.
  9068. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  9069. * required bit in its capabilities.
  9070. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  9071. * the TWT required bit(1->0) in its capabilities.
  9072. */
  9073. enum qca_wlan_vendor_twt_status {
  9074. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  9075. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  9076. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  9077. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  9078. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  9079. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  9080. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  9081. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  9082. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  9083. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  9084. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  9085. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  9086. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  9087. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  9088. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  9089. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  9090. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  9091. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  9092. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  9093. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  9094. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  9095. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  9096. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  9097. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  9098. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  9099. };
  9100. /**
  9101. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  9102. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  9103. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  9104. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9105. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9106. *
  9107. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  9108. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  9109. * These attributes are used as the SP offset which is the offset from TSF after
  9110. * which the wake happens. The units are in microseconds. Please note that
  9111. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  9112. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  9113. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  9114. * will be set to zero.
  9115. *
  9116. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  9117. * This attribute represents the next TWT subfield size.
  9118. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9119. * and 4 for 64 bits.
  9120. *
  9121. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  9122. * Flow ID is the unique identifier for each TWT session. This attribute
  9123. * represents the respective TWT session to resume.
  9124. * Flow Id values from 0 to 254 represent a single TWT session
  9125. * Flow ID value of 255 represents all TWT sessions.
  9126. * If an invalid dialog id is provided, status
  9127. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9128. *
  9129. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  9130. * Represents the MAC address of the peer to which TWT Resume is
  9131. * being sent. This is used in AP mode to represent the respective
  9132. * client and is a required parameter. In STA mode, this is an optional
  9133. * parameter
  9134. *
  9135. */
  9136. enum qca_wlan_vendor_attr_twt_resume {
  9137. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  9138. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  9139. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  9140. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  9141. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  9142. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  9143. /* keep last */
  9144. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  9145. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  9146. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  9147. };
  9148. /**
  9149. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  9150. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  9151. * and resume in a single request. These attributes are sent as part of
  9152. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9153. *
  9154. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9155. * Flow ID is the unique identifier for each TWT session. This attribute
  9156. * represents the respective TWT session to suspend and resume.
  9157. *
  9158. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9159. * Flow ID is the unique identifier for each TWT session. This attribute
  9160. * represents the respective TWT session to suspend and resume.
  9161. * Flow Id values from 0 to 254 represent a single TWT session
  9162. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  9163. * and response.
  9164. * If an invalid dialog id is provided, status
  9165. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9166. *
  9167. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  9168. * This attribute is used as the SP offset which is the offset from
  9169. * TSF after which the wake happens. The units are in microseconds.
  9170. *
  9171. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  9172. * This attribute represents the next TWT subfield size.
  9173. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9174. * and 4 for 64 bits.
  9175. *
  9176. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  9177. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  9178. * being sent. This is used in AP mode to represent the respective
  9179. * client and is a required parameter. In STA mode, this is an optional
  9180. * parameter.
  9181. *
  9182. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  9183. * This field contains absolute TSF value of the time at which twt
  9184. * sesion will be resumed.
  9185. */
  9186. enum qca_wlan_vendor_attr_twt_nudge {
  9187. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  9188. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  9189. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  9190. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  9191. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  9192. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  9193. /* keep last */
  9194. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  9195. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  9196. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  9197. };
  9198. /**
  9199. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  9200. * TWT (Target Wake Time) get statistics and clear statistics request.
  9201. * These attributes are sent as part of
  9202. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9203. *
  9204. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  9205. * Flow ID is the unique identifier for each TWT session. This attribute
  9206. * represents the respective TWT session for get and clear TWT statistics.
  9207. * Flow Id values from 0 to 254 represent a single TWT session
  9208. * Flow ID value of 255 represents all TWT sessions in
  9209. * 1) TWT GET STATISTICS request and response
  9210. * 2) TWT CLEAR STATISTICS request
  9211. *
  9212. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  9213. * Represents the MAC address of the peer for which TWT Statistics
  9214. * is required.
  9215. * In AP mode this is used to represent the respective
  9216. * client and is a required parameter for
  9217. * 1) TWT GET STATISTICS request and response
  9218. * 2) TWT CLEAR STATISTICS request and response
  9219. * In STA mode, this is an optional parameter.
  9220. *
  9221. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  9222. * This is the duration of the service period in microseconds.
  9223. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9224. *
  9225. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  9226. * Average of actual wake duration observed so far. Unit is microseconds.
  9227. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9228. *
  9229. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  9230. * Number of TWT service period elapsed so far.
  9231. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9232. *
  9233. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9234. * This is the minimum value of wake duration observed across
  9235. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9236. * microseconds.
  9237. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9238. *
  9239. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9240. * This is the maximum value of wake duration observed across
  9241. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9242. * microseconds.
  9243. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9244. *
  9245. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  9246. * Average number of MPDU's transmitted successfully across
  9247. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9248. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9249. *
  9250. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  9251. * Average number of MPDU's received successfully across
  9252. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9253. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9254. *
  9255. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  9256. * Average number of bytes transmitted successfully across
  9257. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9258. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9259. *
  9260. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  9261. * Average number of bytes received successfully across
  9262. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9263. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9264. *
  9265. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  9266. * Status of the TWT GET STATISTICS request.
  9267. * This contains status values in enum qca_wlan_vendor_twt_status
  9268. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9269. */
  9270. enum qca_wlan_vendor_attr_twt_stats {
  9271. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  9272. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  9273. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  9274. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  9275. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  9276. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  9277. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  9278. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  9279. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  9280. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  9281. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  9282. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  9283. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  9284. /* keep last */
  9285. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  9286. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  9287. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  9288. };
  9289. /**
  9290. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  9291. * supported by the device and peer.
  9292. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  9293. *
  9294. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  9295. * TWT non-scheduling STA. This capability is advertised in the HE
  9296. * capability/Extended capabilities information element in the
  9297. * Association request frame by the device.
  9298. *
  9299. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  9300. * by the TWT scheduling AP. This capability is advertised in the extended
  9301. * capabilities/HE capabilities information element.
  9302. *
  9303. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  9304. * for the broadcast TWT functionality. On responder side, this indicates
  9305. * support for the role of broadcast TWT scheduling functionality. This
  9306. * capability is advertised in the HE capabilities information element.
  9307. *
  9308. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  9309. * This capability is advertised in the HE capabilities information element.
  9310. *
  9311. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  9312. * that it mandates the associated HE STAs to support TWT. This capability is
  9313. * advertised by AP in the HE Operation Parameters field of the HE operation
  9314. * information element.
  9315. */
  9316. enum qca_wlan_twt_capa {
  9317. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  9318. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  9319. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  9320. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  9321. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  9322. };
  9323. /**
  9324. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  9325. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  9326. * operation.
  9327. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  9328. * Represents the MAC address of the peer for which the TWT capabilities
  9329. * are being queried. This is used in AP mode to represent the respective
  9330. * client. In STA mode, this is an optional parameter.
  9331. *
  9332. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  9333. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  9334. * enum qca_wlan_twt_capa.
  9335. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  9336. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  9337. * enum qca_wlan_twt_capa.
  9338. */
  9339. enum qca_wlan_vendor_attr_twt_capability {
  9340. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  9341. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  9342. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  9343. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  9344. /* keep last */
  9345. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  9346. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  9347. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  9348. };
  9349. /**
  9350. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  9351. * TWT (Target Wake Time) related parameters. It is used when
  9352. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  9353. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9354. *
  9355. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  9356. * This attribute configures AC parameters to be used for all TWT
  9357. * sessions in AP mode.
  9358. * Uses the enum qca_wlan_ac_type values.
  9359. */
  9360. enum qca_wlan_vendor_attr_twt_set_param {
  9361. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  9362. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  9363. /* keep last */
  9364. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  9365. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  9366. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  9367. };
  9368. /**
  9369. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  9370. * the TWT responder
  9371. *
  9372. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  9373. * parameters that are different from TWT requesting STA suggested
  9374. * or demanded TWT parameters
  9375. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  9376. * parameters that are different from TWT requesting STA TWT suggested
  9377. * or demanded parameters
  9378. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  9379. * setup
  9380. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  9381. * setup.
  9382. */
  9383. enum qca_wlan_vendor_twt_setup_resp_type {
  9384. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  9385. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  9386. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  9387. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  9388. };
  9389. /**
  9390. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  9391. * Represents the setup type being requested for TWT.
  9392. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  9393. * parameters but relying on AP to fill the parameters during the negotiation.
  9394. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  9395. * values which the AP may accept or AP may provide alternative parameters
  9396. * which the STA may accept.
  9397. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  9398. * alternate parameters than the requested ones.
  9399. */
  9400. enum qca_wlan_vendor_twt_setup_req_type {
  9401. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  9402. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  9403. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  9404. };
  9405. /**
  9406. * enum qca_wlan_throughput_level - Current throughput level
  9407. *
  9408. * Indicates the current level of throughput calculated by driver. The driver
  9409. * may choose different thresholds to decide whether the throughput level is
  9410. * low or medium or high based on variety of parameters like physical link
  9411. * capacity of current connection, number of pakcets being dispatched per
  9412. * second etc. The throughput level events might not be consistent with the
  9413. * actual current throughput value being observed.
  9414. *
  9415. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  9416. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  9417. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  9418. */
  9419. enum qca_wlan_throughput_level {
  9420. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  9421. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  9422. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  9423. };
  9424. /**
  9425. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  9426. * report throughput changes from driver to user space. enum values are used
  9427. * for NL attributes sent with
  9428. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  9429. */
  9430. enum qca_wlan_vendor_attr_throughput_change {
  9431. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  9432. /*
  9433. * Indicates the direction of throughput in which the change is being
  9434. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  9435. */
  9436. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  9437. /*
  9438. * Indicates the newly observed throughput level.
  9439. * qca_wlan_throughput_level describes the possible range of values.
  9440. * u8 attribute.
  9441. */
  9442. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  9443. /*
  9444. * Indicates the driver's guidance on the new value to be set to
  9445. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  9446. * may optionally include this attribute.
  9447. */
  9448. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  9449. /*
  9450. * Indicates the driver's guidance on the new value to be set to
  9451. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  9452. * values are from -31 to 31. Driver may optionally include this
  9453. * attribute.
  9454. */
  9455. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  9456. /*
  9457. * Indicates the driver's guidance on the new value to be set to
  9458. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  9459. * optionally include this attribute.
  9460. */
  9461. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  9462. /* keep last */
  9463. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  9464. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  9465. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  9466. };
  9467. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  9468. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  9469. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9470. */
  9471. enum qca_wlan_nan_ext_subcmd_type {
  9472. /* Subcmd of type NAN Enable Request */
  9473. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  9474. /* Subcmd of type NAN Disable Request */
  9475. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  9476. };
  9477. /**
  9478. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  9479. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9480. */
  9481. enum qca_wlan_vendor_attr_nan_params {
  9482. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  9483. /* Carries NAN command for firmware component. Every vendor command
  9484. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  9485. * payload containing the NAN command. NLA_BINARY attribute.
  9486. */
  9487. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  9488. /* Indicates the type of NAN command sent with
  9489. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  9490. * describes the possible range of values. This attribute is mandatory
  9491. * if the command being issued is either
  9492. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  9493. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  9494. */
  9495. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  9496. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  9497. * band. This attribute is mandatory when command type is
  9498. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  9499. */
  9500. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  9501. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  9502. * band. This attribute is optional and should be included when command
  9503. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  9504. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  9505. */
  9506. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  9507. /* keep last */
  9508. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  9509. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  9510. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  9511. };
  9512. /**
  9513. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  9514. * transport modes and is used by attribute
  9515. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  9516. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9517. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  9518. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  9519. * data. The data shall be encapsulated within
  9520. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along withe vendor sub command
  9521. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  9522. */
  9523. enum qca_wlan_vendor_cfr_data_transport_modes {
  9524. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  9525. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  9526. };
  9527. /**
  9528. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  9529. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  9530. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9531. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  9532. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  9533. * with phase
  9534. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  9535. */
  9536. enum qca_wlan_vendor_cfr_method {
  9537. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  9538. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  9539. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  9540. };
  9541. /**
  9542. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  9543. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  9544. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  9545. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  9546. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  9547. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  9548. * is provided by one or more of below attributes:
  9549. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  9550. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  9551. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  9552. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  9553. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  9554. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  9555. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9556. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  9557. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  9558. */
  9559. enum qca_wlan_vendor_cfr_capture_type {
  9560. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  9561. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  9562. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  9563. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  9564. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  9565. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  9566. };
  9567. /**
  9568. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  9569. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  9570. * Channel Frequency Response capture parameters and enable periodic CFR
  9571. * capture.
  9572. *
  9573. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  9574. * MAC address of peer. This is for CFR version 1 only.
  9575. *
  9576. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  9577. * Enable peer CFR Capture. This attribute is mandatory to
  9578. * enable peer CFR capture. If this attribute is not present,
  9579. * peer CFR capture is disabled.
  9580. *
  9581. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  9582. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  9583. * Supported values: 20, 40, 80, 80+80, 160.
  9584. * Note that all targets may not support all bandwidths.
  9585. * This attribute is mandatory for version 1 if attribute
  9586. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9587. *
  9588. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  9589. * Periodicity of CFR measurement in msec.
  9590. * Periodicity should be a multiple of Base timer.
  9591. * Current Base timer value supported is 10 msecs (default).
  9592. * 0 for one shot capture.
  9593. * This attribute is mandatory for version 1 if attribute
  9594. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9595. *
  9596. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  9597. * Method used to capture Channel Frequency Response.
  9598. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  9599. * This attribute is mandatory for version 1 if attribute
  9600. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9601. *
  9602. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  9603. * Enable periodic CFR capture.
  9604. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  9605. * If this attribute is not present, periodic CFR capture is disabled.
  9606. *
  9607. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  9608. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  9609. * can't be enabled at same time. This attribute is mandatory if target
  9610. * support both versions and use one of them.
  9611. *
  9612. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  9613. * This attribute is mandatory for version 2 if
  9614. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  9615. * Bits 15:0 Bit fields indicating which group to be enabled.
  9616. * Bits 31:16 Reserved for future use.
  9617. *
  9618. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  9619. * CFR capture duration in microsecond. This attribute is mandatory for
  9620. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  9621. *
  9622. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  9623. * CFR capture interval in microsecond. This attribute is mandatory for
  9624. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  9625. *
  9626. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  9627. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  9628. * This attribute is mandatory for version 2.
  9629. *
  9630. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  9631. * Bit fields indicating which user in the current UL MU
  9632. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  9633. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  9634. * then the CFR capture will happen for user index 0 in the current
  9635. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  9636. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  9637. * This is for CFR version 2 only.
  9638. *
  9639. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  9640. * Indicates the number of consecutive Rx packets to be skipped
  9641. * before CFR capture is enabled again.
  9642. * This is for CFR version 2 only.
  9643. *
  9644. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  9645. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  9646. *
  9647. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  9648. * the following GROUP attributes:
  9649. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  9650. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  9651. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  9652. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  9653. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  9654. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  9655. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  9656. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  9657. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  9658. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9659. *
  9660. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  9661. * Target support multiple groups for some configurations. Group number could be
  9662. * any value between 0 and 15. This is for CFR version 2 only.
  9663. *
  9664. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  9665. * Transmitter address which is used to filter packets, this MAC address takes
  9666. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  9667. * This is for CFR version 2 only.
  9668. *
  9669. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  9670. * Receiver address which is used to filter packets, this MAC address takes
  9671. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  9672. * This is for CFR version 2 only.
  9673. *
  9674. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  9675. * Mask of transmitter address which is used to filter packets.
  9676. * This is for CFR version 2 only.
  9677. *
  9678. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  9679. * Mask of receiver address which is used to filter packets.
  9680. * This is for CFR version 2 only.
  9681. *
  9682. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  9683. * Indicates packets with a specific NSS will be filtered for CFR capture.
  9684. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  9685. * be done for packets matching the NSS specified within this bitmask.
  9686. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  9687. * bit 0 : NSS 1
  9688. * bit 1 : NSS 2
  9689. * ...
  9690. * bit 7 : NSS 8
  9691. *
  9692. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  9693. * Indicates packets with a specific BW will be filtered for CFR capture.
  9694. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  9695. * will be done for packets matching the bandwidths specified within this
  9696. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  9697. * numerated in enum nl80211_band (although not all bands may be supported
  9698. * by a given device).
  9699. *
  9700. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  9701. * Management packets matching the subtype filter categories will be
  9702. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9703. * represents the corresponding mgmt subtype value as per
  9704. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9705. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  9706. * This is for CFR version 2 only
  9707. *
  9708. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  9709. * Control packets matching the subtype filter categories will be
  9710. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9711. * represents the corresponding control subtype value as per
  9712. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9713. * This is for CFR version 2 only.
  9714. *
  9715. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  9716. * Data packets matching the subtype filter categories will be
  9717. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9718. * represents the corresponding data subtype value as per
  9719. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9720. * This is for CFR version 2 only.
  9721. *
  9722. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  9723. * Userspace can use this attribute to specify the driver about which transport
  9724. * mode shall be used by the driver to send CFR data to userspace. Uses values
  9725. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  9726. * not present, driver shall choose the default transport mechanism which is
  9727. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  9728. *
  9729. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  9730. * Userspace can use this attribute to specify the nl port id of the application
  9731. * which receives the CFR data and processes it further so that the drivers can
  9732. * unicast the NL events to a specific application. Optionally included when
  9733. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  9734. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  9735. * shall multicast the netlink events when this attribute is not included.
  9736. *
  9737. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  9738. * This attribute will be used by the driver to encapsulate and send CFR data
  9739. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  9740. * asynchronous event when the driver is configured to send CFR data using NL
  9741. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  9742. *
  9743. */
  9744. enum qca_wlan_vendor_peer_cfr_capture_attr {
  9745. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  9746. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  9747. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  9748. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  9749. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  9750. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  9751. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  9752. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  9753. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  9754. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  9755. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  9756. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  9757. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  9758. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  9759. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  9760. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  9761. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  9762. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  9763. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  9764. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  9765. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  9766. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  9767. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  9768. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  9769. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  9770. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  9771. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  9772. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  9773. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  9774. /* Keep last */
  9775. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  9776. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  9777. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  9778. };
  9779. /**
  9780. * enum qca_coex_config_profiles - This enum defines different types of
  9781. * traffic streams that can be prioritized one over the other during coex
  9782. * scenarios.
  9783. * The types defined in this enum are categorized in the below manner.
  9784. * 0 - 31 values corresponds to WLAN
  9785. * 32 - 63 values corresponds to BT
  9786. * 64 - 95 values corresponds to Zigbee
  9787. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  9788. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  9789. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  9790. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  9791. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  9792. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  9793. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  9794. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  9795. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  9796. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  9797. * @QCA_BT_A2DP: Prioritize BT A2DP
  9798. * @QCA_BT_BLE: Prioritize BT BLE
  9799. * @QCA_BT_SCO: Prioritize BT SCO
  9800. * @QCA_ZB_LOW: Prioritize Zigbee Low
  9801. * @QCA_ZB_HIGH: Prioritize Zigbee High
  9802. */
  9803. enum qca_coex_config_profiles {
  9804. /* 0 - 31 corresponds to WLAN */
  9805. QCA_WIFI_STA_DISCOVERY = 0,
  9806. QCA_WIFI_STA_CONNECTION = 1,
  9807. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  9808. QCA_WIFI_STA_DATA = 3,
  9809. QCA_WIFI_STA_ALL = 4,
  9810. QCA_WIFI_SAP_DISCOVERY = 5,
  9811. QCA_WIFI_SAP_CONNECTION = 6,
  9812. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  9813. QCA_WIFI_SAP_DATA = 8,
  9814. QCA_WIFI_SAP_ALL = 9,
  9815. QCA_WIFI_CASE_MAX = 31,
  9816. /* 32 - 63 corresponds to BT */
  9817. QCA_BT_A2DP = 32,
  9818. QCA_BT_BLE = 33,
  9819. QCA_BT_SCO = 34,
  9820. QCA_BT_CASE_MAX = 63,
  9821. /* 64 - 95 corresponds to Zigbee */
  9822. QCA_ZB_LOW = 64,
  9823. QCA_ZB_HIGH = 65,
  9824. QCA_ZB_CASE_MAX = 95,
  9825. /* 0xff is default value if the u8 profile value is not set. */
  9826. QCA_PROFILE_DEFAULT_VALUE = 255
  9827. };
  9828. /**
  9829. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  9830. * This enum defines the valid set of values of coex configuration types. These
  9831. * values may used by attribute
  9832. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  9833. *
  9834. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  9835. * weights to default values.
  9836. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  9837. * weights with configurability value.
  9838. */
  9839. enum qca_vendor_attr_coex_config_types {
  9840. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  9841. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  9842. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  9843. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  9844. };
  9845. /**
  9846. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  9847. * attributes
  9848. * Attributes for data used by
  9849. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  9850. *
  9851. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  9852. * Indicate config type.
  9853. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  9854. *
  9855. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  9856. * Indicate the Priority 1 profiles.
  9857. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9858. * In same priority level, maximum to 4 profiles can be set here.
  9859. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  9860. * Indicate the Priority 2 profiles.
  9861. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9862. * In same priority level, maximum to 4 profiles can be set here.
  9863. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  9864. * Indicate the Priority 3 profiles.
  9865. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9866. * In same priority level, maximum to 4 profiles can be set here.
  9867. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  9868. * Indicate the Priority 4 profiles.
  9869. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9870. * In same priority level, maximum to 4 profiles can be set here.
  9871. * NOTE:
  9872. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  9873. * arrangement:
  9874. * 1: In the same u32 attribute(priority x), the profiles enum values own
  9875. * same priority level.
  9876. * 2: 0xff is default value if the u8 profile value is not set.
  9877. * 3: max to 4 rules/profiles in same priority level.
  9878. * 4: max to 4 priority level (priority 1 - priority 4)
  9879. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  9880. * hybrid rules not support.
  9881. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  9882. * remain blank to reset all parameters.
  9883. * For example:
  9884. *
  9885. * If the attributes as follow:
  9886. * priority 1:
  9887. * ------------------------------------
  9888. * | 0xff | 0 | 1 | 2 |
  9889. * ------------------------------------
  9890. * priority 2:
  9891. * -------------------------------------
  9892. * | 0xff | 0xff | 0xff | 32 |
  9893. * -------------------------------------
  9894. * priority 3:
  9895. * -------------------------------------
  9896. * | 0xff | 0xff | 0xff | 65 |
  9897. * -------------------------------------
  9898. * then it means:
  9899. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  9900. * owns same priority level.
  9901. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  9902. * has priority over BT_A2DP and ZB_HIGH.
  9903. * 3: BT_A2DP has priority over ZB_HIGH.
  9904. */
  9905. enum qca_vendor_attr_coex_config_three_way {
  9906. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  9907. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  9908. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  9909. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  9910. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  9911. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  9912. /* Keep last */
  9913. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  9914. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  9915. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  9916. };
  9917. /**
  9918. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  9919. * This enum defines the valid set of values of peer stats cache types. These
  9920. * values are used by attribute
  9921. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  9922. *
  9923. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  9924. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  9925. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  9926. * statistics
  9927. */
  9928. enum qca_vendor_attr_peer_stats_cache_type {
  9929. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  9930. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  9931. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  9932. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  9933. };
  9934. /**
  9935. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  9936. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  9937. * Attributes are required to flush peer rate statistics from driver to
  9938. * user application.
  9939. *
  9940. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  9941. * Indicate peer stats cache type.
  9942. * The statistics types are 32-bit values from
  9943. * qca_vendor_attr_peer_stats_cache_type
  9944. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  9945. * of size 6, representing peer mac address.
  9946. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  9947. * containing buffer of statistics to send event to application layer entity.
  9948. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  9949. * representing cookie for peer unique session.
  9950. */
  9951. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  9952. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  9953. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  9954. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  9955. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  9956. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  9957. /* Keep last */
  9958. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  9959. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  9960. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  9961. };
  9962. /**
  9963. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  9964. * this enum defines all the possible state of zigbee, which can be
  9965. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  9966. *
  9967. * @ZIGBEE_IDLE: zigbee in idle state
  9968. * @ZIGBEE_FORM_NETWORK: zibee forming network
  9969. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  9970. * @ZIGBEE_JOIN: zigbee joining network
  9971. * @ZIGBEE_NETWORK_UP: zigbee network is up
  9972. * @ZIGBEE_HMI: zigbee in HMI mode
  9973. */
  9974. enum qca_mpta_helper_attr_zigbee_state {
  9975. ZIGBEE_IDLE = 0,
  9976. ZIGBEE_FORM_NETWORK = 1,
  9977. ZIGBEE_WAIT_JOIN = 2,
  9978. ZIGBEE_JOIN = 3,
  9979. ZIGBEE_NETWORK_UP = 4,
  9980. ZIGBEE_HMI = 5,
  9981. };
  9982. /**
  9983. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  9984. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  9985. */
  9986. enum qca_mpta_helper_vendor_attr {
  9987. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  9988. /* Optional attribute used to update zigbee state.
  9989. * enum qca_mpta_helper_attr_zigbee_state.
  9990. * NLA_U32 attribute.
  9991. */
  9992. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  9993. /* Optional attribute used to configure wlan duration for Shape-OCS
  9994. * during interrupt.
  9995. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  9996. * Value range 0 ~ 300 (ms).
  9997. * NLA_U32 attribute.
  9998. */
  9999. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  10000. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10001. * during interrupt.
  10002. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  10003. * Value range 0 ~ 300 (ms).
  10004. * NLA_U32 attribute.
  10005. */
  10006. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  10007. /* Optional attribute used to configure wlan duration for Shape-OCS
  10008. * monitor period.
  10009. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  10010. * Value range 0 ~ 300 (ms)
  10011. * NLA_U32 attribute
  10012. */
  10013. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  10014. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10015. * monitor period.
  10016. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  10017. * Value range 0 ~ 300 (ms)
  10018. * NLA_U32 attribute
  10019. */
  10020. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  10021. /* Optional attribute used to configure ocs interrupt duration.
  10022. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  10023. * Value range 1000 ~ 20000 (ms)
  10024. * NLA_U32 attribute
  10025. */
  10026. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  10027. /* Optional attribute used to configure ocs monitor duration.
  10028. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  10029. * Value range 1000 ~ 20000 (ms)
  10030. * NLA_U32 attribute
  10031. */
  10032. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  10033. /* Optional attribute used to notify wlan FW current zigbee channel.
  10034. * Value range 11 ~ 26
  10035. * NLA_U32 attribute
  10036. */
  10037. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  10038. /* Optional attribute used to configure wlan mute duration.
  10039. * Value range 0 ~ 400 (ms)
  10040. * NLA_U32 attribute
  10041. */
  10042. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  10043. /* keep last */
  10044. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  10045. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  10046. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  10047. };
  10048. /**
  10049. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  10050. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  10051. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  10052. *
  10053. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  10054. * to request the driver to start reporting Beacon frames.
  10055. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  10056. * to request the driver to stop reporting Beacon frames.
  10057. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  10058. * userspace to report received Beacon frames.
  10059. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  10060. * to indicate that the driver is going to pause reporting Beacon frames.
  10061. */
  10062. enum qca_wlan_vendor_beacon_reporting_op_types {
  10063. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  10064. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  10065. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  10066. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  10067. };
  10068. /**
  10069. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  10070. * types of reasons for which the driver is pausing reporting Beacon frames.
  10071. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  10072. *
  10073. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  10074. * reasons.
  10075. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  10076. * driver/firmware is starting a scan.
  10077. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  10078. * driver/firmware disconnects from the ESS and indicates the disconnection to
  10079. * userspace (non-seamless roaming case). This reason code will be used by the
  10080. * driver/firmware to indicate stopping of beacon report events. Userspace
  10081. * will need to start beacon reporting again (if desired) by sending vendor
  10082. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  10083. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  10084. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  10085. * completed.
  10086. */
  10087. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  10088. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  10089. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  10090. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  10091. };
  10092. /*
  10093. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  10094. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  10095. */
  10096. enum qca_wlan_vendor_attr_beacon_reporting_params {
  10097. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  10098. /* Specifies the type of operation that the vendor command/event is
  10099. * intended for. Possible values for this attribute are defined in
  10100. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  10101. */
  10102. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  10103. /* Optionally set by userspace to request the driver to report Beacon
  10104. * frames using asynchronous vendor events when the
  10105. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10106. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10107. * If this flag is not set, the driver will only update Beacon frames
  10108. * in cfg80211 scan cache but not send any vendor events.
  10109. */
  10110. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  10111. /* Optionally used by userspace to request the driver/firmware to
  10112. * report Beacon frames periodically when the
  10113. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10114. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  10115. * u32 attribute, indicates the period of Beacon frames to be reported
  10116. * and in the units of beacon interval.
  10117. * If this attribute is missing in the command, then the default value
  10118. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  10119. * Zero is an invalid value.
  10120. * If a valid value is received for this attribute, the driver will
  10121. * update the cfg80211 scan cache periodically as per the value
  10122. * received in this attribute in addition to updating the cfg80211 scan
  10123. * cache when there is significant change in Beacon frame IEs.
  10124. */
  10125. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  10126. /* Used by the driver to encapsulate the SSID when the
  10127. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10128. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10129. * u8 array with a maximum size of 32.
  10130. *
  10131. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  10132. * will be taken from the SSID element of the received Beacon frame.
  10133. *
  10134. * When generating beacon report from Multiple BSSID Beacon frame and
  10135. * if the BSSID of the current connected BSS matches the BSSID of the
  10136. * transmitting BSS, the SSID will be taken from the SSID element of
  10137. * the received Beacon frame.
  10138. *
  10139. * When generating beacon report from Multiple BSSID Beacon frame and
  10140. * if the BSSID of the current connected BSS matches the BSSID of one
  10141. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  10142. * field included in the nontransmitted BSS profile whose derived BSSI
  10143. * is same as the BSSID of the current connected BSS. When there is no
  10144. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  10145. * of current connected* BSS, this attribute will not be present.
  10146. */
  10147. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  10148. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  10149. * is currently connected to when the
  10150. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10151. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  10152. * fixed size of 6 bytes.
  10153. *
  10154. * When generating beacon report from a Multiple BSSID beacon and the
  10155. * current connected BSSID matches one of the nontransmitted BSSIDs in
  10156. * a Multiple BSSID set, this BSSID will be that particular
  10157. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  10158. * transmitting address of the Beacon frame).
  10159. */
  10160. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  10161. /* Used by the driver to encapsulate the frequency in MHz on which
  10162. * the Beacon frame was received when the
  10163. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  10164. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10165. * u32 attribute.
  10166. */
  10167. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  10168. /* Used by the driver to encapsulate the Beacon interval
  10169. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10170. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10171. * u16 attribute. The value will be copied from the Beacon frame and
  10172. * the units are TUs.
  10173. */
  10174. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  10175. /* Used by the driver to encapsulate the Timestamp field from the
  10176. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  10177. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10178. * u64 attribute.
  10179. */
  10180. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  10181. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  10182. * Beacon frame is received in the driver when the
  10183. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10184. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  10185. * the units of nanoseconds. This value is expected to have accuracy of
  10186. * about 10 ms.
  10187. */
  10188. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  10189. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  10190. * which this event is generated when the
  10191. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10192. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  10193. */
  10194. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  10195. /* Used by the driver to specify the reason for the driver/firmware to
  10196. * pause sending beacons to userspace when the
  10197. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10198. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  10199. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  10200. * attribute.
  10201. */
  10202. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  10203. /* Used by the driver to specify whether the driver will automatically
  10204. * resume reporting beacon events to userspace later (for example after
  10205. * the ongoing off-channel activity is completed etc.) when the
  10206. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10207. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  10208. */
  10209. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  10210. /* Optionally set by userspace to request the driver not to resume
  10211. * beacon reporting after a pause is completed, when the
  10212. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10213. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10214. * If this flag is set, the driver will not resume beacon reporting
  10215. * after any pause in beacon reporting is completed. Userspace has to
  10216. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  10217. * to initiate beacon reporting again. If this flag is set in the recent
  10218. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  10219. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  10220. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  10221. * set by the driver. Setting this flag until and unless there is a
  10222. * specific need is not recommended as there is a chance of some beacons
  10223. * received after pause command and next start command being not
  10224. * reported.
  10225. */
  10226. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  10227. /* Keep last */
  10228. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  10229. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  10230. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  10231. };
  10232. /**
  10233. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  10234. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  10235. *
  10236. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  10237. * a virtual device.
  10238. *
  10239. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  10240. * a physical device.
  10241. */
  10242. enum qca_vendor_oem_device_type {
  10243. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  10244. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  10245. };
  10246. /*
  10247. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  10248. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  10249. *
  10250. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  10251. * used to set/query the data to/from the firmware. On query, the same
  10252. * attribute is used to carry the respective data in the reply sent by the
  10253. * driver to userspace. The request to set/query the data and the format of the
  10254. * respective data from the firmware are embedded in the attribute. The
  10255. * maximum size of the attribute payload is 1024 bytes.
  10256. *
  10257. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  10258. * based on this field. This optional attribute is included to specify whether
  10259. * the device type is a virtual device or a physical device for the command.
  10260. * This attribute can be omitted for a virtual device (default) command.
  10261. * This u8 attribute is used to carry information for the device type using
  10262. * values defined by enum qca_vendor_oem_device_type.
  10263. *
  10264. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  10265. * attribute when the data is queried from the firmware.
  10266. *
  10267. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  10268. * is set when the userspace queries data from the firmware. This attribute
  10269. * should not be set when userspace sets the OEM data to the firmware.
  10270. */
  10271. enum qca_wlan_vendor_attr_oem_data_params {
  10272. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  10273. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  10274. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  10275. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  10276. /* keep last */
  10277. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  10278. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  10279. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  10280. };
  10281. /**
  10282. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  10283. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  10284. *
  10285. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  10286. * Nested attribute containing multiple ranges with following attributes:
  10287. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  10288. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  10289. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  10290. *
  10291. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  10292. * Starting center frequency in MHz.
  10293. *
  10294. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  10295. * Ending center frequency in MHz.
  10296. *
  10297. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  10298. * s32 attribute, optional. It is a per frequency range attribute.
  10299. * The maximum TX power limit from user space is to be applied on an
  10300. * unrestricted interface for corresponding frequency range. It is also
  10301. * possible that the actual TX power may be even lower than this cap due to
  10302. * other considerations such as regulatory compliance, SAR, etc. In absence of
  10303. * this attribute the driver shall follow current behavior which means
  10304. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  10305. * power derived by the driver based on regulatory/SAR during interface up.
  10306. *
  10307. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  10308. * u32 attribute, optional. Indicates all the interface types which are
  10309. * restricted for all frequency ranges provided in
  10310. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  10311. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  10312. * This attribute encapsulates bitmasks of interface types defined in
  10313. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  10314. * move to a safe channel and if no safe channel is available the driver shall
  10315. * terminate that interface functionality. In absence of this attribute,
  10316. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  10317. * TX power limit derived from either
  10318. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  10319. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  10320. * is not provided.
  10321. */
  10322. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  10323. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  10324. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  10325. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  10326. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  10327. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  10328. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  10329. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  10330. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  10331. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  10332. };
  10333. /*
  10334. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  10335. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  10336. */
  10337. enum qca_wlan_vendor_attr_add_sta_node_params {
  10338. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  10339. /* 6 byte MAC address of STA */
  10340. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  10341. /* Authentication algorithm used by the station of size u16;
  10342. * defined in enum nl80211_auth_type.
  10343. */
  10344. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  10345. /* keep last */
  10346. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  10347. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  10348. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  10349. };
  10350. /**
  10351. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  10352. * This enum defines the valid set of values of BT coex chain mode.
  10353. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  10354. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  10355. *
  10356. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
  10357. * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
  10358. */
  10359. enum qca_btc_chain_mode {
  10360. QCA_BTC_CHAIN_SHARED = 0,
  10361. QCA_BTC_CHAIN_SEPARATED = 1,
  10362. };
  10363. /**
  10364. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  10365. * chain mode.
  10366. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  10367. *
  10368. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  10369. * Indicates the BT coex chain mode, are 32-bit values from
  10370. * enum qca_btc_chain_mode. This attribute is mandatory.
  10371. *
  10372. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  10373. * If set, vdev should be restarted when BT coex chain mode is updated.
  10374. * This attribute is optional.
  10375. */
  10376. enum qca_vendor_attr_btc_chain_mode {
  10377. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  10378. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  10379. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  10380. /* Keep last */
  10381. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  10382. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  10383. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  10384. };
  10385. /**
  10386. * enum qca_vendor_wlan_sta_flags - Station feature flags
  10387. * Bits will be set to 1 if the corresponding features are enabled.
  10388. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  10389. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  10390. for the station
  10391. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  10392. for the station
  10393. */
  10394. enum qca_vendor_wlan_sta_flags {
  10395. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  10396. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  10397. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  10398. };
  10399. /**
  10400. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  10401. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  10402. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  10403. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  10404. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  10405. */
  10406. enum qca_vendor_wlan_sta_guard_interval {
  10407. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  10408. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  10409. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  10410. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  10411. };
  10412. /**
  10413. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  10414. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  10415. *
  10416. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  10417. * Required attribute in request for AP mode only, 6-byte MAC address,
  10418. * corresponding to the station's MAC address for which information is
  10419. * requested. For STA mode this is not required as the info always correspond
  10420. * to the self STA and the current/last association.
  10421. *
  10422. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  10423. * Optionally used in response, u32 attribute, contains a bitmap of different
  10424. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  10425. *
  10426. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  10427. * Optionally used in response, u32 attribute, possible values are defined in
  10428. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  10429. * Guard interval used by the station.
  10430. *
  10431. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  10432. * Optionally used in response, u32 attribute, used in AP mode only.
  10433. * Value indicates the number of data frames received from station with retry
  10434. * bit set to 1 in FC.
  10435. *
  10436. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  10437. * Optionally used in response, u32 attribute, used in AP mode only.
  10438. * Counter for number of data frames with broadcast or multicast address in
  10439. * the destination address received from the station.
  10440. *
  10441. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  10442. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  10443. * Value indicates the number of data frames successfully transmitted only
  10444. * after retrying the packets and for which the TX status has been updated
  10445. * back to host from target.
  10446. *
  10447. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  10448. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  10449. * Value indicates the number of data frames not transmitted successfully even
  10450. * after retrying the packets for the number of times equal to the total number
  10451. * of retries allowed for that packet and for which the TX status has been
  10452. * updated back to host from target.
  10453. *
  10454. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  10455. * Optionally used in response, u32 attribute, used in AP mode only.
  10456. * Counter in the target for the number of data frames successfully transmitted
  10457. * to the station.
  10458. *
  10459. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  10460. * Optionally used in response, u32 attribute, used in AP mode only.
  10461. * Value indicates the number of data frames successfully transmitted only
  10462. * after retrying the packets.
  10463. *
  10464. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  10465. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  10466. * Value indicates the number of data frames not transmitted successfully even
  10467. * after retrying the packets for the number of times equal to the total number
  10468. * of retries allowed for that packet.
  10469. *
  10470. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  10471. * the STA mode only. Represent the number of probe requests sent by the STA
  10472. * while attempting to roam on missing certain number of beacons from the
  10473. * connected AP. If queried in the disconnected state, this represents the
  10474. * count for the last connected state.
  10475. *
  10476. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  10477. * the STA mode. Represent the number of probe responses received by the station
  10478. * while attempting to roam on missing certain number of beacons from the
  10479. * connected AP. When queried in the disconnected state, this represents the
  10480. * count when in last connected state.
  10481. *
  10482. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  10483. * STA mode only. Represents the total number of frames sent out by STA
  10484. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  10485. * only for the connect session. Represents the count of last connected session,
  10486. * when queried in the disconnected state.
  10487. *
  10488. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  10489. * Total number of RTS sent out by the STA. This data is maintained per connect
  10490. * session. Represents the count of last connected session, when queried in the
  10491. * disconnected state.
  10492. *
  10493. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  10494. * STA mode.Represent the number of RTS transmission failure that reach retry
  10495. * limit. This data is maintained per connect session. Represents the count of
  10496. * last connected session, when queried in the disconnected state.
  10497. *
  10498. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  10499. * the STA mode. Represent the total number of non aggregated frames transmitted
  10500. * by the STA. This data is maintained per connect session. Represents the count
  10501. * of last connected session, when queried in the disconnected state.
  10502. *
  10503. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  10504. * STA mode. Represent the total number of aggregated frames transmitted by the
  10505. * STA. This data is maintained per connect session. Represents the count of
  10506. * last connected session, when queried in the disconnected state.
  10507. *
  10508. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  10509. * the STA mode. Represents the number of received frames with a good PLCP. This
  10510. * data is maintained per connect session. Represents the count of last
  10511. * connected session, when queried in the disconnected state.
  10512. *
  10513. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  10514. * used in the STA mode. Represents the number of occasions that no valid
  10515. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  10516. * session. Represents the count of last connected session, when queried in the
  10517. * disconnected state.
  10518. *
  10519. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  10520. * STA mode. Represents the number of frames for which CRC check failed in the
  10521. * MAC. This data is maintained per connect session. Represents the count of
  10522. * last connected session, when queried in the disconnected state.
  10523. *
  10524. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  10525. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  10526. * data is maintained per connect session. Represents the count of last
  10527. * connected session, when queried in the disconnected state.
  10528. *
  10529. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  10530. * mode. Represents the number of received Block Acks. This data is maintained
  10531. * per connect session. Represents the count of last connected session, when
  10532. * queried in the disconnected state.
  10533. *
  10534. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  10535. * mode. Represents the number of beacons received from the connected BSS. This
  10536. * data is maintained per connect session. Represents the count of last
  10537. * connected session, when queried in the disconnected state.
  10538. *
  10539. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  10540. * STA mode. Represents the number of beacons received by the other BSS when in
  10541. * connected state (through the probes done by the STA). This data is maintained
  10542. * per connect session. Represents the count of last connected session, when
  10543. * queried in the disconnected state.
  10544. *
  10545. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  10546. * the STA mode. Represents the number of received DATA frames with good FCS and
  10547. * matching Receiver Address when in connected state. This data is maintained
  10548. * per connect session. Represents the count of last connected session, when
  10549. * queried in the disconnected state.
  10550. *
  10551. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  10552. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  10553. * when in the connected state. This data is maintained per connect session.
  10554. * Represents the count of last connected session, when queried in the
  10555. * disconnected state.
  10556. *
  10557. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  10558. * STA mode. This represents the target power in dBm for the transmissions done
  10559. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  10560. * connect session. Represents the count of last connected session, when
  10561. * queried in the disconnected state.
  10562. *
  10563. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  10564. * STA mode. This represents the Target power in dBm for transmissions done to
  10565. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10566. * session. Represents the count of last connected session, when queried in the
  10567. * disconnected state.
  10568. *
  10569. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  10570. * STA mode. This represents the Target power in dBm for transmissions done to
  10571. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  10572. * Represents the count of last connected session, when queried in the
  10573. * disconnected state.
  10574. *
  10575. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  10576. * STA mode. This represents the Target power in dBm for transmissions done to
  10577. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10578. * session. Represents the count of last connected session, when queried in
  10579. * the disconnected state.
  10580. *
  10581. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  10582. * STA mode. This represents the Target power in dBm for for transmissions done
  10583. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  10584. * Represents the count of last connected session, when queried in the
  10585. * disconnected state.
  10586. *
  10587. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  10588. * in the STA mode. This represents the Nested attribute representing the
  10589. * overflow counts of each receive buffer allocated to the hardware during the
  10590. * STA's connection. The number of hw buffers might vary for each WLAN
  10591. * solution and hence this attribute represents the nested array of all such
  10592. * HW buffer count. This data is maintained per connect session. Represents
  10593. * the count of last connected session, when queried in the disconnected state.
  10594. *
  10595. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  10596. * allowed as per the regulatory requirements for the current or last connected
  10597. * session. Used in the STA mode.
  10598. *
  10599. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  10600. * (dBm) used by the station in its latest unicast frame while communicating
  10601. * to the AP in the connected state. When queried in the disconnected state,
  10602. * this represents the TX power used by the STA with last AP communication
  10603. * when in connected state.
  10604. *
  10605. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  10606. * level used to adjust the RX sensitivity. Represents the current ANI level
  10607. * when queried in the connected state. When queried in the disconnected
  10608. * state, this corresponds to the latest ANI level at the instance of
  10609. * disconnection.
  10610. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  10611. * only. This represents the number of group addressed robust management frames
  10612. * received from this station with an invalid MIC or a missing MME when PMF is
  10613. * enabled.
  10614. *
  10615. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  10616. * only. This represents the number of group addressed robust management frames
  10617. * received from this station with the packet number less than or equal to the
  10618. * last received packet number when PMF is enabled.
  10619. *
  10620. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  10621. * mode only. This represents the number of Beacon frames received from this
  10622. * station with an invalid MIC or a missing MME when beacon protection is
  10623. * enabled.
  10624. *
  10625. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  10626. * only. This represents number of Beacon frames received from this station with
  10627. * the packet number less than or equal to the last received packet number when
  10628. * beacon protection is enabled.
  10629. *
  10630. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  10631. * STA mode only. Driver uses this attribute to populate the connection failure
  10632. * reason codes and the values are defined in
  10633. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  10634. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  10635. * connection failure from driver. The driver shall not include this attribute
  10636. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  10637. * connection failure observed in the last attempted connection.
  10638. *
  10639. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  10640. * used by the station in its last TX frame while communicating to the AP in the
  10641. * connected state. When queried in the disconnected state, this represents the
  10642. * rate used by the STA in the last TX frame to the AP when it was connected.
  10643. * This attribute is used for STA mode only.
  10644. *
  10645. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  10646. * This represents the rate index used by the STA for the last TX frame to the
  10647. * AP. When queried in the disconnected state, this gives the last RIX used by
  10648. * the STA in the last TX frame to the AP when it was connected.
  10649. *
  10650. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  10651. * mode only. This represents the number of times the STA TSF goes out of sync
  10652. * from the AP after the connection. If queried in the disconnected state, this
  10653. * gives the count of TSF out of sync for the last connection.
  10654. *
  10655. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  10656. * mode only. This represents the roam trigger reason for the last roaming
  10657. * attempted by the firmware. This can be queried either in connected state or
  10658. * disconnected state. Each bit of this attribute represents the different
  10659. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  10660. *
  10661. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  10662. * only. This represents the roam fail reason for the last failed roaming
  10663. * attempt by the firmware. Different roam failure reason codes are specified
  10664. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  10665. * connected state or disconnected state.
  10666. *
  10667. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  10668. * STA mode only. This represents the roam invoke fail reason for the last
  10669. * failed roam invoke. Different roam invoke failure reason codes
  10670. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  10671. * queried either in connected state or disconnected state.
  10672. *
  10673. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  10674. * This represents the average congestion duration of uplink frames in MAC
  10675. * queue in unit of ms. This can be queried either in connected state or
  10676. * disconnected state.
  10677. */
  10678. enum qca_wlan_vendor_attr_get_sta_info {
  10679. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  10680. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  10681. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  10682. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  10683. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  10684. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  10685. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  10686. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  10687. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  10688. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  10689. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  10690. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  10691. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  10692. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  10693. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  10694. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  10695. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  10696. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  10697. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  10698. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  10699. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  10700. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  10701. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  10702. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  10703. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  10704. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  10705. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  10706. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  10707. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  10708. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  10709. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  10710. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  10711. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  10712. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  10713. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  10714. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  10715. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  10716. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  10717. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  10718. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  10719. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  10720. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  10721. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  10722. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  10723. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  10724. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  10725. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  10726. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  10727. /* keep last */
  10728. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  10729. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  10730. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  10731. };
  10732. /**
  10733. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  10734. * Used when the driver triggers the STA to disconnect from the AP.
  10735. *
  10736. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  10737. * disconnection with the AP due to unspecified reasons.
  10738. *
  10739. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  10740. * disconnection with the AP due to a roaming failure. This roaming is triggered
  10741. * internally (host driver/firmware).
  10742. *
  10743. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  10744. * the AP when the user/external triggered roaming fails.
  10745. *
  10746. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  10747. * by the host driver whenever gateway reachability failure is detected and the
  10748. * driver disconnects with AP.
  10749. *
  10750. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  10751. * the AP on a channel switch announcement from it with an unsupported channel.
  10752. *
  10753. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  10754. * with indoor channels disabled and if the STA is connected on one of these
  10755. * disabled channels, the host driver disconnected the STA with this reason
  10756. * code.
  10757. *
  10758. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  10759. * explicit request from the user to disable the current operating channel.
  10760. *
  10761. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  10762. * the internal host driver/firmware recovery.
  10763. *
  10764. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  10765. * a timeout for the key installations from the user space.
  10766. *
  10767. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  10768. * STA on a band change request from the user space to a different band from the
  10769. * current operation channel/band.
  10770. *
  10771. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  10772. * interface down trigger from the user space.
  10773. *
  10774. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  10775. * STA on getting continuous transmission failures for multiple Data frames.
  10776. *
  10777. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  10778. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  10779. * represents inactivity from AP on such transmissions.
  10780. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  10781. * disconnection when SA Query times out (AP does not respond to SA Query).
  10782. *
  10783. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  10784. * STA on missing the beacons continuously from the AP.
  10785. *
  10786. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  10787. * able to move to the channel mentioned by the AP in CSA.
  10788. *
  10789. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  10790. */
  10791. enum qca_disconnect_reason_codes {
  10792. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  10793. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  10794. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  10795. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  10796. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  10797. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  10798. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  10799. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  10800. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  10801. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  10802. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  10803. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  10804. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  10805. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  10806. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  10807. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  10808. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  10809. };
  10810. /**
  10811. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  10812. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  10813. *
  10814. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  10815. * This attribute represents the driver specific reason codes (local
  10816. * driver/firmware initiated reasons for disconnection) defined
  10817. * in enum qca_disconnect_reason_codes.
  10818. */
  10819. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  10820. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  10821. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  10822. /* keep last */
  10823. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  10824. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  10825. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  10826. };
  10827. /**
  10828. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  10829. *
  10830. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  10831. */
  10832. enum qca_wlan_tspec_operation {
  10833. QCA_WLAN_TSPEC_ADD = 0,
  10834. QCA_WLAN_TSPEC_DEL = 1,
  10835. QCA_WLAN_TSPEC_GET = 2,
  10836. };
  10837. /**
  10838. * enum qca_wlan_tspec_direction - Direction in TSPEC
  10839. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  10840. *
  10841. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  10842. */
  10843. enum qca_wlan_tspec_direction {
  10844. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  10845. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  10846. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  10847. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  10848. };
  10849. /**
  10850. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  10851. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  10852. *
  10853. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  10854. */
  10855. enum qca_wlan_tspec_ack_policy {
  10856. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  10857. QCA_WLAN_TSPEC_NO_ACK = 1,
  10858. /* Reserved */
  10859. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  10860. };
  10861. /**
  10862. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  10863. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  10864. *
  10865. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  10866. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  10867. * are defined in enum qca_wlan_tspec_operation.
  10868. * Mandatory attribute for all kinds of config TSPEC requests.
  10869. *
  10870. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  10871. * u8 attribute. TS ID. Possible values are 0-7.
  10872. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  10873. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  10874. *
  10875. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  10876. * u8 attribute. Direction of data carried by the TS. Possible values are
  10877. * defined in enum qca_wlan_tspec_direction.
  10878. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10879. *
  10880. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  10881. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  10882. * with the TS. set - enabled, not set - disabled.
  10883. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10884. *
  10885. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  10886. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  10887. * belonging to this TS. Possible values are 0-7.
  10888. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10889. *
  10890. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  10891. * u8 attribute. Indicate whether MAC acknowledgements are required for
  10892. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  10893. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  10894. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10895. *
  10896. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  10897. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  10898. * belonging to this TS.
  10899. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10900. *
  10901. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  10902. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  10903. * belonging to this TS.
  10904. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10905. *
  10906. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  10907. * u32 attribute. Specify the minimum interval in microseconds between the
  10908. * start of two successive SPs.
  10909. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10910. *
  10911. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  10912. * u32 attribute. Specify the maximum interval in microseconds between the
  10913. * start of two successive SPs.
  10914. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10915. *
  10916. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  10917. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  10918. * without arrival or transfer of an MPDU belonging to the TS before this TS
  10919. * is deleted by the MAC entity at the HC.
  10920. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10921. *
  10922. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  10923. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  10924. * without arrival or transfer of an MSDU belonging to the TS before the
  10925. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  10926. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  10927. * interval is always less than or equal to the inactivity interval.
  10928. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10929. *
  10930. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  10931. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  10932. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  10933. * bounds of this TSPEC.
  10934. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10935. *
  10936. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  10937. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  10938. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  10939. * bounds of this TSPEC.
  10940. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10941. *
  10942. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  10943. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  10944. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  10945. * the bounds of this TSPEC.
  10946. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10947. *
  10948. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  10949. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  10950. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  10951. * value of 0 indicates that there are no bursts.
  10952. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10953. *
  10954. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  10955. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  10956. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  10957. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10958. *
  10959. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  10960. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  10961. * and above the stated application rates required to transport an MSDU/A-MSDU
  10962. * belonging to the TS in this TSPEC.
  10963. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10964. */
  10965. enum qca_wlan_vendor_attr_config_tspec {
  10966. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  10967. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  10968. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  10969. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  10970. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  10971. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  10972. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  10973. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  10974. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  10975. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  10976. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  10977. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  10978. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  10979. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  10980. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  10981. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  10982. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  10983. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  10984. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  10985. /* keep last */
  10986. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  10987. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  10988. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  10989. };
  10990. /**
  10991. * enum qca_wlan_medium_assess_type - Type of medium assess request
  10992. *
  10993. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  10994. */
  10995. enum qca_wlan_medium_assess_type {
  10996. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  10997. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  10998. };
  10999. /**
  11000. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  11001. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  11002. *
  11003. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  11004. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  11005. * Specify the type of medium assess request and indicate its type in response.
  11006. * Possible values are defined in enum qca_wlan_medium_assess_type.
  11007. *
  11008. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  11009. * u32 attribute. Mandatory in CCA request.
  11010. * Specify the assessment period in terms of seconds. Assessment result will be
  11011. * sent as the response to the CCA request after the assessment period.
  11012. *
  11013. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  11014. * u32 attribute. Mandatory in response to CCA request.
  11015. * Total timer tick count of the assessment cycle.
  11016. *
  11017. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  11018. * u32 attribute. Mandatory in response to CCA request.
  11019. * Timer tick count of idle time in the assessment cycle.
  11020. *
  11021. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  11022. * u32 attribute. Mandatory in response to CCA request.
  11023. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  11024. *
  11025. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  11026. * u32 attribute. Mandatory in response to CCA request.
  11027. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  11028. *
  11029. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  11030. * s32 attribute. Mandatory in response to CCA request.
  11031. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  11032. *
  11033. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  11034. * s32 attribute. Mandatory in response to CCA request.
  11035. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  11036. *
  11037. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  11038. * u8 attribute. Mandatory in congestion report request.
  11039. * 1-enable 0-disable.
  11040. *
  11041. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  11042. * u8 attribute. Mandatory in congestion report enable request and will be
  11043. * ignored if present in congestion report disable request. Possible values are
  11044. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  11045. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  11046. * congestion percentage reaches the configured threshold.
  11047. *
  11048. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  11049. * u8 attribute. Optional in congestion report enable request and will be
  11050. * ignored if present in congestion report disable request.
  11051. * Specify the interval of congestion report event in terms of seconds. Possible
  11052. * values are 1-255. Default value 1 will be used if this attribute is omitted
  11053. * or using invalid values.
  11054. *
  11055. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  11056. * u8 attribute. Mandatory in congestion report event.
  11057. * Indicate the actual congestion percentage. Possible values are 0-100.
  11058. */
  11059. enum qca_wlan_vendor_attr_medium_assess {
  11060. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  11061. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  11062. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  11063. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  11064. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  11065. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  11066. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  11067. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  11068. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  11069. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  11070. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  11071. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  11072. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  11073. /* keep last */
  11074. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  11075. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  11076. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  11077. };
  11078. /**
  11079. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  11080. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  11081. *
  11082. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  11083. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  11084. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  11085. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  11086. *
  11087. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  11088. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  11089. *
  11090. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  11091. * u8 attribute, required. indicates group id of Tx VDEV
  11092. *
  11093. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  11094. * Nested attribute. This attribute shall be used by the driver to send
  11095. * group information. The attributes defined in enum
  11096. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  11097. * are nested in this attribute.
  11098. */
  11099. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  11100. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  11101. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  11102. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  11103. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  11104. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  11105. /* keep last */
  11106. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  11107. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  11108. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  11109. };
  11110. /**
  11111. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  11112. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  11113. *
  11114. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  11115. * u32 attribute, required. contains interface index.
  11116. *
  11117. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  11118. * u8 attribute, required. 0 - means vdev is in down state.
  11119. * 1- means vdev is in up state.
  11120. */
  11121. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  11122. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  11123. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  11124. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  11125. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  11126. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  11127. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  11128. };
  11129. /**
  11130. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  11131. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  11132. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  11133. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  11134. * frame
  11135. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  11136. * Request frame.
  11137. */
  11138. enum qca_wlan_vendor_oci_override_frame_type {
  11139. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  11140. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  11141. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  11142. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  11143. };
  11144. /**
  11145. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  11146. *
  11147. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  11148. * STA interface has to be given while selecting the connection policies
  11149. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  11150. * An interface is set as primary through the attribute
  11151. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  11152. * applicable if the primary interface has not been set earlier.
  11153. *
  11154. * The intention is not to downgrade the primary STA performance, such as:
  11155. * - Do not reduce the number of TX/RX chains of primary connection.
  11156. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  11157. * chains.
  11158. * - If using MCC, should set the MCC duty cycle of the primary connection to
  11159. * be higher than the secondary connection.
  11160. *
  11161. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  11162. * subsequent STA connection shall be chosen to balance with the existing
  11163. * concurrent STA's performance.
  11164. * Such as
  11165. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  11166. * capability.
  11167. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  11168. * to the secondary.
  11169. * - Prefer BSSID candidates which will help provide the best "overall"
  11170. * performance for all the STA connections.
  11171. */
  11172. enum qca_wlan_concurrent_sta_policy_config {
  11173. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  11174. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  11175. };
  11176. /**
  11177. * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes
  11178. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command.
  11179. *
  11180. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG:
  11181. * u8 attribute. Configures the concurrent STA policy configuration.
  11182. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  11183. */
  11184. enum qca_wlan_vendor_attr_concurrent_sta_policy {
  11185. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0,
  11186. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1,
  11187. /* keep last */
  11188. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST,
  11189. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX =
  11190. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1,
  11191. };
  11192. /**
  11193. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  11194. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  11195. * attribute.
  11196. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  11197. * for unicast probe request.
  11198. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  11199. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  11200. * ath request.
  11201. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  11202. * received from AP.
  11203. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  11204. * request.
  11205. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  11206. * assoc request.
  11207. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  11208. * received from AP.
  11209. */
  11210. enum qca_sta_connect_fail_reason_codes {
  11211. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  11212. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  11213. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  11214. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  11215. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  11216. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  11217. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  11218. };
  11219. /**
  11220. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  11221. * OCI override request. These attributes are used inside nested attribute
  11222. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  11223. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  11224. *
  11225. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  11226. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  11227. * attribute to specify the frame type in which the OCI is to be overridden.
  11228. *
  11229. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  11230. * OCI frequency (in MHz) to override in the specified frame type.
  11231. */
  11232. enum qca_wlan_vendor_attr_oci_override {
  11233. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  11234. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  11235. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  11236. /* keep last */
  11237. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  11238. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  11239. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  11240. };
  11241. /**
  11242. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  11243. * filters defined in this enum are used in attribute
  11244. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  11245. *
  11246. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  11247. * shall filter the channels which are not usable because of coexistence with
  11248. * cellular radio.
  11249. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  11250. * shall filter the channels which are not usable because of existing active
  11251. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  11252. *
  11253. */
  11254. enum qca_wlan_vendor_usable_channels_filter {
  11255. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  11256. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  11257. };
  11258. /**
  11259. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  11260. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  11261. *
  11262. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  11263. * u32 attribute, required. Indicates the center frequency of the primary
  11264. * channel in MHz.
  11265. *
  11266. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  11267. * u32 attribute. Indicates the center frequency of the primary segment of the
  11268. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  11269. * 160 MHz, and 320 MHz channels.
  11270. *
  11271. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  11272. * u32 attribute. Indicates the center frequency of the secondary segment of
  11273. * 80+80 channel in MHz. This attribute is required only when
  11274. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  11275. *
  11276. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  11277. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  11278. * values are defined in enum nl80211_chan_width.
  11279. *
  11280. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  11281. * u32 attribute, required. Indicates all the interface types for which this
  11282. * channel is usable. This attribute encapsulates bitmasks of interface types
  11283. * defined in enum nl80211_iftype.
  11284. *
  11285. */
  11286. enum qca_wlan_vendor_attr_chan_info {
  11287. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  11288. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  11289. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  11290. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  11291. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  11292. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  11293. /* keep last */
  11294. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  11295. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  11296. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  11297. };
  11298. /**
  11299. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  11300. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  11301. *
  11302. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  11303. * u32 attribute. Indicates the bands from which the channels should be reported
  11304. * in response. This attribute encapsulates bit masks of bands defined in enum
  11305. * nl80211_band. Optional attribute, if not present in the request the driver
  11306. * shall return channels from all supported bands.
  11307. *
  11308. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  11309. * u32 attribute. Indicates all the interface types for which the usable
  11310. * channels information is requested. This attribute encapsulates bitmasks of
  11311. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  11312. * present in the request the driver shall send information of all supported
  11313. * interface modes.
  11314. *
  11315. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  11316. * u32 attribute. This attribute carries information of all filters that shall
  11317. * be applied while populating usable channels information by the driver. This
  11318. * attribute carries bit masks of different filters defined in enum
  11319. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  11320. * in the request the driver shall send information of channels without applying
  11321. * any of the filters that can be configured through this attribute.
  11322. *
  11323. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  11324. * Nested attribute. This attribute shall be used by the driver to send
  11325. * usability information of each channel. The attributes defined in enum
  11326. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  11327. */
  11328. enum qca_wlan_vendor_attr_usable_channels {
  11329. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  11330. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  11331. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  11332. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  11333. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  11334. /* keep last */
  11335. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  11336. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  11337. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  11338. };
  11339. /**
  11340. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  11341. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  11342. *
  11343. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  11344. * the list of radar history entries.
  11345. * Each entry contains freq, timestamp, and radar signal detect flag.
  11346. * The driver shall add an entry when CAC has finished, or radar signal
  11347. * has been detected post AP beaconing. The driver shall maintain at least
  11348. * 8 entries in order to save CAC result for a 160 MHz channel.
  11349. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  11350. * Channel frequency in MHz.
  11351. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  11352. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  11353. * or radar detection.
  11354. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  11355. * This flag indicates radar signal has been detected.
  11356. */
  11357. enum qca_wlan_vendor_attr_radar_history {
  11358. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  11359. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  11360. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  11361. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  11362. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  11363. /* keep last */
  11364. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  11365. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  11366. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  11367. };
  11368. /**
  11369. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  11370. *
  11371. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  11372. * target exited MCC state and cleared the quota information. In the
  11373. * command it clears MCC quota setting and restores adaptive scheduling.
  11374. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  11375. * will not be changed.
  11376. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  11377. * and the target may change the quota based on the data activity.
  11378. */
  11379. enum qca_wlan_vendor_mcc_quota_type {
  11380. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  11381. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  11382. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  11383. };
  11384. /**
  11385. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  11386. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  11387. * quota information or as a command to set the required MCC quota for an
  11388. * interface.
  11389. *
  11390. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  11391. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  11392. * In a command this specifies the MCC quota type to be set for the interface.
  11393. * In an event this provides the current quota type in force.
  11394. * This is required in a command and an event.
  11395. *
  11396. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  11397. * the list of channel quota entries.
  11398. * In an event each entry contains the frequency and respective time quota for
  11399. * all the MCC interfaces.
  11400. * In a command it specifies the interface index and respective time quota.
  11401. * In a command only one entry (ifindex, quota pair) may be specified.
  11402. *
  11403. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  11404. * Channel frequency in MHz. This is present only in an event.
  11405. *
  11406. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  11407. * Channel time quota expressed as percentage.
  11408. * This is present in an event and a command.
  11409. * In an command, the user shall specify the quota to be allocated for the
  11410. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  11411. * In an event this provides the existing quota for the channel.
  11412. *
  11413. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  11414. * Specifies the interface index (netdev) for which the corresponding
  11415. * configurations are applied. This is required in a command only. Only one
  11416. * interface index may be specified. If not specified, the configuration is
  11417. * rejected.
  11418. */
  11419. enum qca_wlan_vendor_attr_mcc_quota {
  11420. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  11421. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  11422. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  11423. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  11424. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  11425. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  11426. /* keep last */
  11427. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  11428. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  11429. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  11430. };
  11431. /**
  11432. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  11433. * radio configurations present in each radio combination.
  11434. *
  11435. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  11436. * the band info in the radio configuration. Uses the enum qca_set_band values.
  11437. *
  11438. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  11439. * the number of antennas info in the radio configuration.
  11440. */
  11441. enum qca_wlan_vendor_attr_supported_radio_cfg {
  11442. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  11443. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  11444. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  11445. /* keep last */
  11446. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  11447. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  11448. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  11449. };
  11450. /**
  11451. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  11452. * radio combinations supported by the device.
  11453. *
  11454. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  11455. * provides the radio configurations present in the radio combination.
  11456. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  11457. * This attribute provides the values for radio combination matrix.
  11458. * For standalone config, the number of config values is one and the config
  11459. * carries the band and antenna information for standalone configuration. For
  11460. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  11461. * configuration the number of config values is two and the config carries the
  11462. * band and antenna information for each simultaneous radio.
  11463. */
  11464. enum qca_wlan_vendor_attr_radio_combination {
  11465. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  11466. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  11467. /* keep last */
  11468. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  11469. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  11470. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  11471. };
  11472. /**
  11473. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  11474. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  11475. *
  11476. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  11477. * provides the radio combinations supported by the device.
  11478. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  11479. * For example, in the radio combination matrix for a device which has two
  11480. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  11481. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  11482. * combinations is 5 and the radio combinations are
  11483. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  11484. * {{5 GHz 2X2}}, //Standalone 5 GHz
  11485. * {{6 GHz 2X2}}, //Standalone 6 GHz
  11486. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  11487. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  11488. * The band and antenna info together as nested data provides one radio config.
  11489. * Standalone configuration has one config with band and antenna nested data.
  11490. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  11491. * have two nested band and antenna info data.
  11492. */
  11493. enum qca_wlan_vendor_attr_radio_combination_matrix {
  11494. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  11495. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  11496. /* keep last */
  11497. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  11498. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  11499. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  11500. };
  11501. /**
  11502. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  11503. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  11504. *
  11505. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  11506. * Enable mDNS offload. This attribute is mandatory to enable
  11507. * mDNS offload feature. If this attribute is not present, mDNS offload
  11508. * is disabled.
  11509. *
  11510. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  11511. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  11512. * attribute is mandatory when enabling the feature, and not required when
  11513. * disabling the feature.
  11514. *
  11515. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  11516. * the following attributes:
  11517. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  11518. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  11519. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  11520. *
  11521. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  11522. * It consists of a hostname and ".local" as the domain name. The character
  11523. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  11524. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  11525. * supported per vdev.
  11526. * For example: myphone.local
  11527. *
  11528. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  11529. * u16 attribute. It specifies the total number of resource records present
  11530. * in the answer section of the answer payload. This attribute is needed by the
  11531. * firmware to populate the mDNS response frame for mNDS queries without having
  11532. * to parse the answer payload.
  11533. *
  11534. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  11535. * attribute sent by the mdnsResponder from userspace. It contains resource
  11536. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  11537. * payload is passed down to firmware and is transmitted in response to
  11538. * mDNS queries.
  11539. * The maximum size of the answer payload supported is 512 bytes.
  11540. */
  11541. enum qca_wlan_vendor_attr_mdns_offload {
  11542. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  11543. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  11544. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  11545. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  11546. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  11547. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  11548. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  11549. /* keep last */
  11550. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  11551. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  11552. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  11553. };
  11554. /**
  11555. * enum qca_vendor_attr_diag_event_type - Attributes used by
  11556. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  11557. *
  11558. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  11559. * driver/firmware during Connection request from Userspace. Uses the
  11560. * following attributes of enum qca_wlan_vendor_attr_diag:
  11561. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11562. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  11563. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11564. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  11565. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11566. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  11567. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  11568. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  11569. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  11570. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  11571. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  11572. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  11573. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11574. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11575. *
  11576. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  11577. * driver/firmware when a connection is failed. Uses the
  11578. * following attributes of enum qca_wlan_vendor_attr_diag:
  11579. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11580. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11581. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11582. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11583. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11584. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11585. *
  11586. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  11587. * driver/firmware during Authentication request from a device. Uses the
  11588. * following attributes of enum qca_wlan_vendor_attr_diag:
  11589. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11590. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11591. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11592. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  11593. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  11594. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11595. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  11596. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11597. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11598. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11599. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11600. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11601. *
  11602. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  11603. * driver/firmware when device receives an authentication response. Uses the
  11604. * following attributes of enum qca_wlan_vendor_attr_diag:
  11605. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11606. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11607. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  11608. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  11609. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11610. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  11611. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11612. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11613. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11614. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11615. *
  11616. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  11617. * driver/firmware when device sends an association request. Uses the
  11618. * following attributes of enum qca_wlan_vendor_attr_diag:
  11619. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11620. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11621. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11622. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11623. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11624. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11625. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11626. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11627. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11628. *
  11629. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  11630. * driver/firmware when device receives an association response. Uses the
  11631. * following attributes of enum qca_wlan_vendor_attr_diag:
  11632. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11633. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11634. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11635. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  11636. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11637. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11638. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11639. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  11640. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  11641. *
  11642. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  11643. * driver/userspace when device receives a deauthentication response. Uses the
  11644. * following attributes of enum qca_wlan_vendor_attr_diag:
  11645. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11646. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11647. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11648. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11649. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11650. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11651. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11652. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11653. *
  11654. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  11655. * driver/userspace when device sends a deauthentication request. Uses the
  11656. * following attributes of enum qca_wlan_vendor_attr_diag:
  11657. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11658. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11659. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11660. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11661. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11662. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11663. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11664. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11665. *
  11666. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  11667. * driver/firmware when device receives a disassociation response. Uses the
  11668. * following attributes of enum qca_wlan_vendor_attr_diag:
  11669. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11670. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11671. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11672. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11673. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11674. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11675. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11676. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11677. *
  11678. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  11679. * driver/firmware when device sends a disassociation request. Uses the
  11680. * following attributes of enum qca_wlan_vendor_attr_diag:
  11681. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11682. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11683. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11684. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11685. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11686. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11687. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11688. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11689. *
  11690. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  11691. * driver/firmware when device did not receive beacon packets during connection.
  11692. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  11693. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11694. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11695. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11696. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11697. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11698. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11699. *
  11700. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  11701. * driver/firmware when Roaming scan is triggered. Uses the following
  11702. * attributes of enum qca_wlan_vendor_attr_diag:
  11703. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11704. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  11705. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  11706. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11707. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11708. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  11709. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  11710. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11711. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11712. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11713. *
  11714. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  11715. * driver/firmware Roam scanning is processed. Uses the following
  11716. * attributes of enum qca_wlan_vendor_attr_diag:
  11717. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11718. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11719. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  11720. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  11721. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11722. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11723. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11724. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  11725. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  11726. *
  11727. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  11728. * driver/firmware to provide Roam information of the current AP. Uses the
  11729. * following attributes of enum qca_wlan_vendor_attr_diag:
  11730. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11731. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11732. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11733. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11734. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11735. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  11736. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11737. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11738. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11739. *
  11740. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  11741. * driver/firmware to provide Roam information of the candid AP. Uses the
  11742. * following attributes of enum qca_wlan_vendor_attr_diag:
  11743. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11744. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11745. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11746. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11747. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11748. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  11749. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  11750. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11751. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11752. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11753. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11754. *
  11755. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  11756. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  11757. * following attributes of enum qca_wlan_vendor_attr_diag:
  11758. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11759. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  11760. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11761. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11762. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11763. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11764. *
  11765. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  11766. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  11767. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11768. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11769. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11770. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11771. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11772. *
  11773. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  11774. * /firmware when STA sends a BTM request frame. Uses the following attributes
  11775. * of enum qca_wlan_vendor_attr_diag:
  11776. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11777. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11778. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  11779. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  11780. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  11781. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  11782. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11783. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11784. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11785. *
  11786. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  11787. * driver/firmware when STA queries about BTM transition. Uses the following
  11788. * attributes of enum qca_wlan_vendor_attr_diag:
  11789. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11790. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11791. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  11792. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11793. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11794. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11795. *
  11796. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  11797. * /firmware when STA receives BTM response frame. Uses the following
  11798. * attributes of enum qca_wlan_vendor_attr_diag:
  11799. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11800. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11801. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  11802. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  11803. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  11804. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11805. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11806. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11807. *
  11808. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  11809. * driver/firmware to provide BTM request candidate information. Uses the
  11810. * following attributes of enum qca_wlan_vendor_attr_diag:
  11811. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11812. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11813. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  11814. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11815. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11816. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11817. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11818. *
  11819. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  11820. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  11821. * enum qca_wlan_vendor_attr_diag:
  11822. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11823. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  11824. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11825. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  11826. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11827. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11828. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11829. *
  11830. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  11831. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  11832. * attributes of enum qca_wlan_vendor_attr_diag:
  11833. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11834. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11835. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11836. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11837. *
  11838. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  11839. * driver/firmware to indicate DHCP offering to AP. Uses the following
  11840. * attributes of enum qca_wlan_vendor_attr_diag:
  11841. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11842. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11843. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11844. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11845. *
  11846. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  11847. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  11848. * attributes of enum qca_wlan_vendor_attr_diag:
  11849. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11850. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11851. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11852. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11853. *
  11854. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  11855. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  11856. * attributes of enum qca_wlan_vendor_attr_diag:
  11857. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11858. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11859. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11860. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11861. *
  11862. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  11863. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  11864. * following attributes of enum qca_wlan_vendor_attr_diag:
  11865. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11866. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11867. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11868. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11869. *
  11870. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  11871. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  11872. * enum qca_wlan_vendor_attr_diag:
  11873. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11874. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11875. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11876. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11877. *
  11878. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  11879. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  11880. * enum qca_wlan_vendor_attr_diag:
  11881. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11882. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11883. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11884. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11885. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11886. *
  11887. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  11888. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  11889. * enum qca_wlan_vendor_attr_diag:
  11890. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11891. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11892. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11893. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11894. *
  11895. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  11896. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  11897. * enum qca_wlan_vendor_attr_diag:
  11898. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11899. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11900. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11901. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11902. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11903. *
  11904. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  11905. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  11906. * enum qca_wlan_vendor_attr_diag:
  11907. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11908. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11909. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11910. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11911. *
  11912. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  11913. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  11914. * enum qca_wlan_vendor_attr_diag:
  11915. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11916. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11917. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11918. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11919. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11920. *
  11921. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  11922. * /firmware to indicate device sent EAP request. Uses the following attributes
  11923. * of enum qca_wlan_vendor_attr_diag:
  11924. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11925. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  11926. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  11927. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11928. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11929. *
  11930. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  11931. * /firmware to indicate device received EAP response. Uses the following
  11932. * attributes of enum qca_wlan_vendor_attr_diag:
  11933. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11934. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  11935. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  11936. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11937. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11938. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11939. *
  11940. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  11941. * /firmware to indicate EAP frame transmission is success. Uses the following
  11942. * attributes of enum qca_wlan_vendor_attr_diag:
  11943. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11944. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11945. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11946. *
  11947. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  11948. * /firmware to indicate EAP frame transmission is failed. Uses the following
  11949. * attributes of enum qca_wlan_vendor_attr_diag:
  11950. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11951. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11952. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11953. *
  11954. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  11955. * /firmware to indicate Reassocation request. Uses the following attributes
  11956. * of enum qca_wlan_vendor_attr_diag:
  11957. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  11958. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11959. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11960. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11961. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11962. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11963. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11964. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11965. *
  11966. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  11967. * /firmware to indicate Reassocation response. Uses the following attributes
  11968. * of enum qca_wlan_vendor_attr_diag:
  11969. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  11970. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11971. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11972. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  11973. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  11974. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11975. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11976. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11977. */
  11978. enum qca_vendor_attr_diag_event_type {
  11979. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  11980. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  11981. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  11982. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  11983. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  11984. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  11985. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  11986. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  11987. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  11988. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  11989. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  11990. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  11991. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  11992. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  11993. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  11994. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  11995. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  11996. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  11997. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  11998. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  11999. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  12000. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  12001. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  12002. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  12003. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  12004. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  12005. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  12006. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  12007. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  12008. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  12009. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  12010. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  12011. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  12012. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  12013. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  12014. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  12015. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  12016. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  12017. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  12018. /* keep last */
  12019. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  12020. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  12021. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  12022. };
  12023. /**
  12024. * enum qca_wlan_vendor_tx_status - Used by attribute
  12025. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  12026. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  12027. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  12028. * is not received.
  12029. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  12030. * acknowledged.
  12031. */
  12032. enum qca_wlan_vendor_tx_status {
  12033. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  12034. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  12035. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  12036. };
  12037. /**
  12038. * enum qca_roam_sub_reason - Used by attribute
  12039. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  12040. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  12041. * timer expiry
  12042. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  12043. * to no candidate found during LOW RSSI trigger.
  12044. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  12045. * Imminent timeout
  12046. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  12047. * failure
  12048. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  12049. * emergency like deauth/disassoc.
  12050. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  12051. * BSS transition management request.
  12052. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  12053. * Roam scan triggered due to Low RSSI periodic timer
  12054. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  12055. * Roam trigger due to periodic timer after no candidate found during CU
  12056. * inactivity timer scan.
  12057. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  12058. * found in high CU roam trigger.
  12059. */
  12060. enum qca_roam_sub_reason {
  12061. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  12062. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  12063. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  12064. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  12065. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  12066. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  12067. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  12068. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  12069. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  12070. };
  12071. /*
  12072. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  12073. * to send diag data to the userspace. The attributes defined in this enum are
  12074. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  12075. *
  12076. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  12077. * by driver/firmware to send diag data. Each instance of this nested attribute
  12078. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  12079. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  12080. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  12081. * nested attribute can be sent with one vendor command
  12082. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  12083. *
  12084. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  12085. * attribute indicates the type of the diag event from driver/firmware. Uses
  12086. * values from enum qca_vendor_attr_diag_event_type.
  12087. *
  12088. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  12089. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  12090. * API to send time of the day in microseconds to userspace.
  12091. *
  12092. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  12093. * This attribute indicates firmware timestamp in microseconds.
  12094. *
  12095. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  12096. * indicates wlan interface index.
  12097. *
  12098. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  12099. * indicates 6-byte MAC address representing the BSSID of the AP.
  12100. *
  12101. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  12102. * indicates the 6-byte MAC address representing the BSSID hint sent in
  12103. * the connect request.
  12104. *
  12105. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  12106. * indicates the SSID in u8 array with a maximum length of 32.
  12107. *
  12108. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  12109. * indicates the frequency of AP in MHz.
  12110. *
  12111. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  12112. * indicates frequency hint given in the connect request in MHz.
  12113. *
  12114. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  12115. * This attribute indicates RSSI of the 802.11 frame in dBm.
  12116. *
  12117. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  12118. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  12119. * Table 12-10—Integrity and key wrap algorithms.
  12120. *
  12121. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  12122. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  12123. * Table 12-10—Integrity and key wrap algorithms.
  12124. *
  12125. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  12126. * attribute indicates Group management cipher suite defined in IEEE Std
  12127. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  12128. *
  12129. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  12130. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  12131. * Table 9-151—AKM suite selectors.
  12132. *
  12133. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  12134. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  12135. * Section 9.4.1.1 Authentication Algorithm Number field.
  12136. *
  12137. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  12138. * indicates bluetooth COEX is active or not.
  12139. *
  12140. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  12141. * attribute indicates SAE authentication frame type. The possible values are
  12142. * 1 - SAE commit frame
  12143. * 2 - SAE confirm frame
  12144. *
  12145. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  12146. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  12147. * Table 9-49—Reason codes.
  12148. *
  12149. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  12150. * attribute indicates sequence number of the frame defined in IEEE Std
  12151. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  12152. * field.
  12153. *
  12154. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  12155. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  12156. * 9-50—Status codes.
  12157. *
  12158. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  12159. * Uses enum qca_wlan_vendor_tx_status.
  12160. *
  12161. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  12162. * indicates if frame transmission is retried.
  12163. *
  12164. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  12165. * Uses enum qca_roam_reason.
  12166. *
  12167. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  12168. * Uses enum qca_roam_sub_reason.
  12169. *
  12170. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  12171. * indicates channel utilization in percentage.
  12172. *
  12173. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  12174. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  12175. *
  12176. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  12177. * This attribute indicates current RSSI threshold in dBm.
  12178. *
  12179. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  12180. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  12181. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  12182. *
  12183. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  12184. * This attribute indicates number of scanned candidate APs.
  12185. *
  12186. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  12187. * attribute indicates roam AP rank computed based on connection preference.
  12188. *
  12189. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  12190. * This attribute indicates expected throughput in kbps.
  12191. *
  12192. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  12193. * This attribute indicates the preference value of candidate AP / connected AP
  12194. * calculated in the firmware.
  12195. *
  12196. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  12197. * indicates connection/roaming is successful or not.
  12198. *
  12199. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  12200. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  12201. * IE present in the BTM frame.
  12202. *
  12203. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  12204. * This attribute indicates BTM WTC duration in milliseconds.
  12205. *
  12206. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  12207. * indicates dialog token value of BTM query/request/response frames.
  12208. *
  12209. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  12210. * attribute indicates the Transition Reason field indicates the reason why
  12211. * a transition attempt occurred and contains one of the values defined in IEEE
  12212. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  12213. *
  12214. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  12215. * indicates BTM mode defined in IEEE Std 802.11‐2020
  12216. * Figure 9-924—Request Mode field format.
  12217. *
  12218. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  12219. * This attribute indicates the Disassociation Timer field which is the number
  12220. * of beacon transmission times (TBTTs) until the serving AP will send a
  12221. * Disassociation frame to this STA.
  12222. *
  12223. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  12224. * This attribute indicates BTM validity interval field in TBTTs defined in
  12225. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  12226. * Action field format.
  12227. *
  12228. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  12229. * This attribute indicates BTM candidate list entries.
  12230. *
  12231. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  12232. * This attribute indicates network preference for BTM transition defined in
  12233. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  12234. *
  12235. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  12236. * This attribute indicates BTM transition status code defined in IEEE Std
  12237. * 802.11‐2020 Table 9-428—BTM status code definitions.
  12238. *
  12239. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  12240. * This attribute indicates BSS termination delay defined in IEEE Std
  12241. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  12242. *
  12243. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  12244. * This attribute indicates 6-byte MAC address representing the BSSID of the
  12245. * BSS that the non-AP STA transitions to.
  12246. *
  12247. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  12248. * indicates EAP frame type. The methods are enumerated by IANA at
  12249. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  12250. *
  12251. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  12252. * indicates EAP frame length.
  12253. *
  12254. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  12255. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  12256. * (Time from boot but not the time spent in suspend) to send in microseconds
  12257. * to userspace.
  12258. *
  12259. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  12260. * indicates the association id received in the (re)association response frame
  12261. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  12262. */
  12263. enum qca_wlan_vendor_attr_diag {
  12264. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  12265. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  12266. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  12267. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  12268. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  12269. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  12270. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  12271. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  12272. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  12273. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  12274. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  12275. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  12276. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  12277. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  12278. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  12279. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  12280. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  12281. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  12282. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  12283. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  12284. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  12285. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  12286. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  12287. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  12288. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  12289. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  12290. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  12291. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  12292. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  12293. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  12294. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  12295. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  12296. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  12297. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  12298. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  12299. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  12300. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  12301. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  12302. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  12303. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  12304. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  12305. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  12306. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  12307. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  12308. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  12309. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  12310. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  12311. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  12312. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  12313. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  12314. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  12315. /* keep last */
  12316. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  12317. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  12318. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  12319. };
  12320. /**
  12321. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  12322. * data types to be sent over the monitor interface.
  12323. */
  12324. enum qca_wlan_vendor_monitor_data_frame_type {
  12325. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  12326. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  12327. not set */
  12328. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  12329. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  12330. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  12331. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  12332. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  12333. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  12334. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  12335. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  12336. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  12337. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  12338. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  12339. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  12340. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  12341. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  12342. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  12343. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  12344. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  12345. };
  12346. /**
  12347. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  12348. * mgmt types to be sent over the monitor interface.
  12349. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  12350. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  12351. * except the Beacons. Valid only in the Connect state.
  12352. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  12353. * BSSID Beacons. Valid only in the Connect state.
  12354. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  12355. * the Beacons obtained during the scan (off channel and connected channel)
  12356. * when in connected state.
  12357. */
  12358. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  12359. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  12360. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  12361. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  12362. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  12363. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  12364. };
  12365. /**
  12366. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  12367. * ctrl types to be sent over the monitor interface.
  12368. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  12369. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  12370. */
  12371. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  12372. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  12373. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  12374. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  12375. };
  12376. /**
  12377. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  12378. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  12379. * monitor mode.
  12380. *
  12381. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  12382. * Represents the tx data packet type to be monitored (u32). These data packets
  12383. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  12384. *
  12385. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  12386. * Represents the tx data packet type to be monitored (u32). These data packets
  12387. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  12388. *
  12389. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  12390. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  12391. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  12392. *
  12393. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  12394. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  12395. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  12396. *
  12397. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  12398. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  12399. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  12400. *
  12401. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  12402. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  12403. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  12404. *
  12405. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  12406. * u32 attribute, An interval only for the connected beacon interval, which
  12407. * expects that the connected BSSID's beacons shall be sent on the monitor
  12408. * interface only on this specific interval.
  12409. */
  12410. enum qca_wlan_vendor_attr_set_monitor_mode {
  12411. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  12412. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  12413. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  12414. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  12415. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  12416. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  12417. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  12418. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  12419. /* keep last */
  12420. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  12421. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  12422. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  12423. };
  12424. /**
  12425. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  12426. * Bits will be set to 1 if the corresponding state is enabled.
  12427. *
  12428. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  12429. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  12430. */
  12431. enum qca_wlan_vendor_roam_scan_state {
  12432. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  12433. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  12434. };
  12435. /**
  12436. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  12437. * Bits will be set to 1 if the corresponding event is notified.
  12438. *
  12439. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  12440. * carries the trigger reason. When set, it is expected that the roam event
  12441. * carries the respective reason via the attribute
  12442. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  12443. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  12444. *
  12445. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  12446. * carries the roam fail reason. When set, it is expected that the roam event
  12447. * carries the respective reason via the attribute
  12448. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  12449. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  12450. *
  12451. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  12452. * event carries the roam invoke fail reason. When set, it is expected that
  12453. * the roam event carries the respective reason via the attribute
  12454. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  12455. *
  12456. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  12457. * carries the roam scan state. When set, it is expected that the roam event
  12458. * carries the respective scan state via the attribute
  12459. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  12460. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  12461. */
  12462. enum qca_wlan_vendor_roam_event_type {
  12463. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  12464. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  12465. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  12466. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  12467. };
  12468. /**
  12469. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  12470. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  12471. *
  12472. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  12473. * representing the BSSID of the AP to which the Roam is attempted.
  12474. *
  12475. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  12476. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  12477. * attempted.
  12478. *
  12479. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  12480. * on which the roam is attempted.
  12481. *
  12482. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  12483. * STA mode only. This represents the roam fail reason for the last failed
  12484. * roaming attempt by the firmware for the specific BSSID. Different roam
  12485. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12486. */
  12487. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  12488. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  12489. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  12490. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  12491. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  12492. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  12493. /* keep last */
  12494. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  12495. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  12496. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  12497. };
  12498. /**
  12499. * enum qca_wlan_vendor_attr_roam_events - Used by the
  12500. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  12501. * roam events to the driver or notify these events from the driver.
  12502. *
  12503. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  12504. * driver/firmware to enable/disable the notification of roam events. It's a
  12505. * mandatory attribute and used only in the request from the userspace to the
  12506. * host driver. 1-Enable, 0-Disable.
  12507. * If the roaming is totally offloaded to the firmware, this request when
  12508. * enabled shall mandate the firmware to notify all the relevant roam events
  12509. * represented by the below attributes. If the host is in the suspend mode,
  12510. * the behavior of the firmware to notify these events is guided by
  12511. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  12512. * these events in the suspend state, the firmware is expected to wake up the
  12513. * host before the respective events are notified. Please note that such a
  12514. * request to get the events in the suspend state will have a definite power
  12515. * implication.
  12516. *
  12517. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  12518. * that the roam events need to be notified in the suspend state too. By
  12519. * default, these roam events are notified in the resume state. With this flag,
  12520. * the roam events are notified in both resume and suspend states.
  12521. * This attribute is used in the request from the userspace to the host driver.
  12522. *
  12523. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  12524. * Represents the different roam event types, signified by the enum
  12525. * qca_wlan_vendor_roam_event_type.
  12526. * Each bit of this attribute represents the different roam even types reported
  12527. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12528. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12529. *
  12530. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  12531. * mode only. This represents the roam trigger reason for the last roaming
  12532. * attempted by the firmware. Each bit of this attribute represents the
  12533. * different roam trigger reason code which are defined in enum
  12534. * qca_vendor_roam_triggers.
  12535. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12536. *
  12537. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  12538. * STA mode only. This represents the roam invoke fail reason for the last
  12539. * failed roam invoke. Different roam invoke failure reason codes
  12540. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  12541. *
  12542. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  12543. * for which the roam is attempted. Each entry is a nested attribute defined
  12544. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  12545. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12546. *
  12547. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  12548. * the scan state on which the roam events need to be notified. The values for
  12549. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  12550. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12551. *
  12552. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  12553. * u32 values. List of frequencies in MHz considered for a roam scan.
  12554. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12555. */
  12556. enum qca_wlan_vendor_attr_roam_events {
  12557. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  12558. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  12559. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  12560. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  12561. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  12562. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  12563. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  12564. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  12565. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  12566. /* keep last */
  12567. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  12568. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  12569. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  12570. };
  12571. /*
  12572. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  12573. *
  12574. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  12575. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  12576. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  12577. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  12578. */
  12579. enum qca_wlan_ratemask_params_type {
  12580. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  12581. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  12582. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  12583. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  12584. };
  12585. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  12586. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  12587. * This is used to set the rate mask value to be used in rate selection.
  12588. *
  12589. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  12590. * Array of nested containing attributes
  12591. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  12592. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  12593. *
  12594. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  12595. * the different phy types to which the rate mask config is to be applied.
  12596. * The values for this attribute are referred from enum
  12597. * qca_wlan_vendor_ratemask_params_type.
  12598. *
  12599. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  12600. * A bit value of 1 represents rate is enabled and a value of 0
  12601. * represents rate is disabled.
  12602. * For HE targets, 12 bits correpond to one NSS setting.
  12603. * b0-13 => NSS1, MCS 0-13
  12604. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  12605. * For VHT targets, 10 bits correspond to one NSS setting.
  12606. * b0-9 => NSS1, MCS 0-9
  12607. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  12608. * For HT targets, 8 bits correspond to one NSS setting.
  12609. * b0-7 => NSS1, MCS 0-7
  12610. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  12611. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  12612. */
  12613. enum qca_wlan_vendor_attr_ratemask_params {
  12614. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  12615. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  12616. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  12617. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  12618. /* keep last */
  12619. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  12620. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  12621. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  12622. };
  12623. /**
  12624. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  12625. * the policy to flush pending frames, configured via
  12626. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  12627. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  12628. *
  12629. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  12630. * the flush policy configured before. This command basically disables the
  12631. * flush config set by the user.
  12632. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  12633. * the flush policy to be immediate. All pending packets for the peer/TID are
  12634. * flushed when this command/policy is received.
  12635. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  12636. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  12637. * are flushed when the end of TWT SP is reached.
  12638. */
  12639. enum qca_wlan_vendor_flush_pending_policy {
  12640. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  12641. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  12642. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  12643. };
  12644. /**
  12645. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  12646. * flushing pending traffic in firmware.
  12647. *
  12648. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  12649. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  12650. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  12651. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  12652. * flush packets with access category. This is optional. See below.
  12653. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  12654. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  12655. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  12656. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  12657. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  12658. * it is an error.
  12659. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  12660. * packets corresponding to the peer/TID provided. It is a u32 value,
  12661. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  12662. * value is honored only when TID mask is provided. This is not honored when AC
  12663. * mask is provided.
  12664. */
  12665. enum qca_wlan_vendor_attr_flush_pending {
  12666. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  12667. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  12668. QCA_WLAN_VENDOR_ATTR_AC = 2,
  12669. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  12670. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  12671. /* keep last */
  12672. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  12673. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  12674. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  12675. };
  12676. /**
  12677. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  12678. * for) or drop existing PASN security association for the listed the
  12679. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  12680. * to userspace.
  12681. *
  12682. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  12683. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  12684. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  12685. * the driver to userspace to inform that the existing PASN keys of the
  12686. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  12687. * not valid anymore.
  12688. */
  12689. enum qca_wlan_vendor_pasn_action {
  12690. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  12691. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  12692. };
  12693. /**
  12694. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  12695. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  12696. *
  12697. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  12698. * event from the driver to userspace and represents the local MAC address
  12699. * to be used for PASN handshake. When this attribute is present, userspace
  12700. * shall use the source address specified in this attribute by the driver
  12701. * for PASN handshake with peer device.
  12702. * This attribute is required in a command response from userspace to the
  12703. * driver and represents the MAC address that was used in PASN handshake
  12704. * with the peer device.
  12705. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  12706. * peer device to which PASN handshake is requested in an event from the
  12707. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  12708. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  12709. * Indicates the MAC address of the peer device for which the keys are to
  12710. * be invalidated in an event from the driver to userspace when
  12711. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  12712. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  12713. * Indicates the MAC address of the peer device for which the status is
  12714. * being sent in a status report from userspace to the driver.
  12715. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  12716. * in the event from the driver to userspace. When set, userspace is
  12717. * required to derive LTF key seed from KDK and set it to the driver.
  12718. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  12719. * attribute is used in the command response from userspace to the driver.
  12720. * If present, it indicates the successful PASN handshake with the peer. If
  12721. * this flag is not present, it indicates that the PASN handshake with the
  12722. * peer device failed.
  12723. */
  12724. enum qca_wlan_vendor_attr_pasn_peer {
  12725. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  12726. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  12727. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  12728. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  12729. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  12730. /* keep last */
  12731. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  12732. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  12733. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  12734. };
  12735. /**
  12736. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  12737. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  12738. *
  12739. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  12740. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  12741. * from the driver to userspace.
  12742. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  12743. * details for each peer and used in both an event and a command response.
  12744. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  12745. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  12746. */
  12747. enum qca_wlan_vendor_attr_pasn {
  12748. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  12749. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  12750. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  12751. /* keep last */
  12752. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  12753. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  12754. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  12755. };
  12756. /**
  12757. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  12758. * the ranging security context derived from PASN for each peer. Used in
  12759. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  12760. *
  12761. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  12762. * context for the peer.
  12763. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  12764. * context for the peer.
  12765. */
  12766. enum qca_wlan_vendor_secure_ranging_ctx_action {
  12767. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  12768. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  12769. };
  12770. /**
  12771. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  12772. * used for deriving PASN keys to the driver. Used in
  12773. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  12774. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  12775. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  12776. */
  12777. enum qca_wlan_vendor_sha_type {
  12778. QCA_WLAN_VENDOR_SHA_256,
  12779. QCA_WLAN_VENDOR_SHA_384,
  12780. };
  12781. /**
  12782. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  12783. * to set security context for the PASN peer from userspace to the driver.
  12784. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  12785. *
  12786. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  12787. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  12788. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  12789. * was used during the PASN handshake.
  12790. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  12791. * the peer device for which secure ranging context is being configured.
  12792. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  12793. * hash algorithm to be used, possible values are defined in enum
  12794. * qca_wlan_vendor_sha_type.
  12795. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  12796. * the temporal key generated from the PASN handshake. The length of this
  12797. * attribute is dependent on the value of
  12798. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  12799. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  12800. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  12801. * (e.g., 0x000FAC04).
  12802. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  12803. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  12804. * The length of this attribute is dependent on the value of
  12805. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  12806. *
  12807. */
  12808. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  12809. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  12810. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  12811. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  12812. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  12813. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  12814. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  12815. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  12816. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  12817. /* keep last */
  12818. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  12819. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  12820. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  12821. };
  12822. /**
  12823. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  12824. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  12825. * Service (SCS) rule.
  12826. *
  12827. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  12828. * Represents the unique id of SCS rule to be configured.
  12829. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  12830. * Represents the request type: add, remove, or change.
  12831. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  12832. * Type definitions).
  12833. *
  12834. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  12835. * in case of add/change request type.
  12836. * Represents the output traffic identifier (TID) to be assigned to the flow
  12837. * matching the rule.
  12838. *
  12839. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  12840. * attribute in case of add/change request type.
  12841. * Represents type of classifier parameters present in SCS rule.
  12842. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  12843. * Only classifier types 4 and 10 are supported for SCS.
  12844. *
  12845. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  12846. * in case of add/change request type when classifier type is TCLAS4.
  12847. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  12848. *
  12849. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  12850. * attribute in case of add/change request type when classifier type is TCLAS4
  12851. * and version attribute is IPv4.
  12852. * Represents the source IPv4 address in the rule which is to be compared
  12853. * against the source IP address in the IPv4 header.
  12854. *
  12855. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  12856. * attribute in case of add/change request type when classifier type is TCLAS4
  12857. * and version attribute is IPv4.
  12858. * Represents the destination IPv4 address in the rule which is to be compared
  12859. * against the destination IP address in the IPv4 header.
  12860. *
  12861. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  12862. * attribute in case of add/change request type when classifier type is TCLAS4
  12863. * and version attribute is IPv6.
  12864. * Represents the source IPv6 address in the rule which is to be compared
  12865. * against the source IP address in the IPv6 header.
  12866. *
  12867. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  12868. * attribute in case of add/change request type when classifier type is TCLAS4
  12869. * and version attribute is IPv6.
  12870. * Represents the destination IPv6 address in the rule which is to be compared
  12871. * against the destination IP address in the IPv6 header.
  12872. *
  12873. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  12874. * in case of add/change request type when classifier type is TCLAS4.
  12875. * Represents the source port number in the rule which is to be compared against
  12876. * the source port number in the protocol header.
  12877. *
  12878. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  12879. * in case of add/change request type when classifier type is TCLAS4.
  12880. * Represents the destination port number in the rule which is to be compared
  12881. * against the destination port number in the protocol header.
  12882. *
  12883. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  12884. * in case of add/change request type when classifier type is TCLAS4.
  12885. * Represents the DSCP value in the rule which is to be compared against the
  12886. * DSCP field present in the IP header.
  12887. *
  12888. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  12889. * attribute in case of add/change request type when classifier type is TCLAS4.
  12890. * Represents the protocol/next header in the rule which is to be compared
  12891. * against the protocol/next header field present in the IPv4/IPv6 header.
  12892. *
  12893. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  12894. * attribute of size 3 bytes present in case of add/change request type
  12895. * when classifier type is TCLAS4 and version is IPv6.
  12896. * Represents the flow label value in the rule which is to be compared against
  12897. * the flow label field present in the IPv6 header.
  12898. *
  12899. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  12900. * attribute in case of add/change request type when classifier type is TCLAS10.
  12901. * Represents the protocol instance number in the rule.
  12902. *
  12903. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  12904. * attribute in case of add/change request type when classifier type is TCLAS10.
  12905. * Represents the protocol/next header in the rule which is to be compared
  12906. * against the protocol/next header field present in the IPv4/IPv6 header.
  12907. *
  12908. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  12909. * attribute of variable length present when request type is add/change and
  12910. * classifier type is TCLAS10.
  12911. * Represents the mask to be used for masking the header contents of the header
  12912. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  12913. * attribute.
  12914. *
  12915. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  12916. * attribute of variable length present when request type is add/change and
  12917. * classifier type is TCLAS10.
  12918. * Represents the value to be compared against after masking the header contents
  12919. * of the header specified by the
  12920. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  12921. * filter mask specified by the
  12922. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  12923. */
  12924. enum qca_wlan_vendor_attr_scs_rule_config {
  12925. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  12926. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  12927. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  12928. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  12929. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  12930. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  12931. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  12932. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  12933. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  12934. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  12935. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  12936. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  12937. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  12938. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  12939. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  12940. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  12941. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  12942. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  12943. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  12944. /* Keep last */
  12945. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  12946. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  12947. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  12948. };
  12949. #endif