qca_vendor.h 527 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * DOC: declares vendor commands interfacing with linux kernel
  20. */
  21. #ifndef _WLAN_QCA_VENDOR_H_
  22. #define _WLAN_QCA_VENDOR_H_
  23. /* Vendor id to be used in vendor specific command and events
  24. * to user space.
  25. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  26. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  27. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  28. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  29. */
  30. #define QCA_NL80211_VENDOR_ID 0x001374
  31. #ifndef BIT
  32. #define BIT(x) (1U << (x))
  33. #endif
  34. /**
  35. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  36. *
  37. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  38. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  39. * Sub commands 2 to 8 are not used
  40. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  41. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  42. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  43. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  44. * NAN Request/Response and NAN Indication messages. These messages are
  45. * interpreted between the framework and the firmware component. While
  46. * sending the command from userspace to the driver, payload is not
  47. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  48. * is used when receiving vendor events in userspace from the driver.
  49. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  50. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  54. * results
  55. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  56. * results
  57. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  58. * results
  59. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  62. * channels
  63. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  65. * results
  66. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  67. * available. Used when report_threshold is reached in scan cache.
  68. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  69. * result. Used to report scan results when each probe rsp. is received,
  70. * if report_events enabled in wifi_scan_cmd_params.
  71. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  72. * Indicates progress of scanning state-machine.
  73. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  74. * ap found
  75. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  76. * bssid
  77. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  78. * hotlist bssid
  79. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  80. * change
  81. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  82. * significant change
  83. * ap found
  84. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  85. * significant change
  86. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
  88. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
  89. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
  90. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  91. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  92. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  93. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  94. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  95. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  96. * roaming and auth information.
  97. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  98. *
  99. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  100. * invoke the ACS function in device and pass selected channels to
  101. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  102. *
  103. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  104. * driver.
  105. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  106. * started CAC on DFS channel
  107. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  108. * completed the CAC check on DFS channel
  109. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  110. * check was aborted by the driver
  111. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  112. * driver completed NOP
  113. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  114. * driver detected radar signal on the current operating channel
  115. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  116. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  117. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  118. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  119. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  120. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  121. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  122. * extscan reset ssid hotlist
  123. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  124. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  125. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  126. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  127. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  128. * reset passpoint list
  129. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  130. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  131. * passpoint network found
  132. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  133. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  134. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  135. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  136. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  137. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  138. list
  139. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  140. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  141. * to the host driver. This command sets the band through either
  142. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  143. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  144. * refers enum qca_set_band as unsigned integer values and
  145. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  146. * values. Also, the acceptable values for
  147. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  148. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  149. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  150. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  151. * implementations configure using both the attributes, the configurations
  152. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  153. * precedence.
  154. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  155. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  156. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  157. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  158. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  159. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  160. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  161. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  162. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  163. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  164. * start the P2P Listen Offload function in device and pass the listen
  165. * channel, period, interval, count, number of device types, device
  166. * types and vendor information elements to device driver and firmware.
  167. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  168. * indicate stop request/response of the P2P Listen Offload function in
  169. * device. As an event, it indicates either the feature stopped after it
  170. * was already running or feature has actually failed to start.
  171. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  172. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  173. * beaconing, this sub command provides the driver, the frequencies on the
  174. * 5 GHz to check for any radar activity. Driver selects one channel from
  175. * this priority list provided through
  176. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  177. * to check for radar activity on it. If no radar activity is detected
  178. * during the channel availability check period, driver internally switches
  179. * to the selected frequency of operation. If the frequency is zero, driver
  180. * internally selects a channel. The status of this conditional switch is
  181. * indicated through an event using the same sub command through
  182. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  183. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  184. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  185. * indication period and threshold for MAC layer counters.
  186. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  187. * in the host driver. The different TDLS configurations are defined
  188. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  189. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  190. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  191. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  192. * require methods to set SAR limits on TX power of WLAN/WWAN.
  193. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  194. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  195. * configuration of vendor ACS.
  196. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  197. * requisite information leading to a power save failure. The information
  198. * carried as part of this event is represented by the
  199. * enum qca_attr_chip_power_save_failure attributes.
  200. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  201. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  202. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  203. * statistics are represented by the enum qca_attr_nud_stats_get
  204. * attributes.
  205. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  206. * the BSS transition status, whether accept or reject, for a list of
  207. * candidate BSSIDs provided by the userspace. This uses the vendor
  208. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  209. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  210. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  211. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  212. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  213. * the driver shall specify array of
  214. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  215. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  216. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  217. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  218. * specific QCA module. The trace levels are represented by
  219. * enum qca_attr_trace_level attributes.
  220. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  221. * Protocol antenna limit in different modes. See enum
  222. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  223. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  224. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  225. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  226. * identifying the operation in success case. In failure cases an
  227. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  228. * describing the reason for the failure is returned.
  229. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  230. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  231. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  232. * be stopped.
  233. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  234. * specific interface. This can be used to modify some of the low level
  235. * scan parameters (off channel dwell time, home channel time) in the
  236. * driver/firmware. These parameters are maintained within the host
  237. * driver.
  238. * This command is valid only when the interface is in the connected
  239. * state.
  240. * These scan parameters shall be reset by the driver/firmware once
  241. * disconnected. The attributes used with this command are defined in
  242. * enum qca_wlan_vendor_attr_active_tos.
  243. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  244. * driver has detected an internal failure. This event carries the
  245. * information indicating the reason that triggered this detection. The
  246. * attributes for this command are defined in
  247. * enum qca_wlan_vendor_attr_hang.
  248. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  249. * of spectral parameters used. The spectral scan parameters are specified
  250. * by enum qca_wlan_vendor_attr_spectral_scan.
  251. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  252. * for spectral scan functionality. The debug stats are specified by
  253. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  254. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  255. * scan system capabilities. The capabilities are specified
  256. * by enum qca_wlan_vendor_attr_spectral_cap.
  257. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  258. * status of spectral scan. The status values are specified
  259. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  260. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  261. * peer pending packets. Specify the peer MAC address in
  262. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  263. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  264. * in enum qca_wlan_vendor_attr_flush_pending.
  265. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  266. * RF Operating Parameter (RROP) information. The attributes for this
  267. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  268. * intended for use by external Auto Channel Selection applications.
  269. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  270. * (SAR) power limits. This is a companion to the command
  271. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  272. * settings currently in use. The attributes returned by this command are
  273. * defined by enum qca_vendor_attr_sar_limits.
  274. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  275. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  276. * This works both as a query (user space asks the current mode) or event
  277. * interface (driver advertizing the current mode to the user space).
  278. * Driver does not trigger this event for temporary hardware mode changes.
  279. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  280. * channel change etc ) are updated with this event. Attributes for this
  281. * interface are defined in enum qca_wlan_vendor_attr_mac.
  282. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  283. * per peer per TID. Attributes for this command are define in
  284. * enum qca_wlan_set_qdepth_thresh_attr
  285. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  286. * guide for WLAN driver. Request to suspend of driver and FW if the
  287. * temperature is higher than the suspend threshold; resume action is
  288. * requested to driver if the temperature is lower than the resume
  289. * threshold. In user poll mode, request temperature data by user. For test
  290. * purpose, getting thermal shutdown configuration parameters is needed.
  291. * Attributes for this interface are defined in
  292. * enum qca_wlan_vendor_attr_thermal_cmd.
  293. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  294. * driver. Thermal temperature and indication of resume completion are
  295. * reported as thermal events. The attributes for this command are defined
  296. * in enum qca_wlan_vendor_attr_thermal_event.
  297. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  298. * test configuration. Attributes for this command are defined in
  299. * enum qca_wlan_vendor_attr_wifi_test_config.
  300. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  301. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  302. * carried a payload which was a binary blob of data. The command was not
  303. * extendable to send more information. The newer version carries the
  304. * legacy blob encapsulated within an attribute and can be extended with
  305. * additional vendor attributes that can enhance the NAN command
  306. * interface.
  307. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  308. * configure parameters per peer to capture Channel Frequency Response
  309. * (CFR) and enable Periodic CFR capture. The attributes for this command
  310. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  311. * can also be used to send CFR data from the driver to userspace when
  312. * netlink events are used to send CFR data.
  313. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  314. * The returned firmware state is specified in the attribute
  315. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  316. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  317. * is used by host driver to flush per-peer cached statistics to user space
  318. * application. This interface is used as an event from host driver to
  319. * user space application. Attributes for this event are specified in
  320. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  321. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  322. * sent as event from host driver.
  323. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  324. * improve the success rate of Zigbee joining network.
  325. * Due to PTA master limitation, zigbee joining network success rate is
  326. * low while wlan is working. Wlan host driver need to configure some
  327. * parameters including Zigbee state and specific WLAN periods to enhance
  328. * PTA master. All this parameters are delivered by the NetLink attributes
  329. * defined in "enum qca_mpta_helper_vendor_attr".
  330. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  331. * implement Beacon frame reporting feature.
  332. *
  333. * Userspace can request the driver/firmware to periodically report
  334. * received Beacon frames whose BSSID is same as the current connected
  335. * BSS's MAC address.
  336. *
  337. * In case the STA seamlessly (without sending disconnect indication to
  338. * userspace) roams to a different BSS, Beacon frame reporting will be
  339. * automatically enabled for the Beacon frames whose BSSID is same as the
  340. * MAC address of the new BSS. Beacon reporting will be stopped when the
  341. * STA is disconnected (when the disconnect indication is sent to
  342. * userspace) and need to be explicitly enabled by userspace for next
  343. * connection.
  344. *
  345. * When a Beacon frame matching configured conditions is received, and if
  346. * userspace has requested to send asynchronous beacon reports, the
  347. * driver/firmware will encapsulate the details of the Beacon frame in an
  348. * event and send it to userspace along with updating the BSS information
  349. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  350. * scan cache with the information from the received Beacon frame but
  351. * will not send any active report to userspace.
  352. *
  353. * The userspace can request the driver/firmware to stop reporting Beacon
  354. * frames. If the driver/firmware is not able to receive Beacon frames
  355. * due to other Wi-Fi operations such as off-channel activities, etc.,
  356. * the driver/firmware will send a pause event to userspace and stop
  357. * reporting Beacon frames. Whether the beacon reporting will be
  358. * automatically resumed or not by the driver/firmware later will be
  359. * reported to userspace using the
  360. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  361. * reporting shall be resumed for all the cases except either when
  362. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  363. * in the command which triggered the current beacon reporting or during
  364. * any disconnection case as indicated by setting
  365. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  366. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  367. * driver.
  368. *
  369. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  370. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  371. * flag not set, the next first
  372. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  373. * shall be considered as un-pause event.
  374. *
  375. * All the attributes used with this command are defined in
  376. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  377. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  378. * interop issues with the DUT. This sub command is used to transfer the
  379. * ap info between driver and user space. This works both as a command
  380. * or event. As a command, it configs the stored list of aps from user
  381. * space to firmware; as an event, it indicates the ap info detected by
  382. * firmware to user space for persistent storage. The attributes defined
  383. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  384. * parameters.
  385. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  386. * binary blobs from application/service to firmware. The attributes
  387. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  388. * deliver the parameters.
  389. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  390. * to send/receive avoid frequency data using
  391. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  392. * This new command is alternative to existing command
  393. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  394. * is using stream of bytes instead of structured data using vendor
  395. * attributes.
  396. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  397. * add the STA node details in driver/firmware. Attributes for this event
  398. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  399. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  400. * coex chain mode from application/service.
  401. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  402. * to deliver the parameters.
  403. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  404. * get information of a station from driver to userspace. This command can
  405. * be used in both STA and AP modes. For STA mode, it provides information
  406. * of the current association when in connected state or the last
  407. * association when in disconnected state. For AP mode, only information
  408. * of the currently connected stations is available. This command uses
  409. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  410. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  411. * Host drivers can request the user space entity to set the SAR power
  412. * limits with this event. Accordingly, the user space entity is expected
  413. * to set the SAR power limits. Host drivers can retry this event to the
  414. * user space for the SAR power limits configuration from user space. If
  415. * the driver does not get the SAR power limits from user space for all
  416. * the retried attempts, it can configure a default SAR power limit.
  417. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  418. * is used to update the information about the station from the driver to
  419. * userspace. Uses attributes from enum
  420. * qca_wlan_vendor_attr_update_sta_info.
  421. *
  422. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  423. * The host driver initiates the disconnection for scenarios such as beacon
  424. * miss, NUD failure, peer kick out, etc. The disconnection indication
  425. * through cfg80211_disconnected() expects the reason codes from enum
  426. * ieee80211_reasoncode which does not signify these various reasons why
  427. * the driver has triggered the disconnection. This event will be used to
  428. * send the driver specific reason codes by the host driver to userspace.
  429. * Host drivers should trigger this event and pass the respective reason
  430. * code immediately prior to triggering cfg80211_disconnected(). The
  431. * attributes used with this event are defined in enum
  432. * qca_wlan_vendor_attr_driver_disconnect_reason.
  433. *
  434. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  435. * add/delete TSPEC for each AC. One command is for one specific AC only.
  436. * This command can only be used in STA mode and the STA must be
  437. * associated with an AP when the command is issued. Uses attributes
  438. * defined in enum qca_wlan_vendor_attr_config_tspec.
  439. *
  440. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  441. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  442. *
  443. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  444. * the host driver. The band configurations obtained are referred through
  445. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  446. *
  447. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  448. * assessment.
  449. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  450. *
  451. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  452. * used to update SSID information in hostapd when it is updated in the
  453. * driver. Uses the attribute NL80211_ATTR_SSID.
  454. *
  455. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  456. * the driver to send opaque data from the firmware to userspace. The
  457. * driver sends an event to userspace whenever such data is received from
  458. * the firmware.
  459. *
  460. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  461. * send this opaque data for this event.
  462. *
  463. * The format of the opaque data is specific to the particular firmware
  464. * version and there is no guarantee of the format remaining same.
  465. *
  466. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  467. * The host driver selects Tx VDEV, and notifies user. The attributes
  468. * used with this event are defined in enum
  469. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  470. *
  471. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY: Vendor command to
  472. * configure the concurrent session policies when multiple STA interfaces
  473. * are (getting) active. The attributes used by this command are defined
  474. * in enum qca_wlan_vendor_attr_concurrent_sta_policy.
  475. *
  476. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  477. * to query usable channels for different interface types such as STA,
  478. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  479. * channels in the response based on country code, different static
  480. * configurations, concurrency combinations, etc. The attributes used
  481. * with this command are defined in
  482. * enum qca_wlan_vendor_attr_usable_channels.
  483. *
  484. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  485. * to get DFS radar history from the driver to userspace. The driver
  486. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  487. * array of nested entries.
  488. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  489. * enable/disable mDNS offload to the firmware. The attributes used with
  490. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  491. *
  492. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  493. * important debug events that are required for various issues. The
  494. * attributes used with this command are defined in
  495. * enum qca_wlan_vendor_attr_diag.
  496. */
  497. enum qca_nl80211_vendor_subcmds {
  498. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  499. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  500. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  501. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  502. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  503. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  504. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  505. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  506. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  507. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  508. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  509. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  510. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  511. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  512. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  513. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  514. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  515. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  516. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  517. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  518. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  519. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  520. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  521. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  522. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  523. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  524. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  525. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  526. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  527. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  528. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  529. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  530. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  531. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  532. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  533. /* Get Concurrency Matrix */
  534. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  535. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  536. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  537. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  538. /* Deprecated */
  539. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  540. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  541. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  542. /* Off loaded DFS events */
  543. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  544. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  545. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  546. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  547. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  548. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  549. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  550. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  551. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  552. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  553. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  554. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  555. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  556. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  557. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  558. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  559. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  560. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  561. /* Wi-Fi Configuration subcommands */
  562. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  563. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  564. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  565. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  566. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  567. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  568. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  569. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  570. /* NS Offload enable/disable cmd */
  571. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  572. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  573. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  574. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  575. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  576. /* OCB commands */
  577. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  578. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  579. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  580. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  581. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  582. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  583. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  584. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  585. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  586. /* subcommand to get link properties */
  587. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  588. /* LFR Subnet Detection */
  589. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  590. /* DBS subcommands */
  591. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  592. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  593. /* Vendor setband command */
  594. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  595. /* Vendor scan commands */
  596. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  597. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  598. /* OTA test subcommand */
  599. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  600. /* Tx power scaling subcommands */
  601. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  602. /* Tx power scaling in db subcommands */
  603. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  604. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  605. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  606. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  607. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  608. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  609. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  610. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  611. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  612. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  613. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  614. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  615. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  616. /* FTM/indoor location subcommands */
  617. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  618. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  619. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  620. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  621. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  622. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  623. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  624. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  625. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  626. /* Encrypt/Decrypt command */
  627. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  628. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  629. /* DMG low level RF sector operations */
  630. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  631. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  632. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  633. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  634. /* Configure the TDLS mode from user space */
  635. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  636. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  637. /* Vendor abort scan command */
  638. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  639. /* Set Specific Absorption Rate(SAR) Power Limits */
  640. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  641. /* External Auto channel configuration setting */
  642. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  643. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  644. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  645. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  646. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  647. /* Set the trace level for QDF */
  648. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  649. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  650. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  651. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  652. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  653. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  654. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  655. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  656. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  657. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  658. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  659. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  660. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  661. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  662. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  663. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  664. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  665. /* Wi-Fi test configuration subcommand */
  666. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  667. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  668. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  669. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  670. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  671. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  672. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  673. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  674. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  675. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  676. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  677. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  678. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  679. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  680. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  681. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  682. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  683. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  684. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  685. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  686. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  687. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  688. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  689. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  690. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  691. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197,
  692. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  693. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  694. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  695. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  696. };
  697. enum qca_wlan_vendor_tos {
  698. QCA_WLAN_VENDOR_TOS_BK = 0,
  699. QCA_WLAN_VENDOR_TOS_BE = 1,
  700. QCA_WLAN_VENDOR_TOS_VI = 2,
  701. QCA_WLAN_VENDOR_TOS_VO = 3,
  702. };
  703. /**
  704. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  705. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  706. */
  707. enum qca_wlan_vendor_attr_active_tos {
  708. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  709. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  710. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  711. /* Flag attribute representing the start (attribute included) or stop
  712. * (attribute not included) of the respective TOS.
  713. */
  714. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  715. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  716. };
  717. enum qca_wlan_vendor_hang_reason {
  718. /* Unspecified reason */
  719. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  720. /* No Map for the MAC entry for the received frame */
  721. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  722. /* peer deletion timeout happened */
  723. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  724. /* peer unmap timeout */
  725. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  726. /* Scan request timed out */
  727. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  728. /* Consecutive Scan attempt failures */
  729. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  730. /* Unable to get the message buffer */
  731. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  732. /* Current command processing is timedout */
  733. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  734. /* Timeout for an ACK from FW for suspend request */
  735. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  736. /* Timeout for an ACK from FW for resume request */
  737. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  738. /* Transmission timeout for consecutive data frames */
  739. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  740. /* Timeout for the TX completion status of data frame */
  741. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  742. /* DXE failure for tx/Rx, DXE resource unavailability */
  743. QCA_WLAN_HANG_DXE_FAILURE = 12,
  744. /* WMI pending commands exceed the maximum count */
  745. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  746. /* Timeout for peer STA connection accept command's response from the
  747. * FW in AP mode. This command is triggered when a STA (peer) connects
  748. * to AP (DUT).
  749. */
  750. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  751. /* Timeout for the AP connection accept command's response from the FW
  752. * in STA mode. This command is triggered when the STA (DUT) connects
  753. * to an AP (peer).
  754. */
  755. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  756. /* Timeout waiting for the response to the MAC HW mode change command
  757. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  758. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  759. * Channel Concurrency) mode.
  760. */
  761. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  762. /* Timeout waiting for the response from FW to configure the MAC HW's
  763. * mode. This operation is to configure the single/two MACs in either
  764. * SCC/MCC/DBS mode.
  765. */
  766. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  767. /* Timeout waiting for response of VDEV start command from the FW */
  768. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  769. /* Timeout waiting for response of VDEV restart command from the FW */
  770. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  771. /* Timeout waiting for response of VDEV stop command from the FW */
  772. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  773. /* Timeout waiting for response of VDEV delete command from the FW */
  774. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  775. /* Timeout waiting for response of peer all delete request command to
  776. * the FW on a specific VDEV.
  777. */
  778. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  779. /* WMI sequence mismatch between WMI command and Tx completion */
  780. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  781. /* Write to Device HAL register failed */
  782. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  783. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  784. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  785. /* Bus failure */
  786. QCA_WLAN_HANG_BUS_FAILURE = 26,
  787. /* tasklet/credit latency found */
  788. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  789. };
  790. /**
  791. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  792. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  793. */
  794. enum qca_wlan_vendor_attr_hang {
  795. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  796. /*
  797. * Reason for the Hang - Represented by enum
  798. * qca_wlan_vendor_hang_reason.
  799. */
  800. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  801. /* The binary blob data associated with the hang reason specified by
  802. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  803. * contain the required dump to analyze the reason for the hang.
  804. * NLA_BINARY attribute, the max size is 1024 bytes.
  805. */
  806. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  807. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  808. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  809. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  810. };
  811. /**
  812. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  813. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  814. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  815. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  816. level needs to be updated.
  817. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  818. * to be set.
  819. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  820. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  821. */
  822. enum qca_vendor_attr_set_trace_level {
  823. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  824. /*
  825. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  826. * attributes.
  827. */
  828. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  829. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  830. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  831. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  832. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  833. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  834. };
  835. /**
  836. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  837. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  838. * station information. The information obtained through these
  839. * commands signify the current info in connected state and
  840. * latest cached information during the connected state , if queried
  841. * when in disconnected state.
  842. *
  843. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  844. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  845. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  846. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  847. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  848. */
  849. enum qca_wlan_vendor_attr_get_station {
  850. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  851. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  852. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  853. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  854. /* keep last */
  855. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  856. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  857. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  858. };
  859. /**
  860. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  861. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  862. *
  863. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  864. * Used in STA mode. This attribute represents the list of channel center
  865. * frequencies in MHz (u32) the station has learnt during the last connection
  866. * or roaming attempt. This information shall not signify the channels for
  867. * an explicit scan request from the user space. Host drivers can update this
  868. * information to the user space in both connected and disconnected state.
  869. * In the disconnected state this information shall signify the channels
  870. * scanned in the last connection/roam attempt that lead to the disconnection.
  871. */
  872. enum qca_wlan_vendor_attr_update_sta_info {
  873. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  874. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  875. /* keep last */
  876. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  877. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  878. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  879. };
  880. /**
  881. * enum qca_wlan_802_11_mode - dot11 mode
  882. * @QCA_WLAN_802_11_MODE_11B: mode B
  883. * @QCA_WLAN_802_11_MODE_11G: mode G
  884. * @QCA_WLAN_802_11_MODE_11N: mode N
  885. * @QCA_WLAN_802_11_MODE_11A: mode A
  886. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  887. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  888. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  889. */
  890. enum qca_wlan_802_11_mode {
  891. QCA_WLAN_802_11_MODE_11B,
  892. QCA_WLAN_802_11_MODE_11G,
  893. QCA_WLAN_802_11_MODE_11N,
  894. QCA_WLAN_802_11_MODE_11A,
  895. QCA_WLAN_802_11_MODE_11AC,
  896. QCA_WLAN_802_11_MODE_11AX,
  897. QCA_WLAN_802_11_MODE_INVALID,
  898. };
  899. /**
  900. * enum qca_wlan_auth_type - Authentication key management type
  901. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  902. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  903. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  904. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  905. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  906. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  907. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  908. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  909. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  910. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  911. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  912. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  913. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  914. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  915. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  916. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  917. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  918. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  919. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  920. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  921. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  922. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  923. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  924. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  925. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  926. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  927. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  928. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  929. */
  930. enum qca_wlan_auth_type {
  931. QCA_WLAN_AUTH_TYPE_INVALID,
  932. QCA_WLAN_AUTH_TYPE_OPEN,
  933. QCA_WLAN_AUTH_TYPE_SHARED,
  934. QCA_WLAN_AUTH_TYPE_WPA,
  935. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  936. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  937. QCA_WLAN_AUTH_TYPE_RSN,
  938. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  939. QCA_WLAN_AUTH_TYPE_FT,
  940. QCA_WLAN_AUTH_TYPE_FT_PSK,
  941. QCA_WLAN_AUTH_TYPE_SHA256,
  942. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  943. QCA_WLAN_AUTH_TYPE_WAI,
  944. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  945. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  946. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  947. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  948. QCA_WLAN_AUTH_TYPE_FT_SAE,
  949. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  950. QCA_WLAN_AUTH_TYPE_SAE,
  951. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  952. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  953. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  954. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  955. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  956. QCA_WLAN_AUTH_TYPE_OWE,
  957. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  958. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  959. };
  960. /**
  961. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  962. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  963. *
  964. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  965. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  966. * Get the standard NL attributes Nested with this attribute.
  967. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  968. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  969. * NL80211_ATTR_STA_INFO
  970. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  971. * Get the standard NL attributes Nested with this attribute.
  972. * Ex : Query HT/VHT Capability advertized by the AP.
  973. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  974. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  975. * Number of successful Roam attempts before a
  976. * disconnect, Unsigned 32 bit value
  977. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  978. * Authentication Key Management Type used for the connected session.
  979. * Signified by enum qca_wlan_auth_type
  980. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  981. * connected Session, signified by enum qca_wlan_802_11_mode
  982. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  983. * HS20 Indication Element
  984. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  985. * Status Code Corresponding to the Association Failure.
  986. * Unsigned 32 bit value.
  987. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  988. * Max phy rate of remote station
  989. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  990. * TX packets to remote station
  991. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  992. * TX bytes to remote station
  993. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  994. * RX packets from remote station
  995. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  996. * RX bytes from remote station
  997. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  998. * Last TX rate with remote station
  999. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1000. * Last RX rate with remote station
  1001. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1002. * Remote station enable/disable WMM
  1003. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1004. * Remote station connection mode
  1005. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1006. * Remote station AMPDU enable/disable
  1007. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1008. * Remote station TX Space-time block coding enable/disable
  1009. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1010. * Remote station RX Space-time block coding enable/disable
  1011. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1012. * Remote station channel width
  1013. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1014. * Remote station short GI enable/disable
  1015. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1016. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1017. * containing the raw information elements from Beacon frames. Represents
  1018. * the Beacon frames of the current BSS in the connected state. When queried
  1019. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1020. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1021. * disconnect reason for the last disconnection if the disconnection is
  1022. * triggered from the host driver. The values are referred from
  1023. * enum qca_disconnect_reason_codes. If the disconnect is from
  1024. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1025. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1026. * Applicable in AP mode only. It contains the raw information elements
  1027. * from assoc request frame of the given peer station. User queries with the
  1028. * mac address of peer station when it disconnects. Host driver sends
  1029. * assoc request frame of the given station. Host driver doesn't provide
  1030. * the IEs when the peer station is still in connected state.
  1031. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1032. * sending HE operation info.
  1033. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1034. *
  1035. */
  1036. enum qca_wlan_vendor_attr_get_station_info {
  1037. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1038. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1039. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1040. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1041. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1042. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1043. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1044. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1045. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1046. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1047. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1048. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1049. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1050. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1051. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1052. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1053. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1054. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1055. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1056. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1057. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1058. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1059. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1060. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1061. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1062. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1063. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1064. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1065. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1066. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1067. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1068. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1069. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1070. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1071. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1072. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1073. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1074. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1075. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1076. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1077. /* keep last */
  1078. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1079. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1080. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1081. };
  1082. /**
  1083. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  1084. *
  1085. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  1086. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  1087. * value
  1088. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  1089. * keep as unsigned for now
  1090. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  1091. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  1092. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  1093. * in KBPS
  1094. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  1095. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  1096. */
  1097. enum qca_wlan_vendor_attr_tdls_enable {
  1098. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  1099. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  1100. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  1101. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  1102. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  1103. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  1104. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  1105. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  1106. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  1107. };
  1108. /**
  1109. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  1110. *
  1111. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  1112. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  1113. * 8-bit value
  1114. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  1115. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  1116. */
  1117. enum qca_wlan_vendor_attr_tdls_disable {
  1118. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  1119. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  1120. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  1121. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  1122. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  1123. };
  1124. /**
  1125. * qca_chip_power_save_failure_reason: Power save failure reason
  1126. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1127. * due to protocol/module.
  1128. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1129. * due to hardware
  1130. */
  1131. enum qca_chip_power_save_failure_reason {
  1132. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1133. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1134. };
  1135. /**
  1136. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1137. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1138. * information leading to the power save failure.
  1139. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1140. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1141. * represented by enum qca_chip_power_save_failure_reason
  1142. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1143. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1144. */
  1145. enum qca_attr_chip_power_save_failure {
  1146. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1147. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1148. /* keep last */
  1149. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1150. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1151. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1152. };
  1153. /**
  1154. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1155. *
  1156. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1157. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1158. * 8-bit value
  1159. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1160. * unsigned 32-bit value
  1161. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1162. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1163. * unsigned 32-bit value
  1164. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1165. * class, unsigned 32-bit value
  1166. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1167. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1168. */
  1169. enum qca_wlan_vendor_attr_tdls_get_status {
  1170. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1171. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1172. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1173. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1174. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1175. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1176. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1177. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1178. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1179. };
  1180. /**
  1181. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1182. *
  1183. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1184. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1185. * 8-bit value
  1186. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1187. * unsigned 32-bit value
  1188. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1189. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1190. * unsigned 32-bit value
  1191. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1192. * operating class, unsigned 32-bit value
  1193. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1194. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1195. */
  1196. enum qca_wlan_vendor_attr_tdls_state {
  1197. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1198. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1199. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1200. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1201. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1202. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1203. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1204. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1205. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  1206. };
  1207. /* enum's to provide TDLS capabilities */
  1208. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1209. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1210. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1211. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1212. /* keep last */
  1213. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1214. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1215. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1216. };
  1217. enum qca_wlan_vendor_attr {
  1218. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1219. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1220. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1221. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1222. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1223. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1224. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1225. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1226. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1227. /*
  1228. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1229. * by enum qca_roaming_policy.
  1230. */
  1231. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1232. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1233. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1234. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1235. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1236. /*
  1237. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1238. * Unsigned 32-bit value.
  1239. */
  1240. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1241. /* Unsigned 32-bit value */
  1242. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1243. /* Unsigned 32-bit value */
  1244. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1245. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1246. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1247. * is deprecated. Recommendation is to use
  1248. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1249. * using both the attributes, the ones configured through
  1250. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1251. */
  1252. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1253. /* Dummy (NOP) attribute for 64 bit padding */
  1254. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1255. /*
  1256. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1257. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1258. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1259. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1260. */
  1261. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1262. /*
  1263. * Indoor location capabilities, returned by
  1264. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1265. * see enum qca_wlan_vendor_attr_loc_capa.
  1266. */
  1267. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1268. /*
  1269. * Array of nested attributes containing information about each peer
  1270. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1271. * for supported attributes for each peer.
  1272. */
  1273. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1274. /*
  1275. * Array of nested attributes containing measurement results for
  1276. * one or more peers, reported by the
  1277. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1278. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1279. * attributes.
  1280. */
  1281. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1282. /* Flag attribute for enabling or disabling responder functionality. */
  1283. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1284. /*
  1285. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1286. * command to specify the LCI report that will be sent by
  1287. * the responder during a measurement exchange. The format is
  1288. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1289. */
  1290. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1291. /*
  1292. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1293. * command to specify the location civic report that will
  1294. * be sent by the responder during a measurement exchange.
  1295. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1296. */
  1297. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1298. /*
  1299. * Session/measurement completion status code,
  1300. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1301. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1302. * see enum qca_vendor_attr_loc_session_status.
  1303. */
  1304. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1305. /*
  1306. * Initial dialog token used by responder (0 if not specified),
  1307. * unsigned 8 bit value.
  1308. */
  1309. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1310. /*
  1311. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1312. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1313. * AOA measurements are needed as part of an FTM session.
  1314. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1315. * enum qca_wlan_vendor_attr_aoa_type.
  1316. */
  1317. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1318. /*
  1319. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1320. * by indoor location measurements. Refers to the antenna
  1321. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1322. */
  1323. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1324. /*
  1325. * AOA measurement data. Its contents depends on the AOA measurement
  1326. * type and antenna array mask:
  1327. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1328. * phase of the strongest CIR path for each antenna in the measured
  1329. * array(s).
  1330. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1331. * values, phase and amplitude of the strongest CIR path for each
  1332. * antenna in the measured array(s).
  1333. */
  1334. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1335. /*
  1336. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1337. * to specify the chain number (unsigned 32 bit value) to inquire
  1338. * the corresponding antenna RSSI value */
  1339. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1340. /*
  1341. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1342. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1343. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1344. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1345. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1346. /*
  1347. * TSF timer value, unsigned 64 bit value.
  1348. * May be returned by various commands.
  1349. */
  1350. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1351. /*
  1352. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1353. * 0..127 for sector indices or 65535 as special value used to
  1354. * unlock sector selection in
  1355. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1356. */
  1357. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1358. /*
  1359. * DMG RF sector type, unsigned 8 bit value. One of the values
  1360. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1361. */
  1362. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1363. /*
  1364. * Bitmask of DMG RF modules for which information is requested. Each
  1365. * bit corresponds to an RF module with the same index as the bit
  1366. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1367. * all DMG chips currently have up to 8 RF modules.
  1368. */
  1369. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1370. /*
  1371. * Array of nested attributes where each entry is DMG RF sector
  1372. * configuration for a single RF module.
  1373. * Attributes for each entry are taken from enum
  1374. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1375. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1376. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1377. */
  1378. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1379. /*
  1380. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1381. * to report frame aggregation statistics to userspace.
  1382. */
  1383. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1384. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1385. /*
  1386. * Unsigned 8-bit value representing MBO transition reason code as
  1387. * provided by the AP used by subcommand
  1388. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1389. * specified by the userspace in the request to the driver.
  1390. */
  1391. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1392. /*
  1393. * Array of nested attributes, BSSID and status code, used by subcommand
  1394. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1395. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1396. * The userspace space specifies the list/array of candidate BSSIDs in
  1397. * the order of preference in the request. The driver specifies the
  1398. * status code, for each BSSID in the list, in the response. The
  1399. * acceptable candidates are listed in the order preferred by the
  1400. * driver.
  1401. */
  1402. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1403. /*
  1404. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1405. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1406. */
  1407. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1408. /*
  1409. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1410. * to define the number of antennas to use for BRP.
  1411. * different purpose in each ANT_LIMIT_MODE:
  1412. * DISABLE - ignored
  1413. * EFFECTIVE - upper limit to number of antennas to be used
  1414. * FORCE - exact number of antennas to be used
  1415. * unsigned 8 bit value
  1416. */
  1417. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1418. /*
  1419. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1420. * to report the corresponding antenna index to the chain RSSI value
  1421. */
  1422. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1423. /*
  1424. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1425. * to report the specific antenna EVM value (unsigned 32 bit value).
  1426. * With a determinate group of antennas, the driver specifies the
  1427. * EVM value for each antenna ID, and application extract them
  1428. * in user space.
  1429. */
  1430. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1431. /*
  1432. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1433. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1434. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1435. */
  1436. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1437. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1438. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1439. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1440. * This attribute shall consider the bitmask combinations to define
  1441. * the respective Band combinations and always takes precedence over
  1442. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1443. */
  1444. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1445. /* keep last */
  1446. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1447. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1448. };
  1449. enum qca_wlan_vendor_attr_extscan_config_params {
  1450. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1451. /* Unsigned 32-bit value */
  1452. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1453. /*
  1454. * Attributes for data used by
  1455. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1456. */
  1457. /* Unsigned 32-bit value */
  1458. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1459. = 2,
  1460. /* Unsigned 32-bit value */
  1461. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1462. = 3,
  1463. /*
  1464. * Attributes for input params used by
  1465. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1466. */
  1467. /* Unsigned 32-bit value; channel frequency */
  1468. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1469. /* Unsigned 32-bit value; dwell time in ms. */
  1470. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1471. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1472. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1473. /* Unsigned 8-bit value; channel class */
  1474. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1475. /* Unsigned 8-bit value; bucket index, 0 based */
  1476. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1477. /* Unsigned 8-bit value; band. */
  1478. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1479. /* Unsigned 32-bit value; desired period, in ms. */
  1480. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1481. /* Unsigned 8-bit value; report events semantics. */
  1482. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1483. /*
  1484. * Unsigned 32-bit value. Followed by a nested array of
  1485. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1486. */
  1487. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1488. /*
  1489. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1490. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1491. */
  1492. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1493. /* Unsigned 32-bit value; base timer period in ms. */
  1494. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1495. /*
  1496. * Unsigned 32-bit value; number of APs to store in each scan in the
  1497. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1498. */
  1499. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1500. /*
  1501. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1502. * up AP.
  1503. */
  1504. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1505. = 16,
  1506. /*
  1507. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1508. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1509. * of the array is determined by NUM_BUCKETS.
  1510. */
  1511. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1512. /*
  1513. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1514. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1515. */
  1516. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1517. /* Unsigned 8-bit value */
  1518. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1519. = 19,
  1520. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1521. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1522. = 20,
  1523. /* An array of 6 x unsigned 8-bit value */
  1524. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1525. /* Signed 32-bit value */
  1526. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1527. /* Signed 32-bit value */
  1528. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1529. /* Unsigned 32-bit value */
  1530. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1531. /*
  1532. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1533. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1534. * array is determined by NUM_AP.
  1535. */
  1536. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1537. /*
  1538. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1539. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1540. */
  1541. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1542. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1543. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1544. = 27,
  1545. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1546. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1547. = 28,
  1548. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1549. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1550. /*
  1551. * Unsigned 32-bit value; number of APs. Followed by an array of
  1552. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1553. */
  1554. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1555. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1556. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1557. = 31,
  1558. /*
  1559. * Unsigned 32-bit value. If max_period is non zero or different than
  1560. * period, then this bucket is an exponential backoff bucket.
  1561. */
  1562. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1563. /* Unsigned 32-bit value. */
  1564. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1565. /*
  1566. * Unsigned 32-bit value. For exponential back off bucket, number of
  1567. * scans to perform for a given period.
  1568. */
  1569. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1570. /*
  1571. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1572. * many scans.
  1573. */
  1574. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1575. = 35,
  1576. /*
  1577. * Attributes for data used by
  1578. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1579. */
  1580. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1581. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1582. = 36,
  1583. /*
  1584. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1585. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1586. * size of the array is determined by NUM_SSID.
  1587. */
  1588. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1589. /*
  1590. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1591. * attributes.
  1592. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1593. */
  1594. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1595. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1596. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1597. /* Unsigned 8-bit value */
  1598. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1599. /* Signed 32-bit value */
  1600. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1601. /* Signed 32-bit value */
  1602. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1603. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1604. */
  1605. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1606. /* keep last */
  1607. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1608. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1609. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1610. };
  1611. enum qca_wlan_vendor_attr_extscan_results {
  1612. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1613. /*
  1614. * Unsigned 32-bit value; must match the request Id supplied by
  1615. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1616. */
  1617. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1618. /*
  1619. * Unsigned 32-bit value; used to indicate the status response from
  1620. * firmware/driver for the vendor sub-command.
  1621. */
  1622. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1623. /*
  1624. * EXTSCAN Valid Channels attributes */
  1625. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1626. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1627. /*
  1628. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1629. * representing channel numbers.
  1630. */
  1631. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1632. /* EXTSCAN Capabilities attributes */
  1633. /* Unsigned 32-bit value */
  1634. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1635. /* Unsigned 32-bit value */
  1636. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1637. /* Unsigned 32-bit value */
  1638. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1639. = 7,
  1640. /* Unsigned 32-bit value */
  1641. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1642. = 8,
  1643. /* Signed 32-bit value */
  1644. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1645. = 9,
  1646. /* Unsigned 32-bit value */
  1647. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1648. /* Unsigned 32-bit value */
  1649. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1650. = 11,
  1651. /* Unsigned 32-bit value */
  1652. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1653. = 12,
  1654. /*
  1655. * EXTSCAN Attributes used with
  1656. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1657. */
  1658. /* Unsigned 32-bit value */
  1659. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1660. /*
  1661. * EXTSCAN attributes used with
  1662. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1663. */
  1664. /*
  1665. * An array of NUM_RESULTS_AVAILABLE x
  1666. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1667. */
  1668. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1669. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1670. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1671. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1672. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1673. /* An array of 6 x unsigned 8-bit value */
  1674. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1675. /* Unsigned 32-bit value; channel frequency in MHz */
  1676. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1677. /* Signed 32-bit value */
  1678. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1679. /* Unsigned 32-bit value */
  1680. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1681. /* Unsigned 32-bit value */
  1682. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1683. /* Unsigned 16-bit value */
  1684. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1685. /* Unsigned 16-bit value */
  1686. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1687. /* Unsigned 32-bit value; size of the IE DATA blob */
  1688. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1689. /*
  1690. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1691. * information elements found in the beacon; this data should be a
  1692. * packed list of wifi_information_element objects, one after the
  1693. * other.
  1694. */
  1695. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1696. /*
  1697. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1698. * available.
  1699. */
  1700. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1701. /*
  1702. * EXTSCAN attributes for
  1703. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1704. */
  1705. /* Unsigned 8-bit value */
  1706. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1707. /* Unsigned 32-bit value */
  1708. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1709. /*
  1710. * EXTSCAN attributes for
  1711. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  1712. */
  1713. /*
  1714. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1715. * to indicate number of results.
  1716. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1717. * list of results.
  1718. */
  1719. /*
  1720. * EXTSCAN attributes for
  1721. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  1722. */
  1723. /* An array of 6 x unsigned 8-bit value */
  1724. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  1725. /* Unsigned 32-bit value */
  1726. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  1727. = 30,
  1728. /* Unsigned 32-bit value. */
  1729. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  1730. = 31,
  1731. /*
  1732. * A nested array of signed 32-bit RSSI values. Size of the array is
  1733. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  1734. */
  1735. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  1736. = 32,
  1737. /*
  1738. * EXTSCAN attributes used with
  1739. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  1740. */
  1741. /*
  1742. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1743. * to indicate number of extscan cached results returned.
  1744. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  1745. * the list of extscan cached results.
  1746. */
  1747. /*
  1748. * An array of NUM_RESULTS_AVAILABLE x
  1749. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  1750. */
  1751. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  1752. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  1753. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  1754. /*
  1755. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  1756. */
  1757. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  1758. /*
  1759. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1760. * to indicate number of wifi scan results/bssids retrieved by the scan.
  1761. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1762. * list of wifi scan results returned for each cached result block.
  1763. */
  1764. /*
  1765. * EXTSCAN attributes for
  1766. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  1767. */
  1768. /*
  1769. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  1770. * number of results.
  1771. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1772. * list of wifi scan results returned for each
  1773. * wifi_passpoint_match_result block.
  1774. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  1775. */
  1776. /*
  1777. * EXTSCAN attributes for
  1778. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  1779. */
  1780. /* Unsigned 32-bit value */
  1781. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  1782. = 36,
  1783. /*
  1784. * A nested array of
  1785. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  1786. * attributes. Array size =
  1787. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  1788. */
  1789. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  1790. /* Unsigned 32-bit value; network block id for the matched network */
  1791. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  1792. /*
  1793. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1794. * list of wifi scan results returned for each
  1795. * wifi_passpoint_match_result block.
  1796. */
  1797. /* Unsigned 32-bit value */
  1798. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  1799. /*
  1800. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  1801. * ANQP data in the information_element format.
  1802. */
  1803. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  1804. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1805. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  1806. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1807. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  1808. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1809. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  1810. = 43,
  1811. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1812. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  1813. = 44,
  1814. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  1815. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  1816. /* keep last */
  1817. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  1818. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  1819. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  1820. };
  1821. /**
  1822. * enum qca_vendor_interop_issues_ap_type - interop issues type
  1823. * This enum defines the valid set of values of interop issues type. These
  1824. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  1825. *
  1826. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  1827. * when the STA's Qpower feature is enabled.
  1828. */
  1829. enum qca_vendor_interop_issues_ap_type {
  1830. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  1831. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  1832. };
  1833. /**
  1834. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  1835. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  1836. *
  1837. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  1838. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  1839. * 32-bit unsigned value, The type defined in enum
  1840. * qca_vendor_interop_issues_ap_type are used.
  1841. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  1842. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  1843. * it is present and mandatory for the command but is not used for
  1844. * the event since only a single BSSID is reported in an event.
  1845. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  1846. * 6-byte MAC address. It is used within the nested
  1847. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  1848. * and without such encapsulation in the event case.
  1849. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  1850. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  1851. */
  1852. enum qca_vendor_attr_interop_issues_ap {
  1853. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  1854. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  1855. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  1856. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  1857. /* keep last */
  1858. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  1859. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  1860. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  1861. };
  1862. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  1863. /**
  1864. * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
  1865. *
  1866. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
  1867. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
  1868. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
  1869. * Aggresive stats gathering
  1870. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
  1871. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
  1872. */
  1873. enum qca_wlan_vendor_attr_ll_stats_set {
  1874. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  1875. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  1876. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
  1877. /* keep last */
  1878. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  1879. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  1880. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
  1881. };
  1882. /**
  1883. * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
  1884. *
  1885. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
  1886. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
  1887. * provided by the caller issuing the GET stats command. When reporting
  1888. * the stats results, the driver uses the same value to indicate which
  1889. * GET request the results correspond to.
  1890. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
  1891. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  1892. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  1893. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
  1894. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
  1895. */
  1896. enum qca_wlan_vendor_attr_ll_stats_get {
  1897. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  1898. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
  1899. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
  1900. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  1901. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  1902. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
  1903. };
  1904. /**
  1905. * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
  1906. *
  1907. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
  1908. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
  1909. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
  1910. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  1911. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  1912. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
  1913. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
  1914. */
  1915. enum qca_wlan_vendor_attr_ll_stats_clr {
  1916. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  1917. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
  1918. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
  1919. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
  1920. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
  1921. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  1922. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  1923. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
  1924. };
  1925. /**
  1926. * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
  1927. *
  1928. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
  1929. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
  1930. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
  1931. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
  1932. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
  1933. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
  1934. */
  1935. enum qca_wlan_vendor_attr_ll_stats_results_type {
  1936. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
  1937. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
  1938. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
  1939. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
  1940. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
  1941. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
  1942. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
  1943. };
  1944. enum qca_wlan_vendor_attr_ll_stats_results {
  1945. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  1946. /* Unsigned 32bit value. Used by the driver; must match the request id
  1947. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  1948. */
  1949. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  1950. /* Unsigned 32 bit value */
  1951. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  1952. /* Unsigned 32 bit value */
  1953. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  1954. /* Unsigned 32 bit value */
  1955. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  1956. /* Unsigned 32 bit value */
  1957. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  1958. /* Signed 32 bit value */
  1959. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  1960. /* Signed 32 bit value */
  1961. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  1962. /* Signed 32 bit value */
  1963. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  1964. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  1965. * nested within the interface stats.
  1966. */
  1967. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  1968. * Type = enum wifi_interface_mode.
  1969. */
  1970. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  1971. /* Interface MAC address. An array of 6 Unsigned int8 */
  1972. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  1973. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  1974. * AUTHENTICATING, etc. valid for STA, CLI only.
  1975. */
  1976. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  1977. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  1978. */
  1979. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  1980. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  1981. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  1982. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  1983. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  1984. /* BSSID. An array of 6 unsigned 8 bit values */
  1985. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  1986. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  1987. * values.
  1988. */
  1989. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  1990. /* Country string for this association. An array of 3 unsigned 8 bit
  1991. * values.
  1992. */
  1993. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  1994. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  1995. * be nested within the interface stats.
  1996. */
  1997. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  1998. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  1999. /* Unsigned int 32 value corresponding to respective AC */
  2000. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2001. /* Unsigned int 32 value corresponding to respective AC */
  2002. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2003. /* Unsigned int 32 value corresponding to respective AC */
  2004. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2005. /* Unsigned int 32 value corresponding to respective AC */
  2006. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2007. /* Unsigned int 32 value corresponding to respective AC */
  2008. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2009. /* Unsigned int 32 value corresponding to respective AC */
  2010. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2011. /* Unsigned int 32 value corresponding to respective AC */
  2012. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2013. /* Unsigned int 32 value corresponding to respective AC */
  2014. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2015. /* Unsigned int 32 value corresponding to respective AC */
  2016. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2017. /* Unsigned int 32 values corresponding to respective AC */
  2018. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2019. /* Unsigned int 32 values corresponding to respective AC */
  2020. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2021. /* Unsigned int 32 values corresponding to respective AC */
  2022. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2023. /* Unsigned int 32 values corresponding to respective AC */
  2024. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2025. /* Unsigned int 32 values corresponding to respective AC */
  2026. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2027. /* Unsigned 32 bit value. Number of peers */
  2028. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2029. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2030. * nested within the interface stats.
  2031. */
  2032. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2033. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2034. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2035. * 8 bit values.
  2036. */
  2037. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2038. /* Unsigned int 32 bit value representing capabilities corresponding
  2039. * to respective peer.
  2040. */
  2041. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2042. /* Unsigned 32 bit value. Number of rates */
  2043. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2044. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2045. * are nested within the rate stat.
  2046. */
  2047. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2048. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2049. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2050. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2051. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2052. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2053. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2054. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2055. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2056. */
  2057. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2058. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2059. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2060. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2061. * nested within the peer info stats.
  2062. */
  2063. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2064. * packets, i.e., with ACK received corresponding to the respective
  2065. * rate.
  2066. */
  2067. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2068. /* Unsigned int 32 bit value. Number of received data packets
  2069. * corresponding to the respective rate.
  2070. */
  2071. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2072. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2073. * received corresponding to the respective rate.
  2074. */
  2075. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2076. /* Unsigned int 32 bit value. Total number of data packet retries for
  2077. * the respective rate.
  2078. */
  2079. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2080. /* Unsigned int 32 bit value. Total number of short data packet retries
  2081. * for the respective rate.
  2082. */
  2083. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2084. /* Unsigned int 32 bit value. Total number of long data packet retries
  2085. * for the respective rate.
  2086. */
  2087. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2088. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2089. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2090. * accruing over time.
  2091. */
  2092. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2093. /* Unsigned 32 bit value. Total number of msecs the radio is
  2094. * transmitting accruing over time.
  2095. */
  2096. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2097. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2098. * receive accruing over time.
  2099. */
  2100. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2101. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2102. * to all scan accruing over time.
  2103. */
  2104. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2105. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2106. * to NAN accruing over time.
  2107. */
  2108. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2109. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2110. * to GSCAN accruing over time.
  2111. */
  2112. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2113. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2114. * to roam scan accruing over time.
  2115. */
  2116. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2117. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2118. * to PNO scan accruing over time.
  2119. */
  2120. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2121. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2122. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2123. */
  2124. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2125. /* Unsigned 32 bit value. Number of channels. */
  2126. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2127. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2128. * be nested within the channel stats.
  2129. */
  2130. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2131. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2132. /* Unsigned 32 bit value. Primary 20 MHz channel. */
  2133. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2134. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2135. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2136. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2137. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2138. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2139. * nested within the radio stats.
  2140. */
  2141. /* Unsigned int 32 bit value representing total number of msecs the
  2142. * radio is awake on that channel accruing over time, corresponding to
  2143. * the respective channel.
  2144. */
  2145. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2146. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2147. * register is busy accruing over time corresponding to the respective
  2148. * channel.
  2149. */
  2150. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2151. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2152. /* Signifies the nested list of channel attributes
  2153. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2154. */
  2155. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2156. /* Signifies the nested list of peer info attributes
  2157. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
  2158. */
  2159. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2160. /* Signifies the nested list of rate info attributes
  2161. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2162. */
  2163. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2164. /* Signifies the nested list of wmm info attributes
  2165. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2166. */
  2167. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2168. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2169. * that more stats, e.g., peers or radio, are to follow in the next
  2170. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2171. * Otherwise, it is set to 0.
  2172. */
  2173. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2174. /* Unsigned 64 bit value */
  2175. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2176. /* Unsigned 32 bit value */
  2177. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2178. /* Unsigned 32 bit value */
  2179. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2180. /* Unsigned 32 bit value */
  2181. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2182. /* Unsigned 32 bit value */
  2183. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2184. /* Unsigned 32 bit value */
  2185. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2186. /* Number of msecs the radio spent in transmitting for each power level
  2187. */
  2188. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2189. /* Unsigned 32 bit value */
  2190. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2191. /* Unsigned 32 bit value */
  2192. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2193. /* Unsigned 32 bit value */
  2194. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2195. /* Unsigned 32 bit value */
  2196. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2197. /* Unsigned int 32 value.
  2198. * Pending MSDUs corresponding to respective AC.
  2199. */
  2200. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2201. /* u32 value representing total time in milliseconds for which the radio
  2202. * is transmitting on this channel. This attribute will be nested
  2203. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2204. */
  2205. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2206. /* u32 value representing total time in milliseconds for which the radio
  2207. * is receiving all 802.11 frames intended for this device on this
  2208. * channel. This attribute will be nested within
  2209. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2210. */
  2211. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2212. /* u8 value representing the channel load percentage. Possible values
  2213. * are 0-100.
  2214. */
  2215. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2216. /* u8 value representing the time slicing duty cycle percentage.
  2217. * Possible values are 0-100.
  2218. */
  2219. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2220. /* keep last */
  2221. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2222. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2223. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2224. };
  2225. enum qca_wlan_vendor_attr_ll_stats_type {
  2226. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2227. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2228. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2229. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2230. /* keep last */
  2231. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2232. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2233. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2234. };
  2235. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2236. /**
  2237. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2238. *
  2239. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2240. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2241. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2242. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2243. */
  2244. enum qca_wlan_vendor_attr_get_supported_features {
  2245. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2246. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2247. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2248. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2249. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2250. };
  2251. /**
  2252. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2253. *
  2254. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2255. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2256. * value
  2257. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2258. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2259. */
  2260. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2261. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2262. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2263. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2264. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2265. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2266. };
  2267. /**
  2268. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2269. *
  2270. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2271. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2272. * with frequencies to be scanned (in MHz)
  2273. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2274. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2275. * rates to be included
  2276. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2277. * at non CCK rate in 2GHz band
  2278. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2279. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2280. * driver for the specific scan request
  2281. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2282. * request decoded as in enum scan_status
  2283. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2284. * scan flag is set
  2285. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2286. * randomisation
  2287. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2288. * specific BSSID to scan for.
  2289. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2290. * microseconds. This is a common value which applies across all
  2291. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2292. */
  2293. enum qca_wlan_vendor_attr_scan {
  2294. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2295. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2296. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2297. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2298. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2299. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2300. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2301. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2302. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2303. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2304. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2305. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2306. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2307. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2308. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2309. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2310. };
  2311. /**
  2312. * enum scan_status - Specifies the valid values the vendor scan attribute
  2313. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2314. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2315. * new scan results
  2316. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2317. */
  2318. enum scan_status {
  2319. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2320. VENDOR_SCAN_STATUS_ABORTED,
  2321. VENDOR_SCAN_STATUS_MAX,
  2322. };
  2323. /**
  2324. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2325. *
  2326. * NL attributes for data used by
  2327. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2328. *
  2329. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2330. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2331. * Unsigned 32-bit value
  2332. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2333. * Unsigned 32-bit value
  2334. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2335. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2336. * combinations
  2337. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2338. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2339. */
  2340. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2341. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2342. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2343. = 1,
  2344. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2345. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2346. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2347. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2348. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2349. };
  2350. /**
  2351. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2352. *
  2353. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2354. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2355. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2356. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2357. */
  2358. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2359. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2360. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2361. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2362. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2363. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2364. };
  2365. /**
  2366. * enum qca_vendor_attr_wisa_cmd
  2367. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2368. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2369. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2370. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2371. * WISA setup vendor commands
  2372. */
  2373. enum qca_vendor_attr_wisa_cmd {
  2374. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2375. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2376. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2377. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2378. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2379. };
  2380. enum qca_roaming_policy {
  2381. QCA_ROAMING_NOT_ALLOWED,
  2382. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2383. };
  2384. /**
  2385. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2386. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2387. *
  2388. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2389. * reasons.
  2390. *
  2391. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2392. * the configured threshold.
  2393. *
  2394. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2395. * beacon misses from the then connected AP.
  2396. *
  2397. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2398. * by the connected AP.
  2399. *
  2400. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2401. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2402. * not poor.
  2403. *
  2404. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2405. * or environment being very noisy / congested.
  2406. *
  2407. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2408. * from the user (user space).
  2409. *
  2410. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2411. * connected AP.
  2412. *
  2413. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2414. * breaching out the configured threshold.
  2415. *
  2416. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2417. * transition request.
  2418. *
  2419. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2420. * there is no data activity with the AP and the current rssi falls below a
  2421. * certain threshold.
  2422. *
  2423. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2424. * deauthentication or disassociation frames received from the connected AP.
  2425. *
  2426. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2427. * scan that happens when there is no candiate AP found during the poor
  2428. * RSSI scan trigger.
  2429. *
  2430. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2431. * results obtained from an external scan (not aimed at roaming).
  2432. *
  2433. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2434. * connection is established when the station is connected in 2.4 Ghz band.
  2435. */
  2436. enum qca_roam_reason {
  2437. QCA_ROAM_REASON_UNKNOWN,
  2438. QCA_ROAM_REASON_PER,
  2439. QCA_ROAM_REASON_BEACON_MISS,
  2440. QCA_ROAM_REASON_POOR_RSSI,
  2441. QCA_ROAM_REASON_BETTER_RSSI,
  2442. QCA_ROAM_REASON_CONGESTION,
  2443. QCA_ROAM_REASON_USER_TRIGGER,
  2444. QCA_ROAM_REASON_BTM,
  2445. QCA_ROAM_REASON_BSS_LOAD,
  2446. QCA_ROAM_REASON_WTC,
  2447. QCA_ROAM_REASON_IDLE,
  2448. QCA_ROAM_REASON_DISCONNECTION,
  2449. QCA_ROAM_REASON_PERIODIC_TIMER,
  2450. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2451. QCA_ROAM_REASON_BT_ACTIVITY,
  2452. };
  2453. /**
  2454. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2455. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP
  2456. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2457. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2458. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2459. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2460. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2461. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2462. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2463. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2464. * Indicates the status of re-association requested by user space for
  2465. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2466. * Type u16.
  2467. * Represents the status code from AP. Use
  2468. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2469. * real status code for failures.
  2470. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2471. * This attribute indicates that the old association was maintained when
  2472. * a re-association is requested by user space and that re-association
  2473. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2474. * remain associated with the BSS with which the association was in
  2475. * place when being requested to roam). Used along with
  2476. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2477. * re-association status. Type flag.
  2478. * This attribute is applicable only for re-association failure cases.
  2479. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2480. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2481. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2482. * seq number
  2483. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2484. * representing the reasons for the roaming. Defined by enum
  2485. * qca_roam_reason.
  2486. */
  2487. enum qca_wlan_vendor_attr_roam_auth {
  2488. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2489. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2490. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2491. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2492. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2493. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2494. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2495. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2496. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2497. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2498. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2499. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2500. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2501. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2502. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  2503. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  2504. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  2505. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  2506. };
  2507. /**
  2508. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  2509. *
  2510. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  2511. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  2512. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  2513. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  2514. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  2515. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  2516. */
  2517. enum qca_wlan_vendor_attr_wifi_config {
  2518. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  2519. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  2520. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  2521. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  2522. /* keep last */
  2523. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  2524. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  2525. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  2526. };
  2527. /**
  2528. * enum qca_wlan_epno_type - the type of request to the EPNO command
  2529. * @QCA_WLAN_EPNO: epno type request
  2530. * @QCA_WLAN_PNO: pno type request
  2531. */
  2532. enum qca_wlan_epno_type {
  2533. QCA_WLAN_EPNO,
  2534. QCA_WLAN_PNO
  2535. };
  2536. /**
  2537. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  2538. *
  2539. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  2540. *
  2541. * NL attributes for data used by
  2542. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  2543. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  2544. * Unsigned 32-bit value; pno passpoint number of networks
  2545. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  2546. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  2547. * attributes. Array size =
  2548. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  2549. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  2550. * Unsigned 32-bit value; network id
  2551. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  2552. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  2553. * realm, 0 if unspecified.
  2554. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  2555. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  2556. * to match, 0 if unspecified.
  2557. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  2558. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  2559. * unspecified.
  2560. *
  2561. * NL attributes for data used by
  2562. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  2563. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  2564. * Unsigned 32-bit value; set pno number of networks
  2565. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  2566. * Array of nested
  2567. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  2568. * attributes. Array size =
  2569. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  2570. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  2571. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  2572. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  2573. * Signed 8-bit value; threshold for considering this SSID as found,
  2574. * required granularity for this threshold is 4dBm to 8dBm
  2575. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  2576. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  2577. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  2578. * Unsigned 8-bit value; auth bit field for matching WPA IE
  2579. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  2580. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  2581. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  2582. * Nested attribute to send the channel list
  2583. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  2584. * Unsigned 32-bit value; indicates the Interval between PNO scan
  2585. * cycles in msec
  2586. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  2587. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  2588. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  2589. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  2590. * This attribute is obsolete now.
  2591. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  2592. * Signed 32-bit value; the maximum score that a network
  2593. * can have before bonuses
  2594. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  2595. * Signed 32-bit value; only report when there is a network's
  2596. * score this much higher han the current connection
  2597. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  2598. * Signed 32-bit value; score bonus for all networks with
  2599. * the same network flag
  2600. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  2601. * Signed 32-bit value; score bonus for networks that are not open
  2602. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  2603. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  2604. * 5GHz networks
  2605. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  2606. * Unsigned 32-bit value, representing the PNO Request ID
  2607. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  2608. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  2609. */
  2610. enum qca_wlan_vendor_attr_pno_config_params {
  2611. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  2612. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  2613. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  2614. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  2615. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  2616. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  2617. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  2618. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  2619. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  2620. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  2621. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  2622. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  2623. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  2624. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  2625. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  2626. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  2627. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  2628. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  2629. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  2630. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  2631. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  2632. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  2633. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  2634. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  2635. /* keep last */
  2636. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  2637. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  2638. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  2639. };
  2640. /**
  2641. * enum qca_scan_freq_list_type: Frequency list types
  2642. *
  2643. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  2644. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2645. * a preferred frequency list for roaming.
  2646. *
  2647. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  2648. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2649. * a specific frequency list for roaming.
  2650. */
  2651. enum qca_scan_freq_list_type {
  2652. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  2653. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  2654. };
  2655. /**
  2656. * enum qca_roam_scan_scheme: scan scheme
  2657. *
  2658. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  2659. * Indicates the driver to not scan on a Roam Trigger scenario, but
  2660. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  2661. * disconnect from the current connected AP by notifying a failure
  2662. * code in the BTM response.
  2663. *
  2664. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  2665. * trigger partial frequency scans. These frequencies are the ones learnt
  2666. * or maintained by the driver based on the probability of finding the
  2667. * BSSID's in the ESS for which the roaming is triggered.
  2668. *
  2669. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  2670. * trigger the scan on all the valid frequencies to find the better
  2671. * candidates to roam.
  2672. */
  2673. enum qca_roam_scan_scheme {
  2674. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  2675. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  2676. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  2677. };
  2678. /**
  2679. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  2680. *
  2681. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  2682. * List of frequencies in MHz to be considered for a roam scan.
  2683. *
  2684. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  2685. * Type of frequency list scheme being configured/gotten as defined by the
  2686. * enum qca_scan_freq_list_type.
  2687. */
  2688. enum qca_vendor_attr_scan_freq_list_scheme {
  2689. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  2690. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  2691. /* keep last */
  2692. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  2693. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  2694. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  2695. };
  2696. /*
  2697. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  2698. *
  2699. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  2700. * a bad packet error rates (PER).
  2701. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  2702. * based on beacon misses from the connected AP.
  2703. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  2704. * due to poor RSSI of the connected AP.
  2705. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  2706. * upon finding a BSSID with a better RSSI than the connected BSSID.
  2707. * Here the RSSI of the current BSSID need not be poor.
  2708. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  2709. * by triggering a periodic scan to find a better AP to roam.
  2710. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  2711. * when the connected channel environment is too noisy/congested.
  2712. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  2713. * when BTM Request frame is received from the connected AP.
  2714. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  2715. * when the channel utilization is goes above the configured threshold.
  2716. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  2717. * based on the request from the user (space).
  2718. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  2719. * device receives Deauthentication/Disassociation frame from connected
  2720. * AP.
  2721. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  2722. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  2723. * is determined to be a poor one.
  2724. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  2725. * based on continuous TX Data Frame failures to the connected AP.
  2726. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  2727. * based on the scan results obtained from an external scan (not
  2728. * triggered to aim roaming)
  2729. *
  2730. * Set the corresponding roam trigger reason bit to consider it for roam
  2731. * trigger.
  2732. * Userspace can set multiple bits and send to the driver. The driver shall
  2733. * consider all of them to trigger/initiate a roam scan.
  2734. */
  2735. enum qca_vendor_roam_triggers {
  2736. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  2737. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  2738. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  2739. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  2740. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  2741. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  2742. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  2743. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  2744. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  2745. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  2746. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  2747. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  2748. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  2749. };
  2750. /*
  2751. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  2752. * fail reasons. This enum value is used in
  2753. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  2754. *
  2755. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  2756. * able to trigger the scan.
  2757. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  2758. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  2759. * scan.
  2760. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  2761. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  2762. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  2763. * status code.
  2764. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  2765. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  2766. * frame.
  2767. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  2768. * with error status code.
  2769. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  2770. * received.
  2771. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  2772. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  2773. * frame.
  2774. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  2775. * internally before transmission.
  2776. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  2777. * Request frame.
  2778. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  2779. * dropped internally.
  2780. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  2781. * times out.
  2782. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  2783. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  2784. * internally.
  2785. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  2786. * M2 frame.
  2787. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  2788. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  2789. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  2790. * internally.
  2791. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  2792. * frame.
  2793. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  2794. * started for final beacon miss case.
  2795. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  2796. * received from the AP during roaming handoff.
  2797. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  2798. * or host is suspended and gives the indication of the last roamed AP only
  2799. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  2800. * progress, this ongoing roaming is aborted and the last roamed AP is
  2801. * indicated to host.
  2802. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  2803. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  2804. * out.
  2805. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  2806. */
  2807. enum qca_vendor_roam_fail_reasons {
  2808. QCA_ROAM_FAIL_REASON_NONE = 0,
  2809. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  2810. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  2811. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  2812. QCA_ROAM_FAIL_REASON_HOST = 4,
  2813. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  2814. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  2815. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  2816. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  2817. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  2818. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  2819. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  2820. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  2821. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  2822. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  2823. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  2824. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  2825. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  2826. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  2827. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  2828. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  2829. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  2830. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  2831. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  2832. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  2833. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  2834. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  2835. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  2836. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  2837. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  2838. };
  2839. /*
  2840. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  2841. * invoke fail reasons. This enum value is used in
  2842. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  2843. *
  2844. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  2845. * in roam invoke command.
  2846. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  2847. * enabled.
  2848. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  2849. * length is invalid.
  2850. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  2851. * in progress.
  2852. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  2853. * of the AP in the roam invoke command to firmware. This reason is sent by the
  2854. * firmware when the given AP is configured to be ignored or SSID/security
  2855. * does not match.
  2856. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  2857. * firmware internal reasons.
  2858. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  2859. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  2860. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  2861. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  2862. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  2863. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  2864. */
  2865. enum qca_vendor_roam_invoke_fail_reasons {
  2866. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  2867. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  2868. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  2869. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  2870. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  2871. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  2872. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  2873. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  2874. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  2875. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  2876. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  2877. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  2878. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  2879. };
  2880. /**
  2881. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  2882. *
  2883. * Each attribute carries a weightage in percentage (%).
  2884. *
  2885. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  2886. * Represents the weightage to be given for the RSSI selection
  2887. * criteria among other parameters.
  2888. *
  2889. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  2890. * Represents the weightage to be given for the rate selection
  2891. * criteria among other parameters.
  2892. *
  2893. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  2894. * Represents the weightage to be given for the band width selection
  2895. * criteria among other parameters.
  2896. *
  2897. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  2898. * Represents the weightage to be given for the band selection
  2899. * criteria among other parameters.
  2900. *
  2901. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  2902. * Represents the weightage to be given for the NSS selection
  2903. * criteria among other parameters.
  2904. *
  2905. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  2906. * Represents the weightage to be given for the channel congestion
  2907. * selection criteria among other parameters.
  2908. *
  2909. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  2910. * Represents the weightage to be given for the beamforming selection
  2911. * criteria among other parameters.
  2912. *
  2913. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  2914. * Represents the weightage to be given for the OCE selection
  2915. * criteria among other parameters.
  2916. */
  2917. enum qca_vendor_attr_roam_candidate_selection_criteria {
  2918. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  2919. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  2920. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  2921. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  2922. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  2923. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  2924. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  2925. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  2926. /* keep last */
  2927. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  2928. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  2929. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  2930. };
  2931. /**
  2932. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  2933. * The following attributes are used to set/get/clear the respective
  2934. * configurations to/from the driver.
  2935. * For the get, the attribute for the configuration to be queried shall
  2936. * carry any of its acceptable values to the driver. In return, the driver
  2937. * shall send the configured values within the same attribute to the user
  2938. * space.
  2939. *
  2940. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  2941. * Signifies to enable/disable roam control in driver.
  2942. * 1-enable, 0-disable
  2943. * Enable: Mandates the driver to do the further roams using the
  2944. * configuration parameters set through
  2945. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  2946. * Disable: Disables the driver/firmware roaming triggered through
  2947. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  2948. * expected to continue with the default configurations.
  2949. *
  2950. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  2951. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  2952. * Roam control status is obtained through this attribute.
  2953. *
  2954. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  2955. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  2956. * is to be cleared in the driver.
  2957. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  2958. * and shall be ignored if used with other sub commands.
  2959. * If this attribute is specified along with subcmd
  2960. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  2961. * all other attributes, if there are any.
  2962. * If this attribute is not specified when the subcmd
  2963. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  2964. * clear the data corresponding to the attributes specified.
  2965. *
  2966. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  2967. * list of frequencies and its type, represented by
  2968. * enum qca_vendor_attr_scan_freq_list_scheme.
  2969. * Frequency list and its type are mandatory for this attribute to set
  2970. * the frequencies.
  2971. * Frequency type is mandatory for this attribute to get the frequencies
  2972. * and the frequency list is obtained through
  2973. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  2974. * Frequency list type is mandatory for this attribute to clear the
  2975. * frequencies.
  2976. *
  2977. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  2978. * Carries the value of scan period in seconds to set.
  2979. * The value of scan period is obtained with the same attribute for get.
  2980. * Clears the scan period in the driver when specified with clear command.
  2981. * Scan period is the idle time in seconds between each subsequent
  2982. * channel scans.
  2983. *
  2984. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  2985. * Carries the value of full scan period in seconds to set.
  2986. * The value of full scan period is obtained with the same attribute for
  2987. * get.
  2988. * Clears the full scan period in the driver when specified with clear
  2989. * command. Full scan period is the idle period in seconds between two
  2990. * successive full channel roam scans.
  2991. *
  2992. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  2993. * Carries a bitmap of the roam triggers specified in
  2994. * enum qca_vendor_roam_triggers.
  2995. * The driver shall enable roaming by enabling corresponding roam triggers
  2996. * based on the trigger bits sent with this attribute.
  2997. * If this attribute is not configured, the driver shall proceed with
  2998. * default behavior.
  2999. * The bitmap configured is obtained with the same attribute for get.
  3000. * Clears the bitmap configured in driver when specified with clear
  3001. * command.
  3002. *
  3003. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3004. * weightage in percentage (%) to be given for each selection criteria.
  3005. * Different roam candidate selection criteria are represented by
  3006. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3007. * The driver shall select the roam candidate based on corresponding
  3008. * candidate selection scores sent.
  3009. *
  3010. * An empty nested attribute is used to indicate that no specific
  3011. * preference score/criteria is configured (i.e., to disable this mechanism
  3012. * in the set case and to show that the mechanism is disabled in the get
  3013. * case).
  3014. *
  3015. * Userspace can send multiple attributes out of this enum to the driver.
  3016. * Since this attribute represents the weight/percentage of preference for
  3017. * the respective selection criteria, it is preferred to configure 100%
  3018. * total weightage. The value in each attribute or cumulative weight of the
  3019. * values in all the nested attributes should not exceed 100%. The driver
  3020. * shall reject such configuration.
  3021. *
  3022. * If the weights configured through this attribute are less than 100%,
  3023. * the driver shall honor the weights (x%) passed for the corresponding
  3024. * selection criteria and choose/distribute rest of the weight (100-x)%
  3025. * for the other selection criteria, based on its internal logic.
  3026. *
  3027. * The selection criteria configured is obtained with the same
  3028. * attribute for get.
  3029. *
  3030. * Clears the selection criteria configured in the driver when specified
  3031. * with clear command.
  3032. *
  3033. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3034. * Represents value of scan frequency scheme from
  3035. * enum qca_roam_scan_scheme.
  3036. *
  3037. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3038. * signifying the RSSI threshold of the current connected AP, indicating
  3039. * the driver to trigger roam only when the current connected AP's RSSI
  3040. * is lesser than this threshold.
  3041. *
  3042. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3043. * signifying the RSSI threshold of the candidate AP, indicating
  3044. * the driver to trigger roam only to the candidate AP with RSSI
  3045. * better than this threshold. If RSSI thresholds for candidate APs found
  3046. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3047. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3048. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3049. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3050. * will take precedence over the value configured using
  3051. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3052. *
  3053. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3054. * user triggered reason code to be sent to the AP in response to AP's
  3055. * request to trigger the roam if the roaming cannot be triggered.
  3056. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3057. *
  3058. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3059. * Carries a bitmap of the roam triggers specified in
  3060. * enum qca_vendor_roam_triggers.
  3061. * Represents the roam triggers for which the specific scan scheme from
  3062. * enum qca_roam_scan_scheme has to be applied.
  3063. * It's an optional attribute. If this attribute is not configured, but
  3064. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3065. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3066. * all the roams.
  3067. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3068. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3069. * driver shall proceed with the default behavior.
  3070. *
  3071. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3072. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3073. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3074. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3075. * threshold. Optional attribute. If this attribute is not included, then
  3076. * threshold value specified by the
  3077. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3078. *
  3079. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3080. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3081. * band. The driver/firmware shall trigger roaming to the candidate AP
  3082. * found in 5GHz band only if it's RSSI value is better than this
  3083. * threshold. Optional attribute. If this attribute is not included, then
  3084. * threshold value specified by the
  3085. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3086. *
  3087. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3088. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3089. * band. The driver/firmware shall trigger roaming to the candidate AP
  3090. * found in 6GHz band only if it's RSSI value is better than this
  3091. * threshold. Optional attribute. If this attribute is not included, then
  3092. * threshold value specified by the
  3093. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3094. *
  3095. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3096. * Carries bitmask value of bits from &enum qca_set_band and represents
  3097. * all the bands in which roaming is allowed. The configuration is valid
  3098. * until next disconnection. If this attribute is not present, the
  3099. * existing configuration shall be used. By default, roaming is allowed
  3100. * on all bands supported by local device. When the value is set to
  3101. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3102. *
  3103. */
  3104. enum qca_vendor_attr_roam_control {
  3105. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3106. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3107. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3108. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3109. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3110. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3111. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3112. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3113. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3114. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3115. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3116. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3117. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3118. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3119. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3120. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3121. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3122. /* keep last */
  3123. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3124. QCA_ATTR_ROAM_CONTROL_MAX =
  3125. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3126. };
  3127. /**
  3128. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3129. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3130. *
  3131. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3132. * Represents the different roam sub commands referred by
  3133. * enum qca_wlan_vendor_roaming_subcmd.
  3134. *
  3135. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3136. * Represents the Request ID for the specific set of commands.
  3137. * This also helps to map specific set of commands to the respective
  3138. * ID / client. e.g., helps to identify the user entity configuring the
  3139. * Blacklist BSSID and accordingly clear the respective ones with the
  3140. * matching ID.
  3141. *
  3142. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3143. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3144. *
  3145. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3146. * to carry the list of Whitelist SSIDs.
  3147. *
  3148. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3149. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3150. * represent the list of SSIDs to which the firmware/driver can consider
  3151. * to roam to.
  3152. *
  3153. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3154. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3155. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3156. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3157. *
  3158. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3159. * value, RSSI threshold above which 5GHz RSSI is favored.
  3160. *
  3161. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3162. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3163. *
  3164. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3165. * value, factor by which 5GHz RSSI is boosted.
  3166. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3167. *
  3168. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3169. * value, factor by which 5GHz RSSI is penalized.
  3170. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3171. *
  3172. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3173. * value, maximum boost that can be applied to a 5GHz RSSI.
  3174. *
  3175. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3176. * value, boost applied to current BSSID to ensure the currently
  3177. * associated BSSID is favored so as to prevent ping-pong situations.
  3178. *
  3179. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3180. * value, RSSI below which "Alert" roam is enabled.
  3181. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3182. * because the RSSI is low, or because many successive beacons have been
  3183. * lost or other bad link conditions.
  3184. *
  3185. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3186. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3187. * firmware is hunting for a better BSSID or white listed SSID even though
  3188. * the RSSI of the link is good. The parameters enabling the roaming are
  3189. * configured through the PARAM_A_BAND_XX attrbutes.
  3190. *
  3191. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3192. * represents the BSSIDs preferred over others while evaluating them
  3193. * for the roaming.
  3194. *
  3195. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3196. * 32-bit value. Represents the number of preferred BSSIDs set.
  3197. *
  3198. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3199. * address representing the BSSID to be preferred.
  3200. *
  3201. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3202. * 32-bit value, representing the modifier to be applied to the RSSI of
  3203. * the BSSID for the purpose of comparing it with other roam candidate.
  3204. *
  3205. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3206. * represents the BSSIDs to get blacklisted for roaming.
  3207. *
  3208. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3209. * 32-bit value, represents the number of blacklisted BSSIDs.
  3210. *
  3211. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3212. * address representing the Blacklisted BSSID.
  3213. *
  3214. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3215. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3216. * select this BSSID in the worst case (when no other BSSIDs are better).
  3217. *
  3218. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3219. * set/get/clear the roam control config as
  3220. * defined @enum qca_vendor_attr_roam_control.
  3221. *
  3222. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3223. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3224. */
  3225. enum qca_wlan_vendor_attr_roaming_config_params {
  3226. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3227. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3228. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3229. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3230. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3231. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3232. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3233. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3234. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3235. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3236. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3237. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3238. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3239. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3240. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3241. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3242. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3243. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3244. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3245. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3246. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3247. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3248. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3249. /* keep last */
  3250. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3251. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3252. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3253. };
  3254. /**
  3255. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3256. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3257. *
  3258. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3259. * configure the white list SSIDs. These are configured through
  3260. * the following attributes.
  3261. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3262. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3263. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3264. *
  3265. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3266. * configure the Roam params. These parameters are evaluated on the extscan
  3267. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3268. * params.
  3269. *
  3270. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3271. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3272. * to enable/disable Lazy roam.
  3273. *
  3274. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3275. * preference. Contains the attribute
  3276. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3277. * preference.
  3278. *
  3279. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3280. *
  3281. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3282. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3283. * set the same.
  3284. *
  3285. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3286. * roam control config to the driver with the attribute
  3287. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3288. *
  3289. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3290. * roam control config from driver with the attribute
  3291. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3292. * For the get, the attribute for the configuration to be queried shall
  3293. * carry any of its acceptable value to the driver. In return, the driver
  3294. * shall send the configured values within the same attribute to the user
  3295. * space.
  3296. *
  3297. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3298. * roam control config in the driver with the attribute
  3299. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3300. * The driver shall continue with its default roaming behavior when data
  3301. * corresponding to an attribute is cleared.
  3302. */
  3303. enum qca_wlan_vendor_roaming_subcmd {
  3304. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3305. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3306. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3307. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3308. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3309. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3310. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3311. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3312. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3313. };
  3314. /**
  3315. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3316. *
  3317. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3318. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3319. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3320. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3321. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3322. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3323. */
  3324. enum qca_wlan_vendor_attr_get_wifi_info {
  3325. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3326. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3327. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3328. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3329. /* KEEP LAST */
  3330. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3331. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3332. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3333. };
  3334. enum qca_wlan_vendor_attr_logger_results {
  3335. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3336. /*
  3337. * Unsigned 32-bit value; must match the request Id supplied by
  3338. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3339. */
  3340. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3341. /*
  3342. * Unsigned 32-bit value; used to indicate the size of memory
  3343. * dump to be allocated.
  3344. */
  3345. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3346. /* keep last */
  3347. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3348. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3349. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3350. };
  3351. /**
  3352. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3353. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3354. */
  3355. enum qca_wlan_vendor_channel_prop_flags {
  3356. /* Bits 0, 1, 2, and 3 are reserved */
  3357. /* Turbo channel */
  3358. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3359. /* CCK channel */
  3360. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3361. /* OFDM channel */
  3362. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3363. /* 2.4 GHz spectrum channel. */
  3364. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3365. /* 5 GHz spectrum channel */
  3366. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3367. /* Only passive scan allowed */
  3368. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3369. /* Dynamic CCK-OFDM channel */
  3370. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3371. /* GFSK channel (FHSS PHY) */
  3372. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3373. /* Radar found on channel */
  3374. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3375. /* 11a static turbo channel only */
  3376. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3377. /* Half rate channel */
  3378. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3379. /* Quarter rate channel */
  3380. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3381. /* HT 20 channel */
  3382. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3383. /* HT 40 with extension channel above */
  3384. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3385. /* HT 40 with extension channel below */
  3386. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3387. /* HT 40 intolerant */
  3388. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3389. /* VHT 20 channel */
  3390. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3391. /* VHT 40 with extension channel above */
  3392. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3393. /* VHT 40 with extension channel below */
  3394. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3395. /* VHT 80 channel */
  3396. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3397. /* HT 40 intolerant mark bit for ACS use */
  3398. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3399. /* Channel temporarily blocked due to noise */
  3400. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3401. /* VHT 160 channel */
  3402. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3403. /* VHT 80+80 channel */
  3404. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3405. /* HE 20 channel */
  3406. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3407. /* HE 40 with extension channel above */
  3408. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3409. /* HE 40 with extension channel below */
  3410. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3411. /* HE 40 intolerant */
  3412. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
  3413. };
  3414. /**
  3415. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3416. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3417. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  3418. */
  3419. enum qca_wlan_vendor_channel_prop_flags_2 {
  3420. /* HE 40 intolerant mark bit for ACS use */
  3421. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  3422. /* HE 80 channel */
  3423. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  3424. /* HE 160 channel */
  3425. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  3426. /* HE 80+80 channel */
  3427. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  3428. };
  3429. /**
  3430. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  3431. * each channel. This is used by
  3432. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  3433. */
  3434. enum qca_wlan_vendor_channel_prop_flags_ext {
  3435. /* Radar found on channel */
  3436. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  3437. /* DFS required on channel */
  3438. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  3439. /* DFS required on channel for 2nd band of 80+80 */
  3440. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  3441. /* If channel has been checked for DFS */
  3442. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  3443. /* Excluded in 802.11d */
  3444. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  3445. /* Channel Switch Announcement received on this channel */
  3446. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  3447. /* Ad-hoc is not allowed */
  3448. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  3449. /* Station only channel */
  3450. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  3451. /* DFS radar history for slave device (STA mode) */
  3452. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  3453. /* DFS CAC valid for slave device (STA mode) */
  3454. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  3455. };
  3456. /**
  3457. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  3458. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  3459. * information to start/stop the NUD statistics collection.
  3460. */
  3461. enum qca_attr_nud_stats_set {
  3462. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  3463. /*
  3464. * Flag to start/stop the NUD statistics collection.
  3465. * Start - If included, Stop - If not included
  3466. */
  3467. QCA_ATTR_NUD_STATS_SET_START = 1,
  3468. /* IPv4 address of the default gateway (in network byte order) */
  3469. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  3470. /*
  3471. * Represents the data packet type to be monitored.
  3472. * Host driver tracks the stats corresponding to each data frame
  3473. * represented by these flags.
  3474. * These data packets are represented by
  3475. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  3476. */
  3477. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  3478. /* keep last */
  3479. QCA_ATTR_NUD_STATS_SET_LAST,
  3480. QCA_ATTR_NUD_STATS_SET_MAX =
  3481. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  3482. };
  3483. /**
  3484. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  3485. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3486. * information to start / stop the NUD stats collection.
  3487. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  3488. * Bitmap to Flag to Start / Stop the NUD stats collection
  3489. * Start - If included , Stop - If not included
  3490. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
  3491. * IPv4 address of Default Gateway (in network byte order)
  3492. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3493. * information to start / stop the NUD stats collection.
  3494. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  3495. * Flag to Start / Stop the NUD stats collection
  3496. * Start - If included , Stop - If not included
  3497. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
  3498. * IPv4 address of Default Gateway (in network byte order)
  3499. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3500. * information to start / stop the NUD stats collection.
  3501. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  3502. * Flag to Start / Stop the NUD stats collection
  3503. * Start - If included , Stop - If not included
  3504. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
  3505. * IPv4 address of Default Gateway (in network byte order)
  3506. */
  3507. enum qca_attr_connectivity_check_stats_set {
  3508. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  3509. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  3510. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  3511. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  3512. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  3513. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  3514. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  3515. /* keep last */
  3516. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  3517. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  3518. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  3519. };
  3520. /**
  3521. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  3522. * data types for which the stats have to get collected.
  3523. */
  3524. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  3525. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  3526. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  3527. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  3528. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  3529. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  3530. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  3531. * to represent the stats of respective data type.
  3532. */
  3533. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  3534. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  3535. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  3536. };
  3537. enum qca_attr_connectivity_check_stats {
  3538. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  3539. /* Data packet type for which the stats are collected.
  3540. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  3541. */
  3542. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  3543. /* ID corresponding to the DNS frame for which the respective DNS stats
  3544. * are monitored (u32).
  3545. */
  3546. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  3547. /* source / destination port on which the respective proto stats are
  3548. * collected (u32).
  3549. */
  3550. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  3551. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  3552. /* IPv4/IPv6 address for which the destined data packets are
  3553. * monitored. (in network byte order)
  3554. */
  3555. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  3556. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  3557. /* Data packet Request count received from netdev */
  3558. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  3559. /* Data packet Request count sent to lower MAC from upper MAC */
  3560. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  3561. /* Data packet Request count received by lower MAC from upper MAC */
  3562. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  3563. /* Data packet Request count successfully transmitted by the device */
  3564. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  3565. /* Data packet Response count received by lower MAC */
  3566. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  3567. /* Data packet Response count received by upper MAC */
  3568. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  3569. /* Data packet Response count delivered to netdev */
  3570. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  3571. /* Data Packet Response count that are dropped out of order */
  3572. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  3573. /* keep last */
  3574. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  3575. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  3576. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  3577. };
  3578. /**
  3579. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  3580. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  3581. * NUD statistics collected when queried.
  3582. */
  3583. enum qca_attr_nud_stats_get {
  3584. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  3585. /* ARP Request count from netdev */
  3586. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  3587. /* ARP Request count sent to lower MAC from upper MAC */
  3588. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  3589. /* ARP Request count received by lower MAC from upper MAC */
  3590. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  3591. /* ARP Request count successfully transmitted by the device */
  3592. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  3593. /* ARP Response count received by lower MAC */
  3594. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  3595. /* ARP Response count received by upper MAC */
  3596. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  3597. /* ARP Response count delivered to netdev */
  3598. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  3599. /* ARP Response count delivered to netdev */
  3600. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  3601. /*
  3602. * Flag indicating if the station's link to the AP is active.
  3603. * Active Link - If included, Inactive link - If not included
  3604. */
  3605. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  3606. /*
  3607. * Flag indicating if there is any duplicate address detected (DAD).
  3608. * Yes - If detected, No - If not detected.
  3609. */
  3610. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  3611. /*
  3612. * List of Data types for which the stats are requested.
  3613. * This list does not carry ARP stats as they are done by the
  3614. * above attributes. Represented by enum qca_attr_nud_data_stats.
  3615. */
  3616. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  3617. /* keep last */
  3618. QCA_ATTR_NUD_STATS_GET_LAST,
  3619. QCA_ATTR_NUD_STATS_GET_MAX =
  3620. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  3621. };
  3622. enum qca_wlan_btm_candidate_status {
  3623. QCA_STATUS_ACCEPT = 0,
  3624. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  3625. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  3626. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  3627. QCA_STATUS_REJECT_LOW_RSSI = 4,
  3628. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  3629. QCA_STATUS_REJECT_UNKNOWN = 6,
  3630. };
  3631. enum qca_wlan_vendor_attr_btm_candidate_info {
  3632. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  3633. /* 6-byte MAC address representing the BSSID of transition candidate */
  3634. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  3635. /*
  3636. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  3637. * returned by the driver. It says whether the BSSID provided in
  3638. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  3639. * the driver, if not it specifies the reason for rejection.
  3640. * Note that the user-space can overwrite the transition reject reason
  3641. * codes provided by driver based on more information.
  3642. */
  3643. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  3644. /* keep last */
  3645. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  3646. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  3647. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  3648. };
  3649. enum qca_attr_trace_level {
  3650. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  3651. /*
  3652. * Nested array of the following attributes:
  3653. * QCA_ATTR_TRACE_LEVEL_MODULE,
  3654. * QCA_ATTR_TRACE_LEVEL_MASK.
  3655. */
  3656. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  3657. /*
  3658. * Specific QCA host driver module. Please refer to the QCA host
  3659. * driver implementation to get the specific module ID.
  3660. */
  3661. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  3662. /* Different trace level masks represented in the QCA host driver. */
  3663. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  3664. /* keep last */
  3665. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  3666. QCA_ATTR_TRACE_LEVEL_MAX =
  3667. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  3668. };
  3669. /**
  3670. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  3671. * supported features
  3672. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  3673. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  3674. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  3675. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  3676. *
  3677. * enum values are used for NL attributes for data used by
  3678. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  3679. */
  3680. enum qca_wlan_vendor_attr_get_logger_features {
  3681. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  3682. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  3683. /* keep last */
  3684. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  3685. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  3686. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  3687. };
  3688. /**
  3689. * enum qca_wlan_vendor_attr_link_properties - link properties
  3690. *
  3691. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  3692. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  3693. * specify the number of spatial streams negotiated
  3694. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  3695. * to specify negotiated rate flags i.e. ht, vht and channel width
  3696. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  3697. * specify the operating frequency
  3698. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  3699. * (STA / AP ) for the connected link.
  3700. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  3701. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  3702. * address of the peer represented by
  3703. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  3704. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  3705. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  3706. */
  3707. enum qca_wlan_vendor_attr_link_properties {
  3708. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  3709. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  3710. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  3711. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  3712. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  3713. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  3714. /* KEEP LAST */
  3715. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  3716. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  3717. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  3718. };
  3719. /**
  3720. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  3721. *
  3722. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  3723. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  3724. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  3725. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  3726. *
  3727. * enum values are used for NL attributes for data used by
  3728. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  3729. */
  3730. enum qca_wlan_vendor_attr_nd_offload {
  3731. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  3732. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  3733. /* Keep last */
  3734. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  3735. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  3736. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  3737. };
  3738. /**
  3739. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  3740. *
  3741. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  3742. * management offload, a mechanism where the station's firmware
  3743. * does the exchange with the AP to establish the temporal keys
  3744. * after roaming, rather than having the user space wpa_supplicant do it.
  3745. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  3746. * band selection based on channel selection results.
  3747. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  3748. * simultaneous off-channel operations.
  3749. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  3750. * Listen offload; a mechanism where the station's firmware takes care of
  3751. * responding to incoming Probe Request frames received from other P2P
  3752. * Devices whilst in Listen state, rather than having the user space
  3753. * wpa_supplicant do it. Information from received P2P requests are
  3754. * forwarded from firmware to host whenever the host processor wakes up.
  3755. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  3756. * specific features.
  3757. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  3758. * features.
  3759. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  3760. * specific features only. If a Device sets this bit but not the
  3761. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  3762. * this Device may not support all OCE AP functionalities but can support
  3763. * only OCE STA-CFON functionalities.
  3764. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  3765. * managed regulatory.
  3766. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  3767. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  3768. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  3769. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  3770. * and applying thermal configuration through
  3771. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  3772. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  3773. * userspace.
  3774. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  3775. * With Adaptive 11r feature, access points advertise the vendor
  3776. * specific IEs and MDE but do not include FT AKM in the RSNE.
  3777. * The Adaptive 11r supported stations are expected to identify
  3778. * such vendor specific IEs and connect to the AP in FT mode though
  3779. * the profile is configured in non-FT mode.
  3780. * The driver-based SME cases also need to have this support for
  3781. * Adaptive 11r to handle the connection and roaming scenarios.
  3782. * This flag indicates the support for the same to the user space.
  3783. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  3784. * concurrent network sessions on different Wi-Fi Bands. This feature
  3785. * capability is attributed to the hardware's capability to support
  3786. * the same (e.g., DBS).
  3787. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  3788. * responses for the respective TWT operations are asynchronous (separate)
  3789. * event message) from the driver. If not specified, the responses are
  3790. * synchronous (in vendor command reply) to the request. Each TWT
  3791. * operation is specifically mentioned (against its respective)
  3792. * documentation) to support either of these or both modes.
  3793. *
  3794. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  3795. */
  3796. enum qca_wlan_vendor_features {
  3797. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  3798. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  3799. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  3800. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  3801. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  3802. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  3803. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  3804. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  3805. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  3806. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  3807. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  3808. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  3809. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  3810. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  3811. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  3812. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  3813. };
  3814. /**
  3815. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  3816. * conditional channel switch
  3817. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  3818. * value
  3819. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  3820. * frequency list (an array of u32 values in host byte order)
  3821. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  3822. * conditional switch (u32)- 0: Success, Non-zero: Failure
  3823. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  3824. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  3825. */
  3826. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  3827. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  3828. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  3829. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  3830. /* Keep Last */
  3831. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  3832. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  3833. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  3834. };
  3835. /**
  3836. * enum wifi_logger_supported_features - values for supported logger features
  3837. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  3838. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  3839. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  3840. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  3841. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  3842. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  3843. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  3844. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  3845. */
  3846. enum wifi_logger_supported_features {
  3847. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  3848. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  3849. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  3850. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  3851. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  3852. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  3853. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  3854. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  3855. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  3856. };
  3857. /**
  3858. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  3859. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  3860. *
  3861. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  3862. * Used with event to notify the primary channel number selected in ACS
  3863. * operation.
  3864. * Note: If both the driver and user-space application supports the 6 GHz band,
  3865. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  3866. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  3867. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  3868. * is still used if either of the driver or user space application doesn't
  3869. * support the 6 GHz band.
  3870. *
  3871. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  3872. * Used with event to notify the secondary channel number selected in ACS
  3873. * operation.
  3874. * Note: If both the driver and user-space application supports the 6 GHz band,
  3875. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  3876. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  3877. * To maintain backward compatibility,
  3878. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  3879. * the driver or user space application doesn't support 6 GHz band.
  3880. *
  3881. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  3882. * (a) Used with command to configure hw_mode from
  3883. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  3884. * (b) Also used with event to notify the hw_mode of selected primary channel
  3885. * in ACS operation.
  3886. *
  3887. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  3888. * Used with command to configure ACS operation for HT mode.
  3889. * Disable (flag attribute not present) - HT disabled and
  3890. * Enable (flag attribute present) - HT enabled.
  3891. *
  3892. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  3893. * Used with command to configure ACS operation for HT40 mode.
  3894. * Disable (flag attribute not present) - HT40 disabled and
  3895. * Enable (flag attribute present) - HT40 enabled.
  3896. *
  3897. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  3898. * Used with command to configure ACS operation for VHT mode.
  3899. * Disable (flag attribute not present) - VHT disabled and
  3900. * Enable (flag attribute present) - VHT enabled.
  3901. *
  3902. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  3903. * mandatory with event.
  3904. * If specified in command path, ACS operation is configured with the given
  3905. * channel width (in MHz).
  3906. * In event path, specifies the channel width of the primary channel selected.
  3907. *
  3908. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  3909. * Used with command to configure channel list using an array of
  3910. * channel numbers (u8).
  3911. * Note: If both the driver and user-space application supports the 6 GHz band,
  3912. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  3913. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  3914. *
  3915. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  3916. * Used with event to notify the VHT segment 0 center channel number selected in
  3917. * ACS operation.
  3918. * Note: If both the driver and user-space application supports the 6 GHz band,
  3919. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  3920. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  3921. * To maintain backward compatibility,
  3922. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  3923. * the driver or user space application doesn't support the 6 GHz band.
  3924. *
  3925. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  3926. * Used with event to notify the VHT segment 1 center channel number selected in
  3927. * ACS operation.
  3928. * Note: If both the driver and user-space application supports the 6 GHz band,
  3929. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  3930. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  3931. * To maintain backward compatibility,
  3932. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  3933. * the driver or user space application doesn't support the 6 GHz band.
  3934. *
  3935. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  3936. * Used with command to configure the channel list using an array of channel
  3937. * center frequencies in MHz (u32).
  3938. * Note: If both the driver and user-space application supports the 6 GHz band,
  3939. * the driver first parses the frequency list and if it fails to get a frequency
  3940. * list, parses the channel list specified using
  3941. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  3942. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  3943. *
  3944. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  3945. * Used with event to notify the primary channel center frequency (MHz) selected
  3946. * in ACS operation.
  3947. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  3948. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  3949. *
  3950. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  3951. * Used with event to notify the secondary channel center frequency (MHz)
  3952. * selected in ACS operation.
  3953. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  3954. * includes this attribute along with
  3955. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  3956. *
  3957. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  3958. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  3959. * selected in ACS operation.
  3960. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  3961. * includes this attribute along with
  3962. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  3963. *
  3964. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  3965. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  3966. * selected in ACS operation.
  3967. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  3968. * includes this attribute along with
  3969. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  3970. *
  3971. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  3972. * Used with command to notify the driver of EDMG request for ACS
  3973. * operation.
  3974. *
  3975. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  3976. * Used with event to notify the EDMG channel number selected in ACS
  3977. * operation.
  3978. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  3979. */
  3980. enum qca_wlan_vendor_attr_acs_offload {
  3981. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  3982. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  3983. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  3984. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  3985. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  3986. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  3987. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  3988. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  3989. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  3990. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  3991. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  3992. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  3993. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  3994. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  3995. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  3996. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  3997. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  3998. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  3999. /* keep last */
  4000. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4001. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4002. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4003. };
  4004. /**
  4005. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4006. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4007. *
  4008. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4009. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4010. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4011. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4012. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4013. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4014. */
  4015. enum qca_wlan_vendor_acs_hw_mode {
  4016. QCA_ACS_MODE_IEEE80211B,
  4017. QCA_ACS_MODE_IEEE80211G,
  4018. QCA_ACS_MODE_IEEE80211A,
  4019. QCA_ACS_MODE_IEEE80211AD,
  4020. QCA_ACS_MODE_IEEE80211ANY,
  4021. QCA_ACS_MODE_IEEE80211AX,
  4022. };
  4023. /**
  4024. * enum qca_access_policy - access control policy
  4025. *
  4026. * Access control policy is applied on the configured IE
  4027. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4028. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4029. *
  4030. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4031. *» with the specific configuration (IE) set, i.e. allow all the
  4032. *» connections which do not match the configuration.
  4033. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4034. *» with the specific configuration (IE) set, i.e. deny all the
  4035. *» connections which do not match the configuration.
  4036. */
  4037. enum qca_access_policy {
  4038. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4039. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4040. };
  4041. /**
  4042. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4043. *
  4044. * The valid values for the ignore assoc disallowed
  4045. *
  4046. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4047. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4048. *
  4049. */
  4050. enum qca_ignore_assoc_disallowed {
  4051. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4052. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4053. };
  4054. /* Attributes for data used by
  4055. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4056. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4057. */
  4058. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4059. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4060. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4061. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4062. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4063. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4064. enum qca_wlan_vendor_attr_config {
  4065. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4066. /*
  4067. * Unsigned 32-bit value to set the DTIM period.
  4068. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4069. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4070. * DTIM beacons.
  4071. */
  4072. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4073. /*
  4074. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4075. * used to calculate statistics like average the TSF offset or average
  4076. * number of frame leaked.
  4077. * For instance, upon Beacon frame reception:
  4078. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4079. * For instance, when evaluating leaky APs:
  4080. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4081. */
  4082. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4083. /*
  4084. * Unsigned 32-bit value to configure guard time, i.e., when
  4085. * implementing IEEE power management based on frame control PM bit, how
  4086. * long the driver waits before shutting down the radio and after
  4087. * receiving an ACK frame for a Data frame with PM bit set.
  4088. */
  4089. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4090. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4091. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4092. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4093. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4094. /*
  4095. * Unsigned 32-bit value to configure the number of continuous
  4096. * Beacon Miss which shall be used by the firmware to penalize
  4097. * the RSSI.
  4098. */
  4099. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4100. /*
  4101. * Unsigned 8-bit value to configure the channel avoidance indication
  4102. * behavior. Firmware to send only one indication and ignore duplicate
  4103. * indications when set to avoid multiple Apps wakeups.
  4104. */
  4105. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4106. /*
  4107. * 8-bit unsigned value to configure the maximum TX MPDU for
  4108. * aggregation.
  4109. */
  4110. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4111. /*
  4112. * 8-bit unsigned value to configure the maximum RX MPDU for
  4113. * aggregation.
  4114. */
  4115. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4116. /*
  4117. * 8-bit unsigned value to configure the Non aggregrate/11g sw
  4118. * retry threshold (0 disable, 31 max).
  4119. */
  4120. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4121. /*
  4122. * 8-bit unsigned value to configure the aggregrate sw
  4123. * retry threshold (0 disable, 31 max).
  4124. */
  4125. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4126. /*
  4127. * 8-bit unsigned value to configure the MGMT frame
  4128. * retry threshold (0 disable, 31 max).
  4129. */
  4130. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4131. /*
  4132. * 8-bit unsigned value to configure the CTRL frame
  4133. * retry threshold (0 disable, 31 max).
  4134. */
  4135. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4136. /*
  4137. * 8-bit unsigned value to configure the propagation delay for
  4138. * 2G/5G band (0~63, units in us)
  4139. */
  4140. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4141. /*
  4142. * Unsigned 32-bit value to configure the number of unicast TX fail
  4143. * packet count. The peer is disconnected once this threshold is
  4144. * reached.
  4145. */
  4146. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4147. /*
  4148. * Attribute used to set scan default IEs to the driver.
  4149. *
  4150. * These IEs can be used by scan operations that will be initiated by
  4151. * the driver/firmware.
  4152. *
  4153. * For further scan requests coming to the driver, these IEs should be
  4154. * merged with the IEs received along with scan request coming to the
  4155. * driver. If a particular IE is present in the scan default IEs but not
  4156. * present in the scan request, then that IE should be added to the IEs
  4157. * sent in the Probe Request frames for that scan request.
  4158. */
  4159. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4160. /* Unsigned 32-bit attribute for generic commands */
  4161. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4162. /* Unsigned 32-bit value attribute for generic commands */
  4163. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4164. /* Unsigned 32-bit data attribute for generic command response */
  4165. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4166. /*
  4167. * Unsigned 32-bit length attribute for
  4168. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4169. */
  4170. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4171. /*
  4172. * Unsigned 32-bit flags attribute for
  4173. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4174. */
  4175. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4176. /*
  4177. * Unsigned 32-bit, defining the access policy.
  4178. * See enum qca_access_policy. Used with
  4179. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4180. */
  4181. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4182. /*
  4183. * Sets the list of full set of IEs for which a specific access policy
  4184. * has to be applied. Used along with
  4185. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4186. * Zero length payload can be used to clear this access constraint.
  4187. */
  4188. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4189. /*
  4190. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4191. * corresponding configurations are applied. If the interface index is
  4192. * not specified, the configurations are attributed to the respective
  4193. * wiphy.
  4194. */
  4195. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4196. /*
  4197. * 8-bit unsigned value to trigger QPower:
  4198. * 1-Enable, 0-Disable
  4199. */
  4200. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4201. /*
  4202. * 8-bit unsigned value to configure the driver and below layers to
  4203. * ignore the assoc disallowed set by APs while connecting
  4204. * 1-Ignore, 0-Don't ignore
  4205. */
  4206. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4207. /*
  4208. * 32-bit unsigned value to trigger antenna diversity features:
  4209. * 1-Enable, 0-Disable
  4210. */
  4211. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4212. /* 32-bit unsigned value to configure specific chain antenna */
  4213. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4214. /*
  4215. * 32-bit unsigned value to trigger cycle selftest
  4216. * 1-Enable, 0-Disable
  4217. */
  4218. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4219. /*
  4220. * 32-bit unsigned to configure the cycle time of selftest
  4221. * the unit is micro-second
  4222. */
  4223. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4224. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4225. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4226. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4227. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4228. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4229. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4230. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4231. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4232. /* 6-byte MAC address to point out the specific peer */
  4233. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4234. /* 32-bit unsigned value to set window size for specific peer */
  4235. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4236. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4237. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4238. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4239. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4240. /*
  4241. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4242. * station device while in disconnect state. The attribute use the
  4243. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4244. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4245. * 10 MHz channel width, the station will not connect to a BSS using 20
  4246. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4247. * clear this constraint.
  4248. */
  4249. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4250. /*
  4251. * 32-bit unsigned value to configure the propagation absolute delay
  4252. * for 2G/5G band (units in us)
  4253. */
  4254. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4255. /* 32-bit unsigned value to set probe period */
  4256. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4257. /* 32-bit unsigned value to set stay period */
  4258. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4259. /* 32-bit unsigned value to set snr diff */
  4260. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4261. /* 32-bit unsigned value to set probe dwell time */
  4262. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4263. /* 32-bit unsigned value to set mgmt snr weight */
  4264. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4265. /* 32-bit unsigned value to set data snr weight */
  4266. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4267. /* 32-bit unsigned value to set ack snr weight */
  4268. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4269. /*
  4270. * 32-bit unsigned value to configure the listen interval.
  4271. * This is in units of beacon intervals. This configuration alters
  4272. * the negotiated listen interval with the AP during the connection.
  4273. * It is highly recommended to configure a value less than or equal to
  4274. * the one negotiated during the association. Configuring any greater
  4275. * value can have adverse effects (frame loss, AP disassociating STA,
  4276. * etc.).
  4277. */
  4278. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4279. /*
  4280. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4281. * disable operations that would cause the AP/GO to leave its operating
  4282. * channel.
  4283. *
  4284. * This will restrict the scans to the AP/GO operating channel and the
  4285. * channels of the other band, if DBS is supported.A STA/CLI interface
  4286. * brought up after this setting is enabled, will be restricted to
  4287. * connecting to devices only on the AP/GO interface's operating channel
  4288. * or on the other band in DBS case. P2P supported channel list is
  4289. * modified, to only include AP interface's operating-channel and the
  4290. * channels of the other band if DBS is supported.
  4291. *
  4292. * These restrictions are only applicable as long as the AP/GO interface
  4293. * is alive. If the AP/GO interface is brought down then this
  4294. * setting/restriction is forgotten.
  4295. *
  4296. * If this variable is set on an AP/GO interface while a multi-channel
  4297. * concurrent session is active, it has no effect on the operation of
  4298. * the current interfaces, other than restricting the scan to the AP/GO
  4299. * operating channel and the other band channels if DBS is supported.
  4300. * However, if the STA is brought down and restarted then the new STA
  4301. * connection will either be formed on the AP/GO channel or on the
  4302. * other band in a DBS case. This is because of the scan being
  4303. * restricted on these channels as mentioned above.
  4304. *
  4305. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4306. */
  4307. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4308. /*
  4309. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4310. * on an interface.
  4311. * 1 - Enable , 0 - Disable.
  4312. */
  4313. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4314. /*
  4315. * 8 bit unsigned value to globally enable/disable scan
  4316. * 1 - Enable, 0 - Disable.
  4317. */
  4318. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4319. /* 8-bit unsigned value to set the total beacon miss count */
  4320. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4321. /*
  4322. * Unsigned 32-bit value to configure the number of continuous
  4323. * Beacon Miss which shall be used by the firmware to penalize
  4324. * the RSSI for BTC.
  4325. */
  4326. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4327. /*
  4328. * 8-bit unsigned value to configure the driver and below layers to
  4329. * enable/disable all fils features.
  4330. * 0-enable, 1-disable
  4331. */
  4332. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4333. /* 16-bit unsigned value to configure the level of WLAN latency
  4334. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4335. */
  4336. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4337. /*
  4338. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  4339. * the connect interface. Exclusively used for the scenarios where the
  4340. * device is used as a test bed device with special functionality and
  4341. * not recommended for production. This helps driver to not validate the
  4342. * RSNE passed from user space and thus allow arbitrary IE data to be
  4343. * used for testing purposes.
  4344. * 1-enable, 0-disable.
  4345. * Applications set/reset this configuration. If not reset, this
  4346. * parameter remains in use until the driver is unloaded.
  4347. */
  4348. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  4349. /*
  4350. * 8-bit unsigned value to trigger green Tx power saving.
  4351. * 1-Enable, 0-Disable
  4352. */
  4353. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  4354. /*
  4355. * Attribute to configure disconnect IEs to the driver.
  4356. * This carries an array of unsigned 8-bit characters.
  4357. *
  4358. * If this is configured, driver shall fill the IEs in disassoc/deauth
  4359. * frame.
  4360. * These IEs are expected to be considered only for the next
  4361. * immediate disconnection (disassoc/deauth frame) originated by
  4362. * the DUT, irrespective of the entity (user space/driver/firmware)
  4363. * triggering the disconnection.
  4364. * The host drivers are not expected to use the IEs set through
  4365. * this interface for further disconnections after the first immediate
  4366. * disconnection initiated post the configuration.
  4367. * If the IEs are also updated through cfg80211 interface (after the
  4368. * enhancement to cfg80211_disconnect), host driver is expected to
  4369. * take the union of IEs from both of these interfaces and send in
  4370. * further disassoc/deauth frames.
  4371. */
  4372. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  4373. /* 8-bit unsigned value for ELNA bypass.
  4374. * 1-Enable, 0-Disable
  4375. */
  4376. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  4377. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4378. * to send the Beacon Report response with failure reason for the
  4379. * scenarios where STA cannot honor the Beacon report request from AP.
  4380. * 1-Enable, 0-Disable.
  4381. */
  4382. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  4383. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4384. * to send roam reason information in the reassociation request to the
  4385. * AP. 1-Enable, 0-Disable.
  4386. */
  4387. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  4388. /* 32-bit unsigned value to configure different PHY modes to the
  4389. * driver/firmware. The possible values are defined in
  4390. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  4391. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  4392. * the driver.
  4393. */
  4394. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  4395. /* 8-bit unsigned value to configure the maximum supported channel width
  4396. * for STA mode. If this value is configured when STA is in connected
  4397. * state, it should not exceed the negotiated channel width. If it is
  4398. * configured when STA is in disconnected state, the configured value
  4399. * will take effect for the next immediate connection.
  4400. * Possible values are:
  4401. * NL80211_CHAN_WIDTH_20
  4402. * NL80211_CHAN_WIDTH_40
  4403. * NL80211_CHAN_WIDTH_80
  4404. * NL80211_CHAN_WIDTH_80P80
  4405. * NL80211_CHAN_WIDTH_160
  4406. */
  4407. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  4408. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  4409. * This attribute is only applicable for STA mode. When dynamic
  4410. * bandwidth adjustment is disabled, STA will use static channel width
  4411. * the value of which is negotiated during connection.
  4412. * 1-enable (default), 0-disable
  4413. */
  4414. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  4415. /* 8-bit unsigned value to configure the maximum number of subframes of
  4416. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4417. * it is decided by hardware.
  4418. */
  4419. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  4420. /* 8-bit unsigned value to configure the maximum number of subframes of
  4421. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4422. * it is decided by hardware.
  4423. */
  4424. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  4425. /* 8-bit unsigned value. This attribute is used to dynamically
  4426. * enable/disable the LDPC capability of the device. When configured in
  4427. * the disconnected state, the updated configuration will be considered
  4428. * for the immediately following connection attempt. If this
  4429. * configuration is modified while the device is in the connected state,
  4430. * the LDPC TX will be updated with this configuration immediately,
  4431. * while the LDPC RX configuration update will take place starting from
  4432. * the subsequent association attempt.
  4433. * 1-Enable, 0-Disable.
  4434. */
  4435. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  4436. /* 8-bit unsigned value. This attribute is used to dynamically
  4437. * enable/disable the TX STBC capability of the device. When configured
  4438. * in the disconnected state, the updated configuration will be
  4439. * considered for the immediately following connection attempt. If the
  4440. * connection is formed with TX STBC enabled and if this configuration
  4441. * is disabled during that association, the TX will be impacted
  4442. * immediately. Further connection attempts will disable TX STBC.
  4443. * However, enabling the TX STBC for a connected session with disabled
  4444. * capability is not allowed and will fail.
  4445. * 1-Enable, 0-Disable.
  4446. */
  4447. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  4448. /* 8-bit unsigned value. This attribute is used to dynamically
  4449. * enable/disable the RX STBC capability of the device. When configured
  4450. * in the disconnected state, the updated configuration will be
  4451. * considered for the immediately following connection attempt. If the
  4452. * configuration is modified in the connected state, there will be no
  4453. * impact for the current association, but further connection attempts
  4454. * will use the updated configuration.
  4455. * 1-Enable, 0-Disable.
  4456. */
  4457. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  4458. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4459. * the number of spatial streams. When configured in the disconnected
  4460. * state, the updated configuration will be considered for the
  4461. * immediately following connection attempt. If the NSS is updated after
  4462. * the connection, the updated NSS value is notified to the peer using
  4463. * the Operating Mode Notification/Spatial Multiplexing Power Save
  4464. * frame. The updated NSS value after the connection shall not be
  4465. * greater than the one negotiated during the connection. Any such
  4466. * higher value configuration shall be returned with a failure.
  4467. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  4468. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  4469. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  4470. * configure the asymmetric NSS configuration (such as 1X2).
  4471. */
  4472. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  4473. /*
  4474. * 8-bit unsigned value to trigger Optimized Power Management:
  4475. * 1-Enable, 0-Disable
  4476. */
  4477. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  4478. /* 8-bit unsigned value. This attribute takes the QOS/access category
  4479. * value represented by the enum qca_wlan_ac_type and expects the driver
  4480. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  4481. * is invalid for this attribute. This will override the DSCP value
  4482. * configured in the frame with the intention to only upgrade the QOS.
  4483. * That said, it is not intended to downgrade the QOS for the frames.
  4484. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  4485. * to disable.
  4486. */
  4487. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  4488. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4489. * the number of chains to be used for transmitting data. This
  4490. * configuration is allowed only when in connected state and will be
  4491. * effective until disconnected. The driver rejects this configuration
  4492. * if the number of spatial streams being used in the current connection
  4493. * cannot be supported by this configuration.
  4494. */
  4495. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  4496. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4497. * the number of chains to be used for receiving data. This
  4498. * configuration is allowed only when in connected state and will be
  4499. * effective until disconnected. The driver rejects this configuration
  4500. * if the number of spatial streams being used in the current connection
  4501. * cannot be supported by this configuration.
  4502. */
  4503. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  4504. /* 8-bit unsigned value to configure ANI setting type.
  4505. * See &enum qca_wlan_ani_setting for possible values.
  4506. */
  4507. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  4508. /* 32-bit signed value to configure ANI level. This is used when
  4509. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  4510. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  4511. * is invalid, the driver will return a failure.
  4512. */
  4513. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  4514. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4515. * the number of spatial streams used for transmitting the data. When
  4516. * configured in the disconnected state, the configured value will
  4517. * be considered for the following connection attempt.
  4518. * If the NSS is updated after the connection, the updated NSS value
  4519. * is notified to the peer using the Operating Mode Notification/Spatial
  4520. * Multiplexing Power Save frame.
  4521. * The TX NSS value configured after the connection shall not be greater
  4522. * than the value negotiated during the connection. Any such higher
  4523. * value configuration shall be treated as invalid configuration by
  4524. * the driver. This attribute shall be configured along with
  4525. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  4526. * configuration (such as 2X2 or 1X1) or the asymmetric
  4527. * configuration (such as 1X2).
  4528. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4529. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  4530. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  4531. */
  4532. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  4533. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4534. * the number of spatial streams used for receiving the data. When
  4535. * configured in the disconnected state, the configured value will
  4536. * be considered for the following connection attempt.
  4537. * If the NSS is updated after the connection, the updated NSS value
  4538. * is notified to the peer using the Operating Mode Notification/Spatial
  4539. * Multiplexing Power Save frame.
  4540. * The RX NSS value configured after the connection shall not be greater
  4541. * than the value negotiated during the connection. Any such higher
  4542. * value configuration shall be treated as invalid configuration by
  4543. * the driver. This attribute shall be configured along with
  4544. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  4545. * configuration (such as 2X2 or 1X1) or the asymmetric
  4546. * configuration (such as 1X2).
  4547. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4548. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  4549. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  4550. */
  4551. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  4552. /*
  4553. * 8-bit unsigned value. This attribute, when set, indicates whether the
  4554. * specified interface is the primary STA interface when there are more
  4555. * than one STA interfaces concurrently active.
  4556. *
  4557. * This configuration helps the firmware/hardware to support certain
  4558. * features (e.g., roaming) on this primary interface, if the same
  4559. * cannot be supported on the concurrent STA interfaces simultaneously.
  4560. *
  4561. * This configuration is only applicable for a single STA interface on
  4562. * a device and gives the priority for it only over other concurrent STA
  4563. * interfaces.
  4564. *
  4565. * If the device is a multi wiphy/soc, this configuration applies to a
  4566. * single STA interface across the wiphys.
  4567. *
  4568. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  4569. */
  4570. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  4571. /*
  4572. * 8-bit unsigned value. This attribute can be used to configure the
  4573. * driver to enable/disable FT-over-DS feature. Possible values for
  4574. * this attribute are 1-Enable and 0-Disable.
  4575. */
  4576. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  4577. /* keep last */
  4578. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  4579. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  4580. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  4581. };
  4582. /**
  4583. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  4584. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  4585. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  4586. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  4587. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  4588. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  4589. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  4590. */
  4591. enum qca_wlan_vendor_attr_wifi_logger_start {
  4592. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  4593. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  4594. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  4595. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  4596. /* keep last */
  4597. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  4598. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  4599. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  4600. };
  4601. /*
  4602. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  4603. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  4604. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  4605. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  4606. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  4607. */
  4608. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  4609. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  4610. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  4611. /* keep last */
  4612. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  4613. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  4614. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  4615. };
  4616. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  4617. /**
  4618. * enum wlan_offloaded_packets_control - control commands
  4619. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  4620. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  4621. *
  4622. */
  4623. enum wlan_offloaded_packets_control {
  4624. WLAN_START_OFFLOADED_PACKETS = 1,
  4625. WLAN_STOP_OFFLOADED_PACKETS = 2
  4626. };
  4627. /**
  4628. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  4629. *
  4630. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  4631. * the offloaded data.
  4632. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  4633. * data.
  4634. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  4635. * indication.
  4636. */
  4637. enum qca_wlan_vendor_attr_data_offload_ind {
  4638. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  4639. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  4640. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  4641. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  4642. /* keep last */
  4643. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  4644. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  4645. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  4646. };
  4647. /**
  4648. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  4649. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  4650. */
  4651. enum qca_wlan_vendor_attr_offloaded_packets {
  4652. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  4653. /* Takes valid value from the enum
  4654. * qca_wlan_offloaded_packets_sending_control
  4655. * Unsigned 32-bit value
  4656. */
  4657. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  4658. /* Unsigned 32-bit value */
  4659. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  4660. /* array of u8 len: Max packet size */
  4661. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  4662. /* 6-byte MAC address used to represent source MAC address */
  4663. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  4664. /* 6-byte MAC address used to represent destination MAC address */
  4665. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  4666. /* Unsigned 32-bit value, in milli seconds */
  4667. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  4668. /* This optional unsigned 16-bit attribute is used for specifying
  4669. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  4670. */
  4671. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  4672. /* keep last */
  4673. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  4674. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  4675. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  4676. };
  4677. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  4678. /**
  4679. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  4680. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  4681. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  4682. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  4683. */
  4684. enum qca_wlan_rssi_monitoring_control {
  4685. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  4686. QCA_WLAN_RSSI_MONITORING_START,
  4687. QCA_WLAN_RSSI_MONITORING_STOP,
  4688. };
  4689. /**
  4690. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  4691. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  4692. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  4693. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  4694. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  4695. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  4696. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  4697. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  4698. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  4699. */
  4700. enum qca_wlan_vendor_attr_rssi_monitoring {
  4701. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  4702. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  4703. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  4704. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  4705. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  4706. /* attributes to be used/received in callback */
  4707. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  4708. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  4709. /* keep last */
  4710. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  4711. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  4712. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  4713. };
  4714. /**
  4715. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  4716. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  4717. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  4718. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  4719. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  4720. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
  4721. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  4722. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  4723. * address
  4724. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  4725. * created
  4726. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  4727. * NCS_SK_TYPE/PMK/SCID instead
  4728. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  4729. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  4730. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  4731. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  4732. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  4733. * code: accept/reject
  4734. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  4735. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  4736. * driver
  4737. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  4738. * driver
  4739. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  4740. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  4741. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  4742. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  4743. * PMKID
  4744. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  4745. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  4746. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  4747. * update:
  4748. * BIT_0: NSS Update
  4749. * BIT_1: Channel list update
  4750. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  4751. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  4752. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  4753. * 0:20 MHz,
  4754. * 1:40 MHz,
  4755. * 2:80 MHz,
  4756. * 3:160 MHz
  4757. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  4758. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  4759. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  4760. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  4761. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  4762. * transport port used by NDP.
  4763. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  4764. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  4765. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  4766. */
  4767. enum qca_wlan_vendor_attr_ndp_params {
  4768. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  4769. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  4770. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  4771. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  4772. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  4773. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  4774. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  4775. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  4776. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  4777. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  4778. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  4779. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  4780. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  4781. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  4782. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  4783. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  4784. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  4785. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  4786. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  4787. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  4788. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  4789. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  4790. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  4791. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  4792. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  4793. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  4794. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  4795. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  4796. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  4797. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  4798. /* keep last */
  4799. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  4800. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  4801. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  4802. };
  4803. /**
  4804. * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
  4805. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  4806. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  4807. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: create a ndi
  4808. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: delete a ndi
  4809. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST: initiate a ndp session
  4810. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  4811. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  4812. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  4813. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  4814. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  4815. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  4816. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  4817. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  4818. * being received
  4819. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  4820. * update
  4821. */
  4822. enum qca_wlan_ndp_sub_cmd {
  4823. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  4824. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  4825. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  4826. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  4827. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  4828. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  4829. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  4830. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  4831. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  4832. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  4833. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  4834. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  4835. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  4836. };
  4837. /**
  4838. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  4839. * information. These attributes are sent as part of
  4840. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  4841. * attributes correspond to a single channel.
  4842. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  4843. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  4844. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  4845. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  4846. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  4847. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  4848. * regulatory transmission power
  4849. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  4850. * transmission power
  4851. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  4852. * transmission power
  4853. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  4854. * class id
  4855. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  4856. * antenna gain in dbm
  4857. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  4858. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  4859. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  4860. * segment 0 in center freq in MHz.
  4861. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  4862. * segment 1 in center freq in MHz.
  4863. *
  4864. */
  4865. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  4866. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  4867. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  4868. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  4869. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  4870. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  4871. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  4872. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  4873. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  4874. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  4875. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  4876. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  4877. /*
  4878. * A bitmask (u32) with flags specified in
  4879. * enum qca_wlan_vendor_channel_prop_flags_2.
  4880. */
  4881. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  4882. /*
  4883. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  4884. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  4885. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  4886. * along with
  4887. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  4888. *
  4889. * If both the driver and user-space application supports the 6 GHz
  4890. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  4891. * is deprecated and
  4892. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  4893. * should be used.
  4894. *
  4895. * To maintain backward compatibility,
  4896. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  4897. * is still used if either of the driver or user space application
  4898. * doesn't support the 6 GHz band.
  4899. */
  4900. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
  4901. /*
  4902. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  4903. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  4904. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  4905. * along with
  4906. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  4907. *
  4908. * If both the driver and user-space application supports the 6 GHz
  4909. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  4910. * is deprecated and
  4911. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  4912. * should be considered.
  4913. *
  4914. * To maintain backward compatibility,
  4915. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  4916. * is still used if either of the driver or user space application
  4917. * doesn't support the 6 GHz band.
  4918. */
  4919. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
  4920. /* keep last */
  4921. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  4922. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  4923. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  4924. };
  4925. /**
  4926. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  4927. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  4928. * driver.
  4929. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  4930. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  4931. * ACS need to be started
  4932. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  4933. * driver supports spectral scanning or not
  4934. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  4935. * offloaded to firmware.
  4936. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  4937. * provides additional channel capability as part of scan operation.
  4938. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  4939. * interface status is UP
  4940. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  4941. * interface. It takes one of nl80211_iftype values.
  4942. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  4943. * of chan width. ACS logic should try to get a channel with specified width
  4944. * if not found then look for lower values.
  4945. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  4946. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  4947. * a/b/g/n/ac.
  4948. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  4949. * among which ACS should choose best frequency.
  4950. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  4951. * driver which will have <channel(u8), weight(u8)> format as array of
  4952. * nested values.
  4953. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  4954. * for each channel. It takes attr as defined in
  4955. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  4956. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  4957. * qca_wlan_vendor_attr_external_acs_policy.
  4958. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  4959. * Operating Parameter (RROP) availability information (u16). It uses values
  4960. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  4961. */
  4962. enum qca_wlan_vendor_attr_external_acs_event {
  4963. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  4964. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  4965. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  4966. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  4967. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  4968. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  4969. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  4970. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  4971. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  4972. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  4973. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  4974. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  4975. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  4976. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  4977. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  4978. /* keep last */
  4979. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  4980. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  4981. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  4982. };
  4983. enum qca_iface_type {
  4984. QCA_IFACE_TYPE_STA,
  4985. QCA_IFACE_TYPE_AP,
  4986. QCA_IFACE_TYPE_P2P_CLIENT,
  4987. QCA_IFACE_TYPE_P2P_GO,
  4988. QCA_IFACE_TYPE_IBSS,
  4989. QCA_IFACE_TYPE_TDLS,
  4990. };
  4991. /**
  4992. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  4993. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  4994. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  4995. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  4996. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  4997. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  4998. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  4999. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  5000. */
  5001. enum qca_wlan_vendor_attr_pcl_config {
  5002. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  5003. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  5004. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  5005. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  5006. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  5007. };
  5008. enum qca_set_band {
  5009. QCA_SETBAND_AUTO = 0,
  5010. QCA_SETBAND_5G = BIT(0),
  5011. QCA_SETBAND_2G = BIT(1),
  5012. QCA_SETBAND_6G = BIT(2),
  5013. };
  5014. /**
  5015. * enum set_reset_packet_filter - set packet filter control commands
  5016. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  5017. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  5018. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  5019. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  5020. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  5021. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  5022. */
  5023. enum set_reset_packet_filter {
  5024. QCA_WLAN_SET_PACKET_FILTER = 1,
  5025. QCA_WLAN_GET_PACKET_FILTER = 2,
  5026. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  5027. QCA_WLAN_READ_PACKET_FILTER = 4,
  5028. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  5029. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  5030. };
  5031. /**
  5032. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  5033. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  5034. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  5035. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  5036. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  5037. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  5038. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  5039. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  5040. * section in packet filter buffer
  5041. */
  5042. enum qca_wlan_vendor_attr_packet_filter {
  5043. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  5044. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  5045. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  5046. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  5047. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  5048. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  5049. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  5050. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  5051. /* keep last */
  5052. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  5053. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  5054. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  5055. };
  5056. /**
  5057. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  5058. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  5059. */
  5060. enum qca_wlan_vendor_attr_wake_stats {
  5061. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  5062. /* Unsigned 32-bit value indicating the total count of wake event */
  5063. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  5064. /* Array of individual wake count, each index representing wake reason
  5065. */
  5066. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  5067. /* Unsigned 32-bit value representing wake count array */
  5068. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  5069. /* Unsigned 32-bit total wake count value of driver/fw */
  5070. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  5071. /* Array of wake stats of driver/fw */
  5072. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  5073. /* Unsigned 32-bit total wake count value of driver/fw */
  5074. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  5075. /* Unsigned 32-bit total wake count value of packets received */
  5076. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  5077. /* Unsigned 32-bit wake count value unicast packets received */
  5078. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  5079. /* Unsigned 32-bit wake count value multicast packets received */
  5080. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  5081. /* Unsigned 32-bit wake count value broadcast packets received */
  5082. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  5083. /* Unsigned 32-bit wake count value of ICMP packets */
  5084. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  5085. /* Unsigned 32-bit wake count value of ICMP6 packets */
  5086. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  5087. /* Unsigned 32-bit value ICMP6 router advertisement */
  5088. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  5089. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  5090. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  5091. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  5092. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  5093. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  5094. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  5095. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  5096. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  5097. /* Unsigned 32-bit wake count value of receive side multicast */
  5098. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  5099. /* Unsigned 32-bit wake count value of a given RSSI breach */
  5100. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  5101. /* Unsigned 32-bit wake count value of low RSSI */
  5102. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  5103. /* Unsigned 32-bit value GSCAN count */
  5104. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  5105. /* Unsigned 32-bit value PNO complete count */
  5106. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  5107. /* Unsigned 32-bit value PNO match count */
  5108. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  5109. /* keep last */
  5110. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  5111. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  5112. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  5113. };
  5114. /**
  5115. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  5116. * configured by userspace to the driver/firmware. The values will be
  5117. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  5118. * The driver/firmware takes necessary actions requested by userspace
  5119. * such as throttling wifi tx etc. in order to mitigate high temperature.
  5120. *
  5121. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  5122. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  5123. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  5124. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  5125. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  5126. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  5127. */
  5128. enum qca_wlan_vendor_thermal_level {
  5129. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  5130. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  5131. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  5132. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  5133. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  5134. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  5135. };
  5136. /**
  5137. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  5138. * cmd value. Used for NL attributes for data used by
  5139. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5140. */
  5141. enum qca_wlan_vendor_attr_thermal_cmd {
  5142. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  5143. /* The value of command, driver will implement different operations
  5144. * according to this value. It uses values defined in
  5145. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  5146. * u32 attribute.
  5147. */
  5148. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  5149. /* Userspace uses this attribute to configure thermal level to the
  5150. * driver/firmware, or get thermal level from the driver/firmware.
  5151. * Used in request or response, u32 attribute,
  5152. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  5153. */
  5154. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  5155. /* Userspace uses this attribute to configure the time in which the
  5156. * driver/firmware should complete applying settings it received from
  5157. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  5158. * command type. Used in request, u32 attribute, value is in
  5159. * milliseconds. A value of zero indicates to apply the settings
  5160. * immediately. The driver/firmware can delay applying the configured
  5161. * thermal settings within the time specified in this attribute if
  5162. * there is any critical ongoing operation.
  5163. */
  5164. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  5165. /* Nested attribute, driver/firmware uses this attribute to report
  5166. * thermal stats of different thermal levels to userspace when requested
  5167. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  5168. * type. This attribute contains nested array of records of thermal
  5169. * statistics of multiple levels. The attributes used inside this nested
  5170. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  5171. */
  5172. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  5173. /* keep last */
  5174. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  5175. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  5176. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  5177. };
  5178. /**
  5179. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  5180. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  5181. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  5182. * thermal command types sent to driver.
  5183. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  5184. * get thermal shutdown configuration parameters for display. Parameters
  5185. * responded from driver are defined in
  5186. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  5187. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  5188. * get temperature. Host should respond with a temperature data. It is defined
  5189. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  5190. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  5191. * suspend action.
  5192. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  5193. * resume action.
  5194. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  5195. * the driver/firmware.
  5196. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  5197. * thermal level from the driver/firmware. The driver should respond with a
  5198. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  5199. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  5200. * current thermal stats from the driver/firmware. The driver should respond
  5201. * with stats of all thermal levels encapsulated in attribute
  5202. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  5203. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  5204. * the current thermal stats all thermal levels maintained in the
  5205. * driver/firmware and start counting from zero again.
  5206. */
  5207. enum qca_wlan_vendor_attr_thermal_cmd_type {
  5208. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  5209. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  5210. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  5211. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  5212. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  5213. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  5214. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  5215. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  5216. };
  5217. /**
  5218. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  5219. * to get chip temperature by user.
  5220. * enum values are used for NL attributes for data used by
  5221. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  5222. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5223. */
  5224. enum qca_wlan_vendor_attr_thermal_get_temperature {
  5225. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  5226. /* Temperature value (degree Celsius) from driver.
  5227. * u32 attribute.
  5228. */
  5229. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  5230. /* keep last */
  5231. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  5232. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  5233. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  5234. };
  5235. /**
  5236. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  5237. * report thermal events from driver to user space.
  5238. * enum values are used for NL attributes for data used by
  5239. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  5240. */
  5241. enum qca_wlan_vendor_attr_thermal_event {
  5242. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  5243. /* Temperature value (degree Celsius) from driver.
  5244. * u32 attribute.
  5245. */
  5246. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  5247. /* Indication of resume completion from power save mode.
  5248. * NLA_FLAG attribute.
  5249. */
  5250. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  5251. /* Thermal level from the driver.
  5252. * u32 attribute. Possible values are defined in
  5253. * enum qca_wlan_vendor_thermal_level.
  5254. */
  5255. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  5256. /* keep last */
  5257. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  5258. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  5259. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  5260. };
  5261. /**
  5262. * enum qca_vendor_element_id - QCA Vendor Specific element types
  5263. *
  5264. * These values are used to identify QCA Vendor Specific elements. The
  5265. * payload of the element starts with the three octet OUI (OUI_QCA) and
  5266. * is followed by a single octet type which is defined by this enum.
  5267. *
  5268. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  5269. * This element can be used to specify preference order for supported
  5270. * channels. The channels in this list are in preference order (the first
  5271. * one has the highest preference) and are described as a pair of
  5272. * (global) Operating Class and Channel Number (each one octet) fields.
  5273. *
  5274. * This extends the standard P2P functionality by providing option to have
  5275. * more than one preferred operating channel. When this element is present,
  5276. * it replaces the preference indicated in the Operating Channel attribute.
  5277. * For supporting other implementations, the Operating Channel attribute is
  5278. * expected to be used with the highest preference channel. Similarly, all
  5279. * the channels included in this Preferred channel list element are
  5280. * expected to be included in the Channel List attribute.
  5281. *
  5282. * This vendor element may be included in GO Negotiation Request, P2P
  5283. * Invitation Request, and Provision Discovery Request frames.
  5284. *
  5285. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  5286. * This element can be used for pre-standard publication testing of HE
  5287. * before P802.11ax draft assigns the element ID. The payload of this
  5288. * vendor specific element is defined by the latest P802.11ax draft.
  5289. * Please note that the draft is still work in progress and this element
  5290. * payload is subject to change.
  5291. *
  5292. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  5293. * This element can be used for pre-standard publication testing of HE
  5294. * before P802.11ax draft assigns the element ID. The payload of this
  5295. * vendor specific element is defined by the latest P802.11ax draft.
  5296. * Please note that the draft is still work in progress and this element
  5297. * payload is subject to change.
  5298. *
  5299. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  5300. * element).
  5301. * This element can be used for pre-standard publication testing of HE
  5302. * before P802.11ax draft assigns the element ID extension. The payload of
  5303. * this vendor specific element is defined by the latest P802.11ax draft
  5304. * (not including the Element ID Extension field). Please note that the
  5305. * draft is still work in progress and this element payload is subject to
  5306. * change.
  5307. *
  5308. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  5309. * This element can be used for pre-standard publication testing of HE
  5310. * before P802.11ax draft assigns the element ID extension. The payload of
  5311. * this vendor specific element is defined by the latest P802.11ax draft
  5312. * (not including the Element ID Extension field). Please note that the
  5313. * draft is still work in progress and this element payload is subject to
  5314. * change.
  5315. *
  5316. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  5317. * This element can be used for pre-standard publication testing of HE
  5318. * before P802.11ax draft assigns the element ID extension. The payload of
  5319. * this vendor specific element is defined by the latest P802.11ax draft
  5320. * (not including the Element ID Extension field). Please note that the
  5321. * draft is still work in progress and this element payload is subject to
  5322. * change.
  5323. */
  5324. enum qca_vendor_element_id {
  5325. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  5326. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  5327. QCA_VENDOR_ELEM_HE_OPER = 2,
  5328. QCA_VENDOR_ELEM_RAPS = 3,
  5329. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  5330. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  5331. };
  5332. /**
  5333. * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
  5334. * @QCA_WLAN_VENDOR_ATTR_TSF_INVALID: Invalid attribute value
  5335. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
  5336. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
  5337. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
  5338. * SOC timer value at TSF capture
  5339. * @QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST: after last
  5340. * @QCA_WLAN_VENDOR_ATTR_TSF_MAX: Max value
  5341. */
  5342. enum qca_vendor_attr_tsf_cmd {
  5343. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  5344. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  5345. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  5346. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  5347. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  5348. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  5349. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  5350. };
  5351. /**
  5352. * enum qca_tsf_operation: TSF driver commands
  5353. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  5354. * @QCA_TSF_GET: Get TSF capture value
  5355. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  5356. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  5357. * will automatically send TSF report to the host. To query
  5358. * QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  5359. * initiated first.
  5360. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  5361. * will not automatically send TSF report to the host. If
  5362. * QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  5363. * QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  5364. * operation needs to be initiated.
  5365. */
  5366. enum qca_tsf_cmd {
  5367. QCA_TSF_CAPTURE,
  5368. QCA_TSF_GET,
  5369. QCA_TSF_SYNC_GET,
  5370. QCA_TSF_AUTO_REPORT_ENABLE,
  5371. QCA_TSF_AUTO_REPORT_DISABLE,
  5372. };
  5373. /**
  5374. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  5375. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  5376. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  5377. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  5378. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  5379. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  5380. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  5381. */
  5382. enum qca_vendor_attr_get_preferred_freq_list {
  5383. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  5384. /* A 32-unsigned value; the interface type/mode for which the preferred
  5385. * frequency list is requested (see enum qca_iface_type for possible
  5386. * values); used in both south- and north-bound.
  5387. */
  5388. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  5389. /* An array of 32-unsigned values; values are frequency (MHz); used
  5390. * in north-bound only.
  5391. */
  5392. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  5393. /* An array of nested values as per enum
  5394. * qca_wlan_vendor_attr_pcl_config attribute.
  5395. * Each element contains frequency (MHz), weight, and flag
  5396. * bit mask indicating how the frequency should be used in P2P
  5397. * negotiation.
  5398. */
  5399. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  5400. /* keep last */
  5401. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  5402. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  5403. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  5404. };
  5405. /**
  5406. * enum qca_vendor_attr_probable_oper_channel - channel hint
  5407. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  5408. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  5409. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  5410. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  5411. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  5412. */
  5413. enum qca_vendor_attr_probable_oper_channel {
  5414. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  5415. /* 32-bit unsigned value; indicates the connection/iface type likely to
  5416. * come on this channel (see enum qca_iface_type).
  5417. */
  5418. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  5419. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  5420. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  5421. /* keep last */
  5422. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  5423. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  5424. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  5425. };
  5426. /**
  5427. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  5428. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  5429. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  5430. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  5431. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  5432. */
  5433. enum qca_wlan_vendor_attr_gw_param_config {
  5434. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  5435. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  5436. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  5437. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  5438. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  5439. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  5440. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  5441. };
  5442. /**
  5443. * enum drv_dbs_capability - DBS capability
  5444. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  5445. * @DRV_DBS_CAPABILITY_1X1: 1x1
  5446. * @DRV_DBS_CAPABILITY_2X2: 2x2
  5447. */
  5448. enum drv_dbs_capability {
  5449. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  5450. DRV_DBS_CAPABILITY_1X1,
  5451. DRV_DBS_CAPABILITY_2X2,
  5452. };
  5453. /**
  5454. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  5455. *
  5456. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  5457. */
  5458. enum qca_vendor_attr_txpower_decr_db {
  5459. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  5460. /*
  5461. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  5462. * a virtual interface.
  5463. */
  5464. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  5465. /* keep last */
  5466. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  5467. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  5468. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  5469. };
  5470. /**
  5471. * enum qca_vendor_attr_ota_test - Enable OTA test
  5472. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  5473. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  5474. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  5475. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  5476. */
  5477. enum qca_vendor_attr_ota_test {
  5478. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  5479. /* 8-bit unsigned value to indicate if OTA test is enabled */
  5480. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  5481. /* keep last */
  5482. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  5483. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  5484. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  5485. };
  5486. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  5487. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  5488. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  5489. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  5490. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  5491. */
  5492. enum qca_vendor_attr_txpower_scale {
  5493. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  5494. /* 8-bit unsigned value to indicate the scaling of tx power */
  5495. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  5496. /* keep last */
  5497. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  5498. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  5499. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  5500. };
  5501. /**
  5502. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  5503. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  5504. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  5505. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  5506. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  5507. */
  5508. enum qca_vendor_attr_txpower_scale_decr_db {
  5509. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  5510. /* 8-bit unsigned value to indicate the scaling of tx power */
  5511. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  5512. /* keep last */
  5513. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  5514. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  5515. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  5516. };
  5517. /**
  5518. * enum dfs_mode - state of DFS mode
  5519. * @DFS_MODE_NONE: DFS mode attribute is none
  5520. * @DFS_MODE_ENABLE: DFS mode is enabled
  5521. * @DFS_MODE_DISABLE: DFS mode is disabled
  5522. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  5523. */
  5524. enum dfs_mode {
  5525. DFS_MODE_NONE,
  5526. DFS_MODE_ENABLE,
  5527. DFS_MODE_DISABLE,
  5528. DFS_MODE_DEPRIORITIZE
  5529. };
  5530. /**
  5531. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  5532. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  5533. *
  5534. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  5535. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  5536. *
  5537. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  5538. * channel number hint for ACS operation, if valid channel is specified then
  5539. * ACS operation gives priority to this channel.
  5540. * Note: If both the driver and user space application supports the 6 GHz band,
  5541. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  5542. * should be used.
  5543. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  5544. * is still used if either of the driver or user space application doesn't
  5545. * support the 6 GHz band.
  5546. *
  5547. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  5548. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  5549. * frequency is specified, ACS operation gives priority to this channel.
  5550. */
  5551. enum qca_wlan_vendor_attr_acs_config {
  5552. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  5553. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  5554. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  5555. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  5556. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  5557. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  5558. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  5559. };
  5560. /**
  5561. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  5562. */
  5563. enum qca_wlan_vendor_attr_get_hw_capability {
  5564. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  5565. /*
  5566. * Antenna isolation
  5567. * An attribute used in the response.
  5568. * The content of this attribute is encoded in a byte array. Each byte
  5569. * value is an antenna isolation value. The array length is the number
  5570. * of antennas.
  5571. */
  5572. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  5573. /*
  5574. * Request HW capability
  5575. * An attribute used in the request.
  5576. * The content of this attribute is a u32 array for one or more of
  5577. * hardware capabilities (attribute IDs) that are being requested. Each
  5578. * u32 value has a value from this
  5579. * enum qca_wlan_vendor_attr_get_hw_capability
  5580. * identifying which capabilities are requested.
  5581. */
  5582. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  5583. /* keep last */
  5584. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  5585. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  5586. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  5587. };
  5588. /**
  5589. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  5590. * config params for sta roam policy
  5591. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  5592. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  5593. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  5594. * If sta should skip unsafe channels or not in scanning
  5595. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  5596. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  5597. */
  5598. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  5599. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  5600. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  5601. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  5602. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  5603. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  5604. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  5605. };
  5606. /* Attributes for FTM commands and events */
  5607. /**
  5608. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  5609. *
  5610. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  5611. * enum qca_wlan_vendor_attr_loc_capa_flags.
  5612. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  5613. * of measurement sessions that can run concurrently.
  5614. * Default is one session (no session concurrency).
  5615. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  5616. * peers that are supported in running sessions. For example,
  5617. * if the value is 8 and maximum number of sessions is 2, you can
  5618. * have one session with 8 unique peers, or 2 sessions with 4 unique
  5619. * peers each, and so on.
  5620. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  5621. * of bursts per peer, as an exponent (2^value). Default is 0,
  5622. * meaning no multi-burst support.
  5623. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  5624. * of measurement exchanges allowed in a single burst.
  5625. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  5626. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  5627. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  5628. */
  5629. enum qca_wlan_vendor_attr_loc_capa {
  5630. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  5631. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  5632. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  5633. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  5634. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  5635. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  5636. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  5637. /* keep last */
  5638. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  5639. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  5640. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  5641. };
  5642. /**
  5643. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  5644. *
  5645. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  5646. * can be configured as an FTM responder (for example, an AP that
  5647. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  5648. * will be supported if set.
  5649. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  5650. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  5651. * will be supported if set.
  5652. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  5653. * supports immediate (ASAP) response.
  5654. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  5655. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  5656. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  5657. * requesting AOA measurements as part of an FTM session.
  5658. */
  5659. enum qca_wlan_vendor_attr_loc_capa_flags {
  5660. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  5661. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  5662. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  5663. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  5664. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  5665. };
  5666. /**
  5667. * enum qca_wlan_ani_setting - ANI setting type
  5668. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  5669. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  5670. */
  5671. enum qca_wlan_ani_setting {
  5672. QCA_WLAN_ANI_SETTING_AUTO = 0,
  5673. QCA_WLAN_ANI_SETTING_FIXED = 1,
  5674. };
  5675. /**
  5676. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  5677. *
  5678. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  5679. * Channel number on which Access Point should restart.
  5680. * Note: If both the driver and user space application supports the 6 GHz band,
  5681. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  5682. * should be used.
  5683. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  5684. * is still used if either of the driver or user space application doesn't
  5685. * support the 6 GHz band.
  5686. *
  5687. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  5688. * Nested attribute to hold list of center frequencies on which AP is
  5689. * expected to operate. This is irrespective of ACS configuration.
  5690. * This list is a priority based one and is looked for before the AP is
  5691. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  5692. * co-exist in the system.
  5693. *
  5694. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  5695. * Channel center frequency (MHz) on which the access point should restart.
  5696. */
  5697. enum qca_wlan_vendor_attr_sap_config {
  5698. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  5699. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  5700. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  5701. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  5702. /* Keep last */
  5703. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  5704. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  5705. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  5706. };
  5707. /**
  5708. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  5709. * a single peer in a measurement session.
  5710. *
  5711. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  5712. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  5713. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  5714. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  5715. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  5716. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  5717. * list of supported attributes.
  5718. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  5719. * secure measurement.
  5720. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  5721. * measurement every <value> bursts. If 0 or not specified,
  5722. * AOA measurements will be disabled for this peer.
  5723. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  5724. * the measurement frames are exchanged. Optional; if not
  5725. * specified, try to locate the peer in the kernel scan
  5726. * results cache and use frequency from there.
  5727. */
  5728. enum qca_wlan_vendor_attr_ftm_peer_info {
  5729. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  5730. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  5731. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  5732. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  5733. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  5734. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  5735. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  5736. /* keep last */
  5737. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  5738. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  5739. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  5740. };
  5741. /**
  5742. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  5743. * per-peer
  5744. *
  5745. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  5746. * immediate (ASAP) response from peer.
  5747. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  5748. * LCI report from peer. The LCI report includes the absolute
  5749. * location of the peer in "official" coordinates (similar to GPS).
  5750. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  5751. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  5752. * Location civic report from peer. The LCR includes the location
  5753. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  5754. * 11.24.6.7 for more information.
  5755. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  5756. * request a secure measurement.
  5757. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  5758. */
  5759. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  5760. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  5761. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  5762. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  5763. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  5764. };
  5765. /**
  5766. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  5767. *
  5768. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  5769. * to perform in a single burst.
  5770. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  5771. * perform, specified as an exponent (2^value).
  5772. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  5773. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  5774. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  5775. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  5776. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  5777. */
  5778. enum qca_wlan_vendor_attr_ftm_meas_param {
  5779. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  5780. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  5781. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  5782. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  5783. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  5784. /* keep last */
  5785. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  5786. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  5787. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  5788. };
  5789. /**
  5790. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  5791. *
  5792. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  5793. * peer.
  5794. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  5795. * request for this peer.
  5796. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  5797. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  5798. * to measurement results for this peer.
  5799. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  5800. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  5801. * request failed and peer requested not to send an additional request
  5802. * for this number of seconds.
  5803. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  5804. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  5805. * 9.4.2.22.10.
  5806. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  5807. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  5808. * 9.4.2.22.13.
  5809. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  5810. * overridden some measurement request parameters. See
  5811. * enum qca_wlan_vendor_attr_ftm_meas_param.
  5812. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  5813. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  5814. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  5815. * results. Each entry is a nested attribute defined
  5816. * by enum qca_wlan_vendor_attr_ftm_meas.
  5817. */
  5818. enum qca_wlan_vendor_attr_ftm_peer_result {
  5819. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  5820. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  5821. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  5822. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  5823. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  5824. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  5825. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  5826. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  5827. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  5828. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  5829. /* keep last */
  5830. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  5831. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  5832. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  5833. };
  5834. /**
  5835. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  5836. *
  5837. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  5838. * will be provided. Peer may have overridden some measurement parameters,
  5839. * in which case overridden parameters will be report by
  5840. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  5841. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  5842. * of performing the measurement request. No more results will be sent
  5843. * for this peer in this session.
  5844. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  5845. * failed, and requested not to send an additional request for number
  5846. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  5847. * attribute.
  5848. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  5849. * failed. Request was not sent over the air.
  5850. */
  5851. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  5852. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  5853. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  5854. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  5855. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  5856. };
  5857. /**
  5858. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  5859. * for measurement result, per-peer
  5860. *
  5861. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  5862. * measurement completed for this peer. No more results will be reported
  5863. * for this peer in this session.
  5864. */
  5865. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  5866. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  5867. };
  5868. /**
  5869. * enum qca_vendor_attr_loc_session_status: Session completion status code
  5870. *
  5871. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  5872. * successfully.
  5873. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  5874. * by request.
  5875. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  5876. * was invalid and was not started.
  5877. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  5878. * and did not complete normally (for example out of resources).
  5879. */
  5880. enum qca_vendor_attr_loc_session_status {
  5881. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  5882. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  5883. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  5884. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  5885. };
  5886. /**
  5887. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  5888. *
  5889. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  5890. * recorded by responder, in picoseconds.
  5891. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  5892. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  5893. * initiator, in picoseconds.
  5894. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  5895. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  5896. * initiator, in picoseconds.
  5897. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  5898. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  5899. * responder, in picoseconds.
  5900. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  5901. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  5902. * during this measurement exchange. Optional and will be provided if
  5903. * the hardware can measure it.
  5904. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  5905. * responder. Not always provided.
  5906. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  5907. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  5908. * responder. Not always provided.
  5909. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  5910. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  5911. * initiator. Not always provided.
  5912. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  5913. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  5914. * initiator. Not always provided.
  5915. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  5916. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  5917. */
  5918. enum qca_wlan_vendor_attr_ftm_meas {
  5919. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  5920. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  5921. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  5922. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  5923. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  5924. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  5925. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  5926. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  5927. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  5928. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  5929. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  5930. /* keep last */
  5931. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  5932. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  5933. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  5934. };
  5935. /**
  5936. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  5937. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  5938. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  5939. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  5940. * of the social channels.
  5941. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  5942. * A 32-bit unsigned value; the P2P listen offload period (ms).
  5943. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  5944. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  5945. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  5946. * A 32-bit unsigned value; number of interval times the Firmware needs
  5947. * to run the offloaded P2P listen operation before it stops.
  5948. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  5949. * An array of unsigned 8-bit characters; vendor information elements.
  5950. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  5951. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  5952. * A 32-bit unsigned value; a control flag to indicate whether listen
  5953. * results need to be flushed to wpa_supplicant.
  5954. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  5955. * A 8-bit unsigned value; reason code for P2P listen offload stop
  5956. * event.
  5957. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  5958. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  5959. */
  5960. enum qca_wlan_vendor_attr_p2p_listen_offload {
  5961. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  5962. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  5963. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  5964. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  5965. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  5966. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  5967. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  5968. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  5969. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  5970. /* keep last */
  5971. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  5972. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  5973. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  5974. };
  5975. /**
  5976. * enum qca_wlan_vendor_drv_info - WLAN driver info
  5977. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  5978. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  5979. * between Firmware & Host.
  5980. */
  5981. enum qca_wlan_vendor_drv_info {
  5982. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  5983. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  5984. /* keep last */
  5985. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  5986. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  5987. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  5988. };
  5989. /**
  5990. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  5991. *
  5992. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  5993. * CIR (channel impulse response) path for each antenna.
  5994. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  5995. * of the strongest CIR path for each antenna.
  5996. */
  5997. enum qca_wlan_vendor_attr_aoa_type {
  5998. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  5999. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  6000. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  6001. };
  6002. /**
  6003. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  6004. * validate encryption engine
  6005. *
  6006. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  6007. * This will be included if the request is for decryption; if not included,
  6008. * the request is treated as a request for encryption by default.
  6009. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  6010. * indicating the key cipher suite. Takes same values as
  6011. * NL80211_ATTR_KEY_CIPHER.
  6012. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  6013. * Key Id to be used for encryption
  6014. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  6015. * Key (TK) to be used for encryption/decryption
  6016. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  6017. * Packet number to be specified for encryption/decryption
  6018. * 6 bytes for TKIP/CCMP/GCMP.
  6019. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  6020. * representing the 802.11 packet (header + payload + FCS) that
  6021. * needs to be encrypted/decrypted.
  6022. * Encrypted/decrypted response from the driver will also be sent
  6023. * to userspace with the same attribute.
  6024. */
  6025. enum qca_wlan_vendor_attr_encryption_test {
  6026. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  6027. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  6028. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  6029. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  6030. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  6031. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  6032. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  6033. /* keep last */
  6034. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  6035. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  6036. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  6037. };
  6038. /**
  6039. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  6040. * sector for DMG RF sector operations.
  6041. *
  6042. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  6043. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  6044. */
  6045. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  6046. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  6047. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  6048. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  6049. };
  6050. /**
  6051. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  6052. *
  6053. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  6054. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  6055. */
  6056. enum qca_wlan_vendor_attr_fw_state {
  6057. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  6058. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  6059. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  6060. };
  6061. /**
  6062. * BRP antenna limit mode
  6063. *
  6064. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  6065. * antenna limit, BRP will be performed as usual.
  6066. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  6067. * antennas limit. the hardware may use less antennas than the
  6068. * maximum limit.
  6069. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  6070. * use exactly the specified number of antennas for BRP.
  6071. */
  6072. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  6073. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  6074. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  6075. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  6076. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  6077. };
  6078. /**
  6079. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  6080. * DMG RF sector configuration for a single RF module.
  6081. * The values are defined in a compact way which closely matches
  6082. * the way it is stored in HW registers.
  6083. * The configuration provides values for 32 antennas and 8 distribution
  6084. * amplifiers, and together describes the characteristics of the RF
  6085. * sector - such as a beam in some direction with some gain.
  6086. *
  6087. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  6088. * of RF module for this configuration.
  6089. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  6090. * amplifier gain index. Unsigned 32 bit number containing
  6091. * bits for all 32 antennas.
  6092. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  6093. * amplifier gain index. Unsigned 32 bit number containing
  6094. * bits for all 32 antennas.
  6095. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  6096. * amplifier gain index. Unsigned 32 bit number containing
  6097. * bits for all 32 antennas.
  6098. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  6099. * for first 16 antennas, 2 bits per antenna.
  6100. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  6101. * for last 16 antennas, 2 bits per antenna.
  6102. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  6103. * DTYPE values (3 bits) for each distribution amplifier, followed
  6104. * by X16 switch bits for each distribution amplifier. There are
  6105. * total of 8 distribution amplifiers.
  6106. */
  6107. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  6108. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  6109. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  6110. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  6111. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  6112. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  6113. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  6114. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  6115. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  6116. /* keep last */
  6117. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  6118. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  6119. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  6120. };
  6121. /**
  6122. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  6123. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  6124. *
  6125. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  6126. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  6127. * represents the different TDLS trigger modes.
  6128. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  6129. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  6130. * of packets shall meet the criteria for implicit TDLS setup.
  6131. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  6132. * packets within a duration.
  6133. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  6134. * a TDLS setup.
  6135. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
  6136. * a TDLS Discovery to the Peer.
  6137. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  6138. * discovery attempts to know the TDLS capability of the peer. A peer is
  6139. * marked as TDLS not capable if there is no response for all the attempts.
  6140. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  6141. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  6142. * number of TX / RX frames meet the criteria for TDLS teardown.
  6143. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  6144. * (u32) of Tx/Rx packets within a duration
  6145. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  6146. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  6147. * corresponding to the RSSI of the peer below which a TDLS
  6148. * setup is triggered.
  6149. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  6150. * corresponding to the RSSI of the peer above which
  6151. * a TDLS teardown is triggered.
  6152. */
  6153. enum qca_wlan_vendor_attr_tdls_configuration {
  6154. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  6155. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  6156. /* Attributes configuring the TDLS Implicit Trigger */
  6157. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  6158. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  6159. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  6160. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  6161. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  6162. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  6163. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  6164. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  6165. /* keep last */
  6166. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  6167. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  6168. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  6169. };
  6170. /**
  6171. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  6172. * the driver.
  6173. *
  6174. * The following are the different values for
  6175. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  6176. *
  6177. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  6178. * initiate/teardown the TDLS connection to a respective peer comes
  6179. * from the user space. wpa_supplicant provides the commands
  6180. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  6181. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  6182. * setup/teardown to the eligible peer once the configured criteria
  6183. * (such as TX/RX threshold, RSSI) is met. The attributes
  6184. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  6185. * the different configuration criteria for the TDLS trigger from the
  6186. * host driver.
  6187. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  6188. * the TDLS setup / teardown through the implicit mode, only to the
  6189. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  6190. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  6191. * External mode works on top of the implicit mode, thus the host Driver
  6192. * is expected to be configured in TDLS Implicit mode too to operate in
  6193. * External mode. Configuring External mode alone without Implicit
  6194. * mode is invalid.
  6195. *
  6196. * All the above implementations work as expected only when the host driver
  6197. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  6198. * representing that the TDLS message exchange is not internal to the host
  6199. * driver, but depends on wpa_supplicant to do the message exchange.
  6200. */
  6201. enum qca_wlan_vendor_tdls_trigger_mode {
  6202. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  6203. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  6204. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  6205. };
  6206. /**
  6207. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  6208. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  6209. * that is hard-coded in the Board Data File (BDF).
  6210. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  6211. * that is hard-coded in the Board Data File (BDF).
  6212. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  6213. * that is hard-coded in the Board Data File (BDF).
  6214. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  6215. * that is hard-coded in the Board Data File (BDF).
  6216. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  6217. * that is hard-coded in the Board Data File (BDF).
  6218. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  6219. * source of SAR power limits, thereby disabling the SAR power
  6220. * limit feature.
  6221. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  6222. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6223. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  6224. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6225. *
  6226. * This enumerates the valid set of values that may be supplied for
  6227. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  6228. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  6229. * the response to an instance of the
  6230. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6231. */
  6232. enum qca_vendor_attr_sar_limits_selections {
  6233. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  6234. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  6235. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  6236. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  6237. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  6238. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  6239. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  6240. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  6241. };
  6242. /**
  6243. * enum qca_vendor_attr_sar_limits_spec_modulations -
  6244. * SAR limits specification modulation
  6245. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  6246. * CCK modulation
  6247. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  6248. * OFDM modulation
  6249. *
  6250. * This enumerates the valid set of values that may be supplied for
  6251. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  6252. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  6253. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  6254. * command or in the response to an instance of the
  6255. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6256. */
  6257. enum qca_vendor_attr_sar_limits_spec_modulations {
  6258. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  6259. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  6260. };
  6261. /**
  6262. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  6263. *
  6264. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  6265. * select which SAR power limit table should be used. Valid
  6266. * values are enumerated in enum
  6267. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  6268. * power limit selection is unchanged if this attribute is not
  6269. * present.
  6270. *
  6271. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  6272. * which specifies the number of SAR power limit specifications
  6273. * which will follow.
  6274. *
  6275. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  6276. * limit specifications. The number of specifications is
  6277. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  6278. * specification contains a set of
  6279. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  6280. * specification is uniquely identified by the attributes
  6281. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  6282. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  6283. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  6284. * contains as a payload the attribute
  6285. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  6286. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  6287. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  6288. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  6289. * needed based upon the value of
  6290. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  6291. *
  6292. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  6293. * indicate for which band this specification applies. Valid
  6294. * values are enumerated in enum %nl80211_band (although not all
  6295. * bands may be supported by a given device). If the attribute is
  6296. * not supplied then the specification will be applied to all
  6297. * supported bands.
  6298. *
  6299. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  6300. * to indicate for which antenna chain this specification
  6301. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  6302. * attribute is not supplied then the specification will be
  6303. * applied to all chains.
  6304. *
  6305. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  6306. * value to indicate for which modulation scheme this
  6307. * specification applies. Valid values are enumerated in enum
  6308. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  6309. * is not supplied then the specification will be applied to all
  6310. * modulation schemes.
  6311. *
  6312. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  6313. * value to specify the actual power limit value in units of 0.5
  6314. * dBm (i.e., a value of 11 represents 5.5 dBm).
  6315. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6316. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  6317. *
  6318. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  6319. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  6320. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6321. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  6322. *
  6323. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  6324. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  6325. */
  6326. enum qca_vendor_attr_sar_limits {
  6327. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  6328. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  6329. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  6330. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  6331. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  6332. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  6333. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  6334. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  6335. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  6336. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  6337. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  6338. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  6339. };
  6340. /**
  6341. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  6342. * offload which is an extension for LL_STATS.
  6343. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  6344. * If MAC counters do not exceed the threshold, FW will report monitored
  6345. * link layer counters periodically as this setting. The first report is
  6346. * always triggered by this timer.
  6347. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  6348. * For each MAC layer counter, FW holds two copies. One is the current value.
  6349. * The other is the last report. Once a current counter's increment is larger
  6350. * than the threshold, FW will indicate that counter to host even if the
  6351. * monitoring timer does not expire.
  6352. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  6353. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  6354. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  6355. * failure code.
  6356. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  6357. * 1: TX packet discarded
  6358. * 2: No ACK
  6359. * 3: Postpone
  6360. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  6361. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  6362. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  6363. * Threshold for all monitored parameters. If per counter dedicated threshold
  6364. * is not enabled, this threshold will take effect.
  6365. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  6366. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  6367. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  6368. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  6369. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  6370. * Bit0: TX counter unit in MSDU
  6371. * Bit1: TX counter unit in MPDU
  6372. * Bit2: TX counter unit in PPDU
  6373. * Bit3: TX counter unit in byte
  6374. * Bit4: Dropped MSDUs
  6375. * Bit5: Dropped Bytes
  6376. * Bit6: MPDU retry counter
  6377. * Bit7: MPDU failure counter
  6378. * Bit8: PPDU failure counter
  6379. * Bit9: MPDU aggregation counter
  6380. * Bit10: MCS counter for ACKed MPDUs
  6381. * Bit11: MCS counter for Failed MPDUs
  6382. * Bit12: TX Delay counter
  6383. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  6384. * Bit0: MAC RX counter unit in MPDU
  6385. * Bit1: MAC RX counter unit in byte
  6386. * Bit2: PHY RX counter unit in PPDU
  6387. * Bit3: PHY RX counter unit in byte
  6388. * Bit4: Disorder counter
  6389. * Bit5: Retry counter
  6390. * Bit6: Duplication counter
  6391. * Bit7: Discard counter
  6392. * Bit8: MPDU aggregation size counter
  6393. * Bit9: MCS counter
  6394. * Bit10: Peer STA power state change (wake to sleep) counter
  6395. * Bit11: Peer STA power save counter, total time in PS mode
  6396. * Bit12: Probe request counter
  6397. * Bit13: Other management frames counter
  6398. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  6399. * Bit0: Idle time
  6400. * Bit1: TX time
  6401. * Bit2: time RX in current bss
  6402. * Bit3: Out of current bss time
  6403. * Bit4: Wireless medium busy time
  6404. * Bit5: RX in bad condition time
  6405. * Bit6: TX in bad condition time
  6406. * Bit7: time wlan card not available
  6407. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  6408. * Bit0: Per channel SNR counter
  6409. * Bit1: Per channel noise floor counter
  6410. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  6411. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  6412. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  6413. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  6414. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  6415. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  6416. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  6417. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  6418. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  6419. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  6420. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  6421. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  6422. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  6423. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  6424. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  6425. * aggregation stats buffer length
  6426. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  6427. * buffer for ACKed MPDUs.
  6428. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  6429. * buffer for failed MPDUs.
  6430. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  6431. * length of delay stats array.
  6432. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  6433. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  6434. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  6435. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  6436. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  6437. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  6438. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  6439. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  6440. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  6441. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  6442. * flagged as retransmissions
  6443. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  6444. * flagged as duplicated
  6445. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  6446. * packets discarded
  6447. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  6448. * stats buffer.
  6449. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  6450. * stats buffer.
  6451. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  6452. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  6453. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  6454. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  6455. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  6456. * requests received
  6457. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  6458. * frames received
  6459. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  6460. * there is no TX, nor RX, nor interference.
  6461. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  6462. * transmitting packets.
  6463. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  6464. * for receiving.
  6465. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  6466. * interference detected.
  6467. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  6468. * receiving packets with errors.
  6469. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  6470. * TX no-ACK.
  6471. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  6472. * the chip is unable to work in normal conditions.
  6473. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  6474. * receiving packets in current BSS.
  6475. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  6476. * receiving packets not in current BSS.
  6477. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  6478. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  6479. * This is a container for per antenna signal stats.
  6480. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  6481. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  6482. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  6483. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  6484. */
  6485. enum qca_wlan_vendor_attr_ll_stats_ext {
  6486. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  6487. /* Attributes for configurations */
  6488. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  6489. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  6490. /* Peer STA power state change */
  6491. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  6492. /* TX failure event */
  6493. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  6494. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  6495. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  6496. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  6497. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  6498. /* MAC counters */
  6499. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  6500. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  6501. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  6502. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  6503. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  6504. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  6505. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  6506. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  6507. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  6508. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  6509. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  6510. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  6511. /* Sub-attributes for PEER_AC_TX */
  6512. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  6513. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  6514. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  6515. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  6516. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  6517. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  6518. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  6519. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  6520. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  6521. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  6522. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  6523. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  6524. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  6525. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  6526. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  6527. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  6528. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  6529. /* Sub-attributes for PEER_AC_RX */
  6530. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  6531. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  6532. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  6533. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  6534. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  6535. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  6536. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  6537. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  6538. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  6539. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  6540. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  6541. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  6542. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  6543. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  6544. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  6545. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  6546. /* Sub-attributes for CCA_BSS */
  6547. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  6548. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  6549. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  6550. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  6551. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  6552. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  6553. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  6554. /* sub-attribute for BSS_RX_TIME */
  6555. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  6556. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  6557. /* Sub-attributes for PEER_SIGNAL */
  6558. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  6559. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  6560. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  6561. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  6562. /* Sub-attributes for IFACE_BSS */
  6563. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  6564. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  6565. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  6566. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  6567. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  6568. };
  6569. /**
  6570. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  6571. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  6572. * in priority order as decided after ACS operation in userspace.
  6573. *
  6574. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  6575. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  6576. *
  6577. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  6578. * Array of nested values for each channel with following attributes:
  6579. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  6580. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  6581. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  6582. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  6583. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  6584. * Note: If both the driver and user-space application supports the 6 GHz band,
  6585. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  6586. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  6587. * To maintain backward compatibility,
  6588. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  6589. * is still used if either of the driver or user space application doesn't
  6590. * support the 6 GHz band.
  6591. *
  6592. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  6593. * Primary channel number
  6594. * Note: If both the driver and user-space application supports the 6 GHz band,
  6595. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  6596. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  6597. * To maintain backward compatibility,
  6598. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  6599. * is still used if either of the driver or user space application doesn't
  6600. * support the 6 GHz band.
  6601. *
  6602. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  6603. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  6604. * Note: If both the driver and user-space application supports the 6 GHz band,
  6605. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  6606. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  6607. * To maintain backward compatibility,
  6608. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  6609. * is still used if either of the driver or user space application
  6610. * doesn't support the 6 GHz band.
  6611. *
  6612. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  6613. * VHT seg0 channel number
  6614. * Note: If both the driver and user-space application supports the 6 GHz band,
  6615. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  6616. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  6617. * To maintain backward compatibility,
  6618. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  6619. * is still used if either of the driver or user space application
  6620. * doesn't support the 6 GHz band.
  6621. *
  6622. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  6623. * VHT seg1 channel number
  6624. * Note: If both the driver and user-space application supports the 6 GHz band,
  6625. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  6626. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  6627. * To maintain backward compatibility,
  6628. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  6629. * is still used if either of the driver or user space application
  6630. * doesn't support the 6 GHz band.
  6631. *
  6632. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  6633. * Takes one of enum nl80211_chan_width values.
  6634. *
  6635. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  6636. * Array of nested values for each channel with following attributes:
  6637. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  6638. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  6639. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  6640. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  6641. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  6642. * Note: If user-space application has no support of the 6 GHz band, this
  6643. * attribute is optional.
  6644. *
  6645. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  6646. * Primary channel frequency in MHz
  6647. * Note: If user-space application has no support of the 6 GHz band, this
  6648. * attribute is optional.
  6649. *
  6650. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  6651. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  6652. * Note: If user-space application has no support of the 6 GHz band, this
  6653. * attribute is optional.
  6654. *
  6655. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  6656. * VHT seg0 channel frequency in MHz
  6657. * Note: If user-space application has no support of the 6GHz band, this
  6658. * attribute is optional.
  6659. *
  6660. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  6661. * VHT seg1 channel frequency in MHz
  6662. * Note: If user-space application has no support of the 6 GHz band, this
  6663. * attribute is optional.
  6664. */
  6665. enum qca_wlan_vendor_attr_external_acs_channels {
  6666. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  6667. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  6668. */
  6669. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  6670. /* Array of nested values for each channel with following attributes:
  6671. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  6672. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  6673. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  6674. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  6675. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  6676. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  6677. */
  6678. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  6679. /* This (u8) will hold values of one of enum nl80211_bands */
  6680. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  6681. /* Primary channel (u8) */
  6682. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  6683. /* Secondary channel (u8) used for HT 40 MHz channels */
  6684. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  6685. /* VHT seg0 channel (u8) */
  6686. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  6687. /* VHT seg1 channel (u8) */
  6688. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  6689. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  6690. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  6691. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  6692. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  6693. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  6694. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  6695. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  6696. /* keep last */
  6697. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  6698. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  6699. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  6700. };
  6701. /**
  6702. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  6703. * the ACS has to be triggered. These values are used by
  6704. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  6705. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  6706. */
  6707. enum qca_wlan_vendor_acs_select_reason {
  6708. /* Represents the reason that the ACS triggered during the AP start */
  6709. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  6710. /* Represents the reason that DFS found with the current channel */
  6711. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  6712. /* Represents the reason that LTE co-exist in the current band. */
  6713. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  6714. /* Represents the reason that generic, uncategorized interference has
  6715. * been found in the current channel.
  6716. */
  6717. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  6718. /* Represents the reason that excessive 802.11 interference has been
  6719. * found in the current channel.
  6720. */
  6721. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  6722. /* Represents the reason that generic Continuous Wave (CW) interference
  6723. * has been found in the current channel.
  6724. */
  6725. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  6726. /* Represents the reason that Microwave Oven (MWO) interference has been
  6727. * found in the current channel.
  6728. */
  6729. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  6730. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  6731. * (FHSS) interference has been found in the current channel. This may
  6732. * include 802.11 waveforms.
  6733. */
  6734. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  6735. /* Represents the reason that non-802.11 generic Frequency-Hopping
  6736. * Spread Spectrum (FHSS) interference has been found in the current
  6737. * channel.
  6738. */
  6739. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  6740. /* Represents the reason that generic Wideband (WB) interference has
  6741. * been found in the current channel. This may include 802.11 waveforms.
  6742. */
  6743. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  6744. /* Represents the reason that non-802.11 generic Wideband (WB)
  6745. * interference has been found in the current channel.
  6746. */
  6747. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  6748. /* Represents the reason that Jammer interference has been found in the
  6749. * current channel.
  6750. */
  6751. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  6752. };
  6753. /**
  6754. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  6755. *
  6756. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  6757. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  6758. * to get the available value that this item can use.
  6759. *
  6760. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  6761. * value to specify the gpio number.
  6762. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6763. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  6764. *
  6765. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  6766. * value to specify the gpio output level, please refer to enum qca_gpio_value
  6767. * to get the available value that this item can use.
  6768. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6769. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  6770. *
  6771. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  6772. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  6773. * to get the available value that this item can use.
  6774. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6775. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  6776. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  6777. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  6778. * attribute is present.
  6779. *
  6780. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  6781. * value to specify the gpio interrupt mode, please refer to enum
  6782. * qca_gpio_interrupt_mode to get the available value that this item can use.
  6783. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6784. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  6785. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  6786. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  6787. * attribute is present.
  6788. *
  6789. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  6790. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  6791. * to get the available value that this item can use.
  6792. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6793. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  6794. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  6795. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  6796. * attribute is present.
  6797. *
  6798. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  6799. * Value to specify the mux config. Meaning of a given value is dependent
  6800. * on the target chipset and gpio pin. Must be of the range 0-15.
  6801. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6802. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  6803. *
  6804. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  6805. * Value to specify the drive, Refer to enum qca_gpio_drive.
  6806. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6807. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  6808. *
  6809. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  6810. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6811. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  6812. * other parameters for the given GPIO will be obtained from internal
  6813. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  6814. * specified to indicate the GPIO pin being configured.
  6815. */
  6816. enum qca_wlan_gpio_attr {
  6817. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  6818. /* Unsigned 32-bit attribute for GPIO command */
  6819. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  6820. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  6821. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  6822. /* Unsigned 32-bit attribute for GPIO value to configure */
  6823. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  6824. /* Unsigned 32-bit attribute for GPIO pull type */
  6825. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  6826. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  6827. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  6828. /* Unsigned 32-bit attribute for GPIO direction to configure */
  6829. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  6830. /* Unsigned 32-bit attribute for GPIO mux config */
  6831. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  6832. /* Unsigned 32-bit attribute for GPIO drive */
  6833. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  6834. /* Flag attribute for using internal gpio configuration */
  6835. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  6836. /* keep last */
  6837. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  6838. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  6839. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  6840. };
  6841. /**
  6842. * enum gpio_cmd_type - GPIO configuration command type
  6843. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  6844. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  6845. */
  6846. enum qca_gpio_cmd_type {
  6847. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  6848. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  6849. };
  6850. /**
  6851. * enum qca_gpio_pull_type - GPIO pull type
  6852. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  6853. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  6854. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  6855. */
  6856. enum qca_gpio_pull_type {
  6857. QCA_WLAN_GPIO_PULL_NONE = 0,
  6858. QCA_WLAN_GPIO_PULL_UP = 1,
  6859. QCA_WLAN_GPIO_PULL_DOWN = 2,
  6860. QCA_WLAN_GPIO_PULL_MAX,
  6861. };
  6862. /**
  6863. * enum qca_gpio_direction - GPIO direction
  6864. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  6865. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  6866. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  6867. */
  6868. enum qca_gpio_direction {
  6869. QCA_WLAN_GPIO_INPUT = 0,
  6870. QCA_WLAN_GPIO_OUTPUT = 1,
  6871. QCA_WLAN_GPIO_DIR_MAX,
  6872. };
  6873. /**
  6874. * enum qca_gpio_value - GPIO Value
  6875. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  6876. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  6877. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  6878. */
  6879. enum qca_gpio_value {
  6880. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  6881. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  6882. QCA_WLAN_GPIO_LEVEL_MAX,
  6883. };
  6884. /**
  6885. * enum gpio_interrupt_mode - GPIO interrupt mode
  6886. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  6887. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  6888. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  6889. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  6890. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  6891. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  6892. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  6893. */
  6894. enum qca_gpio_interrupt_mode {
  6895. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  6896. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  6897. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  6898. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  6899. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  6900. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  6901. QCA_WLAN_GPIO_INTMODE_MAX,
  6902. };
  6903. /**
  6904. * enum gpio_drive - GPIO drive
  6905. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  6906. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  6907. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  6908. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  6909. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  6910. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  6911. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  6912. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  6913. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  6914. */
  6915. enum qca_gpio_drive {
  6916. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  6917. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  6918. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  6919. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  6920. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  6921. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  6922. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  6923. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  6924. QCA_WLAN_GPIO_DRIVE_MAX,
  6925. };
  6926. /**
  6927. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  6928. * MSDUQ depth threshold per peer per tid in the target
  6929. *
  6930. * Associated Vendor Command:
  6931. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  6932. */
  6933. enum qca_wlan_set_qdepth_thresh_attr {
  6934. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  6935. /* 6-byte MAC address */
  6936. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  6937. /* Unsigned 32-bit attribute for holding the TID */
  6938. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  6939. /* Unsigned 32-bit attribute for holding the update mask
  6940. * bit 0 - Update high priority msdu qdepth threshold
  6941. * bit 1 - Update low priority msdu qdepth threshold
  6942. * bit 2 - Update UDP msdu qdepth threshold
  6943. * bit 3 - Update Non UDP msdu qdepth threshold
  6944. * rest of bits are reserved
  6945. */
  6946. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  6947. /* Unsigned 32-bit attribute for holding the threshold value */
  6948. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  6949. /* keep last */
  6950. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  6951. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  6952. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  6953. };
  6954. /**
  6955. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  6956. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  6957. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  6958. * external ACS policies to select the channels w.r.t. the PCL weights.
  6959. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  6960. * their PCL weights.)
  6961. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  6962. * select a channel with non-zero PCL weight.
  6963. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  6964. * channel with non-zero PCL weight.
  6965. *
  6966. */
  6967. enum qca_wlan_vendor_attr_external_acs_policy {
  6968. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  6969. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  6970. };
  6971. /**
  6972. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  6973. */
  6974. enum qca_wlan_vendor_attr_spectral_scan {
  6975. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  6976. /*
  6977. * Number of times the chip enters spectral scan mode before
  6978. * deactivating spectral scans. When set to 0, chip will enter spectral
  6979. * scan mode continuously. u32 attribute.
  6980. */
  6981. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  6982. /*
  6983. * Spectral scan period. Period increment resolution is 256*Tclk,
  6984. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  6985. */
  6986. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  6987. /* Spectral scan priority. u32 attribute. */
  6988. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  6989. /* Number of FFT data points to compute. u32 attribute. */
  6990. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  6991. /*
  6992. * Enable targeted gain change before starting the spectral scan FFT.
  6993. * u32 attribute.
  6994. */
  6995. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  6996. /* Restart a queued spectral scan. u32 attribute. */
  6997. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  6998. /*
  6999. * Noise floor reference number for the calculation of bin power.
  7000. * u32 attribute.
  7001. */
  7002. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  7003. /*
  7004. * Disallow spectral scan triggers after TX/RX packets by setting
  7005. * this delay value to roughly SIFS time period or greater.
  7006. * u32 attribute.
  7007. */
  7008. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  7009. /*
  7010. * Number of strong bins (inclusive) per sub-channel, below
  7011. * which a signal is declared a narrow band tone. u32 attribute.
  7012. */
  7013. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  7014. /*
  7015. * Specify the threshold over which a bin is declared strong (for
  7016. * scan bandwidth analysis). u32 attribute.
  7017. */
  7018. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  7019. /* Spectral scan report mode. u32 attribute. */
  7020. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  7021. /*
  7022. * RSSI report mode, if the ADC RSSI is below
  7023. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  7024. * then FFTs will not trigger, but timestamps and summaries get
  7025. * reported. u32 attribute.
  7026. */
  7027. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  7028. /*
  7029. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  7030. * to ensure spectral scan reporting with normal error code.
  7031. * u32 attribute.
  7032. */
  7033. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  7034. /*
  7035. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  7036. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  7037. * u32 attribute.
  7038. */
  7039. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  7040. /*
  7041. * Format of FFT report to software for spectral scan triggered FFTs.
  7042. * 0: No FFT report (only spectral scan summary report)
  7043. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  7044. * report
  7045. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  7046. * bins (in-band) per FFT + spectral scan summary report
  7047. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  7048. * bins (all) per FFT + spectral scan summary report
  7049. * u32 attribute.
  7050. */
  7051. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  7052. /*
  7053. * Number of LSBs to shift out in order to scale the FFT bins.
  7054. * u32 attribute.
  7055. */
  7056. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  7057. /*
  7058. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  7059. * in dBm power. u32 attribute.
  7060. */
  7061. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  7062. /*
  7063. * Per chain enable mask to select input ADC for search FFT.
  7064. * u32 attribute.
  7065. */
  7066. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  7067. /*
  7068. * An unsigned 64-bit integer provided by host driver to identify the
  7069. * spectral scan request. This attribute is included in the scan
  7070. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  7071. * and used as an attribute in
  7072. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  7073. * specific scan to be stopped.
  7074. */
  7075. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  7076. /* Skip interval for FFT reports. u32 attribute */
  7077. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  7078. /* Set to report only one set of FFT results.
  7079. * u32 attribute.
  7080. */
  7081. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  7082. /* Debug level for spectral module in driver.
  7083. * 0 : Verbosity level 0
  7084. * 1 : Verbosity level 1
  7085. * 2 : Verbosity level 2
  7086. * 3 : Matched filterID display
  7087. * 4 : One time dump of FFT report
  7088. * u32 attribute.
  7089. */
  7090. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  7091. /* Type of spectral scan request. u32 attribute.
  7092. * It uses values defined in enum
  7093. * qca_wlan_vendor_attr_spectral_scan_request_type.
  7094. */
  7095. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  7096. /* This specifies the frequency span over which spectral
  7097. * scan would be carried out. Its value depends on the
  7098. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  7099. * the relation is as follows.
  7100. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7101. * Not applicable. Spectral scan would happen in the
  7102. * operating span.
  7103. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7104. * Center frequency (in MHz) of the span of interest or
  7105. * for convenience, center frequency (in MHz) of any channel
  7106. * in the span of interest. For 80+80 MHz agile spectral scan
  7107. * request it represents center frequency (in MHz) of the primary
  7108. * 80 MHz span or for convenience, center frequency (in MHz) of any
  7109. * channel in the primary 80 MHz span. If agile spectral scan is
  7110. * initiated without setting a valid frequency it returns the
  7111. * error code
  7112. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  7113. * u32 attribute.
  7114. */
  7115. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  7116. /* Spectral scan mode. u32 attribute.
  7117. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7118. * If this attribute is not present, it is assumed to be
  7119. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  7120. */
  7121. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  7122. /* Spectral scan error code. u32 attribute.
  7123. * It uses values defined in enum
  7124. * qca_wlan_vendor_spectral_scan_error_code.
  7125. * This attribute is included only in failure scenarios.
  7126. */
  7127. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  7128. /* 8-bit unsigned value to enable/disable debug of the
  7129. * Spectral DMA ring.
  7130. * 1-enable, 0-disable
  7131. */
  7132. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  7133. /* 8-bit unsigned value to enable/disable debug of the
  7134. * Spectral DMA buffers.
  7135. * 1-enable, 0-disable
  7136. */
  7137. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  7138. /* This specifies the frequency span over which spectral scan would be
  7139. * carried out. Its value depends on the value of
  7140. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  7141. * follows.
  7142. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7143. * Not applicable. Spectral scan would happen in the operating span.
  7144. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7145. * This attribute is applicable only for agile spectral scan
  7146. * requests in 80+80 MHz mode. It represents center frequency (in
  7147. * MHz) of the secondary 80 MHz span or for convenience, center
  7148. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  7149. * u32 attribute.
  7150. */
  7151. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  7152. /* This attribute specifies the bandwidth to be used for Spectral scan
  7153. * operation. This is an u8 attribute and uses the values in enum
  7154. * nl80211_chan_width. This is an optional attribute.
  7155. * If this attribute is not populated, the driver should configure the
  7156. * Spectral scan bandwidth to the maximum value supported by the target
  7157. * for the current operating bandwidth.
  7158. */
  7159. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  7160. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  7161. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  7162. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  7163. };
  7164. /**
  7165. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  7166. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  7167. */
  7168. enum qca_wlan_vendor_attr_spectral_diag_stats {
  7169. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  7170. /* Number of spectral TLV signature mismatches.
  7171. * u64 attribute.
  7172. */
  7173. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  7174. /* Number of spectral phyerror events with insufficient length when
  7175. * parsing for secondary 80 search FFT report. u64 attribute.
  7176. */
  7177. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  7178. /* Number of spectral phyerror events without secondary 80
  7179. * search FFT report. u64 attribute.
  7180. */
  7181. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  7182. /* Number of spectral phyerror events with vht operation segment 1 id
  7183. * mismatches in search fft report. u64 attribute.
  7184. */
  7185. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  7186. /* Number of spectral phyerror events with vht operation segment 2 id
  7187. * mismatches in search fft report. u64 attribute.
  7188. */
  7189. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  7190. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  7191. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  7192. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  7193. };
  7194. /**
  7195. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  7196. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  7197. */
  7198. enum qca_wlan_vendor_attr_spectral_cap {
  7199. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  7200. /* Flag attribute to indicate phydiag capability */
  7201. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  7202. /* Flag attribute to indicate radar detection capability */
  7203. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  7204. /* Flag attribute to indicate spectral capability */
  7205. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  7206. /* Flag attribute to indicate advanced spectral capability */
  7207. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  7208. /* Spectral hardware generation. u32 attribute.
  7209. * It uses values defined in enum
  7210. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  7211. */
  7212. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  7213. /* Spectral bin scaling formula ID. u16 attribute.
  7214. * It uses values defined in enum
  7215. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  7216. */
  7217. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  7218. /* Spectral bin scaling param - low level offset.
  7219. * s16 attribute.
  7220. */
  7221. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  7222. /* Spectral bin scaling param - high level offset.
  7223. * s16 attribute.
  7224. */
  7225. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  7226. /* Spectral bin scaling param - RSSI threshold.
  7227. * s16 attribute.
  7228. */
  7229. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  7230. /* Spectral bin scaling param - default AGC max gain.
  7231. * u8 attribute.
  7232. */
  7233. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  7234. /* Flag attribute to indicate agile spectral scan capability
  7235. * for 20/40/80 MHz modes.
  7236. */
  7237. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  7238. /* Flag attribute to indicate agile spectral scan capability
  7239. * for 160 MHz mode.
  7240. */
  7241. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  7242. /* Flag attribute to indicate agile spectral scan capability
  7243. * for 80+80 MHz mode.
  7244. */
  7245. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  7246. /* Number of spectral detectors used for scan in 20 MHz.
  7247. * u32 attribute.
  7248. */
  7249. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  7250. /* Number of spectral detectors used for scan in 40 MHz.
  7251. * u32 attribute.
  7252. */
  7253. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  7254. /* Number of spectral detectors used for scan in 80 MHz.
  7255. * u32 attribute.
  7256. */
  7257. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  7258. /* Number of spectral detectors used for scan in 160 MHz.
  7259. * u32 attribute.
  7260. */
  7261. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  7262. /* Number of spectral detectors used for scan in 80+80 MHz.
  7263. * u32 attribute.
  7264. */
  7265. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  7266. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  7267. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  7268. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  7269. };
  7270. /**
  7271. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  7272. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  7273. */
  7274. enum qca_wlan_vendor_attr_spectral_scan_status {
  7275. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  7276. /* Flag attribute to indicate whether spectral scan is enabled */
  7277. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  7278. /* Flag attribute to indicate whether spectral scan is in progress*/
  7279. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  7280. /* Spectral scan mode. u32 attribute.
  7281. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7282. * If this attribute is not present, normal mode
  7283. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  7284. * requested.
  7285. */
  7286. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  7287. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  7288. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  7289. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  7290. };
  7291. /**
  7292. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  7293. * wlan latency module.
  7294. *
  7295. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  7296. * power saving which would causing data exchange out of service, this
  7297. * would be a big impact on latency. For latency sensitive applications over
  7298. * Wi-Fi are intolerant to such operations and thus would configure them
  7299. * to meet their respective needs. It is well understood by such applications
  7300. * that altering the default behavior would degrade the Wi-Fi functionality
  7301. * w.r.t the above pointed WLAN operations.
  7302. *
  7303. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  7304. * Default WLAN operation level which throughput orientated.
  7305. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
  7306. * Use moderate level to improve latency by limit scan duration.
  7307. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  7308. * Use low latency level to benifit application like concurrent
  7309. * downloading or video streaming via constraint scan/adaptive PS.
  7310. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  7311. * Use ultra low latency level to benefit for gaming/voice
  7312. * application via constraint scan/roaming/adaptive PS.
  7313. */
  7314. enum qca_wlan_vendor_attr_config_latency_level {
  7315. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  7316. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  7317. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
  7318. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  7319. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  7320. /* keep last */
  7321. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  7322. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  7323. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  7324. };
  7325. /**
  7326. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  7327. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  7328. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  7329. * spectral scan request types.
  7330. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  7331. * set the spectral parameters and start scan.
  7332. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  7333. * only set the spectral parameters.
  7334. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  7335. * only start the spectral scan.
  7336. */
  7337. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  7338. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  7339. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  7340. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  7341. };
  7342. /**
  7343. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  7344. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  7345. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  7346. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  7347. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  7348. * spectral scan modes.
  7349. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  7350. * spectral scan in the current operating span.
  7351. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  7352. * spectral scan in the configured agile span.
  7353. */
  7354. enum qca_wlan_vendor_spectral_scan_mode {
  7355. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  7356. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  7357. };
  7358. /**
  7359. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  7360. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  7361. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  7362. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  7363. * of a parameter is not supported.
  7364. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  7365. * mode is not supported.
  7366. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  7367. * has invalid value.
  7368. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  7369. * is not initialized.
  7370. */
  7371. enum qca_wlan_vendor_spectral_scan_error_code {
  7372. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  7373. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  7374. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  7375. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  7376. };
  7377. /**
  7378. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  7379. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  7380. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  7381. * spectral hardware generation.
  7382. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  7383. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  7384. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  7385. */
  7386. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  7387. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  7388. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  7389. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  7390. };
  7391. /**
  7392. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  7393. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  7394. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  7395. * Spectral bin scaling formula ID.
  7396. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  7397. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  7398. * and RSSI threshold based formula.
  7399. */
  7400. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  7401. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  7402. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  7403. };
  7404. /**
  7405. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  7406. * RF Operating Parameter (RROP) information is available, and if so, at which
  7407. * point in the application-driver interaction sequence it can be retrieved by
  7408. * the application from the driver. This point may vary by architecture and
  7409. * other factors. This is a u16 value.
  7410. */
  7411. enum qca_wlan_vendor_attr_rropavail_info {
  7412. /* RROP information is unavailable. */
  7413. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  7414. /* RROP information is available and the application can retrieve the
  7415. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  7416. * event from the driver.
  7417. */
  7418. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  7419. /* RROP information is available only after a vendor specific scan
  7420. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  7421. * successfully completed. The application can retrieve the information
  7422. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  7423. * the driver.
  7424. */
  7425. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  7426. };
  7427. /**
  7428. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  7429. * Representative RF Operating Parameter (RROP) information. It is sent for the
  7430. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  7431. * intended for use by external Auto Channel Selection applications. It provides
  7432. * guidance values for some RF parameters that are used by the system during
  7433. * operation. These values could vary by channel, band, radio, and so on.
  7434. */
  7435. enum qca_wlan_vendor_attr_rrop_info {
  7436. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  7437. /* Representative Tx Power List (RTPL) which has an array of nested
  7438. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  7439. */
  7440. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  7441. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  7442. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  7443. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  7444. };
  7445. /**
  7446. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  7447. * entry instances in the Representative Tx Power List (RTPL). It provides
  7448. * simplified power values intended for helping external Auto channel Selection
  7449. * applications compare potential Tx power performance between channels, other
  7450. * operating conditions remaining identical. These values are not necessarily
  7451. * the actual Tx power values that will be used by the system. They are also not
  7452. * necessarily the max or average values that will be used. Instead, they are
  7453. * relative, summarized keys for algorithmic use computed by the driver or
  7454. * underlying firmware considering a number of vendor specific factors.
  7455. */
  7456. enum qca_wlan_vendor_attr_rtplinst {
  7457. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  7458. /* Primary channel number (u8).
  7459. * Note: If both the driver and user space application support the
  7460. * 6 GHz band, this attribute is deprecated and
  7461. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  7462. * maintain backward compatibility,
  7463. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  7464. * driver or user space application or both do not support the 6 GHz
  7465. * band.
  7466. */
  7467. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  7468. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  7469. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  7470. /* Representative Tx power in dBm (s32) with emphasis on range. */
  7471. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  7472. /* Primary channel center frequency (u32) in MHz */
  7473. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  7474. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  7475. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  7476. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  7477. };
  7478. /**
  7479. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  7480. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  7481. *
  7482. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  7483. * array of nested values as per attributes in
  7484. * enum qca_wlan_vendor_attr_mac_mode_info.
  7485. */
  7486. enum qca_wlan_vendor_attr_mac {
  7487. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  7488. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  7489. /* keep last */
  7490. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  7491. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  7492. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  7493. };
  7494. /**
  7495. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  7496. * WiFi netdev interface on a respective MAC. Used by the attribute
  7497. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  7498. *
  7499. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  7500. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  7501. * the connected Wi-Fi interface(u32).
  7502. */
  7503. enum qca_wlan_vendor_attr_mac_iface_info {
  7504. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  7505. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  7506. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  7507. /* keep last */
  7508. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  7509. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  7510. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  7511. };
  7512. /**
  7513. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  7514. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  7515. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  7516. *
  7517. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  7518. * MAC (u32)
  7519. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  7520. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  7521. * in enum nl80211_band.
  7522. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  7523. * interfaces associated with this MAC. Represented by enum
  7524. * qca_wlan_vendor_attr_mac_iface_info.
  7525. */
  7526. enum qca_wlan_vendor_attr_mac_info {
  7527. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  7528. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  7529. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  7530. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  7531. /* keep last */
  7532. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  7533. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  7534. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  7535. };
  7536. /**
  7537. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  7538. * to get thermal status from driver/firmware.
  7539. * enum values are used for NL attributes encapsulated inside
  7540. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  7541. *
  7542. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  7543. * of a thermal level in Celsius. u32 size.
  7544. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  7545. * of a thermal level in Celsius. u32 size.
  7546. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  7547. * thermal level in milliseconds. u32 size.
  7548. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  7549. * of times the temperature crossed into the temperature range defined by the
  7550. * thermal level from both higher and lower directions. u32 size.
  7551. */
  7552. enum qca_wlan_vendor_attr_thermal_stats {
  7553. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  7554. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  7555. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  7556. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  7557. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  7558. /* keep last */
  7559. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  7560. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  7561. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  7562. };
  7563. /**
  7564. * enum he_fragmentation_val - HE fragmentation support values
  7565. * Indicates level of dynamic fragmentation that is supported by
  7566. * a STA as a recipient.
  7567. * HE fragmentation values are defined as per 11ax spec and are used in
  7568. * HE capability IE to advertise the support. These values are validated
  7569. * in the driver to check the device capability and advertised in the HE
  7570. * capability element.
  7571. *
  7572. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  7573. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  7574. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  7575. * within an A-MPDU that is not an S-MPDU.
  7576. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  7577. * contained within an MPDU or S-MPDU and support for up to one dynamic
  7578. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  7579. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  7580. * MPDU or S-MPDU.
  7581. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  7582. * contained within an MPDU or S-MPDU and support for multiple dynamic
  7583. * fragments for each MSDU and for each A-MSDU if supported by the
  7584. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  7585. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  7586. */
  7587. enum he_fragmentation_val {
  7588. HE_FRAG_DISABLE,
  7589. HE_FRAG_LEVEL1,
  7590. HE_FRAG_LEVEL2,
  7591. HE_FRAG_LEVEL3,
  7592. };
  7593. /**
  7594. * enum he_mcs_config - HE MCS support configuration
  7595. *
  7596. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  7597. * These values are used in driver to configure the HE MCS map to advertise
  7598. * Tx/Rx MCS map in HE capability and these values are applied for all the
  7599. * streams supported by the device. To configure MCS for different bandwidths,
  7600. * vendor command needs to be sent using this attribute with appropriate value.
  7601. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  7602. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  7603. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  7604. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  7605. *
  7606. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  7607. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  7608. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  7609. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  7610. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  7611. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  7612. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  7613. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  7614. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  7615. */
  7616. enum he_mcs_config {
  7617. HE_80_MCS0_7 = 0,
  7618. HE_80_MCS0_9 = 1,
  7619. HE_80_MCS0_11 = 2,
  7620. HE_160_MCS0_7 = 4,
  7621. HE_160_MCS0_9 = 5,
  7622. HE_160_MCS0_11 = 6,
  7623. HE_80p80_MCS0_7 = 8,
  7624. HE_80p80_MCS0_9 = 9,
  7625. HE_80p80_MCS0_11 = 10,
  7626. };
  7627. /**
  7628. * enum qca_wlan_ba_session_config - BA session configuration
  7629. *
  7630. * Indicates the configuration values for BA session configuration attribute.
  7631. *
  7632. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  7633. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  7634. */
  7635. enum qca_wlan_ba_session_config {
  7636. QCA_WLAN_ADD_BA = 1,
  7637. QCA_WLAN_DELETE_BA = 2,
  7638. };
  7639. /**
  7640. * enum qca_wlan_ac_type - access category type
  7641. *
  7642. * Indicates the access category type value.
  7643. *
  7644. * @QCA_WLAN_AC_BE: BE access category
  7645. * @QCA_WLAN_AC_BK: BK access category
  7646. * @QCA_WLAN_AC_VI: VI access category
  7647. * @QCA_WLAN_AC_VO: VO access category
  7648. * @QCA_WLAN_AC_ALL: All ACs
  7649. */
  7650. enum qca_wlan_ac_type {
  7651. QCA_WLAN_AC_BE = 0,
  7652. QCA_WLAN_AC_BK = 1,
  7653. QCA_WLAN_AC_VI = 2,
  7654. QCA_WLAN_AC_VO = 3,
  7655. QCA_WLAN_AC_ALL = 4,
  7656. };
  7657. /**
  7658. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  7659. *
  7660. * Indicates the HE LTF configuration value.
  7661. *
  7662. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  7663. * the mandatory HE-LTF based on the GI setting
  7664. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  7665. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  7666. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  7667. */
  7668. enum qca_wlan_he_ltf_cfg {
  7669. QCA_WLAN_HE_LTF_AUTO = 0,
  7670. QCA_WLAN_HE_LTF_1X = 1,
  7671. QCA_WLAN_HE_LTF_2X = 2,
  7672. QCA_WLAN_HE_LTF_4X = 3,
  7673. };
  7674. /**
  7675. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  7676. *
  7677. * Indicates the HE trigger frame MAC padding duration value.
  7678. *
  7679. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  7680. * process the trigger frame.
  7681. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  7682. * trigger frame.
  7683. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  7684. * trigger frame.
  7685. */
  7686. enum qca_wlan_he_mac_padding_dur {
  7687. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  7688. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  7689. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  7690. };
  7691. /**
  7692. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  7693. *
  7694. * Indicates the HE Operating mode control channel width setting value.
  7695. *
  7696. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  7697. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  7698. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  7699. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  7700. */
  7701. enum qca_wlan_he_om_ctrl_ch_bw {
  7702. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  7703. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  7704. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  7705. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  7706. };
  7707. /**
  7708. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  7709. *
  7710. * Indicates the frame types to use for keep alive data.
  7711. *
  7712. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  7713. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  7714. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  7715. */
  7716. enum qca_wlan_keep_alive_data_type {
  7717. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  7718. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  7719. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  7720. };
  7721. /**
  7722. * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
  7723. * HE operating mode control transmit request. These attributes are
  7724. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
  7725. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  7726. *
  7727. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  7728. * indicates the maximum number of spatial streams, NSS, that the STA
  7729. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  7730. * and is set to NSS - 1.
  7731. *
  7732. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  7733. * indicates the operating channel width supported by the STA for both
  7734. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  7735. *
  7736. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  7737. * indicates the all trigger based UL MU operations by the STA.
  7738. * 0 - UL MU operations are enabled by the STA.
  7739. * 1 - All triggered UL MU transmissions are suspended by the STA.
  7740. *
  7741. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  7742. * indicates the maximum number of space-time streams, NSTS, that
  7743. * the STA supports in transmission and is set to NSTS - 1.
  7744. *
  7745. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  7746. * combined with the UL MU Disable subfield and the recipient's setting
  7747. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  7748. * capabilities to determine which HE TB PPDUs are possible by the
  7749. * STA to transmit.
  7750. * 0 - UL MU data operations are enabled by the STA.
  7751. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  7752. * bit is not set, else UL MU Tx is suspended.
  7753. *
  7754. */
  7755. enum qca_wlan_vendor_attr_he_omi_tx {
  7756. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  7757. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  7758. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  7759. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  7760. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  7761. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  7762. /* keep last */
  7763. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
  7764. QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
  7765. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
  7766. };
  7767. /**
  7768. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  7769. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  7770. *
  7771. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  7772. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  7773. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  7774. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  7775. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  7776. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  7777. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  7778. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  7779. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  7780. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  7781. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  7782. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  7783. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  7784. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  7785. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  7786. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  7787. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  7788. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  7789. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  7790. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  7791. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  7792. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  7793. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  7794. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  7795. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  7796. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  7797. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  7798. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  7799. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  7800. */
  7801. enum qca_wlan_vendor_phy_mode {
  7802. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  7803. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  7804. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  7805. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  7806. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  7807. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  7808. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  7809. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  7810. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  7811. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  7812. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  7813. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  7814. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  7815. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  7816. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  7817. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  7818. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  7819. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  7820. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  7821. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  7822. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  7823. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  7824. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  7825. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  7826. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  7827. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  7828. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  7829. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  7830. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  7831. };
  7832. /* Attributes for data used by
  7833. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  7834. */
  7835. enum qca_wlan_vendor_attr_wifi_test_config {
  7836. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  7837. /* 8-bit unsigned value to configure the driver to enable/disable
  7838. * WMM feature. This attribute is used to configure testbed device.
  7839. * 1-enable, 0-disable
  7840. */
  7841. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  7842. /* 8-bit unsigned value to configure the driver to accept/reject
  7843. * the addba request from peer. This attribute is used to configure
  7844. * the testbed device.
  7845. * 1-accept addba, 0-reject addba
  7846. */
  7847. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  7848. /* 8-bit unsigned value to configure the driver to send or not to
  7849. * send the addba request to peer.
  7850. * This attribute is used to configure the testbed device.
  7851. * 1-send addba, 0-do not send addba
  7852. */
  7853. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  7854. /* 8-bit unsigned value to indicate the HE fragmentation support.
  7855. * Uses enum he_fragmentation_val values.
  7856. * This attribute is used to configure the testbed device to
  7857. * allow the advertised hardware capabilities to be downgraded
  7858. * for testing purposes.
  7859. */
  7860. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  7861. /* 8-bit unsigned value to indicate the HE MCS support.
  7862. * Uses enum he_mcs_config values.
  7863. * This attribute is used to configure the testbed device to
  7864. * allow the advertised hardware capabilities to be downgraded
  7865. * for testing purposes.
  7866. */
  7867. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  7868. /* 8-bit unsigned value to configure the driver to allow or not to
  7869. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  7870. * This attribute is used to configure the testbed device.
  7871. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  7872. */
  7873. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  7874. /* 8-bit unsigned value to configure the driver to add a
  7875. * new BA session or delete the existing BA session for
  7876. * given TID. ADDBA command uses the buffer size and tid
  7877. * configuration if user specifies the values else default
  7878. * value for buffer size is used for all tids if the tid
  7879. * also not specified. For DEL_BA command TID value is
  7880. * required to process the command.
  7881. * Uses enum qca_wlan_ba_session_config values.
  7882. * This attribute is used to configure the testbed device.
  7883. */
  7884. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  7885. /* 16-bit unsigned value to configure the buffer size in addba
  7886. * request and response frames.
  7887. * This attribute is used to configure the testbed device.
  7888. * The range of the value is 0 to 256.
  7889. */
  7890. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  7891. /* 8-bit unsigned value to configure the buffer size in addba
  7892. * request and response frames.
  7893. * This attribute is used to configure the testbed device.
  7894. */
  7895. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  7896. /* 8-bit unsigned value to configure the no ack policy.
  7897. * To configure no ack policy, access category value
  7898. * is required to process the command.
  7899. * This attribute is used to configure the testbed device.
  7900. * 1 - enable no ack, 0 - disable no ack
  7901. */
  7902. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  7903. /* 8-bit unsigned value to configure the AC for no ack policy
  7904. * This attribute is used to configure the testbed device.
  7905. * uses the enum qca_wlan_ac_type values
  7906. */
  7907. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  7908. /* 8-bit unsigned value to configure the HE LTF
  7909. * This attribute is used to configure the testbed device.
  7910. * Uses the enum qca_wlan_he_ltf_cfg values.
  7911. */
  7912. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  7913. /* 8-bit unsigned value to configure the tx beamformee.
  7914. * This attribute is used to configure the testbed device.
  7915. * 1 - enable, 0 - disable.
  7916. */
  7917. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  7918. /* 8-bit unsigned value to configure the tx beamformee number of
  7919. * space-time streams.
  7920. * This attribute is used to configure the testbed device.
  7921. * The range of the value is 0 to 8
  7922. */
  7923. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  7924. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  7925. * This attribute is used to configure the testbed device.
  7926. * Uses the enum qca_wlan_ac_type values.
  7927. */
  7928. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  7929. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  7930. * To configure MU EDCA AIFSN value, MU EDCA access category value
  7931. * is required to process the command.
  7932. * This attribute is used to configure the testbed device.
  7933. */
  7934. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  7935. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  7936. * given AC.
  7937. * To configure MU EDCA ECW min value, MU EDCA access category value
  7938. * is required to process the command.
  7939. * This attribute is used to configure the testbed device.
  7940. */
  7941. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  7942. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  7943. * given AC.
  7944. * To configure MU EDCA ECW max value, MU EDCA access category value
  7945. * is required to process the command.
  7946. * This attribute is used to configure the testbed device.
  7947. */
  7948. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  7949. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  7950. * To configure MU EDCA timer value, MU EDCA access category value
  7951. * is required to process the command.
  7952. * This attribute is used to configure the testbed device.
  7953. */
  7954. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  7955. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  7956. * duration.
  7957. * This attribute is used to configure the testbed device.
  7958. * Uses the enum qca_wlan_he_mac_padding_dur values.
  7959. */
  7960. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  7961. /* 8-bit unsigned value to override the MU EDCA params to defaults
  7962. * regardless of the AP beacon MU EDCA params. If it is enabled use
  7963. * the default values else use the MU EDCA params from AP beacon.
  7964. * This attribute is used to configure the testbed device.
  7965. * 1 - enable override, 0 - disable.
  7966. */
  7967. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  7968. /* 8-bit unsigned value to configure the support for receiving
  7969. * an MPDU that contains an operating mode control subfield.
  7970. * This attribute is used to configure the testbed device.
  7971. * 1-enable, 0-disable.
  7972. */
  7973. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  7974. /* Nested attribute values required to setup the TWT session.
  7975. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  7976. * information to set up the session. It contains broadcast flags,
  7977. * set_up flags, trigger value, flow type, flow ID, wake interval
  7978. * exponent, protection, target wake time, wake duration, wake interval
  7979. * mantissa. These nested attributes are used to setup a host triggered
  7980. * TWT session.
  7981. */
  7982. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  7983. /* This nested attribute is used to terminate the current TWT session.
  7984. * It does not currently carry any attributes.
  7985. */
  7986. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  7987. /* This nested attribute is used to suspend the current TWT session.
  7988. * It does not currently carry any attributes.
  7989. */
  7990. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  7991. /* Nested attribute values to indicate the request for resume.
  7992. * This attribute is used to resume the TWT session.
  7993. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  7994. * parameters required to resume the TWT session.
  7995. */
  7996. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  7997. /* 8-bit unsigned value to set the HE operating mode control
  7998. * (OM CTRL) Channel Width subfield.
  7999. * The Channel Width subfield indicates the operating channel width
  8000. * supported by the STA for both reception and transmission.
  8001. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  8002. * This setting is cleared with the
  8003. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8004. * flag attribute to reset defaults.
  8005. * This attribute is used to configure the testbed device.
  8006. */
  8007. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  8008. /* 8-bit unsigned value to configure the number of spatial
  8009. * streams in HE operating mode control field.
  8010. * This setting is cleared with the
  8011. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8012. * flag attribute to reset defaults.
  8013. * This attribute is used to configure the testbed device.
  8014. */
  8015. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  8016. /* Flag attribute to configure the UL MU disable bit in
  8017. * HE operating mode control field.
  8018. * This setting is cleared with the
  8019. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8020. * flag attribute to reset defaults.
  8021. * This attribute is used to configure the testbed device.
  8022. */
  8023. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  8024. /* Flag attribute to clear the previously set HE operating mode
  8025. * control field configuration.
  8026. * This attribute is used to configure the testbed device to reset
  8027. * defaults to clear any previously set HE operating mode control
  8028. * field configuration.
  8029. */
  8030. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  8031. /* 8-bit unsigned value to configure HE single user PPDU
  8032. * transmission. By default this setting is disabled and it
  8033. * is disabled in the reset defaults of the device configuration.
  8034. * This attribute is used to configure the testbed device.
  8035. * 1-enable, 0-disable
  8036. */
  8037. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  8038. /* 8-bit unsigned value to configure action frame transmission
  8039. * in HE trigger based PPDU transmission.
  8040. * By default this setting is disabled and it is disabled in
  8041. * the reset defaults of the device configuration.
  8042. * This attribute is used to configure the testbed device.
  8043. * 1-enable, 0-disable
  8044. */
  8045. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  8046. /* Nested attribute to indicate HE operating mode control field
  8047. * transmission. It contains operating mode control field Nss,
  8048. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  8049. * These nested attributes are used to send HE operating mode control
  8050. * with configured values.
  8051. * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
  8052. * This attribute is used to configure the testbed device.
  8053. */
  8054. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
  8055. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  8056. * support for the reception of a frame that carries an HE variant
  8057. * HT Control field.
  8058. * This attribute is used to configure the testbed device.
  8059. * 1-enable, 0-disable
  8060. */
  8061. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  8062. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  8063. * This attribute is used to configure the testbed device.
  8064. * 1-enable, 0-disable
  8065. */
  8066. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  8067. /* 8-bit unsigned value to configure HE testbed defaults.
  8068. * This attribute is used to configure the testbed device.
  8069. * 1-set the device HE capabilities to testbed defaults.
  8070. * 0-reset the device HE capabilities to supported config.
  8071. */
  8072. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  8073. /* 8-bit unsigned value to configure twt request support.
  8074. * This attribute is used to configure the testbed device.
  8075. * 1-enable, 0-disable.
  8076. */
  8077. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  8078. /* 8-bit unsigned value to configure protection for Management
  8079. * frames when PMF is enabled for the association.
  8080. * This attribute is used to configure the testbed device.
  8081. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  8082. */
  8083. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  8084. /* Flag attribute to inject Disassociation frame to the connected AP.
  8085. * This attribute is used to configure the testbed device.
  8086. */
  8087. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  8088. /* 8-bit unsigned value to configure an override for the RSNXE Used
  8089. * subfield in the MIC control field of the FTE in FT Reassociation
  8090. * Request frame.
  8091. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  8092. * This attribute is used to configure the testbed device.
  8093. * This attribute can be configured when STA is in disconnected or
  8094. * associated state and the configuration is valid until the next
  8095. * disconnection.
  8096. */
  8097. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  8098. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  8099. * Switch Announcement) when STA is in connected state.
  8100. * 0 - Default behavior, 1 - Ignore CSA.
  8101. * This attribute is used to configure the testbed device.
  8102. * This attribute can be configured when STA is in disconnected or
  8103. * associated state and the configuration is valid until the next
  8104. * disconnection.
  8105. */
  8106. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  8107. /* Nested attribute values required to configure OCI (Operating Channel
  8108. * Information). Attributes defined in enum
  8109. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  8110. * This attribute is used to configure the testbed device.
  8111. * This attribute can be configured when STA is in disconnected or
  8112. * associated state and the configuration is valid until the next
  8113. * disconnection.
  8114. */
  8115. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  8116. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  8117. * Query timeout. If this configuration is enabled STA shall not send
  8118. * Deauthentication frmae when SA Query times out (mainly, after a
  8119. * channel switch when OCV is enabled).
  8120. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  8121. * This attribute is used to configure the testbed device.
  8122. * This attribute can be configured only when STA is in associated state
  8123. * and the configuration is valid until the disconnection.
  8124. */
  8125. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  8126. /* 8-bit unsigned value to configure the driver/firmware to start or
  8127. * stop transmitting FILS discovery frames.
  8128. * 0 - Stop transmitting FILS discovery frames
  8129. * 1 - Start transmitting FILS discovery frames
  8130. * This attribute is used to configure the testbed device.
  8131. * This attribute can be configured only in AP mode and the
  8132. * configuration is valid until AP restart.
  8133. */
  8134. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  8135. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8136. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  8137. * information field.
  8138. * 0 - Disable full bandwidth UL MU-MIMO subfield
  8139. * 1 - Enable full bandwidth UL MU-MIMO subfield
  8140. * This attribute is used to configure the testbed device.
  8141. */
  8142. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  8143. /* 16-bit unsigned value to configure the driver with a specific BSS
  8144. * max idle period to advertise in the BSS Max Idle Period element
  8145. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  8146. * This attribute is used to configure the testbed device.
  8147. */
  8148. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  8149. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  8150. * for data transmission.
  8151. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  8152. * This attribute is used to configure the testbed device.
  8153. */
  8154. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  8155. /* 8-bit unsigned value to configure the driver to disable data and
  8156. * management response frame transmission to test the BSS max idle
  8157. * feature.
  8158. * 0 - Default behavior, 1 - Disable data and management response Tx.
  8159. * This attribute is used to configure the testbed device.
  8160. */
  8161. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  8162. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8163. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  8164. * information field.
  8165. * 0 - Disable Punctured Preamble Rx subfield
  8166. * 1 - Enable Punctured Preamble Rx subfield
  8167. * This attribute is used to configure the testbed device.
  8168. */
  8169. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  8170. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  8171. * requirement mismatch for 6 GHz connection.
  8172. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  8173. * This attribute is used to configure the testbed device.
  8174. */
  8175. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  8176. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  8177. * connection with all security modes.
  8178. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  8179. * modes.
  8180. * This attribute is used for testing purposes.
  8181. */
  8182. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  8183. /* 8-bit unsigned value to configure the driver to transmit data with
  8184. * ER SU PPDU type.
  8185. *
  8186. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  8187. * This attribute is used for testing purposes.
  8188. */
  8189. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  8190. /* 8-bit unsigned value to configure the driver to use Data or
  8191. * Management frame type for keep alive data.
  8192. * Uses enum qca_wlan_keep_alive_data_type values.
  8193. *
  8194. * This attribute is used for testing purposes.
  8195. */
  8196. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  8197. /* 8-bit unsigned value to configure the driver to use scan request
  8198. * BSSID value in Probe Request frame RA(A1) during the scan. The
  8199. * driver saves this configuration and applies this setting to all user
  8200. * space scan requests until the setting is cleared. If this
  8201. * configuration is set, the driver uses the BSSID value from the scan
  8202. * request to set the RA(A1) in the Probe Request frames during the
  8203. * scan.
  8204. *
  8205. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  8206. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  8207. * This attribute is used for testing purposes.
  8208. */
  8209. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  8210. /* 8-bit unsigned value to configure the driver to enable/disable the
  8211. * BSS max idle period support.
  8212. *
  8213. * 0 - Disable the BSS max idle support.
  8214. * 1 - Enable the BSS max idle support.
  8215. * This attribute is used for testing purposes.
  8216. */
  8217. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  8218. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8219. * disable Rx control frame to MultiBSS subfield in the HE MAC
  8220. * capabilities information field.
  8221. * 0 - Disable Rx control frame to MultiBSS subfield
  8222. * 1 - Enable Rx control frame to MultiBSS subfield
  8223. * This attribute is used to configure the testbed device.
  8224. */
  8225. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  8226. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8227. * disable Broadcast TWT support subfield in the HE MAC capabilities
  8228. * information field.
  8229. * 0 - Disable Broadcast TWT support subfield
  8230. * 1 - Enable Broadcast TWT support subfield
  8231. * This attribute is used to configure the testbed device.
  8232. */
  8233. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  8234. /* keep last */
  8235. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  8236. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  8237. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  8238. };
  8239. /**
  8240. * enum qca_wlan_twt_operation - Operation of the config TWT request
  8241. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  8242. * The response for the respective operations can be either synchronous or
  8243. * asynchronous (wherever specified). If synchronous, the response to this
  8244. * operation is obtained in the corresponding vendor command reply to the user
  8245. * space. For the asynchronous case the response is obtained as an event with
  8246. * the same operation type.
  8247. *
  8248. * Drivers shall support either of these modes but not both simultaneously.
  8249. * This support for asynchronous mode is advertised through the flag
  8250. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  8251. * the driver shall support synchronous mode.
  8252. *
  8253. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  8254. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8255. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  8256. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  8257. * synchronous or asynchronous operation.
  8258. *
  8259. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  8260. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8261. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  8262. *
  8263. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  8264. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8265. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8266. * This terminate can either get triggered by the user space or can as well be
  8267. * a notification from the firmware if it initiates a terminate.
  8268. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8269. * the request from user space can either be a synchronous or asynchronous
  8270. * operation.
  8271. *
  8272. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  8273. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8274. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8275. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8276. * this is either a synchronous or asynchronous operation.
  8277. *
  8278. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  8279. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8280. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  8281. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  8282. * request.
  8283. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8284. * capability, this is either a synchronous or asynchronous operation.
  8285. *
  8286. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  8287. * combination of suspend and resume in a single request. Required parameters
  8288. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  8289. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  8290. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8291. * capability, this is either a synchronous or asynchronous operation.
  8292. *
  8293. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  8294. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  8295. * session is setup. It's a synchronous operation.
  8296. *
  8297. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  8298. * Valid only after the TWT session is setup. It's a synchronous operation.
  8299. *
  8300. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  8301. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  8302. * operation.
  8303. *
  8304. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is
  8305. * ready for a new TWT session setup after it issued a twt teardown.
  8306. */
  8307. enum qca_wlan_twt_operation {
  8308. QCA_WLAN_TWT_SET = 0,
  8309. QCA_WLAN_TWT_GET = 1,
  8310. QCA_WLAN_TWT_TERMINATE = 2,
  8311. QCA_WLAN_TWT_SUSPEND = 3,
  8312. QCA_WLAN_TWT_RESUME = 4,
  8313. QCA_WLAN_TWT_NUDGE = 5,
  8314. QCA_WLAN_TWT_GET_STATS = 6,
  8315. QCA_WLAN_TWT_CLEAR_STATS = 7,
  8316. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  8317. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  8318. };
  8319. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  8320. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  8321. *
  8322. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  8323. * u8 attribute. Specify the TWT operation of this request. Possible values
  8324. * are defined in enum qca_wlan_twt_operation. The parameters for the
  8325. * respective operation is specified through
  8326. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  8327. *
  8328. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  8329. * parameters configured for TWT. These parameters are represented by
  8330. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume
  8331. * or enum qca_wlan_vendor_attr_twt_stats based on the operation.
  8332. */
  8333. enum qca_wlan_vendor_attr_config_twt {
  8334. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  8335. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  8336. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  8337. /* keep last */
  8338. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  8339. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  8340. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  8341. };
  8342. /**
  8343. * qca_wlan_twt_setup_state: Represents the TWT session states.
  8344. *
  8345. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  8346. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  8347. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  8348. */
  8349. enum qca_wlan_twt_setup_state {
  8350. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  8351. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  8352. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  8353. };
  8354. /**
  8355. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  8356. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  8357. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  8358. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  8359. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8360. *
  8361. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  8362. * Disable (flag attribute not present) - Individual TWT
  8363. * Enable (flag attribute present) - Broadcast TWT.
  8364. * Individual means the session is between the STA and the AP.
  8365. * This session is established using a separate negotiation between
  8366. * STA and AP.
  8367. * Broadcast means the session is across multiple STAs and an AP. The
  8368. * configuration parameters are announced in Beacon frames by the AP.
  8369. * This is used in
  8370. * 1. TWT SET Request and Response
  8371. * 2. TWT GET Response
  8372. *
  8373. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  8374. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  8375. * specify the TWT request type. This is used in TWT SET operation.
  8376. *
  8377. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  8378. * Enable (flag attribute present) - TWT with trigger support.
  8379. * Disable (flag attribute not present) - TWT without trigger support.
  8380. * Trigger means the AP will send the trigger frame to allow STA to send data.
  8381. * Without trigger, the STA will wait for the MU EDCA timer before
  8382. * transmitting the data.
  8383. * This is used in
  8384. * 1. TWT SET Request and Response
  8385. * 2. TWT GET Response
  8386. *
  8387. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  8388. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  8389. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  8390. * NULL frame to AP.
  8391. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  8392. * This is a required parameter for
  8393. * 1. TWT SET Request and Response
  8394. * 2. TWT GET Response
  8395. *
  8396. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  8397. * Flow ID is the unique identifier for each TWT session.
  8398. * If not provided then dialog ID will be set to zero.
  8399. * This is an optional parameter for
  8400. * 1. TWT SET Request and Response
  8401. * 2. TWT GET Request and Response
  8402. * 3. TWT TERMINATE Request and Response
  8403. * 4. TWT SUSPEND Request and Response
  8404. * Flow Id values from 0 to 254 represent a single TWT session
  8405. * Flow ID value of 255 represents all twt sessions for the following
  8406. * 1. TWT TERMINATE Request and Response
  8407. * 2. TWT SUSPEND Request and Response
  8408. * 4. TWT CLEAR STATISTICS request
  8409. * 5. TWT GET STATISTICS request and response
  8410. * If an invalid dialog id is provided, status
  8411. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  8412. *
  8413. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  8414. * This attribute (exp) is used along with the mantissa to derive the
  8415. * wake interval using the following formula:
  8416. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  8417. * Wake interval is the interval between 2 successive SP.
  8418. * This is a required parameter for
  8419. * 1. TWT SET Request and Response
  8420. * 2. TWT GET Response
  8421. *
  8422. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  8423. * Enable (flag attribute present) - Protection required.
  8424. * Disable (flag attribute not present) - Protection not required.
  8425. * If protection is enabled, then the AP will use protection
  8426. * mechanism using RTS/CTS to self to reserve the airtime.
  8427. * This is used in
  8428. * 1. TWT SET Request and Response
  8429. * 2. TWT GET Response
  8430. *
  8431. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  8432. * This attribute is used as the SP offset which is the offset from
  8433. * TSF after which the wake happens. The units are in microseconds. If
  8434. * this attribute is not provided, then the value will be set to zero.
  8435. * This is an optional parameter for
  8436. * 1. TWT SET Request and Response
  8437. * 2. TWT GET Response
  8438. *
  8439. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  8440. * This is the duration of the service period. This is specified as
  8441. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  8442. * This is a required parameter for
  8443. * 1. TWT SET Request and Response
  8444. * 2. TWT GET Response
  8445. *
  8446. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  8447. * This attribute is used to configure wake interval mantissa.
  8448. * The units are in TU.
  8449. * This is a required parameter for
  8450. * 1. TWT SET Request and Response
  8451. * 2. TWT GET Response
  8452. *
  8453. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  8454. * This field is applicable for TWT response only.
  8455. * This contains status values in enum qca_wlan_vendor_twt_status
  8456. * and is passed to the userspace. This is used in TWT SET operation.
  8457. * This is a required parameter for
  8458. * 1. TWT SET Response
  8459. * 2. TWT TERMINATE Response
  8460. * 3. TWT SUSPEND Response
  8461. * 4. TWT RESUME Response
  8462. * 5. TWT NUDGE Response
  8463. *
  8464. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  8465. * This field is applicable for TWT response only.
  8466. * This field contains response type from the TWT responder and is
  8467. * passed to the userspace. The values for this field are defined in
  8468. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  8469. * response.
  8470. *
  8471. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  8472. * In TWT setup command this field contains absolute TSF that will
  8473. * be used by TWT requester during setup.
  8474. * In TWT response this field contains absolute TSF value of the
  8475. * wake time received from the TWT responder and is passed to
  8476. * the userspace.
  8477. * This is an optional parameter for
  8478. * 1. TWT SET Request
  8479. * This is a required parameter for
  8480. * 1. TWT SET Response
  8481. * 2. TWT GET Response
  8482. *
  8483. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  8484. * Enable (flag attribute present) - Indicates that the TWT responder
  8485. * supports reception of TWT information frame from the TWT requestor.
  8486. * Disable (flag attribute not present) - Indicates that the responder
  8487. * doesn't support reception of TWT information frame from requestor.
  8488. * This is used in
  8489. * 1. TWT SET Response
  8490. * 2. TWT GET Response
  8491. *
  8492. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  8493. * Represents the MAC address of the peer for which the TWT session
  8494. * is being configured. This is used in AP mode to represent the respective
  8495. * client
  8496. * In AP mode, this is a required parameter in response for
  8497. * 1. TWT SET
  8498. * 2. TWT GET
  8499. * 3. TWT TERMINATE
  8500. * 4. TWT SUSPEND
  8501. * In STA mode, this is an optional parameter in request and response for
  8502. * the above four TWT operations.
  8503. * In AP mode, this is a required parameter in request for
  8504. * 1. TWT GET
  8505. * 2. TWT TERMINATE
  8506. *
  8507. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  8508. * Minimum tolerance limit of wake interval parameter in microseconds.
  8509. *
  8510. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  8511. * Maximum tolerance limit of wake interval parameter in microseconds.
  8512. *
  8513. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  8514. * Minimum tolerance limit of wake duration parameter in microseconds.
  8515. *
  8516. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  8517. * Maximum tolerance limit of wake duration parameter in microseconds.
  8518. *
  8519. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  8520. * TWT state for the given dialog id. The values for this are represented
  8521. * by enum qca_wlan_twt_setup_state.
  8522. * This is obtained through TWT GET operation.
  8523. *
  8524. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  8525. * This attribute is used to configure wake interval mantissa.
  8526. * The unit is microseconds. This attribute, when specified, takes
  8527. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  8528. * This parameter is used for
  8529. * 1. TWT SET Request and Response
  8530. * 2. TWT GET Response
  8531. *
  8532. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  8533. * This attribute is used to configure Broadcast TWT ID.
  8534. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  8535. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  8536. * This parameter is used for
  8537. * 1. TWT SET Request
  8538. * 2. TWT TERMINATE Request
  8539. *
  8540. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  8541. * This attribute is used to configure Broadcast TWT recommendation.
  8542. * The Broadcast TWT Recommendation subfield contains a value that indicates
  8543. * recommendations on the types of frames that are transmitted by TWT
  8544. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  8545. * The allowed values are 0 - 3.
  8546. * This parameter is used for
  8547. * 1. TWT SET Request
  8548. *
  8549. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  8550. * This attribute is used to configure Broadcast TWT Persistence.
  8551. * The Broadcast TWT Persistence subfield indicates the number of
  8552. * TBTTs during which the Broadcast TWT SPs corresponding to this
  8553. * broadcast TWT Parameter set are present. The number of beacon intervals
  8554. * during which the Broadcast TWT SPs are present is equal to the value in the
  8555. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  8556. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  8557. * This parameter is used for
  8558. * 1. TWT SET Request
  8559. *
  8560. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  8561. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  8562. * from TWT response frame.
  8563. * This parameter is used for
  8564. * 1. TWT SET Response
  8565. * 2. TWT GET Response
  8566. */
  8567. enum qca_wlan_vendor_attr_twt_setup {
  8568. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  8569. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  8570. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  8571. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  8572. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  8573. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  8574. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  8575. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  8576. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  8577. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  8578. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  8579. /* TWT Response only attributes */
  8580. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  8581. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  8582. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  8583. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  8584. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  8585. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  8586. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  8587. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  8588. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  8589. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  8590. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  8591. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  8592. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  8593. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  8594. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  8595. /* keep last */
  8596. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  8597. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  8598. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  8599. };
  8600. /**
  8601. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  8602. * TWT operation
  8603. *
  8604. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  8605. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  8606. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  8607. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  8608. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  8609. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  8610. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  8611. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  8612. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  8613. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  8614. * request/response frame
  8615. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  8616. * frame
  8617. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  8618. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  8619. * unknown reason
  8620. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  8621. * suspend state
  8622. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  8623. * invalid IE in the received TWT frame
  8624. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  8625. * the responder are not in the specified range
  8626. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  8627. * session due to request from the responder. Used on the TWT_TERMINATE
  8628. * notification from the firmware.
  8629. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  8630. * session due to roaming. Used on the TWT_TERMINATE notification from the
  8631. * firmware.
  8632. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  8633. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  8634. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  8635. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  8636. * request due to roaming in progress.
  8637. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  8638. * setup request due to channel switch in progress.
  8639. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  8640. * request due to scan in progress.
  8641. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  8642. * terminate an existing TWT session on power save exit request from userspace.
  8643. * Used on the TWT_TERMINATE notification from the driver/firmware.
  8644. */
  8645. enum qca_wlan_vendor_twt_status {
  8646. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  8647. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  8648. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  8649. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  8650. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  8651. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  8652. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  8653. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  8654. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  8655. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  8656. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  8657. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  8658. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  8659. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  8660. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  8661. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  8662. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  8663. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  8664. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  8665. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  8666. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  8667. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  8668. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  8669. };
  8670. /**
  8671. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  8672. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  8673. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  8674. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  8675. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8676. *
  8677. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  8678. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  8679. * These attributes are used as the SP offset which is the offset from TSF after
  8680. * which the wake happens. The units are in microseconds. Please note that
  8681. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  8682. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  8683. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  8684. * will be set to zero.
  8685. *
  8686. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  8687. * This attribute represents the next TWT subfield size.
  8688. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  8689. * and 4 for 64 bits.
  8690. *
  8691. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  8692. * Flow ID is the unique identifier for each TWT session. This attribute
  8693. * represents the respective TWT session to resume.
  8694. * Flow Id values from 0 to 254 represent a single TWT session
  8695. * Flow ID value of 255 represents all TWT sessions.
  8696. * If an invalid dialog id is provided, status
  8697. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  8698. *
  8699. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  8700. * Represents the MAC address of the peer to which TWT Resume is
  8701. * being sent. This is used in AP mode to represent the respective
  8702. * client and is a required parameter. In STA mode, this is an optional
  8703. * parameter
  8704. *
  8705. */
  8706. enum qca_wlan_vendor_attr_twt_resume {
  8707. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  8708. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  8709. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  8710. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  8711. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  8712. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  8713. /* keep last */
  8714. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  8715. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  8716. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  8717. };
  8718. /**
  8719. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  8720. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  8721. * and resume in a single request. These attributes are sent as part of
  8722. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8723. *
  8724. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  8725. * Flow ID is the unique identifier for each TWT session. This attribute
  8726. * represents the respective TWT session to suspend and resume.
  8727. *
  8728. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  8729. * Flow ID is the unique identifier for each TWT session. This attribute
  8730. * represents the respective TWT session to suspend and resume.
  8731. * Flow Id values from 0 to 254 represent a single TWT session
  8732. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  8733. * and response.
  8734. * If an invalid dialog id is provided, status
  8735. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  8736. *
  8737. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  8738. * This attribute is used as the SP offset which is the offset from
  8739. * TSF after which the wake happens. The units are in microseconds.
  8740. *
  8741. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  8742. * This attribute represents the next TWT subfield size.
  8743. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  8744. * and 4 for 64 bits.
  8745. *
  8746. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  8747. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  8748. * being sent. This is used in AP mode to represent the respective
  8749. * client and is a required parameter. In STA mode, this is an optional
  8750. * parameter.
  8751. *
  8752. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  8753. * This field contains absolute TSF value of the time at which twt
  8754. * sesion will be resumed.
  8755. */
  8756. enum qca_wlan_vendor_attr_twt_nudge {
  8757. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  8758. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  8759. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  8760. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  8761. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  8762. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  8763. /* keep last */
  8764. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  8765. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  8766. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  8767. };
  8768. /**
  8769. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  8770. * TWT (Target Wake Time) get statistics and clear statistics request.
  8771. * These attributes are sent as part of
  8772. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8773. *
  8774. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  8775. * Flow ID is the unique identifier for each TWT session. This attribute
  8776. * represents the respective TWT session for get and clear TWT statistics.
  8777. * Flow Id values from 0 to 254 represent a single TWT session
  8778. * Flow ID value of 255 represents all TWT sessions in
  8779. * 1) TWT GET STATISTICS request and response
  8780. * 2) TWT CLEAR STATISTICS request
  8781. *
  8782. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  8783. * Represents the MAC address of the peer for which TWT Statistics
  8784. * is required.
  8785. * In AP mode this is used to represent the respective
  8786. * client and is a required parameter for
  8787. * 1) TWT GET STATISTICS request and response
  8788. * 2) TWT CLEAR STATISTICS request and response
  8789. * In STA mode, this is an optional parameter.
  8790. *
  8791. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  8792. * This is the duration of the service period in microseconds.
  8793. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8794. *
  8795. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  8796. * Average of actual wake duration observed so far. Unit is microseconds.
  8797. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8798. *
  8799. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  8800. * Number of TWT service period elapsed so far.
  8801. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8802. *
  8803. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  8804. * This is the minimum value of wake duration observed across
  8805. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  8806. * microseconds.
  8807. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8808. *
  8809. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  8810. * This is the maximum value of wake duration observed across
  8811. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  8812. * microseconds.
  8813. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8814. *
  8815. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  8816. * Average number of MPDU's transmitted successfully across
  8817. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  8818. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8819. *
  8820. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  8821. * Average number of MPDU's received successfully across
  8822. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  8823. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8824. *
  8825. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  8826. * Average number of bytes transmitted successfully across
  8827. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  8828. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8829. *
  8830. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  8831. * Average number of bytes received successfully across
  8832. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  8833. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8834. *
  8835. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  8836. * Status of the TWT GET STATISTICS request.
  8837. * This contains status values in enum qca_wlan_vendor_twt_status
  8838. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8839. */
  8840. enum qca_wlan_vendor_attr_twt_stats {
  8841. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  8842. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  8843. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  8844. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  8845. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  8846. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  8847. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  8848. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  8849. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  8850. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  8851. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  8852. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  8853. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  8854. /* keep last */
  8855. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  8856. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  8857. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  8858. };
  8859. /**
  8860. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  8861. * supported by the device and peer.
  8862. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  8863. *
  8864. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  8865. * TWT non-scheduling STA. This capability is advertised in the HE
  8866. * capability/Extended capabilities information element in the
  8867. * Association request frame by the device.
  8868. *
  8869. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  8870. * by the TWT scheduling AP. This capability is advertised in the extended
  8871. * capabilities/HE capabilities information element.
  8872. *
  8873. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  8874. * for the broadcast TWT functionality. On responder side, this indicates
  8875. * support for the role of broadcast TWT scheduling functionality. This
  8876. * capability is advertised in the HE capabilities information element.
  8877. *
  8878. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  8879. * This capability is advertised in the HE capabilities information element.
  8880. *
  8881. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  8882. * that it mandates the associated HE STAs to support TWT. This capability is
  8883. * advertised by AP in the HE Operation Parameters field of the HE operation
  8884. * information element.
  8885. */
  8886. enum qca_wlan_twt_capa {
  8887. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  8888. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  8889. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  8890. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  8891. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  8892. };
  8893. /**
  8894. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  8895. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  8896. * operation.
  8897. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  8898. * Represents the MAC address of the peer for which the TWT capabilities
  8899. * are being queried. This is used in AP mode to represent the respective
  8900. * client. In STA mode, this is an optional parameter.
  8901. *
  8902. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  8903. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  8904. * enum qca_wlan_twt_capa.
  8905. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  8906. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  8907. * enum qca_wlan_twt_capa.
  8908. */
  8909. enum qca_wlan_vendor_attr_twt_capability {
  8910. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  8911. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  8912. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  8913. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  8914. /* keep last */
  8915. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  8916. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  8917. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  8918. };
  8919. /**
  8920. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  8921. * the TWT responder
  8922. *
  8923. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  8924. * parameters that are different from TWT requesting STA suggested
  8925. * or demanded TWT parameters
  8926. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  8927. * parameters that are different from TWT requesting STA TWT suggested
  8928. * or demanded parameters
  8929. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  8930. * setup
  8931. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  8932. * setup.
  8933. */
  8934. enum qca_wlan_vendor_twt_setup_resp_type {
  8935. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  8936. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  8937. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  8938. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  8939. };
  8940. /**
  8941. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  8942. * Represents the setup type being requested for TWT.
  8943. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  8944. * parameters but relying on AP to fill the parameters during the negotiation.
  8945. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  8946. * values which the AP may accept or AP may provide alternative parameters
  8947. * which the STA may accept.
  8948. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  8949. * alternate parameters than the requested ones.
  8950. */
  8951. enum qca_wlan_vendor_twt_setup_req_type {
  8952. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  8953. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  8954. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  8955. };
  8956. /**
  8957. * enum qca_wlan_throughput_level - Current throughput level
  8958. *
  8959. * Indicates the current level of throughput calculated by driver. The driver
  8960. * may choose different thresholds to decide whether the throughput level is
  8961. * low or medium or high based on variety of parameters like physical link
  8962. * capacity of current connection, number of pakcets being dispatched per
  8963. * second etc. The throughput level events might not be consistent with the
  8964. * actual current throughput value being observed.
  8965. *
  8966. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  8967. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  8968. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  8969. */
  8970. enum qca_wlan_throughput_level {
  8971. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  8972. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  8973. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  8974. };
  8975. /**
  8976. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  8977. * report throughput changes from driver to user space. enum values are used
  8978. * for NL attributes sent with
  8979. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  8980. */
  8981. enum qca_wlan_vendor_attr_throughput_change {
  8982. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  8983. /*
  8984. * Indicates the direction of throughput in which the change is being
  8985. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  8986. */
  8987. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  8988. /*
  8989. * Indicates the newly observed throughput level.
  8990. * qca_wlan_throughput_level describes the possible range of values.
  8991. * u8 attribute.
  8992. */
  8993. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  8994. /*
  8995. * Indicates the driver's guidance on the new value to be set to
  8996. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  8997. * may optionally include this attribute.
  8998. */
  8999. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  9000. /*
  9001. * Indicates the driver's guidance on the new value to be set to
  9002. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  9003. * values are from -31 to 31. Driver may optionally include this
  9004. * attribute.
  9005. */
  9006. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  9007. /*
  9008. * Indicates the driver's guidance on the new value to be set to
  9009. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  9010. * optionally include this attribute.
  9011. */
  9012. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  9013. /* keep last */
  9014. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  9015. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  9016. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  9017. };
  9018. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  9019. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  9020. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9021. */
  9022. enum qca_wlan_nan_ext_subcmd_type {
  9023. /* Subcmd of type NAN Enable Request */
  9024. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  9025. /* Subcmd of type NAN Disable Request */
  9026. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  9027. };
  9028. /**
  9029. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  9030. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9031. */
  9032. enum qca_wlan_vendor_attr_nan_params {
  9033. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  9034. /* Carries NAN command for firmware component. Every vendor command
  9035. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  9036. * payload containing the NAN command. NLA_BINARY attribute.
  9037. */
  9038. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  9039. /* Indicates the type of NAN command sent with
  9040. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  9041. * describes the possible range of values. This attribute is mandatory
  9042. * if the command being issued is either
  9043. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  9044. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  9045. */
  9046. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  9047. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  9048. * band. This attribute is mandatory when command type is
  9049. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  9050. */
  9051. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  9052. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  9053. * band. This attribute is optional and should be included when command
  9054. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  9055. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  9056. */
  9057. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  9058. /* keep last */
  9059. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  9060. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  9061. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  9062. };
  9063. /**
  9064. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  9065. * transport modes and is used by attribute
  9066. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  9067. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9068. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  9069. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  9070. * data. The data shall be encapsulated within
  9071. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along withe vendor sub command
  9072. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  9073. */
  9074. enum qca_wlan_vendor_cfr_data_transport_modes {
  9075. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  9076. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  9077. };
  9078. /**
  9079. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  9080. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  9081. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9082. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  9083. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  9084. * with phase
  9085. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  9086. */
  9087. enum qca_wlan_vendor_cfr_method {
  9088. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  9089. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  9090. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  9091. };
  9092. /**
  9093. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  9094. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  9095. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  9096. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  9097. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  9098. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  9099. * is provided by one or more of below attributes:
  9100. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  9101. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  9102. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  9103. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  9104. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  9105. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  9106. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9107. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  9108. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  9109. */
  9110. enum qca_wlan_vendor_cfr_capture_type {
  9111. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  9112. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  9113. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  9114. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  9115. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  9116. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  9117. };
  9118. /**
  9119. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  9120. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  9121. * Channel Frequency Response capture parameters and enable periodic CFR
  9122. * capture.
  9123. *
  9124. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  9125. * MAC address of peer. This is for CFR version 1 only.
  9126. *
  9127. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  9128. * Enable peer CFR Capture. This attribute is mandatory to
  9129. * enable peer CFR capture. If this attribute is not present,
  9130. * peer CFR capture is disabled.
  9131. *
  9132. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  9133. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  9134. * Supported values: 20, 40, 80, 80+80, 160.
  9135. * Note that all targets may not support all bandwidths.
  9136. * This attribute is mandatory for version 1 if attribute
  9137. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9138. *
  9139. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  9140. * Periodicity of CFR measurement in msec.
  9141. * Periodicity should be a multiple of Base timer.
  9142. * Current Base timer value supported is 10 msecs (default).
  9143. * 0 for one shot capture.
  9144. * This attribute is mandatory for version 1 if attribute
  9145. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9146. *
  9147. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  9148. * Method used to capture Channel Frequency Response.
  9149. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  9150. * This attribute is mandatory for version 1 if attribute
  9151. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9152. *
  9153. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  9154. * Enable periodic CFR capture.
  9155. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  9156. * If this attribute is not present, periodic CFR capture is disabled.
  9157. *
  9158. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  9159. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  9160. * can't be enabled at same time. This attribute is mandatory if target
  9161. * support both versions and use one of them.
  9162. *
  9163. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  9164. * This attribute is mandatory for version 2 if
  9165. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  9166. * Bits 15:0 Bit fields indicating which group to be enabled.
  9167. * Bits 31:16 Reserved for future use.
  9168. *
  9169. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  9170. * CFR capture duration in microsecond. This attribute is mandatory for
  9171. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  9172. *
  9173. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  9174. * CFR capture interval in microsecond. This attribute is mandatory for
  9175. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  9176. *
  9177. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  9178. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  9179. * This attribute is mandatory for version 2.
  9180. *
  9181. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  9182. * Bit fields indicating which user in the current UL MU
  9183. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  9184. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  9185. * then the CFR capture will happen for user index 0 in the current
  9186. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  9187. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  9188. * This is for CFR version 2 only.
  9189. *
  9190. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  9191. * Indicates the number of consecutive Rx packets to be skipped
  9192. * before CFR capture is enabled again.
  9193. * This is for CFR version 2 only.
  9194. *
  9195. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  9196. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  9197. *
  9198. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  9199. * the following GROUP attributes:
  9200. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  9201. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  9202. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  9203. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  9204. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  9205. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  9206. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  9207. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  9208. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  9209. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9210. *
  9211. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  9212. * Target support multiple groups for some configurations. Group number could be
  9213. * any value between 0 and 15. This is for CFR version 2 only.
  9214. *
  9215. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  9216. * Transmitter address which is used to filter packets, this MAC address takes
  9217. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  9218. * This is for CFR version 2 only.
  9219. *
  9220. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  9221. * Receiver address which is used to filter packets, this MAC address takes
  9222. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  9223. * This is for CFR version 2 only.
  9224. *
  9225. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  9226. * Mask of transmitter address which is used to filter packets.
  9227. * This is for CFR version 2 only.
  9228. *
  9229. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  9230. * Mask of receiver address which is used to filter packets.
  9231. * This is for CFR version 2 only.
  9232. *
  9233. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  9234. * Indicates packets with a specific NSS will be filtered for CFR capture.
  9235. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  9236. * be done for packets matching the NSS specified within this bitmask.
  9237. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  9238. * bit 0 : NSS 1
  9239. * bit 1 : NSS 2
  9240. * ...
  9241. * bit 7 : NSS 8
  9242. *
  9243. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  9244. * Indicates packets with a specific BW will be filtered for CFR capture.
  9245. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  9246. * will be done for packets matching the bandwidths specified within this
  9247. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  9248. * numerated in enum nl80211_band (although not all bands may be supported
  9249. * by a given device).
  9250. *
  9251. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  9252. * Management packets matching the subtype filter categories will be
  9253. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9254. * represents the corresponding mgmt subtype value as per
  9255. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9256. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  9257. * This is for CFR version 2 only
  9258. *
  9259. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  9260. * Control packets matching the subtype filter categories will be
  9261. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9262. * represents the corresponding control subtype value as per
  9263. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9264. * This is for CFR version 2 only.
  9265. *
  9266. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  9267. * Data packets matching the subtype filter categories will be
  9268. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9269. * represents the corresponding data subtype value as per
  9270. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9271. * This is for CFR version 2 only.
  9272. *
  9273. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  9274. * Userspace can use this attribute to specify the driver about which transport
  9275. * mode shall be used by the driver to send CFR data to userspace. Uses values
  9276. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  9277. * not present, driver shall choose the default transport mechanism which is
  9278. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  9279. *
  9280. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  9281. * Userspace can use this attribute to specify the nl port id of the application
  9282. * which receives the CFR data and processes it further so that the drivers can
  9283. * unicast the NL events to a specific application. Optionally included when
  9284. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  9285. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  9286. * shall multicast the netlink events when this attribute is not included.
  9287. *
  9288. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  9289. * This attribute will be used by the driver to encapsulate and send CFR data
  9290. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  9291. * asynchronous event when the driver is configured to send CFR data using NL
  9292. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  9293. *
  9294. */
  9295. enum qca_wlan_vendor_peer_cfr_capture_attr {
  9296. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  9297. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  9298. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  9299. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  9300. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  9301. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  9302. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  9303. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  9304. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  9305. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  9306. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  9307. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  9308. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  9309. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  9310. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  9311. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  9312. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  9313. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  9314. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  9315. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  9316. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  9317. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  9318. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  9319. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  9320. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  9321. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  9322. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  9323. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  9324. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  9325. /* Keep last */
  9326. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  9327. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  9328. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  9329. };
  9330. /**
  9331. * enum qca_coex_config_profiles - This enum defines different types of
  9332. * traffic streams that can be prioritized one over the other during coex
  9333. * scenarios.
  9334. * The types defined in this enum are categorized in the below manner.
  9335. * 0 - 31 values corresponds to WLAN
  9336. * 32 - 63 values corresponds to BT
  9337. * 64 - 95 values corresponds to Zigbee
  9338. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  9339. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  9340. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  9341. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  9342. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  9343. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  9344. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  9345. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  9346. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  9347. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  9348. * @QCA_BT_A2DP: Prioritize BT A2DP
  9349. * @QCA_BT_BLE: Prioritize BT BLE
  9350. * @QCA_BT_SCO: Prioritize BT SCO
  9351. * @QCA_ZB_LOW: Prioritize Zigbee Low
  9352. * @QCA_ZB_HIGH: Prioritize Zigbee High
  9353. */
  9354. enum qca_coex_config_profiles {
  9355. /* 0 - 31 corresponds to WLAN */
  9356. QCA_WIFI_STA_DISCOVERY = 0,
  9357. QCA_WIFI_STA_CONNECTION = 1,
  9358. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  9359. QCA_WIFI_STA_DATA = 3,
  9360. QCA_WIFI_STA_ALL = 4,
  9361. QCA_WIFI_SAP_DISCOVERY = 5,
  9362. QCA_WIFI_SAP_CONNECTION = 6,
  9363. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  9364. QCA_WIFI_SAP_DATA = 8,
  9365. QCA_WIFI_SAP_ALL = 9,
  9366. QCA_WIFI_CASE_MAX = 31,
  9367. /* 32 - 63 corresponds to BT */
  9368. QCA_BT_A2DP = 32,
  9369. QCA_BT_BLE = 33,
  9370. QCA_BT_SCO = 34,
  9371. QCA_BT_CASE_MAX = 63,
  9372. /* 64 - 95 corresponds to Zigbee */
  9373. QCA_ZB_LOW = 64,
  9374. QCA_ZB_HIGH = 65,
  9375. QCA_ZB_CASE_MAX = 95,
  9376. /* 0xff is default value if the u8 profile value is not set. */
  9377. QCA_PROFILE_DEFAULT_VALUE = 255
  9378. };
  9379. /**
  9380. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  9381. * This enum defines the valid set of values of coex configuration types. These
  9382. * values may used by attribute
  9383. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  9384. *
  9385. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  9386. * weights to default values.
  9387. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  9388. * weights with configurability value.
  9389. */
  9390. enum qca_vendor_attr_coex_config_types {
  9391. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  9392. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  9393. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  9394. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  9395. };
  9396. /**
  9397. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  9398. * attributes
  9399. * Attributes for data used by
  9400. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  9401. *
  9402. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  9403. * Indicate config type.
  9404. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  9405. *
  9406. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  9407. * Indicate the Priority 1 profiles.
  9408. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9409. * In same priority level, maximum to 4 profiles can be set here.
  9410. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  9411. * Indicate the Priority 2 profiles.
  9412. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9413. * In same priority level, maximum to 4 profiles can be set here.
  9414. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  9415. * Indicate the Priority 3 profiles.
  9416. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9417. * In same priority level, maximum to 4 profiles can be set here.
  9418. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  9419. * Indicate the Priority 4 profiles.
  9420. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9421. * In same priority level, maximum to 4 profiles can be set here.
  9422. * NOTE:
  9423. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  9424. * arrangement:
  9425. * 1: In the same u32 attribute(priority x), the profiles enum values own
  9426. * same priority level.
  9427. * 2: 0xff is default value if the u8 profile value is not set.
  9428. * 3: max to 4 rules/profiles in same priority level.
  9429. * 4: max to 4 priority level (priority 1 - priority 4)
  9430. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  9431. * hybrid rules not support.
  9432. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  9433. * remain blank to reset all parameters.
  9434. * For example:
  9435. *
  9436. * If the attributes as follow:
  9437. * priority 1:
  9438. * ------------------------------------
  9439. * | 0xff | 0 | 1 | 2 |
  9440. * ------------------------------------
  9441. * priority 2:
  9442. * -------------------------------------
  9443. * | 0xff | 0xff | 0xff | 32 |
  9444. * -------------------------------------
  9445. * priority 3:
  9446. * -------------------------------------
  9447. * | 0xff | 0xff | 0xff | 65 |
  9448. * -------------------------------------
  9449. * then it means:
  9450. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  9451. * owns same priority level.
  9452. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  9453. * has priority over BT_A2DP and ZB_HIGH.
  9454. * 3: BT_A2DP has priority over ZB_HIGH.
  9455. */
  9456. enum qca_vendor_attr_coex_config_three_way {
  9457. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  9458. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  9459. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  9460. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  9461. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  9462. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  9463. /* Keep last */
  9464. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  9465. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  9466. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  9467. };
  9468. /**
  9469. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  9470. * This enum defines the valid set of values of peer stats cache types. These
  9471. * values are used by attribute
  9472. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  9473. *
  9474. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  9475. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  9476. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  9477. * statistics
  9478. */
  9479. enum qca_vendor_attr_peer_stats_cache_type {
  9480. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  9481. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  9482. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  9483. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  9484. };
  9485. /**
  9486. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  9487. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  9488. * Attributes are required to flush peer rate statistics from driver to
  9489. * user application.
  9490. *
  9491. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  9492. * Indicate peer stats cache type.
  9493. * The statistics types are 32-bit values from
  9494. * qca_vendor_attr_peer_stats_cache_type
  9495. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  9496. * of size 6, representing peer mac address.
  9497. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  9498. * containing buffer of statistics to send event to application layer entity.
  9499. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  9500. * representing cookie for peer unique session.
  9501. */
  9502. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  9503. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  9504. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  9505. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  9506. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  9507. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  9508. /* Keep last */
  9509. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  9510. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  9511. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  9512. };
  9513. /**
  9514. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  9515. * this enum defines all the possible state of zigbee, which can be
  9516. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  9517. *
  9518. * @ZIGBEE_IDLE: zigbee in idle state
  9519. * @ZIGBEE_FORM_NETWORK: zibee forming network
  9520. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  9521. * @ZIGBEE_JOIN: zigbee joining network
  9522. * @ZIGBEE_NETWORK_UP: zigbee network is up
  9523. * @ZIGBEE_HMI: zigbee in HMI mode
  9524. */
  9525. enum qca_mpta_helper_attr_zigbee_state {
  9526. ZIGBEE_IDLE = 0,
  9527. ZIGBEE_FORM_NETWORK = 1,
  9528. ZIGBEE_WAIT_JOIN = 2,
  9529. ZIGBEE_JOIN = 3,
  9530. ZIGBEE_NETWORK_UP = 4,
  9531. ZIGBEE_HMI = 5,
  9532. };
  9533. /**
  9534. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  9535. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  9536. */
  9537. enum qca_mpta_helper_vendor_attr {
  9538. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  9539. /* Optional attribute used to update zigbee state.
  9540. * enum qca_mpta_helper_attr_zigbee_state.
  9541. * NLA_U32 attribute.
  9542. */
  9543. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  9544. /* Optional attribute used to configure wlan duration for Shape-OCS
  9545. * during interrupt.
  9546. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  9547. * Value range 0 ~ 300 (ms).
  9548. * NLA_U32 attribute.
  9549. */
  9550. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  9551. /* Optional attribute used to configure non wlan duration for Shape-OCS
  9552. * during interrupt.
  9553. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  9554. * Value range 0 ~ 300 (ms).
  9555. * NLA_U32 attribute.
  9556. */
  9557. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  9558. /* Optional attribute used to configure wlan duration for Shape-OCS
  9559. * monitor period.
  9560. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  9561. * Value range 0 ~ 300 (ms)
  9562. * NLA_U32 attribute
  9563. */
  9564. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  9565. /* Optional attribute used to configure non wlan duration for Shape-OCS
  9566. * monitor period.
  9567. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  9568. * Value range 0 ~ 300 (ms)
  9569. * NLA_U32 attribute
  9570. */
  9571. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  9572. /* Optional attribute used to configure ocs interrupt duration.
  9573. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  9574. * Value range 1000 ~ 20000 (ms)
  9575. * NLA_U32 attribute
  9576. */
  9577. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  9578. /* Optional attribute used to configure ocs monitor duration.
  9579. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  9580. * Value range 1000 ~ 20000 (ms)
  9581. * NLA_U32 attribute
  9582. */
  9583. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  9584. /* Optional attribute used to notify wlan FW current zigbee channel.
  9585. * Value range 11 ~ 26
  9586. * NLA_U32 attribute
  9587. */
  9588. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  9589. /* Optional attribute used to configure wlan mute duration.
  9590. * Value range 0 ~ 400 (ms)
  9591. * NLA_U32 attribute
  9592. */
  9593. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  9594. /* keep last */
  9595. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  9596. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  9597. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  9598. };
  9599. /**
  9600. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  9601. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  9602. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  9603. *
  9604. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  9605. * to request the driver to start reporting Beacon frames.
  9606. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  9607. * to request the driver to stop reporting Beacon frames.
  9608. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  9609. * userspace to report received Beacon frames.
  9610. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  9611. * to indicate that the driver is going to pause reporting Beacon frames.
  9612. */
  9613. enum qca_wlan_vendor_beacon_reporting_op_types {
  9614. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  9615. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  9616. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  9617. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  9618. };
  9619. /**
  9620. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  9621. * types of reasons for which the driver is pausing reporting Beacon frames.
  9622. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  9623. *
  9624. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  9625. * reasons.
  9626. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  9627. * driver/firmware is starting a scan.
  9628. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  9629. * driver/firmware disconnects from the ESS and indicates the disconnection to
  9630. * userspace (non-seamless roaming case). This reason code will be used by the
  9631. * driver/firmware to indicate stopping of beacon report events. Userspace
  9632. * will need to start beacon reporting again (if desired) by sending vendor
  9633. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  9634. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  9635. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  9636. * completed.
  9637. */
  9638. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  9639. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  9640. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  9641. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  9642. };
  9643. /*
  9644. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  9645. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  9646. */
  9647. enum qca_wlan_vendor_attr_beacon_reporting_params {
  9648. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  9649. /* Specifies the type of operation that the vendor command/event is
  9650. * intended for. Possible values for this attribute are defined in
  9651. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  9652. */
  9653. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  9654. /* Optionally set by userspace to request the driver to report Beacon
  9655. * frames using asynchronous vendor events when the
  9656. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9657. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  9658. * If this flag is not set, the driver will only update Beacon frames
  9659. * in cfg80211 scan cache but not send any vendor events.
  9660. */
  9661. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  9662. /* Optionally used by userspace to request the driver/firmware to
  9663. * report Beacon frames periodically when the
  9664. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9665. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  9666. * u32 attribute, indicates the period of Beacon frames to be reported
  9667. * and in the units of beacon interval.
  9668. * If this attribute is missing in the command, then the default value
  9669. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  9670. * Zero is an invalid value.
  9671. * If a valid value is received for this attribute, the driver will
  9672. * update the cfg80211 scan cache periodically as per the value
  9673. * received in this attribute in addition to updating the cfg80211 scan
  9674. * cache when there is significant change in Beacon frame IEs.
  9675. */
  9676. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  9677. /* Used by the driver to encapsulate the SSID when the
  9678. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9679. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  9680. * u8 array with a maximum size of 32.
  9681. *
  9682. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  9683. * will be taken from the SSID element of the received Beacon frame.
  9684. *
  9685. * When generating beacon report from Multiple BSSID Beacon frame and
  9686. * if the BSSID of the current connected BSS matches the BSSID of the
  9687. * transmitting BSS, the SSID will be taken from the SSID element of
  9688. * the received Beacon frame.
  9689. *
  9690. * When generating beacon report from Multiple BSSID Beacon frame and
  9691. * if the BSSID of the current connected BSS matches the BSSID of one
  9692. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  9693. * field included in the nontransmitted BSS profile whose derived BSSI
  9694. * is same as the BSSID of the current connected BSS. When there is no
  9695. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  9696. * of current connected* BSS, this attribute will not be present.
  9697. */
  9698. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  9699. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  9700. * is currently connected to when the
  9701. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9702. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  9703. * fixed size of 6 bytes.
  9704. *
  9705. * When generating beacon report from a Multiple BSSID beacon and the
  9706. * current connected BSSID matches one of the nontransmitted BSSIDs in
  9707. * a Multiple BSSID set, this BSSID will be that particular
  9708. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  9709. * transmitting address of the Beacon frame).
  9710. */
  9711. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  9712. /* Used by the driver to encapsulate the frequency in MHz on which
  9713. * the Beacon frame was received when the
  9714. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  9715. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  9716. * u32 attribute.
  9717. */
  9718. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  9719. /* Used by the driver to encapsulate the Beacon interval
  9720. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9721. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  9722. * u16 attribute. The value will be copied from the Beacon frame and
  9723. * the units are TUs.
  9724. */
  9725. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  9726. /* Used by the driver to encapsulate the Timestamp field from the
  9727. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  9728. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  9729. * u64 attribute.
  9730. */
  9731. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  9732. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  9733. * Beacon frame is received in the driver when the
  9734. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9735. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  9736. * the units of nanoseconds. This value is expected to have accuracy of
  9737. * about 10 ms.
  9738. */
  9739. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  9740. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  9741. * which this event is generated when the
  9742. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9743. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  9744. */
  9745. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  9746. /* Used by the driver to specify the reason for the driver/firmware to
  9747. * pause sending beacons to userspace when the
  9748. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9749. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  9750. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  9751. * attribute.
  9752. */
  9753. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  9754. /* Used by the driver to specify whether the driver will automatically
  9755. * resume reporting beacon events to userspace later (for example after
  9756. * the ongoing off-channel activity is completed etc.) when the
  9757. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9758. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  9759. */
  9760. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  9761. /* Optionally set by userspace to request the driver not to resume
  9762. * beacon reporting after a pause is completed, when the
  9763. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9764. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  9765. * If this flag is set, the driver will not resume beacon reporting
  9766. * after any pause in beacon reporting is completed. Userspace has to
  9767. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  9768. * to initiate beacon reporting again. If this flag is set in the recent
  9769. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  9770. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  9771. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  9772. * set by the driver. Setting this flag until and unless there is a
  9773. * specific need is not recommended as there is a chance of some beacons
  9774. * received after pause command and next start command being not
  9775. * reported.
  9776. */
  9777. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  9778. /* Keep last */
  9779. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  9780. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  9781. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  9782. };
  9783. /**
  9784. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  9785. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  9786. *
  9787. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  9788. * a virtual device.
  9789. *
  9790. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  9791. * a physical device.
  9792. */
  9793. enum qca_vendor_oem_device_type {
  9794. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  9795. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  9796. };
  9797. /*
  9798. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  9799. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  9800. *
  9801. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  9802. * used to set/query the data to/from the firmware. On query, the same
  9803. * attribute is used to carry the respective data in the reply sent by the
  9804. * driver to userspace. The request to set/query the data and the format of the
  9805. * respective data from the firmware are embedded in the attribute. The
  9806. * maximum size of the attribute payload is 1024 bytes.
  9807. *
  9808. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  9809. * based on this field. This optional attribute is included to specify whether
  9810. * the device type is a virtual device or a physical device for the command.
  9811. * This attribute can be omitted for a virtual device (default) command.
  9812. * This u8 attribute is used to carry information for the device type using
  9813. * values defined by enum qca_vendor_oem_device_type.
  9814. *
  9815. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  9816. * attribute when the data is queried from the firmware.
  9817. *
  9818. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  9819. * is set when the userspace queries data from the firmware. This attribute
  9820. * should not be set when userspace sets the OEM data to the firmware.
  9821. */
  9822. enum qca_wlan_vendor_attr_oem_data_params {
  9823. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  9824. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  9825. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  9826. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  9827. /* keep last */
  9828. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  9829. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  9830. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  9831. };
  9832. /**
  9833. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  9834. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  9835. *
  9836. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  9837. * Nested attribute containing multiple ranges with following attributes:
  9838. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  9839. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  9840. *
  9841. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  9842. * Starting center frequency in MHz.
  9843. *
  9844. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  9845. * Ending center frequency in MHz.
  9846. */
  9847. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  9848. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  9849. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  9850. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  9851. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  9852. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  9853. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  9854. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  9855. };
  9856. /*
  9857. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  9858. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  9859. */
  9860. enum qca_wlan_vendor_attr_add_sta_node_params {
  9861. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  9862. /* 6 byte MAC address of STA */
  9863. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  9864. /* Authentication algorithm used by the station of size u16;
  9865. * defined in enum nl80211_auth_type.
  9866. */
  9867. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  9868. /* keep last */
  9869. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  9870. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  9871. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  9872. };
  9873. /**
  9874. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  9875. * This enum defines the valid set of values of BT coex chain mode.
  9876. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  9877. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  9878. *
  9879. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
  9880. * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
  9881. */
  9882. enum qca_btc_chain_mode {
  9883. QCA_BTC_CHAIN_SHARED = 0,
  9884. QCA_BTC_CHAIN_SEPARATED = 1,
  9885. };
  9886. /**
  9887. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  9888. * chain mode.
  9889. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  9890. *
  9891. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  9892. * Indicates the BT coex chain mode, are 32-bit values from
  9893. * enum qca_btc_chain_mode. This attribute is mandatory.
  9894. *
  9895. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  9896. * If set, vdev should be restarted when BT coex chain mode is updated.
  9897. * This attribute is optional.
  9898. */
  9899. enum qca_vendor_attr_btc_chain_mode {
  9900. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  9901. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  9902. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  9903. /* Keep last */
  9904. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  9905. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  9906. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  9907. };
  9908. /**
  9909. * enum qca_vendor_wlan_sta_flags - Station feature flags
  9910. * Bits will be set to 1 if the corresponding features are enabled.
  9911. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  9912. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  9913. for the station
  9914. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  9915. for the station
  9916. */
  9917. enum qca_vendor_wlan_sta_flags {
  9918. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  9919. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  9920. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  9921. };
  9922. /**
  9923. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  9924. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  9925. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  9926. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  9927. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  9928. */
  9929. enum qca_vendor_wlan_sta_guard_interval {
  9930. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  9931. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  9932. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  9933. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  9934. };
  9935. /**
  9936. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  9937. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  9938. *
  9939. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  9940. * Required attribute in request for AP mode only, 6-byte MAC address,
  9941. * corresponding to the station's MAC address for which information is
  9942. * requested. For STA mode this is not required as the info always correspond
  9943. * to the self STA and the current/last association.
  9944. *
  9945. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  9946. * Optionally used in response, u32 attribute, contains a bitmap of different
  9947. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  9948. *
  9949. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  9950. * Optionally used in response, u32 attribute, possible values are defined in
  9951. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  9952. * Guard interval used by the station.
  9953. *
  9954. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  9955. * Optionally used in response, u32 attribute, used in AP mode only.
  9956. * Value indicates the number of data frames received from station with retry
  9957. * bit set to 1 in FC.
  9958. *
  9959. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  9960. * Optionally used in response, u32 attribute, used in AP mode only.
  9961. * Counter for number of data frames with broadcast or multicast address in
  9962. * the destination address received from the station.
  9963. *
  9964. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  9965. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  9966. * Value indicates the number of data frames successfully transmitted only
  9967. * after retrying the packets and for which the TX status has been updated
  9968. * back to host from target.
  9969. *
  9970. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  9971. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  9972. * Value indicates the number of data frames not transmitted successfully even
  9973. * after retrying the packets for the number of times equal to the total number
  9974. * of retries allowed for that packet and for which the TX status has been
  9975. * updated back to host from target.
  9976. *
  9977. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  9978. * Optionally used in response, u32 attribute, used in AP mode only.
  9979. * Counter in the target for the number of data frames successfully transmitted
  9980. * to the station.
  9981. *
  9982. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  9983. * Optionally used in response, u32 attribute, used in AP mode only.
  9984. * Value indicates the number of data frames successfully transmitted only
  9985. * after retrying the packets.
  9986. *
  9987. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  9988. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  9989. * Value indicates the number of data frames not transmitted successfully even
  9990. * after retrying the packets for the number of times equal to the total number
  9991. * of retries allowed for that packet.
  9992. *
  9993. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  9994. * the STA mode only. Represent the number of probe requests sent by the STA
  9995. * while attempting to roam on missing certain number of beacons from the
  9996. * connected AP. If queried in the disconnected state, this represents the
  9997. * count for the last connected state.
  9998. *
  9999. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  10000. * the STA mode. Represent the number of probe responses received by the station
  10001. * while attempting to roam on missing certain number of beacons from the
  10002. * connected AP. When queried in the disconnected state, this represents the
  10003. * count when in last connected state.
  10004. *
  10005. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  10006. * STA mode only. Represents the total number of frames sent out by STA
  10007. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  10008. * only for the connect session. Represents the count of last connected session,
  10009. * when queried in the disconnected state.
  10010. *
  10011. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  10012. * Total number of RTS sent out by the STA. This data is maintained per connect
  10013. * session. Represents the count of last connected session, when queried in the
  10014. * disconnected state.
  10015. *
  10016. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  10017. * STA mode.Represent the number of RTS transmission failure that reach retry
  10018. * limit. This data is maintained per connect session. Represents the count of
  10019. * last connected session, when queried in the disconnected state.
  10020. *
  10021. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  10022. * the STA mode. Represent the total number of non aggregated frames transmitted
  10023. * by the STA. This data is maintained per connect session. Represents the count
  10024. * of last connected session, when queried in the disconnected state.
  10025. *
  10026. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  10027. * STA mode. Represent the total number of aggregated frames transmitted by the
  10028. * STA. This data is maintained per connect session. Represents the count of
  10029. * last connected session, when queried in the disconnected state.
  10030. *
  10031. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  10032. * the STA mode. Represents the number of received frames with a good PLCP. This
  10033. * data is maintained per connect session. Represents the count of last
  10034. * connected session, when queried in the disconnected state.
  10035. *
  10036. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  10037. * used in the STA mode. Represents the number of occasions that no valid
  10038. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  10039. * session. Represents the count of last connected session, when queried in the
  10040. * disconnected state.
  10041. *
  10042. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  10043. * STA mode. Represents the number of frames for which CRC check failed in the
  10044. * MAC. This data is maintained per connect session. Represents the count of
  10045. * last connected session, when queried in the disconnected state.
  10046. *
  10047. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  10048. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  10049. * data is maintained per connect session. Represents the count of last
  10050. * connected session, when queried in the disconnected state.
  10051. *
  10052. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  10053. * mode. Represents the number of received Block Acks. This data is maintained
  10054. * per connect session. Represents the count of last connected session, when
  10055. * queried in the disconnected state.
  10056. *
  10057. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  10058. * mode. Represents the number of beacons received from the connected BSS. This
  10059. * data is maintained per connect session. Represents the count of last
  10060. * connected session, when queried in the disconnected state.
  10061. *
  10062. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  10063. * STA mode. Represents the number of beacons received by the other BSS when in
  10064. * connected state (through the probes done by the STA). This data is maintained
  10065. * per connect session. Represents the count of last connected session, when
  10066. * queried in the disconnected state.
  10067. *
  10068. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  10069. * the STA mode. Represents the number of received DATA frames with good FCS and
  10070. * matching Receiver Address when in connected state. This data is maintained
  10071. * per connect session. Represents the count of last connected session, when
  10072. * queried in the disconnected state.
  10073. *
  10074. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  10075. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  10076. * when in the connected state. This data is maintained per connect session.
  10077. * Represents the count of last connected session, when queried in the
  10078. * disconnected state.
  10079. *
  10080. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  10081. * STA mode. This represents the target power in dBm for the transmissions done
  10082. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  10083. * connect session. Represents the count of last connected session, when
  10084. * queried in the disconnected state.
  10085. *
  10086. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  10087. * STA mode. This represents the Target power in dBm for transmissions done to
  10088. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10089. * session. Represents the count of last connected session, when queried in the
  10090. * disconnected state.
  10091. *
  10092. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  10093. * STA mode. This represents the Target power in dBm for transmissions done to
  10094. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  10095. * Represents the count of last connected session, when queried in the
  10096. * disconnected state.
  10097. *
  10098. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  10099. * STA mode. This represents the Target power in dBm for transmissions done to
  10100. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10101. * session. Represents the count of last connected session, when queried in
  10102. * the disconnected state.
  10103. *
  10104. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  10105. * STA mode. This represents the Target power in dBm for for transmissions done
  10106. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  10107. * Represents the count of last connected session, when queried in the
  10108. * disconnected state.
  10109. *
  10110. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  10111. * in the STA mode. This represents the Nested attribute representing the
  10112. * overflow counts of each receive buffer allocated to the hardware during the
  10113. * STA's connection. The number of hw buffers might vary for each WLAN
  10114. * solution and hence this attribute represents the nested array of all such
  10115. * HW buffer count. This data is maintained per connect session. Represents
  10116. * the count of last connected session, when queried in the disconnected state.
  10117. *
  10118. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  10119. * allowed as per the regulatory requirements for the current or last connected
  10120. * session. Used in the STA mode.
  10121. *
  10122. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  10123. * (dBm) used by the station in its latest unicast frame while communicating
  10124. * to the AP in the connected state. When queried in the disconnected state,
  10125. * this represents the TX power used by the STA with last AP communication
  10126. * when in connected state.
  10127. *
  10128. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  10129. * level used to adjust the RX sensitivity. Represents the current ANI level
  10130. * when queried in the connected state. When queried in the disconnected
  10131. * state, this corresponds to the latest ANI level at the instance of
  10132. * disconnection.
  10133. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  10134. * only. This represents the number of group addressed robust management frames
  10135. * received from this station with an invalid MIC or a missing MME when PMF is
  10136. * enabled.
  10137. *
  10138. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  10139. * only. This represents the number of group addressed robust management frames
  10140. * received from this station with the packet number less than or equal to the
  10141. * last received packet number when PMF is enabled.
  10142. *
  10143. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  10144. * mode only. This represents the number of Beacon frames received from this
  10145. * station with an invalid MIC or a missing MME when beacon protection is
  10146. * enabled.
  10147. *
  10148. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  10149. * only. This represents number of Beacon frames received from this station with
  10150. * the packet number less than or equal to the last received packet number when
  10151. * beacon protection is enabled.
  10152. *
  10153. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  10154. * STA mode only. Driver uses this attribute to populate the connection failure
  10155. * reason codes and the values are defined in
  10156. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  10157. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  10158. * connection failure from driver. The driver shall not include this attribute
  10159. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  10160. * connection failure observed in the last attempted connection.
  10161. *
  10162. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  10163. * used by the station in its last TX frame while communicating to the AP in the
  10164. * connected state. When queried in the disconnected state, this represents the
  10165. * rate used by the STA in the last TX frame to the AP when it was connected.
  10166. * This attribute is used for STA mode only.
  10167. *
  10168. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  10169. * This represents the rate index used by the STA for the last TX frame to the
  10170. * AP. When queried in the disconnected state, this gives the last RIX used by
  10171. * the STA in the last TX frame to the AP when it was connected.
  10172. *
  10173. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  10174. * mode only. This represents the number of times the STA TSF goes out of sync
  10175. * from the AP after the connection. If queried in the disconnected state, this
  10176. * gives the count of TSF out of sync for the last connection.
  10177. *
  10178. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  10179. * mode only. This represents the roam trigger reason for the last roaming
  10180. * attempted by the firmware. This can be queried either in connected state or
  10181. * disconnected state. Each bit of this attribute represents the different
  10182. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  10183. *
  10184. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  10185. * only. This represents the roam fail reason for the last failed roaming
  10186. * attempt by the firmware. Different roam failure reason codes are specified
  10187. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  10188. * connected state or disconnected state.
  10189. *
  10190. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  10191. * STA mode only. This represents the roam invoke fail reason for the last
  10192. * failed roam invoke. Different roam invoke failure reason codes
  10193. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  10194. * queried either in connected state or disconnected state.
  10195. *
  10196. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  10197. * This represents the average congestion duration of uplink frames in MAC
  10198. * queue in unit of ms. This can be queried either in connected state or
  10199. * disconnected state.
  10200. */
  10201. enum qca_wlan_vendor_attr_get_sta_info {
  10202. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  10203. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  10204. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  10205. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  10206. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  10207. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  10208. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  10209. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  10210. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  10211. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  10212. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  10213. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  10214. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  10215. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  10216. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  10217. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  10218. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  10219. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  10220. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  10221. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  10222. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  10223. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  10224. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  10225. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  10226. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  10227. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  10228. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  10229. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  10230. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  10231. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  10232. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  10233. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  10234. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  10235. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  10236. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  10237. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  10238. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  10239. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  10240. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  10241. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  10242. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  10243. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  10244. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  10245. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  10246. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  10247. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  10248. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  10249. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  10250. /* keep last */
  10251. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  10252. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  10253. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  10254. };
  10255. /**
  10256. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  10257. * Used when the driver triggers the STA to disconnect from the AP.
  10258. *
  10259. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  10260. * disconnection with the AP due to unspecified reasons.
  10261. *
  10262. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  10263. * disconnection with the AP due to a roaming failure. This roaming is triggered
  10264. * internally (host driver/firmware).
  10265. *
  10266. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  10267. * the AP when the user/external triggered roaming fails.
  10268. *
  10269. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  10270. * by the host driver whenever gateway reachability failure is detected and the
  10271. * driver disconnects with AP.
  10272. *
  10273. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  10274. * the AP on a channel switch announcement from it with an unsupported channel.
  10275. *
  10276. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  10277. * with indoor channels disabled and if the STA is connected on one of these
  10278. * disabled channels, the host driver disconnected the STA with this reason
  10279. * code.
  10280. *
  10281. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  10282. * explicit request from the user to disable the current operating channel.
  10283. *
  10284. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  10285. * the internal host driver/firmware recovery.
  10286. *
  10287. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  10288. * a timeout for the key installations from the user space.
  10289. *
  10290. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  10291. * STA on a band change request from the user space to a different band from the
  10292. * current operation channel/band.
  10293. *
  10294. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  10295. * interface down trigger from the user space.
  10296. *
  10297. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  10298. * STA on getting continuous transmission failures for multiple Data frames.
  10299. *
  10300. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  10301. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  10302. * represents inactivity from AP on such transmissions.
  10303. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  10304. * disconnection when SA Query times out (AP does not respond to SA Query).
  10305. *
  10306. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  10307. * STA on missing the beacons continuously from the AP.
  10308. *
  10309. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  10310. * able to move to the channel mentioned by the AP in CSA.
  10311. *
  10312. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  10313. */
  10314. enum qca_disconnect_reason_codes {
  10315. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  10316. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  10317. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  10318. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  10319. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  10320. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  10321. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  10322. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  10323. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  10324. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  10325. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  10326. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  10327. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  10328. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  10329. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  10330. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  10331. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  10332. };
  10333. /**
  10334. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  10335. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  10336. *
  10337. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  10338. * This attribute represents the driver specific reason codes (local
  10339. * driver/firmware initiated reasons for disconnection) defined
  10340. * in enum qca_disconnect_reason_codes.
  10341. */
  10342. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  10343. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  10344. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  10345. /* keep last */
  10346. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  10347. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  10348. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  10349. };
  10350. /**
  10351. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  10352. *
  10353. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  10354. */
  10355. enum qca_wlan_tspec_operation {
  10356. QCA_WLAN_TSPEC_ADD = 0,
  10357. QCA_WLAN_TSPEC_DEL = 1,
  10358. QCA_WLAN_TSPEC_GET = 2,
  10359. };
  10360. /**
  10361. * enum qca_wlan_tspec_direction - Direction in TSPEC
  10362. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  10363. *
  10364. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  10365. */
  10366. enum qca_wlan_tspec_direction {
  10367. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  10368. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  10369. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  10370. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  10371. };
  10372. /**
  10373. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  10374. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  10375. *
  10376. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  10377. */
  10378. enum qca_wlan_tspec_ack_policy {
  10379. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  10380. QCA_WLAN_TSPEC_NO_ACK = 1,
  10381. /* Reserved */
  10382. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  10383. };
  10384. /**
  10385. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  10386. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  10387. *
  10388. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  10389. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  10390. * are defined in enum qca_wlan_tspec_operation.
  10391. * Mandatory attribute for all kinds of config TSPEC requests.
  10392. *
  10393. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  10394. * u8 attribute. TS ID. Possible values are 0-7.
  10395. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  10396. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  10397. *
  10398. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  10399. * u8 attribute. Direction of data carried by the TS. Possible values are
  10400. * defined in enum qca_wlan_tspec_direction.
  10401. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10402. *
  10403. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  10404. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  10405. * with the TS. set - enabled, not set - disabled.
  10406. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10407. *
  10408. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  10409. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  10410. * belonging to this TS. Possible values are 0-7.
  10411. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10412. *
  10413. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  10414. * u8 attribute. Indicate whether MAC acknowledgements are required for
  10415. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  10416. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  10417. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10418. *
  10419. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  10420. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  10421. * belonging to this TS.
  10422. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10423. *
  10424. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  10425. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  10426. * belonging to this TS.
  10427. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10428. *
  10429. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  10430. * u32 attribute. Specify the minimum interval in microseconds between the
  10431. * start of two successive SPs.
  10432. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10433. *
  10434. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  10435. * u32 attribute. Specify the maximum interval in microseconds between the
  10436. * start of two successive SPs.
  10437. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10438. *
  10439. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  10440. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  10441. * without arrival or transfer of an MPDU belonging to the TS before this TS
  10442. * is deleted by the MAC entity at the HC.
  10443. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10444. *
  10445. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  10446. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  10447. * without arrival or transfer of an MSDU belonging to the TS before the
  10448. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  10449. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  10450. * interval is always less than or equal to the inactivity interval.
  10451. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10452. *
  10453. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  10454. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  10455. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  10456. * bounds of this TSPEC.
  10457. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10458. *
  10459. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  10460. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  10461. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  10462. * bounds of this TSPEC.
  10463. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10464. *
  10465. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  10466. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  10467. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  10468. * the bounds of this TSPEC.
  10469. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10470. *
  10471. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  10472. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  10473. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  10474. * value of 0 indicates that there are no bursts.
  10475. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10476. *
  10477. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  10478. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  10479. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  10480. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10481. *
  10482. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  10483. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  10484. * and above the stated application rates required to transport an MSDU/A-MSDU
  10485. * belonging to the TS in this TSPEC.
  10486. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10487. */
  10488. enum qca_wlan_vendor_attr_config_tspec {
  10489. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  10490. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  10491. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  10492. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  10493. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  10494. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  10495. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  10496. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  10497. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  10498. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  10499. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  10500. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  10501. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  10502. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  10503. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  10504. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  10505. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  10506. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  10507. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  10508. /* keep last */
  10509. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  10510. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  10511. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  10512. };
  10513. /**
  10514. * enum qca_wlan_medium_assess_type - Type of medium assess request
  10515. *
  10516. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  10517. */
  10518. enum qca_wlan_medium_assess_type {
  10519. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  10520. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  10521. };
  10522. /**
  10523. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  10524. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  10525. *
  10526. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  10527. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  10528. * Specify the type of medium assess request and indicate its type in response.
  10529. * Possible values are defined in enum qca_wlan_medium_assess_type.
  10530. *
  10531. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  10532. * u32 attribute. Mandatory in CCA request.
  10533. * Specify the assessment period in terms of seconds. Assessment result will be
  10534. * sent as the response to the CCA request after the assessment period.
  10535. *
  10536. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  10537. * u32 attribute. Mandatory in response to CCA request.
  10538. * Total timer tick count of the assessment cycle.
  10539. *
  10540. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  10541. * u32 attribute. Mandatory in response to CCA request.
  10542. * Timer tick count of idle time in the assessment cycle.
  10543. *
  10544. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  10545. * u32 attribute. Mandatory in response to CCA request.
  10546. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  10547. *
  10548. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  10549. * u32 attribute. Mandatory in response to CCA request.
  10550. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  10551. *
  10552. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  10553. * s32 attribute. Mandatory in response to CCA request.
  10554. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  10555. *
  10556. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  10557. * s32 attribute. Mandatory in response to CCA request.
  10558. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  10559. *
  10560. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  10561. * u8 attribute. Mandatory in congestion report request.
  10562. * 1-enable 0-disable.
  10563. *
  10564. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  10565. * u8 attribute. Mandatory in congestion report enable request and will be
  10566. * ignored if present in congestion report disable request. Possible values are
  10567. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  10568. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  10569. * congestion percentage reaches the configured threshold.
  10570. *
  10571. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  10572. * u8 attribute. Optional in congestion report enable request and will be
  10573. * ignored if present in congestion report disable request.
  10574. * Specify the interval of congestion report event in terms of seconds. Possible
  10575. * values are 1-255. Default value 1 will be used if this attribute is omitted
  10576. * or using invalid values.
  10577. *
  10578. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  10579. * u8 attribute. Mandatory in congestion report event.
  10580. * Indicate the actual congestion percentage. Possible values are 0-100.
  10581. */
  10582. enum qca_wlan_vendor_attr_medium_assess {
  10583. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  10584. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  10585. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  10586. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  10587. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  10588. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  10589. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  10590. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  10591. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  10592. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  10593. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  10594. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  10595. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  10596. /* keep last */
  10597. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  10598. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  10599. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  10600. };
  10601. /**
  10602. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  10603. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  10604. *
  10605. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  10606. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  10607. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  10608. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  10609. */
  10610. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  10611. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  10612. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  10613. /* keep last */
  10614. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  10615. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  10616. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  10617. };
  10618. /**
  10619. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  10620. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  10621. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  10622. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  10623. * frame
  10624. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  10625. * Request frame.
  10626. */
  10627. enum qca_wlan_vendor_oci_override_frame_type {
  10628. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  10629. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  10630. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  10631. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  10632. };
  10633. /**
  10634. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  10635. *
  10636. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  10637. * STA interface has to be given while selecting the connection policies
  10638. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  10639. * An interface is set as primary through the attribute
  10640. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  10641. * applicable if the primary interface has not been set earlier.
  10642. *
  10643. * The intention is not to downgrade the primary STA performance, such as:
  10644. * - Do not reduce the number of TX/RX chains of primary connection.
  10645. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  10646. * chains.
  10647. * - If using MCC, should set the MCC duty cycle of the primary connection to
  10648. * be higher than the secondary connection.
  10649. *
  10650. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  10651. * subsequent STA connection shall be chosen to balance with the existing
  10652. * concurrent STA's performance.
  10653. * Such as
  10654. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  10655. * capability.
  10656. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  10657. * to the secondary.
  10658. * - Prefer BSSID candidates which will help provide the best "overall"
  10659. * performance for all the STA connections.
  10660. */
  10661. enum qca_wlan_concurrent_sta_policy_config {
  10662. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  10663. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  10664. };
  10665. /**
  10666. * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes
  10667. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command.
  10668. *
  10669. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG:
  10670. * u8 attribute. Configures the concurrent STA policy configuration.
  10671. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  10672. */
  10673. enum qca_wlan_vendor_attr_concurrent_sta_policy {
  10674. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0,
  10675. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1,
  10676. /* keep last */
  10677. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST,
  10678. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX =
  10679. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1,
  10680. };
  10681. /**
  10682. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  10683. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  10684. * attribute.
  10685. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  10686. * for unicast probe request.
  10687. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  10688. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  10689. * ath request.
  10690. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  10691. * received from AP.
  10692. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  10693. * request.
  10694. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  10695. * assoc request.
  10696. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  10697. * received from AP.
  10698. */
  10699. enum qca_sta_connect_fail_reason_codes {
  10700. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  10701. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  10702. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  10703. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  10704. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  10705. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  10706. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  10707. };
  10708. /**
  10709. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  10710. * OCI override request. These attributes are used inside nested attribute
  10711. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  10712. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  10713. *
  10714. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  10715. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  10716. * attribute to specify the frame type in which the OCI is to be overridden.
  10717. *
  10718. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  10719. * OCI frequency (in MHz) to override in the specified frame type.
  10720. */
  10721. enum qca_wlan_vendor_attr_oci_override {
  10722. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  10723. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  10724. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  10725. /* keep last */
  10726. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  10727. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  10728. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  10729. };
  10730. /**
  10731. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  10732. * filters defined in this enum are used in attribute
  10733. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  10734. *
  10735. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  10736. * shall filter the channels which are not usable because of coexistence with
  10737. * cellular radio.
  10738. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  10739. * shall filter the channels which are not usable because of existing active
  10740. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  10741. *
  10742. */
  10743. enum qca_wlan_vendor_usable_channels_filter {
  10744. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  10745. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  10746. };
  10747. /**
  10748. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  10749. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  10750. *
  10751. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  10752. * u32 attribute, required. Indicates the center frequency of the primary
  10753. * channel in MHz.
  10754. *
  10755. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  10756. * u32 attribute. Indicates the center frequency of the primary segment of the
  10757. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  10758. * 160 MHz, and 320 MHz channels.
  10759. *
  10760. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  10761. * u32 attribute. Indicates the center frequency of the secondary segment of
  10762. * 80+80 channel in MHz. This attribute is required only when
  10763. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  10764. *
  10765. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  10766. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  10767. * values are defined in enum nl80211_chan_width.
  10768. *
  10769. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  10770. * u32 attribute, required. Indicates all the interface types for which this
  10771. * channel is usable. This attribute encapsulates bitmasks of interface types
  10772. * defined in enum nl80211_iftype.
  10773. *
  10774. */
  10775. enum qca_wlan_vendor_attr_chan_info {
  10776. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  10777. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  10778. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  10779. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  10780. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  10781. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  10782. /* keep last */
  10783. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  10784. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  10785. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  10786. };
  10787. /**
  10788. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  10789. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  10790. *
  10791. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  10792. * u32 attribute. Indicates the bands from which the channels should be reported
  10793. * in response. This attribute encapsulates bit masks of bands defined in enum
  10794. * nl80211_band. Optional attribute, if not present in the request the driver
  10795. * shall return channels from all supported bands.
  10796. *
  10797. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  10798. * u32 attribute. Indicates all the interface types for which the usable
  10799. * channels information is requested. This attribute encapsulates bitmasks of
  10800. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  10801. * present in the request the driver shall send information of all supported
  10802. * interface modes.
  10803. *
  10804. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  10805. * u32 attribute. This attribute carries information of all filters that shall
  10806. * be applied while populating usable channels information by the driver. This
  10807. * attribute carries bit masks of different filters defined in enum
  10808. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  10809. * in the request the driver shall send information of channels without applying
  10810. * any of the filters that can be configured through this attribute.
  10811. *
  10812. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  10813. * Nested attribute. This attribute shall be used by the driver to send
  10814. * usability information of each channel. The attributes defined in enum
  10815. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  10816. */
  10817. enum qca_wlan_vendor_attr_usable_channels {
  10818. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  10819. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  10820. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  10821. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  10822. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  10823. /* keep last */
  10824. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  10825. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  10826. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  10827. };
  10828. /**
  10829. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  10830. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  10831. *
  10832. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  10833. * the list of radar history entries.
  10834. * Each entry contains freq, timestamp, and radar signal detect flag.
  10835. * The driver shall add an entry when CAC has finished, or radar signal
  10836. * has been detected post AP beaconing. The driver shall maintain at least
  10837. * 8 entries in order to save CAC result for a 160 MHz channel.
  10838. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  10839. * Channel frequency in MHz.
  10840. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  10841. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  10842. * or radar detection.
  10843. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  10844. * This flag indicates radar signal has been detected.
  10845. */
  10846. enum qca_wlan_vendor_attr_radar_history {
  10847. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  10848. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  10849. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  10850. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  10851. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  10852. /* keep last */
  10853. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  10854. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  10855. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  10856. };
  10857. /**
  10858. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  10859. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  10860. *
  10861. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  10862. * Enable mDNS offload. This attribute is mandatory to enable
  10863. * mDNS offload feature. If this attribute is not present, mDNS offload
  10864. * is disabled.
  10865. *
  10866. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  10867. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  10868. * attribute is mandatory when enabling the feature, and not required when
  10869. * disabling the feature.
  10870. *
  10871. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  10872. * the following attributes:
  10873. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  10874. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  10875. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  10876. *
  10877. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  10878. * It consists of a hostname and ".local" as the domain name. The character
  10879. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  10880. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  10881. * supported per vdev.
  10882. * For example: myphone.local
  10883. *
  10884. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  10885. * u16 attribute. It specifies the total number of resource records present
  10886. * in the answer section of the answer payload. This attribute is needed by the
  10887. * firmware to populate the mDNS response frame for mNDS queries without having
  10888. * to parse the answer payload.
  10889. *
  10890. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  10891. * attribute sent by the mdnsResponder from userspace. It contains resource
  10892. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  10893. * payload is passed down to firmware and is transmitted in response to
  10894. * mDNS queries.
  10895. * The maximum size of the answer payload supported is 512 bytes.
  10896. */
  10897. enum qca_wlan_vendor_attr_mdns_offload {
  10898. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  10899. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  10900. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  10901. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  10902. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  10903. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  10904. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  10905. /* keep last */
  10906. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  10907. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  10908. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  10909. };
  10910. /**
  10911. * enum qca_vendor_attr_diag_event_type - Attributes used by
  10912. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  10913. *
  10914. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  10915. * driver/firmware during Connection request from Userspace. Uses the
  10916. * following attributes of enum qca_wlan_vendor_attr_diag:
  10917. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10918. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  10919. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10920. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  10921. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  10922. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  10923. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  10924. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  10925. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  10926. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  10927. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  10928. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  10929. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10930. *
  10931. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  10932. * driver/firmware when a connection is failed. Uses the
  10933. * following attributes of enum qca_wlan_vendor_attr_diag:
  10934. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10935. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10936. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  10937. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10938. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE.
  10939. *
  10940. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  10941. * driver/firmware during Authentication request from a device. Uses the
  10942. * following attributes of enum qca_wlan_vendor_attr_diag:
  10943. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10944. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10945. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  10946. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  10947. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_FRAME_TYPE,
  10948. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  10949. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  10950. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  10951. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10952. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  10953. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  10954. *
  10955. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  10956. * driver/firmware when device receives an authentication response. Uses the
  10957. * following attributes of enum qca_wlan_vendor_attr_diag:
  10958. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10959. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10960. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  10961. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_FRAME_TYPE,
  10962. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  10963. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  10964. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10965. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  10966. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  10967. *
  10968. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  10969. * driver/firmware when device sends an association request. Uses the
  10970. * following attributes of enum qca_wlan_vendor_attr_diag:
  10971. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10972. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10973. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  10974. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  10975. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  10976. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10977. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  10978. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  10979. *
  10980. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  10981. * driver/firmware when device receives an association response. Uses the
  10982. * following attributes of enum qca_wlan_vendor_attr_diag:
  10983. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10984. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10985. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  10986. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  10987. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10988. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  10989. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  10990. *
  10991. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  10992. * driver/userspace when device receives a deauthentication response. Uses the
  10993. * following attributes of enum qca_wlan_vendor_attr_diag:
  10994. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10995. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10996. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  10997. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  10998. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  10999. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11000. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
  11001. *
  11002. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  11003. * driver/userspace when device sends a deauthentication request. Uses the
  11004. * following attributes of enum qca_wlan_vendor_attr_diag:
  11005. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11006. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11007. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11008. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11009. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11010. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11011. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
  11012. *
  11013. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  11014. * driver/firmware when device receives a disassociation response. Uses the
  11015. * following attributes of enum qca_wlan_vendor_attr_diag:
  11016. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11017. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11018. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11019. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11020. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11021. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11022. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
  11023. *
  11024. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  11025. * driver/firmware when device sends a disassociation request. Uses the
  11026. * following attributes of enum qca_wlan_vendor_attr_diag:
  11027. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11028. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11029. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11030. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11031. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11032. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11033. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
  11034. *
  11035. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  11036. * driver/firmware when device did not receive beacon packets during connection.
  11037. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  11038. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11039. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11040. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11041. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11042. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11043. *
  11044. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  11045. * driver/firmware when Roaming scan is triggered. Uses the following
  11046. * attributes of enum qca_wlan_vendor_attr_diag:
  11047. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11048. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  11049. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  11050. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11051. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11052. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  11053. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  11054. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11055. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11056. *
  11057. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  11058. * driver/firmware Roam scanning is processed. Uses the following
  11059. * attributes of enum qca_wlan_vendor_attr_diag:
  11060. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11061. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11062. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  11063. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  11064. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11065. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11066. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11067. *
  11068. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  11069. * driver/firmware to provide Roam information of the current AP. Uses the
  11070. * following attributes of enum qca_wlan_vendor_attr_diag:
  11071. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11072. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11073. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11074. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11075. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11076. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  11077. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11078. *
  11079. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  11080. * driver/firmware to provide Roam information of the candid AP. Uses the
  11081. * following attributes of enum qca_wlan_vendor_attr_diag:
  11082. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11083. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11084. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11085. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11086. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11087. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  11088. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  11089. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11090. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11091. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11092. *
  11093. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  11094. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  11095. * following attributes of enum qca_wlan_vendor_attr_diag:
  11096. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11097. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RESULT,
  11098. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11099. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11100. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11101. *
  11102. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  11103. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  11104. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11105. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11106. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11107. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE.
  11108. *
  11109. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  11110. * /firmware when STA sends a BTM request frame. Uses the following attributes
  11111. * of enum qca_wlan_vendor_attr_diag:
  11112. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11113. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11114. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  11115. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  11116. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  11117. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  11118. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11119. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11120. *
  11121. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  11122. * driver/firmware when STA queries about BTM transition. Uses the following
  11123. * attributes of enum qca_wlan_vendor_attr_diag:
  11124. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11125. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11126. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  11127. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11128. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11129. *
  11130. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  11131. * /firmware when STA receives BTM response frame. Uses the following
  11132. * attributes of enum qca_wlan_vendor_attr_diag:
  11133. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11134. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11135. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  11136. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  11137. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  11138. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11139. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11140. *
  11141. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  11142. * driver/firmware to provide BTM request candidate information. Uses the
  11143. * following attributes of enum qca_wlan_vendor_attr_diag:
  11144. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11145. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11146. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  11147. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11148. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11149. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11150. *
  11151. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  11152. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  11153. * enum qca_wlan_vendor_attr_diag:
  11154. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11155. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  11156. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11157. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  11158. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11159. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11160. *
  11161. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  11162. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  11163. * attributes of enum qca_wlan_vendor_attr_diag:
  11164. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11165. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11166. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11167. *
  11168. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  11169. * driver/firmware to indicate DHCP offering to AP. Uses the following
  11170. * attributes of enum qca_wlan_vendor_attr_diag:
  11171. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11172. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11173. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11174. *
  11175. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  11176. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  11177. * attributes of enum qca_wlan_vendor_attr_diag:
  11178. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11179. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11180. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11181. *
  11182. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  11183. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  11184. * attributes of enum qca_wlan_vendor_attr_diag:
  11185. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11186. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11187. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11188. *
  11189. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  11190. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  11191. * following attributes of enum qca_wlan_vendor_attr_diag:
  11192. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11193. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11194. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11195. *
  11196. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  11197. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  11198. * enum qca_wlan_vendor_attr_diag:
  11199. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11200. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11201. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11202. *
  11203. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  11204. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  11205. * enum qca_wlan_vendor_attr_diag:
  11206. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11207. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11208. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11209. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11210. *
  11211. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  11212. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  11213. * enum qca_wlan_vendor_attr_diag:
  11214. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11215. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11216. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11217. *
  11218. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  11219. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  11220. * enum qca_wlan_vendor_attr_diag:
  11221. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11222. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11223. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11224. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11225. *
  11226. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  11227. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  11228. * enum qca_wlan_vendor_attr_diag:
  11229. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11230. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11231. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11232. *
  11233. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  11234. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  11235. * enum qca_wlan_vendor_attr_diag:
  11236. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11237. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11238. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11239. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11240. *
  11241. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  11242. * /firmware to indicate device sent EAP request. Uses the following attributes
  11243. * of enum qca_wlan_vendor_attr_diag:
  11244. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11245. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  11246. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  11247. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11248. *
  11249. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  11250. * /firmware to indicate device received EAP response. Uses the following
  11251. * attributes of enum qca_wlan_vendor_attr_diag:
  11252. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11253. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  11254. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  11255. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11256. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11257. *
  11258. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  11259. * /firmware to indicate EAP frame transmission is success. Uses the following
  11260. * attributes of enum qca_wlan_vendor_attr_diag:
  11261. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11262. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11263. *
  11264. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  11265. * /firmware to indicate EAP frame transmission is failed. Uses the following
  11266. * attributes of enum qca_wlan_vendor_attr_diag:
  11267. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11268. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11269. */
  11270. enum qca_vendor_attr_diag_event_type {
  11271. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  11272. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  11273. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  11274. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  11275. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  11276. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  11277. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  11278. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  11279. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  11280. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  11281. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  11282. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  11283. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  11284. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  11285. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  11286. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  11287. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  11288. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  11289. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  11290. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  11291. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  11292. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  11293. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  11294. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  11295. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  11296. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  11297. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  11298. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  11299. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  11300. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  11301. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  11302. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  11303. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  11304. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  11305. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  11306. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  11307. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  11308. /* keep last */
  11309. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  11310. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  11311. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  11312. };
  11313. /**
  11314. * enum qca_wlan_vendor_tx_status - Used by attribute
  11315. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  11316. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  11317. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  11318. * is not received.
  11319. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  11320. * acknowledged.
  11321. */
  11322. enum qca_wlan_vendor_tx_status {
  11323. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  11324. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 3,
  11325. QCA_WLAN_VENDOR_TX_STATUS_ACK = 4,
  11326. };
  11327. /**
  11328. * enum qca_roam_sub_reason - Used by attribute
  11329. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  11330. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  11331. * timer expiry
  11332. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  11333. * to no candidate found during LOW RSSI trigger.
  11334. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  11335. * Imminent timeout
  11336. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  11337. * failure
  11338. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  11339. * emergency like deauth/disassoc.
  11340. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  11341. * BSS transition management request.
  11342. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  11343. * Roam scan triggered due to Low rssi periodic timer
  11344. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  11345. * Roam trigger due to periodic timer after no candidate found during CU
  11346. * inactivity timer scan.
  11347. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  11348. * found in high CU roam trigger.
  11349. */
  11350. enum qca_roam_sub_reason {
  11351. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  11352. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  11353. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  11354. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  11355. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  11356. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  11357. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  11358. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  11359. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  11360. };
  11361. /**
  11362. * enum qca_wlan_vendor_eap_type - Used by attribute
  11363. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE to indicate the type of the EAP
  11364. * packet received.
  11365. * @QCA_WLAN_VENDOR_EAP_TYPE_IDENTITY: Refer the EAP Registry RFC 3748.
  11366. * @QCA_WLAN_VENDOR_EAP_TYPE_TLS: Refer the EAP Registry RFC 2716.
  11367. * @QCA_WLAN_VENDOR_EAP_TYPE_LEAP: Cisco proprietary.
  11368. * @QCA_WLAN_VENDOR_EAP_TYPE_TTLS: Refer the EAP Registry RFC 5281.
  11369. * @QCA_WLAN_VENDOR_EAP_TYPE_AKA: Refer the EAP Registry RFC 4187.
  11370. * @QCA_WLAN_VENDOR_EAP_TYPE_PEAP: Refer
  11371. * draft-josefsson-pppext-eap-tls-eap-06.txt.
  11372. * @QCA_WLAN_VENDOR_EAP_TYPE_FAST: Refer the EAP Registry RFC 4851.
  11373. * @QCA_WLAN_VENDOR_EAP_TYPE_PSK: Refer the EAP Registry RFC 4764.
  11374. * @QCA_WLAN_VENDOR_EAP_TYPE_AKAP: Refer the EAP Registry RFC 5448.
  11375. */
  11376. enum qca_wlan_vendor_eap_type {
  11377. QCA_WLAN_VENDOR_EAP_TYPE_IDENTITY = 1,
  11378. QCA_WLAN_VENDOR_EAP_TYPE_TLS = 13,
  11379. QCA_WLAN_VENDOR_EAP_TYPE_LEAP = 17,
  11380. QCA_WLAN_VENDOR_EAP_TYPE_TTLS = 21,
  11381. QCA_WLAN_VENDOR_EAP_TYPE_AKA = 23,
  11382. QCA_WLAN_VENDOR_EAP_TYPE_PEAP = 25,
  11383. QCA_WLAN_VENDOR_EAP_TYPE_FAST = 43,
  11384. QCA_WLAN_VENDOR_EAP_TYPE_PSK = 47,
  11385. QCA_WLAN_VENDOR_EAP_TYPE_AKAP = 50,
  11386. };
  11387. /*
  11388. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  11389. * to send diag data to the userspace. The attributes defined in this enum are
  11390. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  11391. *
  11392. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  11393. * by driver/firmware to send diag data. Each instance of this nested attribute
  11394. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  11395. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the event
  11396. * type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  11397. * nested attribute can be sent with one vendor command
  11398. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  11399. *
  11400. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  11401. * attribute indicates the type of the diag event from driver/firmware. Uses
  11402. * values from enum qca_vendor_attr_diag_event_type.
  11403. *
  11404. * @QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP: Required u64 attribute. This
  11405. * attribute indicates the kernel timestamp. The value is filled as time of the
  11406. * day converted to microseconds.
  11407. *
  11408. * @QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID: Optional u8 attribute. This attribute
  11409. * indicates VDEV identifier.
  11410. *
  11411. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  11412. * indicates 6-byte MAC address representing the BSSID of the AP.
  11413. *
  11414. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  11415. * indicates the 6-byte MAC address representing the BSSID hint sent in
  11416. * the connect request.
  11417. *
  11418. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute indicates
  11419. * the SSID in hex-decimal bytes. Maximum length is 32-characters.
  11420. *
  11421. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  11422. * indicates the frequency of AP.
  11423. *
  11424. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  11425. * indicates frequency hint given in the connect request.
  11426. *
  11427. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute. This attribute
  11428. * indicates RSSI of the 802.11 frame.
  11429. *
  11430. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  11431. * This attribute indicates Pairwise cipher suite.
  11432. *
  11433. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  11434. * This attribute indicates Group cipher suite.
  11435. *
  11436. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  11437. * attribute indicates Group management cipher suite.
  11438. *
  11439. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  11440. * indicates Auth key management suite.
  11441. *
  11442. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  11443. * indicates authentication algorithm number.
  11444. *
  11445. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  11446. * indicates bluetooth connection status.
  11447. *
  11448. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_FRAME_TYPE: Optional u8 attribute. This
  11449. * attribute indicates authentication frame type. The possible values are
  11450. * 1 - SAE commit frame
  11451. * 2 - SAE confirm frame
  11452. *
  11453. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  11454. * attribute indicates the reason codes defined in
  11455. * IEEE spec. Table 9-49—Reason codes
  11456. *
  11457. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  11458. * attribute indicates sequence number of the frame.
  11459. *
  11460. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This attribute
  11461. * indicates the status codes defined in IEEE spec.Table 9-50—Status codes
  11462. *
  11463. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  11464. * Uses enum qca_wlan_vendor_tx_status.
  11465. *
  11466. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  11467. * indicates if frame transmission is retried.
  11468. *
  11469. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  11470. * Uses enum qca_roam_reason.
  11471. *
  11472. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  11473. * Uses enum qca_roam_sub_reason.
  11474. *
  11475. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  11476. * indicates channel utilization in percentage.
  11477. *
  11478. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  11479. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  11480. *
  11481. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  11482. * This attribute indicates current RSSI threshold.
  11483. *
  11484. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  11485. * This attribute indicates firmware timestamp in microseconds.
  11486. *
  11487. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  11488. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  11489. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  11490. *
  11491. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  11492. * This attribute indicates number of scanned candidate APs.
  11493. *
  11494. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  11495. * attribute indicates roam AP rank computed based on connection preference.
  11496. *
  11497. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  11498. * This attribute indicates expected throughput in kbps.
  11499. *
  11500. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  11501. * This attribute indicates the preference value of candidate AP / connected AP
  11502. * calculated in the firmware.
  11503. *
  11504. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RESULT: Optional flag. This attribute
  11505. * indicates successful connection/roaming.
  11506. *
  11507. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  11508. * This attribute indicates BTM WTC sub reason code.
  11509. *
  11510. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  11511. * This attribute indicates BTM WTC duration in milliseconds.
  11512. *
  11513. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u16 attribute. This attribute
  11514. * indicates dialog token value of BTM query/request/response frames.
  11515. *
  11516. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  11517. * attribute indicates the Transition Reason field indicates the reason why
  11518. * a transition attempt occurred and contains one of the values in IEEE
  11519. * 802.11: Table 9-176.
  11520. *
  11521. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  11522. * indicates BTM mode defined in IEEE 802.11 spec. Figure 9-924—Request Mode field.
  11523. *
  11524. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u32 attribute.
  11525. * This attribute indicates the Disassociation Timer field which is the number
  11526. * of beacon transmission times (TBTTs) until the serving AP will send a
  11527. * Disassociation frame to this STA.
  11528. *
  11529. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u32 attribute.
  11530. * This attribute indicates BTM validity interval field in TBTTs and is defined
  11531. * in IEEE spec. Figure 9-923—BSS Transition Management Request frame Action
  11532. * field format
  11533. *
  11534. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  11535. * This attribute indicates BTM candidate list entries.
  11536. *
  11537. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  11538. * This attribute indicates network preference for BTM transition.
  11539. *
  11540. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  11541. * This attribute indicates BTM transition status code defined in 802.11
  11542. * section: Table 9-357.
  11543. *
  11544. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  11545. * This attribute indicates BSS termination delay defined in IEEE 802.11
  11546. * section: 9.6.13.10.
  11547. *
  11548. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  11549. * This attribute indicates 6-byte MAC address representing the BSSID of the
  11550. * BSS that the non-AP STA transitions to.
  11551. *
  11552. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  11553. * indicates EAP frame type. Uses enum qca_wlan_vendor_eap_type.
  11554. *
  11555. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  11556. * indicates EAP frame length.
  11557. */
  11558. enum qca_wlan_vendor_attr_diag {
  11559. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  11560. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  11561. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  11562. QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP = 3,
  11563. QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID = 4,
  11564. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 5,
  11565. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 6,
  11566. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 7,
  11567. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 8,
  11568. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 9,
  11569. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 10,
  11570. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 11,
  11571. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 12,
  11572. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 13,
  11573. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 14,
  11574. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 15,
  11575. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 16,
  11576. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_FRAME_TYPE = 17,
  11577. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 18,
  11578. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 19,
  11579. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 20,
  11580. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 21,
  11581. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 22,
  11582. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 23,
  11583. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 24,
  11584. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 25,
  11585. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 26,
  11586. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 27,
  11587. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 28,
  11588. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  11589. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  11590. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  11591. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  11592. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  11593. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RESULT = 34,
  11594. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  11595. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  11596. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  11597. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  11598. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  11599. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  11600. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  11601. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  11602. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  11603. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  11604. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  11605. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  11606. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  11607. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  11608. /* keep last */
  11609. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  11610. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  11611. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  11612. };
  11613. #endif