qca_vendor.h 564 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declares vendor commands interfacing with linux kernel
  21. */
  22. #ifndef _WLAN_QCA_VENDOR_H_
  23. #define _WLAN_QCA_VENDOR_H_
  24. /* Vendor id to be used in vendor specific command and events
  25. * to user space.
  26. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  27. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  28. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  29. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  30. */
  31. #define QCA_NL80211_VENDOR_ID 0x001374
  32. #ifndef BIT
  33. #define BIT(x) (1U << (x))
  34. #endif
  35. /**
  36. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  37. *
  38. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  39. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  40. * Sub commands 2 to 8 are not used
  41. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  42. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  43. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  44. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  45. * NAN Request/Response and NAN Indication messages. These messages are
  46. * interpreted between the framework and the firmware component. While
  47. * sending the command from userspace to the driver, payload is not
  48. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  49. * is used when receiving vendor events in userspace from the driver.
  50. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  57. * results
  58. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  59. * results
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  62. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  63. * channels
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  66. * results
  67. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  68. * available. Used when report_threshold is reached in scan cache.
  69. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  70. * result. Used to report scan results when each probe rsp. is received,
  71. * if report_events enabled in wifi_scan_cmd_params.
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  73. * Indicates progress of scanning state-machine.
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  75. * ap found
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  77. * bssid
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  79. * hotlist bssid
  80. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  81. * change
  82. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  83. * significant change
  84. * ap found
  85. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  86. * significant change
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
  88. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
  89. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
  90. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
  91. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  92. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  93. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  94. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  95. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  96. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  97. * roaming and auth information.
  98. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  99. *
  100. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  101. * invoke the ACS function in device and pass selected channels to
  102. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  103. *
  104. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  105. * driver.
  106. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  107. * started CAC on DFS channel
  108. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  109. * completed the CAC check on DFS channel
  110. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  111. * check was aborted by the driver
  112. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  113. * driver completed NOP
  114. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  115. * driver detected radar signal on the current operating channel
  116. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  117. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  118. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  119. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  120. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  121. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  122. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  123. * extscan reset ssid hotlist
  124. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  125. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  126. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  127. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  128. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  129. * reset passpoint list
  130. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  131. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  132. * passpoint network found
  133. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  134. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  135. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  136. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  137. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  138. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  139. list
  140. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  141. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  142. * to the host driver. This command sets the band through either
  143. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  144. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  145. * refers enum qca_set_band as unsigned integer values and
  146. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  147. * values. Also, the acceptable values for
  148. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  149. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  150. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  151. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  152. * implementations configure using both the attributes, the configurations
  153. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  154. * precedence.
  155. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  156. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  157. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  158. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  159. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  160. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  161. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  162. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  163. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  164. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  165. * start the P2P Listen Offload function in device and pass the listen
  166. * channel, period, interval, count, number of device types, device
  167. * types and vendor information elements to device driver and firmware.
  168. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  169. * indicate stop request/response of the P2P Listen Offload function in
  170. * device. As an event, it indicates either the feature stopped after it
  171. * was already running or feature has actually failed to start.
  172. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  173. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  174. * beaconing, this sub command provides the driver, the frequencies on the
  175. * 5 GHz to check for any radar activity. Driver selects one channel from
  176. * this priority list provided through
  177. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  178. * to check for radar activity on it. If no radar activity is detected
  179. * during the channel availability check period, driver internally switches
  180. * to the selected frequency of operation. If the frequency is zero, driver
  181. * internally selects a channel. The status of this conditional switch is
  182. * indicated through an event using the same sub command through
  183. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  184. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  185. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  186. * indication period and threshold for MAC layer counters.
  187. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  188. * in the host driver. The different TDLS configurations are defined
  189. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  190. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  191. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  192. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  193. * require methods to set SAR limits on TX power of WLAN/WWAN.
  194. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  195. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  196. * configuration of vendor ACS.
  197. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  198. * requisite information leading to a power save failure. The information
  199. * carried as part of this event is represented by the
  200. * enum qca_attr_chip_power_save_failure attributes.
  201. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  202. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  203. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  204. * statistics are represented by the enum qca_attr_nud_stats_get
  205. * attributes.
  206. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  207. * the BSS transition status, whether accept or reject, for a list of
  208. * candidate BSSIDs provided by the userspace. This uses the vendor
  209. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  210. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  211. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  212. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  213. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  214. * the driver shall specify array of
  215. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  216. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  217. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  218. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  219. * specific QCA module. The trace levels are represented by
  220. * enum qca_attr_trace_level attributes.
  221. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  222. * Protocol antenna limit in different modes. See enum
  223. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  224. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  225. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  226. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  227. * identifying the operation in success case. In failure cases an
  228. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  229. * describing the reason for the failure is returned.
  230. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  231. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  232. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  233. * be stopped.
  234. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  235. * specific interface. This can be used to modify some of the low level
  236. * scan parameters (off channel dwell time, home channel time) in the
  237. * driver/firmware. These parameters are maintained within the host
  238. * driver.
  239. * This command is valid only when the interface is in the connected
  240. * state.
  241. * These scan parameters shall be reset by the driver/firmware once
  242. * disconnected. The attributes used with this command are defined in
  243. * enum qca_wlan_vendor_attr_active_tos.
  244. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  245. * driver has detected an internal failure. This event carries the
  246. * information indicating the reason that triggered this detection. The
  247. * attributes for this command are defined in
  248. * enum qca_wlan_vendor_attr_hang.
  249. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  250. * of spectral parameters used. The spectral scan parameters are specified
  251. * by enum qca_wlan_vendor_attr_spectral_scan.
  252. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  253. * for spectral scan functionality. The debug stats are specified by
  254. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  255. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  256. * scan system capabilities. The capabilities are specified
  257. * by enum qca_wlan_vendor_attr_spectral_cap.
  258. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  259. * status of spectral scan. The status values are specified
  260. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  261. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  262. * peer pending packets. Specify the peer MAC address in
  263. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  264. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  265. * in enum qca_wlan_vendor_attr_flush_pending.
  266. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  267. * RF Operating Parameter (RROP) information. The attributes for this
  268. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  269. * intended for use by external Auto Channel Selection applications.
  270. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  271. * (SAR) power limits. This is a companion to the command
  272. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  273. * settings currently in use. The attributes returned by this command are
  274. * defined by enum qca_vendor_attr_sar_limits.
  275. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  276. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  277. * This works both as a query (user space asks the current mode) or event
  278. * interface (driver advertizing the current mode to the user space).
  279. * Driver does not trigger this event for temporary hardware mode changes.
  280. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  281. * channel change etc ) are updated with this event. Attributes for this
  282. * interface are defined in enum qca_wlan_vendor_attr_mac.
  283. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  284. * per peer per TID. Attributes for this command are define in
  285. * enum qca_wlan_set_qdepth_thresh_attr
  286. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  287. * guide for WLAN driver. Request to suspend of driver and FW if the
  288. * temperature is higher than the suspend threshold; resume action is
  289. * requested to driver if the temperature is lower than the resume
  290. * threshold. In user poll mode, request temperature data by user. For test
  291. * purpose, getting thermal shutdown configuration parameters is needed.
  292. * Attributes for this interface are defined in
  293. * enum qca_wlan_vendor_attr_thermal_cmd.
  294. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  295. * driver. Thermal temperature and indication of resume completion are
  296. * reported as thermal events. The attributes for this command are defined
  297. * in enum qca_wlan_vendor_attr_thermal_event.
  298. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  299. * test configuration. Attributes for this command are defined in
  300. * enum qca_wlan_vendor_attr_wifi_test_config.
  301. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  302. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  303. * carried a payload which was a binary blob of data. The command was not
  304. * extendable to send more information. The newer version carries the
  305. * legacy blob encapsulated within an attribute and can be extended with
  306. * additional vendor attributes that can enhance the NAN command
  307. * interface.
  308. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  309. * configure parameters per peer to capture Channel Frequency Response
  310. * (CFR) and enable Periodic CFR capture. The attributes for this command
  311. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  312. * can also be used to send CFR data from the driver to userspace when
  313. * netlink events are used to send CFR data.
  314. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  315. * The returned firmware state is specified in the attribute
  316. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  317. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  318. * is used by host driver to flush per-peer cached statistics to user space
  319. * application. This interface is used as an event from host driver to
  320. * user space application. Attributes for this event are specified in
  321. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  322. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  323. * sent as event from host driver.
  324. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  325. * improve the success rate of Zigbee joining network.
  326. * Due to PTA master limitation, zigbee joining network success rate is
  327. * low while wlan is working. Wlan host driver need to configure some
  328. * parameters including Zigbee state and specific WLAN periods to enhance
  329. * PTA master. All this parameters are delivered by the NetLink attributes
  330. * defined in "enum qca_mpta_helper_vendor_attr".
  331. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  332. * implement Beacon frame reporting feature.
  333. *
  334. * Userspace can request the driver/firmware to periodically report
  335. * received Beacon frames whose BSSID is same as the current connected
  336. * BSS's MAC address.
  337. *
  338. * In case the STA seamlessly (without sending disconnect indication to
  339. * userspace) roams to a different BSS, Beacon frame reporting will be
  340. * automatically enabled for the Beacon frames whose BSSID is same as the
  341. * MAC address of the new BSS. Beacon reporting will be stopped when the
  342. * STA is disconnected (when the disconnect indication is sent to
  343. * userspace) and need to be explicitly enabled by userspace for next
  344. * connection.
  345. *
  346. * When a Beacon frame matching configured conditions is received, and if
  347. * userspace has requested to send asynchronous beacon reports, the
  348. * driver/firmware will encapsulate the details of the Beacon frame in an
  349. * event and send it to userspace along with updating the BSS information
  350. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  351. * scan cache with the information from the received Beacon frame but
  352. * will not send any active report to userspace.
  353. *
  354. * The userspace can request the driver/firmware to stop reporting Beacon
  355. * frames. If the driver/firmware is not able to receive Beacon frames
  356. * due to other Wi-Fi operations such as off-channel activities, etc.,
  357. * the driver/firmware will send a pause event to userspace and stop
  358. * reporting Beacon frames. Whether the beacon reporting will be
  359. * automatically resumed or not by the driver/firmware later will be
  360. * reported to userspace using the
  361. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  362. * reporting shall be resumed for all the cases except either when
  363. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  364. * in the command which triggered the current beacon reporting or during
  365. * any disconnection case as indicated by setting
  366. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  367. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  368. * driver.
  369. *
  370. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  371. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  372. * flag not set, the next first
  373. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  374. * shall be considered as un-pause event.
  375. *
  376. * All the attributes used with this command are defined in
  377. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  378. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  379. * interop issues with the DUT. This sub command is used to transfer the
  380. * ap info between driver and user space. This works both as a command
  381. * or event. As a command, it configs the stored list of aps from user
  382. * space to firmware; as an event, it indicates the ap info detected by
  383. * firmware to user space for persistent storage. The attributes defined
  384. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  385. * parameters.
  386. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  387. * binary blobs from application/service to firmware. The attributes
  388. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  389. * deliver the parameters.
  390. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  391. * to send/receive avoid frequency data using
  392. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  393. * This new command is alternative to existing command
  394. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  395. * is using stream of bytes instead of structured data using vendor
  396. * attributes. User space sends unsafe frequency ranges to the driver using
  397. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  398. * reception of this command, the driver shall check if an interface is
  399. * operating on an unsafe frequency and the driver shall try to move to a
  400. * safe channel when needed. If the driver is not able to find a safe
  401. * channel the interface can keep operating on an unsafe channel with the
  402. * TX power limit derived based on internal configurations like
  403. * regulatory/SAR rules.
  404. *
  405. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  406. * add the STA node details in driver/firmware. Attributes for this event
  407. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  408. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  409. * coex chain mode from application/service.
  410. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  411. * to deliver the parameters.
  412. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  413. * get information of a station from driver to userspace. This command can
  414. * be used in both STA and AP modes. For STA mode, it provides information
  415. * of the current association when in connected state or the last
  416. * association when in disconnected state. For AP mode, only information
  417. * of the currently connected stations is available. This command uses
  418. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  419. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  420. * Host drivers can request the user space entity to set the SAR power
  421. * limits with this event. Accordingly, the user space entity is expected
  422. * to set the SAR power limits. Host drivers can retry this event to the
  423. * user space for the SAR power limits configuration from user space. If
  424. * the driver does not get the SAR power limits from user space for all
  425. * the retried attempts, it can configure a default SAR power limit.
  426. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  427. * is used to update the information about the station from the driver to
  428. * userspace. Uses attributes from enum
  429. * qca_wlan_vendor_attr_update_sta_info.
  430. *
  431. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  432. * The host driver initiates the disconnection for scenarios such as beacon
  433. * miss, NUD failure, peer kick out, etc. The disconnection indication
  434. * through cfg80211_disconnected() expects the reason codes from enum
  435. * ieee80211_reasoncode which does not signify these various reasons why
  436. * the driver has triggered the disconnection. This event will be used to
  437. * send the driver specific reason codes by the host driver to userspace.
  438. * Host drivers should trigger this event and pass the respective reason
  439. * code immediately prior to triggering cfg80211_disconnected(). The
  440. * attributes used with this event are defined in enum
  441. * qca_wlan_vendor_attr_driver_disconnect_reason.
  442. *
  443. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  444. * add/delete TSPEC for each AC. One command is for one specific AC only.
  445. * This command can only be used in STA mode and the STA must be
  446. * associated with an AP when the command is issued. Uses attributes
  447. * defined in enum qca_wlan_vendor_attr_config_tspec.
  448. *
  449. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  450. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  451. *
  452. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  453. * the host driver. The band configurations obtained are referred through
  454. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  455. *
  456. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  457. * assessment.
  458. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  459. *
  460. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  461. * used to update SSID information in hostapd when it is updated in the
  462. * driver. Uses the attribute NL80211_ATTR_SSID.
  463. *
  464. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  465. * the driver to send opaque data from the firmware to userspace. The
  466. * driver sends an event to userspace whenever such data is received from
  467. * the firmware.
  468. *
  469. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  470. * send this opaque data for this event.
  471. *
  472. * The format of the opaque data is specific to the particular firmware
  473. * version and there is no guarantee of the format remaining same.
  474. *
  475. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  476. * The host driver selects Tx VDEV, and notifies user. The attributes
  477. * used with this event are defined in enum
  478. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  479. * This event contains Tx VDEV group information contains other VDEVs
  480. * interface index and status information.
  481. *
  482. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY: Vendor command to
  483. * configure the concurrent session policies when multiple STA interfaces
  484. * are (getting) active. The attributes used by this command are defined
  485. * in enum qca_wlan_vendor_attr_concurrent_sta_policy.
  486. *
  487. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  488. * to query usable channels for different interface types such as STA,
  489. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  490. * channels in the response based on country code, different static
  491. * configurations, concurrency combinations, etc. The attributes used
  492. * with this command are defined in
  493. * enum qca_wlan_vendor_attr_usable_channels.
  494. *
  495. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  496. * to get DFS radar history from the driver to userspace. The driver
  497. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  498. * array of nested entries.
  499. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  500. * enable/disable mDNS offload to the firmware. The attributes used with
  501. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  502. *
  503. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  504. * important debug events that are required for various issues. The
  505. * attributes used with this command are defined in
  506. * enum qca_wlan_vendor_attr_diag.
  507. * This command is defined for temporary usage until this interface is
  508. * moved to the existing diag infra with cnss diag events. This command
  509. * will be deprecated soon and it is not recommended to do any further
  510. * enhancements to this command.
  511. *
  512. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  513. * to set packet monitor mode that aims to send the specified set of TX and
  514. * RX frames on the current client interface to an active monitor interface.
  515. * If this Monitor mode is set, the driver will send the configured frames,
  516. * from the interface on which the command is issued, to an active monitor
  517. * interface. The attributes used with this command are defined in
  518. * enum qca_wlan_vendor_attr_set_monitor_mode.
  519. *
  520. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  521. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  522. * to consider the possibility of sending these frames over the monitor
  523. * interface. For example, the control frames are handled with in the
  524. * hardware and thus passing such frames over the monitor interface is left
  525. * to the respective designs.
  526. *
  527. * Also, this monitor mode is governed to behave accordingly in
  528. * suspend/resume states. If the firmware handles any of such frames
  529. * in suspend state without waking up the host and if the monitor mode
  530. * is configured to notify all such frames, then the firmware is expected
  531. * to resume the host and forward the respective frames to the monitor
  532. * interface. Please note that such a request to get the frames over the
  533. * monitor interface will have a definite power implications.
  534. *
  535. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  536. * as a request to set the driver/firmware with the parameters to trigger
  537. * the roaming events, and also used by the driver/firmware to pass on the
  538. * various roam events to userspace.
  539. * Applicable only for the STA mode. The attributes used with this command
  540. * are defined in enum qca_wlan_vendor_attr_roam_events.
  541. *
  542. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  543. * rate mask config for a list of phy types. Userspace shall provide
  544. * an array of the vendor attributes defined in
  545. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  546. *
  547. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  548. * when two interfaces are active on the same band, using two different
  549. * home channels, and only supported by a single radio. In this scenario
  550. * the device must split the use of the radio between the two interfaces.
  551. * The percentage of time allocated to a given interface is the quota.
  552. * Depending on the configuration, the quota can either be fixed or
  553. * dynamic.
  554. *
  555. * When used as an event, the device will report the quota type, and for
  556. * all interfaces operating in MCC it will report the current quota.
  557. * When used as a command, the device can be configured for a specific
  558. * quota type, and in the case of a fixed quota, the quota to apply to one
  559. * of the interfaces.
  560. *
  561. * Applications can use the event to do TX bitrate control based on the
  562. * information, and can use the command to explicitly set the quota to
  563. * enhance performance in specific scenarios.
  564. *
  565. * The attributes used with this command are defined in
  566. * enum qca_wlan_vendor_attr_mcc_quota.
  567. */
  568. enum qca_nl80211_vendor_subcmds {
  569. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  570. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  571. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  572. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  573. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  574. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  575. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  576. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  577. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  578. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  579. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  580. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  581. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  582. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  583. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  584. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  585. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  586. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  587. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  588. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  589. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  590. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  591. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  592. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  593. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  594. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  595. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  596. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  597. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  598. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  599. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  600. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  601. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  602. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  603. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  604. /* Get Concurrency Matrix */
  605. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  606. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  607. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  608. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  609. /* Deprecated */
  610. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  611. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  612. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  613. /* Off loaded DFS events */
  614. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  615. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  616. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  617. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  618. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  619. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  620. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  621. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  622. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  623. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  624. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  625. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  626. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  627. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  628. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  629. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  630. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  631. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  632. /* Wi-Fi Configuration subcommands */
  633. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  634. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  635. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  636. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  637. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  638. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  639. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  640. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  641. /* NS Offload enable/disable cmd */
  642. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  643. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  644. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  645. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  646. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  647. /* OCB commands */
  648. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  649. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  650. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  651. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  652. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  653. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  654. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  655. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  656. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  657. /* subcommand to get link properties */
  658. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  659. /* LFR Subnet Detection */
  660. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  661. /* DBS subcommands */
  662. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  663. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  664. /* Vendor setband command */
  665. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  666. /* Vendor scan commands */
  667. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  668. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  669. /* OTA test subcommand */
  670. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  671. /* Tx power scaling subcommands */
  672. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  673. /* Tx power scaling in db subcommands */
  674. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  675. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  676. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  677. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  678. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  679. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  680. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  681. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  682. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  683. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  684. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  685. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  686. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  687. /* FTM/indoor location subcommands */
  688. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  689. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  690. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  691. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  692. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  693. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  694. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  695. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  696. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  697. /* Encrypt/Decrypt command */
  698. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  699. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  700. /* DMG low level RF sector operations */
  701. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  702. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  703. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  704. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  705. /* Configure the TDLS mode from user space */
  706. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  707. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  708. /* Vendor abort scan command */
  709. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  710. /* Set Specific Absorption Rate(SAR) Power Limits */
  711. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  712. /* External Auto channel configuration setting */
  713. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  714. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  715. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  716. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  717. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  718. /* Set the trace level for QDF */
  719. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  720. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  721. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  722. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  723. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  724. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  725. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  726. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  727. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  728. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  729. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  730. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  731. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  732. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  733. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  734. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  735. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  736. /* Wi-Fi test configuration subcommand */
  737. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  738. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  739. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  740. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  741. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  742. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  743. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  744. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  745. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  746. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  747. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  748. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  749. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  750. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  751. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  752. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  753. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  754. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  755. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  756. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  757. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  758. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  759. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  760. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  761. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  762. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197,
  763. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  764. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  765. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  766. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  767. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  768. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  769. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  770. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  771. };
  772. enum qca_wlan_vendor_tos {
  773. QCA_WLAN_VENDOR_TOS_BK = 0,
  774. QCA_WLAN_VENDOR_TOS_BE = 1,
  775. QCA_WLAN_VENDOR_TOS_VI = 2,
  776. QCA_WLAN_VENDOR_TOS_VO = 3,
  777. };
  778. /**
  779. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  780. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  781. */
  782. enum qca_wlan_vendor_attr_active_tos {
  783. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  784. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  785. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  786. /* Flag attribute representing the start (attribute included) or stop
  787. * (attribute not included) of the respective TOS.
  788. */
  789. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  790. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  791. };
  792. enum qca_wlan_vendor_hang_reason {
  793. /* Unspecified reason */
  794. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  795. /* No Map for the MAC entry for the received frame */
  796. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  797. /* peer deletion timeout happened */
  798. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  799. /* peer unmap timeout */
  800. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  801. /* Scan request timed out */
  802. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  803. /* Consecutive Scan attempt failures */
  804. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  805. /* Unable to get the message buffer */
  806. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  807. /* Current command processing is timedout */
  808. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  809. /* Timeout for an ACK from FW for suspend request */
  810. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  811. /* Timeout for an ACK from FW for resume request */
  812. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  813. /* Transmission timeout for consecutive data frames */
  814. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  815. /* Timeout for the TX completion status of data frame */
  816. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  817. /* DXE failure for tx/Rx, DXE resource unavailability */
  818. QCA_WLAN_HANG_DXE_FAILURE = 12,
  819. /* WMI pending commands exceed the maximum count */
  820. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  821. /* Timeout for peer STA connection accept command's response from the
  822. * FW in AP mode. This command is triggered when a STA (peer) connects
  823. * to AP (DUT).
  824. */
  825. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  826. /* Timeout for the AP connection accept command's response from the FW
  827. * in STA mode. This command is triggered when the STA (DUT) connects
  828. * to an AP (peer).
  829. */
  830. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  831. /* Timeout waiting for the response to the MAC HW mode change command
  832. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  833. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  834. * Channel Concurrency) mode.
  835. */
  836. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  837. /* Timeout waiting for the response from FW to configure the MAC HW's
  838. * mode. This operation is to configure the single/two MACs in either
  839. * SCC/MCC/DBS mode.
  840. */
  841. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  842. /* Timeout waiting for response of VDEV start command from the FW */
  843. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  844. /* Timeout waiting for response of VDEV restart command from the FW */
  845. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  846. /* Timeout waiting for response of VDEV stop command from the FW */
  847. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  848. /* Timeout waiting for response of VDEV delete command from the FW */
  849. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  850. /* Timeout waiting for response of peer all delete request command to
  851. * the FW on a specific VDEV.
  852. */
  853. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  854. /* WMI sequence mismatch between WMI command and Tx completion */
  855. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  856. /* Write to Device HAL register failed */
  857. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  858. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  859. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  860. /* Bus failure */
  861. QCA_WLAN_HANG_BUS_FAILURE = 26,
  862. /* tasklet/credit latency found */
  863. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  864. };
  865. /**
  866. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  867. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  868. */
  869. enum qca_wlan_vendor_attr_hang {
  870. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  871. /*
  872. * Reason for the Hang - Represented by enum
  873. * qca_wlan_vendor_hang_reason.
  874. */
  875. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  876. /* The binary blob data associated with the hang reason specified by
  877. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  878. * contain the required dump to analyze the reason for the hang.
  879. * NLA_BINARY attribute, the max size is 1024 bytes.
  880. */
  881. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  882. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  883. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  884. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  885. };
  886. /**
  887. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  888. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  889. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  890. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  891. level needs to be updated.
  892. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  893. * to be set.
  894. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  895. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  896. */
  897. enum qca_vendor_attr_set_trace_level {
  898. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  899. /*
  900. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  901. * attributes.
  902. */
  903. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  904. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  905. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  906. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  907. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  908. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  909. };
  910. /**
  911. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  912. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  913. * station information. The information obtained through these
  914. * commands signify the current info in connected state and
  915. * latest cached information during the connected state , if queried
  916. * when in disconnected state.
  917. *
  918. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  919. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  920. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  921. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  922. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  923. */
  924. enum qca_wlan_vendor_attr_get_station {
  925. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  926. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  927. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  928. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  929. /* keep last */
  930. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  931. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  932. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  933. };
  934. /**
  935. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  936. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  937. *
  938. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  939. * Used in STA mode. This attribute represents the list of channel center
  940. * frequencies in MHz (u32) the station has learnt during the last connection
  941. * or roaming attempt. This information shall not signify the channels for
  942. * an explicit scan request from the user space. Host drivers can update this
  943. * information to the user space in both connected and disconnected state.
  944. * In the disconnected state this information shall signify the channels
  945. * scanned in the last connection/roam attempt that lead to the disconnection.
  946. */
  947. enum qca_wlan_vendor_attr_update_sta_info {
  948. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  949. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  950. /* keep last */
  951. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  952. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  953. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  954. };
  955. /**
  956. * enum qca_wlan_802_11_mode - dot11 mode
  957. * @QCA_WLAN_802_11_MODE_11B: mode B
  958. * @QCA_WLAN_802_11_MODE_11G: mode G
  959. * @QCA_WLAN_802_11_MODE_11N: mode N
  960. * @QCA_WLAN_802_11_MODE_11A: mode A
  961. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  962. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  963. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  964. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  965. */
  966. enum qca_wlan_802_11_mode {
  967. QCA_WLAN_802_11_MODE_11B,
  968. QCA_WLAN_802_11_MODE_11G,
  969. QCA_WLAN_802_11_MODE_11N,
  970. QCA_WLAN_802_11_MODE_11A,
  971. QCA_WLAN_802_11_MODE_11AC,
  972. QCA_WLAN_802_11_MODE_11AX,
  973. QCA_WLAN_802_11_MODE_11BE,
  974. QCA_WLAN_802_11_MODE_INVALID,
  975. };
  976. /**
  977. * enum qca_wlan_auth_type - Authentication key management type
  978. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  979. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  980. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  981. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  982. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  983. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  984. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  985. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  986. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  987. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  988. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  989. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  990. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  991. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  992. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  993. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  994. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  995. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  996. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  997. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  998. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  999. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1000. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1001. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1002. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1003. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1004. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1005. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1006. */
  1007. enum qca_wlan_auth_type {
  1008. QCA_WLAN_AUTH_TYPE_INVALID,
  1009. QCA_WLAN_AUTH_TYPE_OPEN,
  1010. QCA_WLAN_AUTH_TYPE_SHARED,
  1011. QCA_WLAN_AUTH_TYPE_WPA,
  1012. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1013. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1014. QCA_WLAN_AUTH_TYPE_RSN,
  1015. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1016. QCA_WLAN_AUTH_TYPE_FT,
  1017. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1018. QCA_WLAN_AUTH_TYPE_SHA256,
  1019. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1020. QCA_WLAN_AUTH_TYPE_WAI,
  1021. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1022. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1023. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1024. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1025. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1026. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1027. QCA_WLAN_AUTH_TYPE_SAE,
  1028. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1029. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1030. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1031. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1032. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1033. QCA_WLAN_AUTH_TYPE_OWE,
  1034. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1035. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1036. };
  1037. /**
  1038. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1039. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1040. *
  1041. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1042. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1043. * Get the standard NL attributes Nested with this attribute.
  1044. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1045. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1046. * NL80211_ATTR_STA_INFO
  1047. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1048. * Get the standard NL attributes Nested with this attribute.
  1049. * Ex : Query HT/VHT Capability advertized by the AP.
  1050. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1051. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1052. * Number of successful Roam attempts before a
  1053. * disconnect, Unsigned 32 bit value
  1054. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1055. * Authentication Key Management Type used for the connected session.
  1056. * Signified by enum qca_wlan_auth_type
  1057. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1058. * connected Session, signified by enum qca_wlan_802_11_mode
  1059. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1060. * HS20 Indication Element
  1061. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1062. * Status Code Corresponding to the Association Failure.
  1063. * Unsigned 32 bit value.
  1064. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1065. * Max phy rate of remote station
  1066. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1067. * TX packets to remote station
  1068. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1069. * TX bytes to remote station
  1070. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1071. * RX packets from remote station
  1072. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1073. * RX bytes from remote station
  1074. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1075. * Last TX rate with remote station
  1076. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1077. * Last RX rate with remote station
  1078. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1079. * Remote station enable/disable WMM
  1080. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1081. * Remote station connection mode
  1082. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1083. * Remote station AMPDU enable/disable
  1084. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1085. * Remote station TX Space-time block coding enable/disable
  1086. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1087. * Remote station RX Space-time block coding enable/disable
  1088. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1089. * Remote station channel width
  1090. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1091. * Remote station short GI enable/disable
  1092. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1093. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1094. * containing the raw information elements from Beacon frames. Represents
  1095. * the Beacon frames of the current BSS in the connected state. When queried
  1096. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1097. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1098. * disconnect reason for the last disconnection if the disconnection is
  1099. * triggered from the host driver. The values are referred from
  1100. * enum qca_disconnect_reason_codes. If the disconnect is from
  1101. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1102. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1103. * Applicable in AP mode only. It contains the raw information elements
  1104. * from assoc request frame of the given peer station. User queries with the
  1105. * mac address of peer station when it disconnects. Host driver sends
  1106. * assoc request frame of the given station. Host driver doesn't provide
  1107. * the IEs when the peer station is still in connected state.
  1108. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1109. * sending HE operation info.
  1110. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1111. *
  1112. */
  1113. enum qca_wlan_vendor_attr_get_station_info {
  1114. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1115. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1116. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1117. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1118. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1119. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1120. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1121. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1122. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1123. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1124. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1125. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1126. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1127. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1128. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1129. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1130. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1131. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1132. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1133. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1134. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1135. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1136. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1137. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1138. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1139. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1140. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1141. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1142. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1143. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1144. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1145. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1146. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1147. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1148. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1149. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1150. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1151. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1152. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1153. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1154. /* keep last */
  1155. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1156. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1157. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1158. };
  1159. /**
  1160. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  1161. *
  1162. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  1163. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  1164. * value
  1165. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  1166. * keep as unsigned for now
  1167. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  1168. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  1169. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  1170. * in KBPS
  1171. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  1172. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  1173. */
  1174. enum qca_wlan_vendor_attr_tdls_enable {
  1175. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  1176. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  1177. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  1178. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  1179. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  1180. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  1181. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  1182. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  1183. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  1184. };
  1185. /**
  1186. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  1187. *
  1188. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  1189. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  1190. * 8-bit value
  1191. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  1192. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  1193. */
  1194. enum qca_wlan_vendor_attr_tdls_disable {
  1195. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  1196. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  1197. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  1198. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  1199. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  1200. };
  1201. /**
  1202. * qca_chip_power_save_failure_reason: Power save failure reason
  1203. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1204. * due to protocol/module.
  1205. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1206. * due to hardware
  1207. */
  1208. enum qca_chip_power_save_failure_reason {
  1209. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1210. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1211. };
  1212. /**
  1213. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1214. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1215. * information leading to the power save failure.
  1216. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1217. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1218. * represented by enum qca_chip_power_save_failure_reason
  1219. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1220. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1221. */
  1222. enum qca_attr_chip_power_save_failure {
  1223. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1224. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1225. /* keep last */
  1226. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1227. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1228. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1229. };
  1230. /**
  1231. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1232. *
  1233. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1234. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1235. * 8-bit value
  1236. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1237. * unsigned 32-bit value
  1238. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1239. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1240. * unsigned 32-bit value
  1241. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1242. * class, unsigned 32-bit value
  1243. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1244. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1245. */
  1246. enum qca_wlan_vendor_attr_tdls_get_status {
  1247. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1248. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1249. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1250. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1251. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1252. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1253. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1254. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1255. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1256. };
  1257. /**
  1258. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1259. *
  1260. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1261. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1262. * 8-bit value
  1263. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1264. * unsigned 32-bit value
  1265. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1266. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1267. * unsigned 32-bit value
  1268. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1269. * operating class, unsigned 32-bit value
  1270. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1271. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1272. */
  1273. enum qca_wlan_vendor_attr_tdls_state {
  1274. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1275. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1276. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1277. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1278. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1279. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1280. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1281. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1282. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  1283. };
  1284. /* enum's to provide TDLS capabilities */
  1285. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1286. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1287. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1288. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1289. /* keep last */
  1290. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1291. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1292. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1293. };
  1294. enum qca_wlan_vendor_attr {
  1295. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1296. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1297. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1298. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1299. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1300. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1301. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1302. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1303. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1304. /*
  1305. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1306. * by enum qca_roaming_policy.
  1307. */
  1308. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1309. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1310. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1311. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1312. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1313. /*
  1314. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1315. * Unsigned 32-bit value.
  1316. */
  1317. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1318. /* Unsigned 32-bit value */
  1319. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1320. /* Unsigned 32-bit value */
  1321. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1322. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1323. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1324. * is deprecated. Recommendation is to use
  1325. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1326. * using both the attributes, the ones configured through
  1327. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1328. */
  1329. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1330. /* Dummy (NOP) attribute for 64 bit padding */
  1331. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1332. /*
  1333. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1334. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1335. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1336. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1337. */
  1338. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1339. /*
  1340. * Indoor location capabilities, returned by
  1341. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1342. * see enum qca_wlan_vendor_attr_loc_capa.
  1343. */
  1344. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1345. /*
  1346. * Array of nested attributes containing information about each peer
  1347. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1348. * for supported attributes for each peer.
  1349. */
  1350. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1351. /*
  1352. * Array of nested attributes containing measurement results for
  1353. * one or more peers, reported by the
  1354. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1355. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1356. * attributes.
  1357. */
  1358. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1359. /* Flag attribute for enabling or disabling responder functionality. */
  1360. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1361. /*
  1362. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1363. * command to specify the LCI report that will be sent by
  1364. * the responder during a measurement exchange. The format is
  1365. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1366. */
  1367. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1368. /*
  1369. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1370. * command to specify the location civic report that will
  1371. * be sent by the responder during a measurement exchange.
  1372. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1373. */
  1374. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1375. /*
  1376. * Session/measurement completion status code,
  1377. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1378. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1379. * see enum qca_vendor_attr_loc_session_status.
  1380. */
  1381. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1382. /*
  1383. * Initial dialog token used by responder (0 if not specified),
  1384. * unsigned 8 bit value.
  1385. */
  1386. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1387. /*
  1388. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1389. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1390. * AOA measurements are needed as part of an FTM session.
  1391. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1392. * enum qca_wlan_vendor_attr_aoa_type.
  1393. */
  1394. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1395. /*
  1396. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1397. * by indoor location measurements. Refers to the antenna
  1398. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1399. */
  1400. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1401. /*
  1402. * AOA measurement data. Its contents depends on the AOA measurement
  1403. * type and antenna array mask:
  1404. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1405. * phase of the strongest CIR path for each antenna in the measured
  1406. * array(s).
  1407. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1408. * values, phase and amplitude of the strongest CIR path for each
  1409. * antenna in the measured array(s).
  1410. */
  1411. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1412. /*
  1413. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1414. * to specify the chain number (unsigned 32 bit value) to inquire
  1415. * the corresponding antenna RSSI value */
  1416. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1417. /*
  1418. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1419. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1420. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1421. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1422. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1423. /*
  1424. * TSF timer value, unsigned 64 bit value.
  1425. * May be returned by various commands.
  1426. */
  1427. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1428. /*
  1429. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1430. * 0..127 for sector indices or 65535 as special value used to
  1431. * unlock sector selection in
  1432. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1433. */
  1434. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1435. /*
  1436. * DMG RF sector type, unsigned 8 bit value. One of the values
  1437. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1438. */
  1439. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1440. /*
  1441. * Bitmask of DMG RF modules for which information is requested. Each
  1442. * bit corresponds to an RF module with the same index as the bit
  1443. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1444. * all DMG chips currently have up to 8 RF modules.
  1445. */
  1446. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1447. /*
  1448. * Array of nested attributes where each entry is DMG RF sector
  1449. * configuration for a single RF module.
  1450. * Attributes for each entry are taken from enum
  1451. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1452. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1453. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1454. */
  1455. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1456. /*
  1457. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1458. * to report frame aggregation statistics to userspace.
  1459. */
  1460. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1461. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1462. /*
  1463. * Unsigned 8-bit value representing MBO transition reason code as
  1464. * provided by the AP used by subcommand
  1465. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1466. * specified by the userspace in the request to the driver.
  1467. */
  1468. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1469. /*
  1470. * Array of nested attributes, BSSID and status code, used by subcommand
  1471. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1472. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1473. * The userspace space specifies the list/array of candidate BSSIDs in
  1474. * the order of preference in the request. The driver specifies the
  1475. * status code, for each BSSID in the list, in the response. The
  1476. * acceptable candidates are listed in the order preferred by the
  1477. * driver.
  1478. */
  1479. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1480. /*
  1481. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1482. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1483. */
  1484. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1485. /*
  1486. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1487. * to define the number of antennas to use for BRP.
  1488. * different purpose in each ANT_LIMIT_MODE:
  1489. * DISABLE - ignored
  1490. * EFFECTIVE - upper limit to number of antennas to be used
  1491. * FORCE - exact number of antennas to be used
  1492. * unsigned 8 bit value
  1493. */
  1494. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1495. /*
  1496. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1497. * to report the corresponding antenna index to the chain RSSI value
  1498. */
  1499. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1500. /*
  1501. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1502. * to report the specific antenna EVM value (unsigned 32 bit value).
  1503. * With a determinate group of antennas, the driver specifies the
  1504. * EVM value for each antenna ID, and application extract them
  1505. * in user space.
  1506. */
  1507. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1508. /*
  1509. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1510. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1511. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1512. */
  1513. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1514. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1515. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1516. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1517. * This attribute shall consider the bitmask combinations to define
  1518. * the respective Band combinations and always takes precedence over
  1519. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1520. */
  1521. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1522. /* keep last */
  1523. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1524. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1525. };
  1526. enum qca_wlan_vendor_attr_extscan_config_params {
  1527. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1528. /* Unsigned 32-bit value */
  1529. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1530. /*
  1531. * Attributes for data used by
  1532. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1533. */
  1534. /* Unsigned 32-bit value */
  1535. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1536. = 2,
  1537. /* Unsigned 32-bit value */
  1538. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1539. = 3,
  1540. /*
  1541. * Attributes for input params used by
  1542. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1543. */
  1544. /* Unsigned 32-bit value; channel frequency */
  1545. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1546. /* Unsigned 32-bit value; dwell time in ms. */
  1547. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1548. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1549. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1550. /* Unsigned 8-bit value; channel class */
  1551. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1552. /* Unsigned 8-bit value; bucket index, 0 based */
  1553. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1554. /* Unsigned 8-bit value; band. */
  1555. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1556. /* Unsigned 32-bit value; desired period, in ms. */
  1557. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1558. /* Unsigned 8-bit value; report events semantics. */
  1559. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1560. /*
  1561. * Unsigned 32-bit value. Followed by a nested array of
  1562. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1563. */
  1564. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1565. /*
  1566. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1567. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1568. */
  1569. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1570. /* Unsigned 32-bit value; base timer period in ms. */
  1571. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1572. /*
  1573. * Unsigned 32-bit value; number of APs to store in each scan in the
  1574. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1575. */
  1576. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1577. /*
  1578. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1579. * up AP.
  1580. */
  1581. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1582. = 16,
  1583. /*
  1584. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1585. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1586. * of the array is determined by NUM_BUCKETS.
  1587. */
  1588. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1589. /*
  1590. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1591. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1592. */
  1593. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1594. /* Unsigned 8-bit value */
  1595. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1596. = 19,
  1597. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1598. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1599. = 20,
  1600. /* An array of 6 x unsigned 8-bit value */
  1601. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1602. /* Signed 32-bit value */
  1603. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1604. /* Signed 32-bit value */
  1605. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1606. /* Unsigned 32-bit value */
  1607. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1608. /*
  1609. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1610. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1611. * array is determined by NUM_AP.
  1612. */
  1613. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1614. /*
  1615. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1616. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1617. */
  1618. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1619. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1620. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1621. = 27,
  1622. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1623. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1624. = 28,
  1625. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1626. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1627. /*
  1628. * Unsigned 32-bit value; number of APs. Followed by an array of
  1629. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1630. */
  1631. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1632. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1633. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1634. = 31,
  1635. /*
  1636. * Unsigned 32-bit value. If max_period is non zero or different than
  1637. * period, then this bucket is an exponential backoff bucket.
  1638. */
  1639. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1640. /* Unsigned 32-bit value. */
  1641. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1642. /*
  1643. * Unsigned 32-bit value. For exponential back off bucket, number of
  1644. * scans to perform for a given period.
  1645. */
  1646. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1647. /*
  1648. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1649. * many scans.
  1650. */
  1651. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1652. = 35,
  1653. /*
  1654. * Attributes for data used by
  1655. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1656. */
  1657. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1658. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1659. = 36,
  1660. /*
  1661. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1662. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1663. * size of the array is determined by NUM_SSID.
  1664. */
  1665. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1666. /*
  1667. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1668. * attributes.
  1669. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1670. */
  1671. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1672. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1673. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1674. /* Unsigned 8-bit value */
  1675. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1676. /* Signed 32-bit value */
  1677. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1678. /* Signed 32-bit value */
  1679. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1680. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1681. */
  1682. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1683. /* keep last */
  1684. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1685. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1686. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1687. };
  1688. enum qca_wlan_vendor_attr_extscan_results {
  1689. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1690. /*
  1691. * Unsigned 32-bit value; must match the request Id supplied by
  1692. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1693. */
  1694. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1695. /*
  1696. * Unsigned 32-bit value; used to indicate the status response from
  1697. * firmware/driver for the vendor sub-command.
  1698. */
  1699. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1700. /*
  1701. * EXTSCAN Valid Channels attributes */
  1702. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1703. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1704. /*
  1705. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1706. * representing channel numbers.
  1707. */
  1708. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1709. /* EXTSCAN Capabilities attributes */
  1710. /* Unsigned 32-bit value */
  1711. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1712. /* Unsigned 32-bit value */
  1713. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1714. /* Unsigned 32-bit value */
  1715. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1716. = 7,
  1717. /* Unsigned 32-bit value */
  1718. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1719. = 8,
  1720. /* Signed 32-bit value */
  1721. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1722. = 9,
  1723. /* Unsigned 32-bit value */
  1724. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1725. /* Unsigned 32-bit value */
  1726. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1727. = 11,
  1728. /* Unsigned 32-bit value */
  1729. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1730. = 12,
  1731. /*
  1732. * EXTSCAN Attributes used with
  1733. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1734. */
  1735. /* Unsigned 32-bit value */
  1736. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1737. /*
  1738. * EXTSCAN attributes used with
  1739. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1740. */
  1741. /*
  1742. * An array of NUM_RESULTS_AVAILABLE x
  1743. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1744. */
  1745. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1746. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1747. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1748. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1749. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1750. /* An array of 6 x unsigned 8-bit value */
  1751. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1752. /* Unsigned 32-bit value; channel frequency in MHz */
  1753. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1754. /* Signed 32-bit value */
  1755. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1756. /* Unsigned 32-bit value */
  1757. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1758. /* Unsigned 32-bit value */
  1759. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1760. /* Unsigned 16-bit value */
  1761. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1762. /* Unsigned 16-bit value */
  1763. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1764. /* Unsigned 32-bit value; size of the IE DATA blob */
  1765. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1766. /*
  1767. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1768. * information elements found in the beacon; this data should be a
  1769. * packed list of wifi_information_element objects, one after the
  1770. * other.
  1771. */
  1772. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1773. /*
  1774. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1775. * available.
  1776. */
  1777. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1778. /*
  1779. * EXTSCAN attributes for
  1780. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1781. */
  1782. /* Unsigned 8-bit value */
  1783. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1784. /* Unsigned 32-bit value */
  1785. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1786. /*
  1787. * EXTSCAN attributes for
  1788. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  1789. */
  1790. /*
  1791. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1792. * to indicate number of results.
  1793. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1794. * list of results.
  1795. */
  1796. /*
  1797. * EXTSCAN attributes for
  1798. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  1799. */
  1800. /* An array of 6 x unsigned 8-bit value */
  1801. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  1802. /* Unsigned 32-bit value */
  1803. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  1804. = 30,
  1805. /* Unsigned 32-bit value. */
  1806. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  1807. = 31,
  1808. /*
  1809. * A nested array of signed 32-bit RSSI values. Size of the array is
  1810. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  1811. */
  1812. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  1813. = 32,
  1814. /*
  1815. * EXTSCAN attributes used with
  1816. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  1817. */
  1818. /*
  1819. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1820. * to indicate number of extscan cached results returned.
  1821. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  1822. * the list of extscan cached results.
  1823. */
  1824. /*
  1825. * An array of NUM_RESULTS_AVAILABLE x
  1826. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  1827. */
  1828. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  1829. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  1830. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  1831. /*
  1832. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  1833. */
  1834. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  1835. /*
  1836. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1837. * to indicate number of wifi scan results/bssids retrieved by the scan.
  1838. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1839. * list of wifi scan results returned for each cached result block.
  1840. */
  1841. /*
  1842. * EXTSCAN attributes for
  1843. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  1844. */
  1845. /*
  1846. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  1847. * number of results.
  1848. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1849. * list of wifi scan results returned for each
  1850. * wifi_passpoint_match_result block.
  1851. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  1852. */
  1853. /*
  1854. * EXTSCAN attributes for
  1855. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  1856. */
  1857. /* Unsigned 32-bit value */
  1858. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  1859. = 36,
  1860. /*
  1861. * A nested array of
  1862. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  1863. * attributes. Array size =
  1864. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  1865. */
  1866. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  1867. /* Unsigned 32-bit value; network block id for the matched network */
  1868. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  1869. /*
  1870. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1871. * list of wifi scan results returned for each
  1872. * wifi_passpoint_match_result block.
  1873. */
  1874. /* Unsigned 32-bit value */
  1875. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  1876. /*
  1877. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  1878. * ANQP data in the information_element format.
  1879. */
  1880. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  1881. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1882. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  1883. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1884. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  1885. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1886. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  1887. = 43,
  1888. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1889. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  1890. = 44,
  1891. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  1892. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  1893. /* keep last */
  1894. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  1895. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  1896. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  1897. };
  1898. /**
  1899. * enum qca_vendor_interop_issues_ap_type - interop issues type
  1900. * This enum defines the valid set of values of interop issues type. These
  1901. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  1902. *
  1903. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  1904. * when the STA's Qpower feature is enabled.
  1905. */
  1906. enum qca_vendor_interop_issues_ap_type {
  1907. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  1908. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  1909. };
  1910. /**
  1911. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  1912. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  1913. *
  1914. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  1915. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  1916. * 32-bit unsigned value, The type defined in enum
  1917. * qca_vendor_interop_issues_ap_type are used.
  1918. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  1919. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  1920. * it is present and mandatory for the command but is not used for
  1921. * the event since only a single BSSID is reported in an event.
  1922. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  1923. * 6-byte MAC address. It is used within the nested
  1924. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  1925. * and without such encapsulation in the event case.
  1926. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  1927. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  1928. */
  1929. enum qca_vendor_attr_interop_issues_ap {
  1930. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  1931. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  1932. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  1933. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  1934. /* keep last */
  1935. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  1936. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  1937. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  1938. };
  1939. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  1940. /**
  1941. * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
  1942. *
  1943. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
  1944. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
  1945. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
  1946. * Aggresive stats gathering
  1947. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
  1948. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
  1949. */
  1950. enum qca_wlan_vendor_attr_ll_stats_set {
  1951. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  1952. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  1953. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
  1954. /* keep last */
  1955. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  1956. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  1957. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
  1958. };
  1959. /**
  1960. * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
  1961. *
  1962. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
  1963. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
  1964. * provided by the caller issuing the GET stats command. When reporting
  1965. * the stats results, the driver uses the same value to indicate which
  1966. * GET request the results correspond to.
  1967. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
  1968. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  1969. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  1970. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
  1971. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
  1972. */
  1973. enum qca_wlan_vendor_attr_ll_stats_get {
  1974. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  1975. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
  1976. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
  1977. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  1978. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  1979. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
  1980. };
  1981. /**
  1982. * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
  1983. *
  1984. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
  1985. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
  1986. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
  1987. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  1988. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  1989. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
  1990. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
  1991. */
  1992. enum qca_wlan_vendor_attr_ll_stats_clr {
  1993. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  1994. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
  1995. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
  1996. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
  1997. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
  1998. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  1999. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2000. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
  2001. };
  2002. /**
  2003. * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
  2004. *
  2005. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
  2006. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
  2007. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
  2008. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
  2009. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
  2010. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
  2011. */
  2012. enum qca_wlan_vendor_attr_ll_stats_results_type {
  2013. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
  2014. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
  2015. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
  2016. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
  2017. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
  2018. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
  2019. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
  2020. };
  2021. enum qca_wlan_vendor_attr_ll_stats_results {
  2022. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2023. /* Unsigned 32bit value. Used by the driver; must match the request id
  2024. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2025. */
  2026. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2027. /* Unsigned 32 bit value */
  2028. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2029. /* Unsigned 32 bit value */
  2030. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2031. /* Unsigned 32 bit value */
  2032. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2033. /* Unsigned 32 bit value */
  2034. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2035. /* Signed 32 bit value */
  2036. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2037. /* Signed 32 bit value */
  2038. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2039. /* Signed 32 bit value */
  2040. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2041. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2042. * nested within the interface stats.
  2043. */
  2044. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2045. * Type = enum wifi_interface_mode.
  2046. */
  2047. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2048. /* Interface MAC address. An array of 6 Unsigned int8 */
  2049. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2050. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2051. * AUTHENTICATING, etc. valid for STA, CLI only.
  2052. */
  2053. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2054. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2055. */
  2056. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2057. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2058. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2059. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2060. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2061. /* BSSID. An array of 6 unsigned 8 bit values */
  2062. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2063. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2064. * values.
  2065. */
  2066. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2067. /* Country string for this association. An array of 3 unsigned 8 bit
  2068. * values.
  2069. */
  2070. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2071. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2072. * be nested within the interface stats.
  2073. */
  2074. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2075. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2076. /* Unsigned int 32 value corresponding to respective AC */
  2077. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2078. /* Unsigned int 32 value corresponding to respective AC */
  2079. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2080. /* Unsigned int 32 value corresponding to respective AC */
  2081. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2082. /* Unsigned int 32 value corresponding to respective AC */
  2083. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2084. /* Unsigned int 32 value corresponding to respective AC */
  2085. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2086. /* Unsigned int 32 value corresponding to respective AC */
  2087. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2088. /* Unsigned int 32 value corresponding to respective AC */
  2089. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2090. /* Unsigned int 32 value corresponding to respective AC */
  2091. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2092. /* Unsigned int 32 value corresponding to respective AC */
  2093. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2094. /* Unsigned int 32 values corresponding to respective AC */
  2095. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2096. /* Unsigned int 32 values corresponding to respective AC */
  2097. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2098. /* Unsigned int 32 values corresponding to respective AC */
  2099. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2100. /* Unsigned int 32 values corresponding to respective AC */
  2101. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2102. /* Unsigned int 32 values corresponding to respective AC */
  2103. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2104. /* Unsigned 32 bit value. Number of peers */
  2105. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2106. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2107. * nested within the interface stats.
  2108. */
  2109. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2110. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2111. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2112. * 8 bit values.
  2113. */
  2114. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2115. /* Unsigned int 32 bit value representing capabilities corresponding
  2116. * to respective peer.
  2117. */
  2118. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2119. /* Unsigned 32 bit value. Number of rates */
  2120. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2121. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2122. * are nested within the rate stat.
  2123. */
  2124. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2125. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2126. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2127. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2128. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2129. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2130. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2131. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2132. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2133. */
  2134. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2135. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2136. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2137. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2138. * nested within the peer info stats.
  2139. */
  2140. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2141. * packets, i.e., with ACK received corresponding to the respective
  2142. * rate.
  2143. */
  2144. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2145. /* Unsigned int 32 bit value. Number of received data packets
  2146. * corresponding to the respective rate.
  2147. */
  2148. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2149. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2150. * received corresponding to the respective rate.
  2151. */
  2152. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2153. /* Unsigned int 32 bit value. Total number of data packet retries for
  2154. * the respective rate.
  2155. */
  2156. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2157. /* Unsigned int 32 bit value. Total number of short data packet retries
  2158. * for the respective rate.
  2159. */
  2160. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2161. /* Unsigned int 32 bit value. Total number of long data packet retries
  2162. * for the respective rate.
  2163. */
  2164. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2165. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2166. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2167. * accruing over time.
  2168. */
  2169. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2170. /* Unsigned 32 bit value. Total number of msecs the radio is
  2171. * transmitting accruing over time.
  2172. */
  2173. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2174. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2175. * receive accruing over time.
  2176. */
  2177. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2178. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2179. * to all scan accruing over time.
  2180. */
  2181. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2182. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2183. * to NAN accruing over time.
  2184. */
  2185. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2186. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2187. * to GSCAN accruing over time.
  2188. */
  2189. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2190. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2191. * to roam scan accruing over time.
  2192. */
  2193. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2194. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2195. * to PNO scan accruing over time.
  2196. */
  2197. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2198. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2199. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2200. */
  2201. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2202. /* Unsigned 32 bit value. Number of channels. */
  2203. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2204. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2205. * be nested within the channel stats.
  2206. */
  2207. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2208. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2209. /* Unsigned 32 bit value. Primary 20 MHz channel. */
  2210. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2211. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2212. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2213. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2214. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2215. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2216. * nested within the radio stats.
  2217. */
  2218. /* Unsigned int 32 bit value representing total number of msecs the
  2219. * radio is awake on that channel accruing over time, corresponding to
  2220. * the respective channel.
  2221. */
  2222. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2223. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2224. * register is busy accruing over time corresponding to the respective
  2225. * channel.
  2226. */
  2227. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2228. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2229. /* Signifies the nested list of channel attributes
  2230. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2231. */
  2232. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2233. /* Signifies the nested list of peer info attributes
  2234. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
  2235. */
  2236. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2237. /* Signifies the nested list of rate info attributes
  2238. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2239. */
  2240. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2241. /* Signifies the nested list of wmm info attributes
  2242. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2243. */
  2244. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2245. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2246. * that more stats, e.g., peers or radio, are to follow in the next
  2247. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2248. * Otherwise, it is set to 0.
  2249. */
  2250. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2251. /* Unsigned 64 bit value */
  2252. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2253. /* Unsigned 32 bit value */
  2254. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2255. /* Unsigned 32 bit value */
  2256. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2257. /* Unsigned 32 bit value */
  2258. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2259. /* Unsigned 32 bit value */
  2260. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2261. /* Unsigned 32 bit value */
  2262. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2263. /* Number of msecs the radio spent in transmitting for each power level
  2264. */
  2265. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2266. /* Unsigned 32 bit value */
  2267. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2268. /* Unsigned 32 bit value */
  2269. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2270. /* Unsigned 32 bit value */
  2271. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2272. /* Unsigned 32 bit value */
  2273. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2274. /* Unsigned int 32 value.
  2275. * Pending MSDUs corresponding to respective AC.
  2276. */
  2277. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2278. /* u32 value representing total time in milliseconds for which the radio
  2279. * is transmitting on this channel. This attribute will be nested
  2280. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2281. */
  2282. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2283. /* u32 value representing total time in milliseconds for which the radio
  2284. * is receiving all 802.11 frames intended for this device on this
  2285. * channel. This attribute will be nested within
  2286. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2287. */
  2288. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2289. /* u8 value representing the channel load percentage. Possible values
  2290. * are 0-100.
  2291. */
  2292. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2293. /* u8 value representing the time slicing duty cycle percentage.
  2294. * Possible values are 0-100.
  2295. */
  2296. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2297. /* keep last */
  2298. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2299. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2300. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2301. };
  2302. enum qca_wlan_vendor_attr_ll_stats_type {
  2303. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2304. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2305. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2306. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2307. /* keep last */
  2308. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2309. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2310. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2311. };
  2312. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2313. /**
  2314. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2315. *
  2316. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2317. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2318. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2319. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2320. */
  2321. enum qca_wlan_vendor_attr_get_supported_features {
  2322. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2323. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2324. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2325. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2326. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2327. };
  2328. /**
  2329. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2330. *
  2331. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2332. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2333. * value
  2334. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2335. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2336. */
  2337. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2338. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2339. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2340. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2341. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2342. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2343. };
  2344. /**
  2345. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2346. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2347. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2348. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2349. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2350. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2351. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2352. */
  2353. enum qca_wlan_vendor_scan_priority {
  2354. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2355. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2356. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2357. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2358. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2359. };
  2360. /**
  2361. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2362. *
  2363. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2364. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2365. * with frequencies to be scanned (in MHz)
  2366. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2367. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2368. * rates to be included
  2369. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2370. * at non CCK rate in 2GHz band
  2371. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2372. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2373. * driver for the specific scan request
  2374. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2375. * request decoded as in enum scan_status
  2376. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2377. * scan flag is set
  2378. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2379. * randomisation
  2380. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2381. * specific BSSID to scan for.
  2382. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2383. * microseconds. This is a common value which applies across all
  2384. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2385. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2386. * other scan requests. It is a u32 attribute and takes values from enum
  2387. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2388. * If this attribute is not configured, the driver shall use
  2389. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2390. */
  2391. enum qca_wlan_vendor_attr_scan {
  2392. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2393. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2394. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2395. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2396. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2397. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2398. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2399. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2400. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2401. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2402. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2403. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2404. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2405. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2406. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2407. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2408. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2409. };
  2410. /**
  2411. * enum scan_status - Specifies the valid values the vendor scan attribute
  2412. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2413. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2414. * new scan results
  2415. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2416. */
  2417. enum scan_status {
  2418. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2419. VENDOR_SCAN_STATUS_ABORTED,
  2420. VENDOR_SCAN_STATUS_MAX,
  2421. };
  2422. /**
  2423. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2424. *
  2425. * NL attributes for data used by
  2426. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2427. *
  2428. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2429. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2430. * Unsigned 32-bit value
  2431. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2432. * Unsigned 32-bit value
  2433. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2434. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2435. * combinations
  2436. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2437. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2438. */
  2439. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2440. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2441. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2442. = 1,
  2443. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2444. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2445. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2446. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2447. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2448. };
  2449. /**
  2450. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2451. *
  2452. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2453. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2454. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2455. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2456. */
  2457. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2458. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2459. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2460. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2461. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2462. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2463. };
  2464. /**
  2465. * enum qca_vendor_attr_wisa_cmd
  2466. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2467. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2468. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2469. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2470. * WISA setup vendor commands
  2471. */
  2472. enum qca_vendor_attr_wisa_cmd {
  2473. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2474. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2475. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2476. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2477. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2478. };
  2479. enum qca_roaming_policy {
  2480. QCA_ROAMING_NOT_ALLOWED,
  2481. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2482. };
  2483. /**
  2484. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2485. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2486. *
  2487. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2488. * reasons.
  2489. *
  2490. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2491. * the configured threshold.
  2492. *
  2493. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2494. * beacon misses from the then connected AP.
  2495. *
  2496. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2497. * by the connected AP.
  2498. *
  2499. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2500. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2501. * not poor.
  2502. *
  2503. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2504. * or environment being very noisy / congested.
  2505. *
  2506. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2507. * from the user (user space).
  2508. *
  2509. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2510. * connected AP.
  2511. *
  2512. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2513. * breaching out the configured threshold.
  2514. *
  2515. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2516. * transition request.
  2517. *
  2518. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2519. * there is no data activity with the AP and the current rssi falls below a
  2520. * certain threshold.
  2521. *
  2522. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2523. * deauthentication or disassociation frames received from the connected AP.
  2524. *
  2525. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2526. * scan that happens when there is no candiate AP found during the poor
  2527. * RSSI scan trigger.
  2528. *
  2529. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2530. * results obtained from an external scan (not aimed at roaming).
  2531. *
  2532. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2533. * connection is established when the station is connected in 2.4 Ghz band.
  2534. */
  2535. enum qca_roam_reason {
  2536. QCA_ROAM_REASON_UNKNOWN,
  2537. QCA_ROAM_REASON_PER,
  2538. QCA_ROAM_REASON_BEACON_MISS,
  2539. QCA_ROAM_REASON_POOR_RSSI,
  2540. QCA_ROAM_REASON_BETTER_RSSI,
  2541. QCA_ROAM_REASON_CONGESTION,
  2542. QCA_ROAM_REASON_USER_TRIGGER,
  2543. QCA_ROAM_REASON_BTM,
  2544. QCA_ROAM_REASON_BSS_LOAD,
  2545. QCA_ROAM_REASON_WTC,
  2546. QCA_ROAM_REASON_IDLE,
  2547. QCA_ROAM_REASON_DISCONNECTION,
  2548. QCA_ROAM_REASON_PERIODIC_TIMER,
  2549. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2550. QCA_ROAM_REASON_BT_ACTIVITY,
  2551. };
  2552. /**
  2553. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2554. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP
  2555. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2556. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2557. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2558. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2559. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2560. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2561. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2562. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2563. * Indicates the status of re-association requested by user space for
  2564. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2565. * Type u16.
  2566. * Represents the status code from AP. Use
  2567. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2568. * real status code for failures.
  2569. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2570. * This attribute indicates that the old association was maintained when
  2571. * a re-association is requested by user space and that re-association
  2572. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2573. * remain associated with the BSS with which the association was in
  2574. * place when being requested to roam). Used along with
  2575. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2576. * re-association status. Type flag.
  2577. * This attribute is applicable only for re-association failure cases.
  2578. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2579. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2580. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2581. * seq number
  2582. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2583. * representing the reasons for the roaming. Defined by enum
  2584. * qca_roam_reason.
  2585. */
  2586. enum qca_wlan_vendor_attr_roam_auth {
  2587. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2588. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2589. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2590. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2591. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2592. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2593. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2594. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2595. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2596. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2597. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2598. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2599. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2600. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2601. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  2602. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  2603. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  2604. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  2605. };
  2606. /**
  2607. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  2608. *
  2609. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  2610. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  2611. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  2612. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  2613. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  2614. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  2615. */
  2616. enum qca_wlan_vendor_attr_wifi_config {
  2617. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  2618. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  2619. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  2620. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  2621. /* keep last */
  2622. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  2623. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  2624. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  2625. };
  2626. /**
  2627. * enum qca_wlan_epno_type - the type of request to the EPNO command
  2628. * @QCA_WLAN_EPNO: epno type request
  2629. * @QCA_WLAN_PNO: pno type request
  2630. */
  2631. enum qca_wlan_epno_type {
  2632. QCA_WLAN_EPNO,
  2633. QCA_WLAN_PNO
  2634. };
  2635. /**
  2636. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  2637. *
  2638. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  2639. *
  2640. * NL attributes for data used by
  2641. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  2642. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  2643. * Unsigned 32-bit value; pno passpoint number of networks
  2644. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  2645. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  2646. * attributes. Array size =
  2647. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  2648. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  2649. * Unsigned 32-bit value; network id
  2650. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  2651. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  2652. * realm, 0 if unspecified.
  2653. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  2654. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  2655. * to match, 0 if unspecified.
  2656. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  2657. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  2658. * unspecified.
  2659. *
  2660. * NL attributes for data used by
  2661. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  2662. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  2663. * Unsigned 32-bit value; set pno number of networks
  2664. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  2665. * Array of nested
  2666. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  2667. * attributes. Array size =
  2668. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  2669. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  2670. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  2671. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  2672. * Signed 8-bit value; threshold for considering this SSID as found,
  2673. * required granularity for this threshold is 4dBm to 8dBm
  2674. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  2675. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  2676. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  2677. * Unsigned 8-bit value; auth bit field for matching WPA IE
  2678. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  2679. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  2680. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  2681. * Nested attribute to send the channel list
  2682. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  2683. * Unsigned 32-bit value; indicates the Interval between PNO scan
  2684. * cycles in msec
  2685. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  2686. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  2687. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  2688. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  2689. * This attribute is obsolete now.
  2690. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  2691. * Signed 32-bit value; the maximum score that a network
  2692. * can have before bonuses
  2693. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  2694. * Signed 32-bit value; only report when there is a network's
  2695. * score this much higher han the current connection
  2696. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  2697. * Signed 32-bit value; score bonus for all networks with
  2698. * the same network flag
  2699. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  2700. * Signed 32-bit value; score bonus for networks that are not open
  2701. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  2702. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  2703. * 5GHz networks
  2704. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  2705. * Unsigned 32-bit value, representing the PNO Request ID
  2706. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  2707. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  2708. */
  2709. enum qca_wlan_vendor_attr_pno_config_params {
  2710. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  2711. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  2712. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  2713. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  2714. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  2715. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  2716. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  2717. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  2718. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  2719. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  2720. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  2721. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  2722. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  2723. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  2724. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  2725. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  2726. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  2727. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  2728. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  2729. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  2730. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  2731. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  2732. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  2733. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  2734. /* keep last */
  2735. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  2736. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  2737. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  2738. };
  2739. /**
  2740. * enum qca_scan_freq_list_type: Frequency list types
  2741. *
  2742. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  2743. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2744. * a preferred frequency list for roaming.
  2745. *
  2746. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  2747. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2748. * a specific frequency list for roaming.
  2749. */
  2750. enum qca_scan_freq_list_type {
  2751. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  2752. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  2753. };
  2754. /**
  2755. * enum qca_roam_scan_scheme: scan scheme
  2756. *
  2757. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  2758. * Indicates the driver to not scan on a Roam Trigger scenario, but
  2759. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  2760. * disconnect from the current connected AP by notifying a failure
  2761. * code in the BTM response.
  2762. *
  2763. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  2764. * trigger partial frequency scans. These frequencies are the ones learnt
  2765. * or maintained by the driver based on the probability of finding the
  2766. * BSSID's in the ESS for which the roaming is triggered.
  2767. *
  2768. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  2769. * trigger the scan on all the valid frequencies to find the better
  2770. * candidates to roam.
  2771. */
  2772. enum qca_roam_scan_scheme {
  2773. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  2774. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  2775. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  2776. };
  2777. /**
  2778. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  2779. *
  2780. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  2781. * List of frequencies in MHz to be considered for a roam scan.
  2782. *
  2783. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  2784. * Type of frequency list scheme being configured/gotten as defined by the
  2785. * enum qca_scan_freq_list_type.
  2786. */
  2787. enum qca_vendor_attr_scan_freq_list_scheme {
  2788. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  2789. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  2790. /* keep last */
  2791. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  2792. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  2793. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  2794. };
  2795. /*
  2796. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  2797. *
  2798. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  2799. * a bad packet error rates (PER).
  2800. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  2801. * based on beacon misses from the connected AP.
  2802. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  2803. * due to poor RSSI of the connected AP.
  2804. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  2805. * upon finding a BSSID with a better RSSI than the connected BSSID.
  2806. * Here the RSSI of the current BSSID need not be poor.
  2807. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  2808. * by triggering a periodic scan to find a better AP to roam.
  2809. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  2810. * when the connected channel environment is too noisy/congested.
  2811. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  2812. * when BTM Request frame is received from the connected AP.
  2813. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  2814. * when the channel utilization is goes above the configured threshold.
  2815. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  2816. * based on the request from the user (space).
  2817. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  2818. * device receives Deauthentication/Disassociation frame from connected
  2819. * AP.
  2820. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  2821. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  2822. * is determined to be a poor one.
  2823. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  2824. * based on continuous TX Data Frame failures to the connected AP.
  2825. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  2826. * based on the scan results obtained from an external scan (not
  2827. * triggered to aim roaming)
  2828. *
  2829. * Set the corresponding roam trigger reason bit to consider it for roam
  2830. * trigger.
  2831. * Userspace can set multiple bits and send to the driver. The driver shall
  2832. * consider all of them to trigger/initiate a roam scan.
  2833. */
  2834. enum qca_vendor_roam_triggers {
  2835. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  2836. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  2837. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  2838. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  2839. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  2840. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  2841. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  2842. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  2843. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  2844. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  2845. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  2846. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  2847. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  2848. };
  2849. /*
  2850. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  2851. * fail reasons. This enum value is used in
  2852. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  2853. *
  2854. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  2855. * able to trigger the scan.
  2856. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  2857. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  2858. * scan.
  2859. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  2860. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  2861. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  2862. * status code.
  2863. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  2864. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  2865. * frame.
  2866. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  2867. * with error status code.
  2868. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  2869. * received.
  2870. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  2871. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  2872. * frame.
  2873. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  2874. * internally before transmission.
  2875. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  2876. * Request frame.
  2877. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  2878. * dropped internally.
  2879. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  2880. * times out.
  2881. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  2882. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  2883. * internally.
  2884. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  2885. * M2 frame.
  2886. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  2887. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  2888. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  2889. * internally.
  2890. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  2891. * frame.
  2892. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  2893. * started for final beacon miss case.
  2894. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  2895. * received from the AP during roaming handoff.
  2896. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  2897. * or host is suspended and gives the indication of the last roamed AP only
  2898. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  2899. * progress, this ongoing roaming is aborted and the last roamed AP is
  2900. * indicated to host.
  2901. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  2902. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  2903. * out.
  2904. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  2905. */
  2906. enum qca_vendor_roam_fail_reasons {
  2907. QCA_ROAM_FAIL_REASON_NONE = 0,
  2908. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  2909. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  2910. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  2911. QCA_ROAM_FAIL_REASON_HOST = 4,
  2912. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  2913. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  2914. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  2915. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  2916. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  2917. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  2918. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  2919. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  2920. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  2921. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  2922. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  2923. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  2924. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  2925. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  2926. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  2927. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  2928. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  2929. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  2930. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  2931. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  2932. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  2933. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  2934. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  2935. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  2936. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  2937. };
  2938. /*
  2939. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  2940. * invoke fail reasons. This enum value is used in
  2941. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  2942. *
  2943. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  2944. * in roam invoke command.
  2945. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  2946. * enabled.
  2947. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  2948. * length is invalid.
  2949. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  2950. * in progress.
  2951. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  2952. * of the AP in the roam invoke command to firmware. This reason is sent by the
  2953. * firmware when the given AP is configured to be ignored or SSID/security
  2954. * does not match.
  2955. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  2956. * firmware internal reasons.
  2957. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  2958. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  2959. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  2960. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  2961. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  2962. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  2963. */
  2964. enum qca_vendor_roam_invoke_fail_reasons {
  2965. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  2966. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  2967. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  2968. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  2969. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  2970. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  2971. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  2972. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  2973. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  2974. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  2975. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  2976. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  2977. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  2978. };
  2979. /**
  2980. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  2981. *
  2982. * Each attribute carries a weightage in percentage (%).
  2983. *
  2984. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  2985. * Represents the weightage to be given for the RSSI selection
  2986. * criteria among other parameters.
  2987. *
  2988. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  2989. * Represents the weightage to be given for the rate selection
  2990. * criteria among other parameters.
  2991. *
  2992. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  2993. * Represents the weightage to be given for the band width selection
  2994. * criteria among other parameters.
  2995. *
  2996. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  2997. * Represents the weightage to be given for the band selection
  2998. * criteria among other parameters.
  2999. *
  3000. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3001. * Represents the weightage to be given for the NSS selection
  3002. * criteria among other parameters.
  3003. *
  3004. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3005. * Represents the weightage to be given for the channel congestion
  3006. * selection criteria among other parameters.
  3007. *
  3008. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3009. * Represents the weightage to be given for the beamforming selection
  3010. * criteria among other parameters.
  3011. *
  3012. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3013. * Represents the weightage to be given for the OCE selection
  3014. * criteria among other parameters.
  3015. */
  3016. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3017. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3018. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3019. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3020. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3021. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3022. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3023. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3024. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3025. /* keep last */
  3026. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3027. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3028. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3029. };
  3030. /**
  3031. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3032. * The following attributes are used to set/get/clear the respective
  3033. * configurations to/from the driver.
  3034. * For the get, the attribute for the configuration to be queried shall
  3035. * carry any of its acceptable values to the driver. In return, the driver
  3036. * shall send the configured values within the same attribute to the user
  3037. * space.
  3038. *
  3039. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3040. * Signifies to enable/disable roam control in driver.
  3041. * 1-enable, 0-disable
  3042. * Enable: Mandates the driver to do the further roams using the
  3043. * configuration parameters set through
  3044. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3045. * Disable: Disables the driver/firmware roaming triggered through
  3046. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3047. * expected to continue with the default configurations.
  3048. *
  3049. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3050. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3051. * Roam control status is obtained through this attribute.
  3052. *
  3053. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3054. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3055. * is to be cleared in the driver.
  3056. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3057. * and shall be ignored if used with other sub commands.
  3058. * If this attribute is specified along with subcmd
  3059. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3060. * all other attributes, if there are any.
  3061. * If this attribute is not specified when the subcmd
  3062. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3063. * clear the data corresponding to the attributes specified.
  3064. *
  3065. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3066. * list of frequencies and its type, represented by
  3067. * enum qca_vendor_attr_scan_freq_list_scheme.
  3068. * Frequency list and its type are mandatory for this attribute to set
  3069. * the frequencies.
  3070. * Frequency type is mandatory for this attribute to get the frequencies
  3071. * and the frequency list is obtained through
  3072. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3073. * Frequency list type is mandatory for this attribute to clear the
  3074. * frequencies.
  3075. *
  3076. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3077. * Carries the value of scan period in seconds to set.
  3078. * The value of scan period is obtained with the same attribute for get.
  3079. * Clears the scan period in the driver when specified with clear command.
  3080. * Scan period is the idle time in seconds between each subsequent
  3081. * channel scans.
  3082. *
  3083. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3084. * Carries the value of full scan period in seconds to set.
  3085. * The value of full scan period is obtained with the same attribute for
  3086. * get.
  3087. * Clears the full scan period in the driver when specified with clear
  3088. * command. Full scan period is the idle period in seconds between two
  3089. * successive full channel roam scans.
  3090. *
  3091. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3092. * Carries a bitmap of the roam triggers specified in
  3093. * enum qca_vendor_roam_triggers.
  3094. * The driver shall enable roaming by enabling corresponding roam triggers
  3095. * based on the trigger bits sent with this attribute.
  3096. * If this attribute is not configured, the driver shall proceed with
  3097. * default behavior.
  3098. * The bitmap configured is obtained with the same attribute for get.
  3099. * Clears the bitmap configured in driver when specified with clear
  3100. * command.
  3101. *
  3102. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3103. * weightage in percentage (%) to be given for each selection criteria.
  3104. * Different roam candidate selection criteria are represented by
  3105. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3106. * The driver shall select the roam candidate based on corresponding
  3107. * candidate selection scores sent.
  3108. *
  3109. * An empty nested attribute is used to indicate that no specific
  3110. * preference score/criteria is configured (i.e., to disable this mechanism
  3111. * in the set case and to show that the mechanism is disabled in the get
  3112. * case).
  3113. *
  3114. * Userspace can send multiple attributes out of this enum to the driver.
  3115. * Since this attribute represents the weight/percentage of preference for
  3116. * the respective selection criteria, it is preferred to configure 100%
  3117. * total weightage. The value in each attribute or cumulative weight of the
  3118. * values in all the nested attributes should not exceed 100%. The driver
  3119. * shall reject such configuration.
  3120. *
  3121. * If the weights configured through this attribute are less than 100%,
  3122. * the driver shall honor the weights (x%) passed for the corresponding
  3123. * selection criteria and choose/distribute rest of the weight (100-x)%
  3124. * for the other selection criteria, based on its internal logic.
  3125. *
  3126. * The selection criteria configured is obtained with the same
  3127. * attribute for get.
  3128. *
  3129. * Clears the selection criteria configured in the driver when specified
  3130. * with clear command.
  3131. *
  3132. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3133. * Represents value of scan frequency scheme from
  3134. * enum qca_roam_scan_scheme.
  3135. *
  3136. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3137. * signifying the RSSI threshold of the current connected AP, indicating
  3138. * the driver to trigger roam only when the current connected AP's RSSI
  3139. * is lesser than this threshold.
  3140. *
  3141. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3142. * signifying the RSSI threshold of the candidate AP, indicating
  3143. * the driver to trigger roam only to the candidate AP with RSSI
  3144. * better than this threshold. If RSSI thresholds for candidate APs found
  3145. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3146. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3147. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3148. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3149. * will take precedence over the value configured using
  3150. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3151. *
  3152. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3153. * user triggered reason code to be sent to the AP in response to AP's
  3154. * request to trigger the roam if the roaming cannot be triggered.
  3155. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3156. *
  3157. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3158. * Carries a bitmap of the roam triggers specified in
  3159. * enum qca_vendor_roam_triggers.
  3160. * Represents the roam triggers for which the specific scan scheme from
  3161. * enum qca_roam_scan_scheme has to be applied.
  3162. * It's an optional attribute. If this attribute is not configured, but
  3163. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3164. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3165. * all the roams.
  3166. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3167. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3168. * driver shall proceed with the default behavior.
  3169. *
  3170. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3171. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3172. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3173. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3174. * threshold. Optional attribute. If this attribute is not included, then
  3175. * threshold value specified by the
  3176. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3177. *
  3178. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3179. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3180. * band. The driver/firmware shall trigger roaming to the candidate AP
  3181. * found in 5GHz band only if it's RSSI value is better than this
  3182. * threshold. Optional attribute. If this attribute is not included, then
  3183. * threshold value specified by the
  3184. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3185. *
  3186. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3187. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3188. * band. The driver/firmware shall trigger roaming to the candidate AP
  3189. * found in 6GHz band only if it's RSSI value is better than this
  3190. * threshold. Optional attribute. If this attribute is not included, then
  3191. * threshold value specified by the
  3192. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3193. *
  3194. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3195. * Carries bitmask value of bits from &enum qca_set_band and represents
  3196. * all the bands in which roaming is allowed. The configuration is valid
  3197. * until next disconnection. If this attribute is not present, the
  3198. * existing configuration shall be used. By default, roaming is allowed
  3199. * on all bands supported by local device. When the value is set to
  3200. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3201. *
  3202. */
  3203. enum qca_vendor_attr_roam_control {
  3204. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3205. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3206. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3207. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3208. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3209. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3210. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3211. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3212. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3213. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3214. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3215. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3216. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3217. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3218. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3219. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3220. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3221. /* keep last */
  3222. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3223. QCA_ATTR_ROAM_CONTROL_MAX =
  3224. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3225. };
  3226. /**
  3227. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3228. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3229. *
  3230. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3231. * Represents the different roam sub commands referred by
  3232. * enum qca_wlan_vendor_roaming_subcmd.
  3233. *
  3234. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3235. * Represents the Request ID for the specific set of commands.
  3236. * This also helps to map specific set of commands to the respective
  3237. * ID / client. e.g., helps to identify the user entity configuring the
  3238. * Blacklist BSSID and accordingly clear the respective ones with the
  3239. * matching ID.
  3240. *
  3241. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3242. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3243. *
  3244. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3245. * to carry the list of Whitelist SSIDs.
  3246. *
  3247. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3248. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3249. * represent the list of SSIDs to which the firmware/driver can consider
  3250. * to roam to.
  3251. *
  3252. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3253. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3254. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3255. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3256. *
  3257. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3258. * value, RSSI threshold above which 5GHz RSSI is favored.
  3259. *
  3260. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3261. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3262. *
  3263. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3264. * value, factor by which 5GHz RSSI is boosted.
  3265. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3266. *
  3267. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3268. * value, factor by which 5GHz RSSI is penalized.
  3269. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3270. *
  3271. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3272. * value, maximum boost that can be applied to a 5GHz RSSI.
  3273. *
  3274. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3275. * value, boost applied to current BSSID to ensure the currently
  3276. * associated BSSID is favored so as to prevent ping-pong situations.
  3277. *
  3278. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3279. * value, RSSI below which "Alert" roam is enabled.
  3280. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3281. * because the RSSI is low, or because many successive beacons have been
  3282. * lost or other bad link conditions.
  3283. *
  3284. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3285. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3286. * firmware is hunting for a better BSSID or white listed SSID even though
  3287. * the RSSI of the link is good. The parameters enabling the roaming are
  3288. * configured through the PARAM_A_BAND_XX attrbutes.
  3289. *
  3290. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3291. * represents the BSSIDs preferred over others while evaluating them
  3292. * for the roaming.
  3293. *
  3294. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3295. * 32-bit value. Represents the number of preferred BSSIDs set.
  3296. *
  3297. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3298. * address representing the BSSID to be preferred.
  3299. *
  3300. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3301. * 32-bit value, representing the modifier to be applied to the RSSI of
  3302. * the BSSID for the purpose of comparing it with other roam candidate.
  3303. *
  3304. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3305. * represents the BSSIDs to get blacklisted for roaming.
  3306. *
  3307. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3308. * 32-bit value, represents the number of blacklisted BSSIDs.
  3309. *
  3310. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3311. * address representing the Blacklisted BSSID.
  3312. *
  3313. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3314. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3315. * select this BSSID in the worst case (when no other BSSIDs are better).
  3316. *
  3317. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3318. * set/get/clear the roam control config as
  3319. * defined @enum qca_vendor_attr_roam_control.
  3320. *
  3321. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3322. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3323. */
  3324. enum qca_wlan_vendor_attr_roaming_config_params {
  3325. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3326. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3327. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3328. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3329. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3330. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3331. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3332. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3333. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3334. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3335. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3336. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3337. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3338. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3339. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3340. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3341. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3342. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3343. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3344. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3345. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3346. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3347. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3348. /* keep last */
  3349. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3350. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3351. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3352. };
  3353. /**
  3354. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3355. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3356. *
  3357. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3358. * configure the white list SSIDs. These are configured through
  3359. * the following attributes.
  3360. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3361. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3362. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3363. *
  3364. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3365. * configure the Roam params. These parameters are evaluated on the extscan
  3366. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3367. * params.
  3368. *
  3369. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3370. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3371. * to enable/disable Lazy roam.
  3372. *
  3373. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3374. * preference. Contains the attribute
  3375. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3376. * preference.
  3377. *
  3378. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3379. *
  3380. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3381. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3382. * set the same.
  3383. *
  3384. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3385. * roam control config to the driver with the attribute
  3386. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3387. *
  3388. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3389. * roam control config from driver with the attribute
  3390. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3391. * For the get, the attribute for the configuration to be queried shall
  3392. * carry any of its acceptable value to the driver. In return, the driver
  3393. * shall send the configured values within the same attribute to the user
  3394. * space.
  3395. *
  3396. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3397. * roam control config in the driver with the attribute
  3398. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3399. * The driver shall continue with its default roaming behavior when data
  3400. * corresponding to an attribute is cleared.
  3401. */
  3402. enum qca_wlan_vendor_roaming_subcmd {
  3403. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3404. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3405. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3406. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3407. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3408. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3409. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3410. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3411. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3412. };
  3413. /**
  3414. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3415. *
  3416. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3417. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3418. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3419. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3420. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3421. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3422. */
  3423. enum qca_wlan_vendor_attr_get_wifi_info {
  3424. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3425. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3426. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3427. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3428. /* KEEP LAST */
  3429. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3430. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3431. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3432. };
  3433. enum qca_wlan_vendor_attr_logger_results {
  3434. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3435. /*
  3436. * Unsigned 32-bit value; must match the request Id supplied by
  3437. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3438. */
  3439. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3440. /*
  3441. * Unsigned 32-bit value; used to indicate the size of memory
  3442. * dump to be allocated.
  3443. */
  3444. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3445. /* keep last */
  3446. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3447. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3448. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3449. };
  3450. /**
  3451. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3452. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3453. */
  3454. enum qca_wlan_vendor_channel_prop_flags {
  3455. /* Bits 0, 1, 2, and 3 are reserved */
  3456. /* Turbo channel */
  3457. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3458. /* CCK channel */
  3459. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3460. /* OFDM channel */
  3461. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3462. /* 2.4 GHz spectrum channel. */
  3463. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3464. /* 5 GHz spectrum channel */
  3465. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3466. /* Only passive scan allowed */
  3467. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3468. /* Dynamic CCK-OFDM channel */
  3469. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3470. /* GFSK channel (FHSS PHY) */
  3471. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3472. /* Radar found on channel */
  3473. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3474. /* 11a static turbo channel only */
  3475. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3476. /* Half rate channel */
  3477. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3478. /* Quarter rate channel */
  3479. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3480. /* HT 20 channel */
  3481. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3482. /* HT 40 with extension channel above */
  3483. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3484. /* HT 40 with extension channel below */
  3485. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3486. /* HT 40 intolerant */
  3487. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3488. /* VHT 20 channel */
  3489. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3490. /* VHT 40 with extension channel above */
  3491. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3492. /* VHT 40 with extension channel below */
  3493. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3494. /* VHT 80 channel */
  3495. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3496. /* HT 40 intolerant mark bit for ACS use */
  3497. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3498. /* Channel temporarily blocked due to noise */
  3499. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3500. /* VHT 160 channel */
  3501. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3502. /* VHT 80+80 channel */
  3503. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3504. /* HE 20 channel */
  3505. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3506. /* HE 40 with extension channel above */
  3507. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3508. /* HE 40 with extension channel below */
  3509. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3510. /* HE 40 intolerant */
  3511. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
  3512. };
  3513. /**
  3514. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3515. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3516. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  3517. */
  3518. enum qca_wlan_vendor_channel_prop_flags_2 {
  3519. /* HE 40 intolerant mark bit for ACS use */
  3520. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  3521. /* HE 80 channel */
  3522. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  3523. /* HE 160 channel */
  3524. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  3525. /* HE 80+80 channel */
  3526. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  3527. };
  3528. /**
  3529. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  3530. * each channel. This is used by
  3531. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  3532. */
  3533. enum qca_wlan_vendor_channel_prop_flags_ext {
  3534. /* Radar found on channel */
  3535. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  3536. /* DFS required on channel */
  3537. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  3538. /* DFS required on channel for 2nd band of 80+80 */
  3539. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  3540. /* If channel has been checked for DFS */
  3541. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  3542. /* Excluded in 802.11d */
  3543. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  3544. /* Channel Switch Announcement received on this channel */
  3545. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  3546. /* Ad-hoc is not allowed */
  3547. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  3548. /* Station only channel */
  3549. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  3550. /* DFS radar history for slave device (STA mode) */
  3551. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  3552. /* DFS CAC valid for slave device (STA mode) */
  3553. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  3554. };
  3555. /**
  3556. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  3557. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  3558. * information to start/stop the NUD statistics collection.
  3559. */
  3560. enum qca_attr_nud_stats_set {
  3561. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  3562. /*
  3563. * Flag to start/stop the NUD statistics collection.
  3564. * Start - If included, Stop - If not included
  3565. */
  3566. QCA_ATTR_NUD_STATS_SET_START = 1,
  3567. /* IPv4 address of the default gateway (in network byte order) */
  3568. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  3569. /*
  3570. * Represents the data packet type to be monitored.
  3571. * Host driver tracks the stats corresponding to each data frame
  3572. * represented by these flags.
  3573. * These data packets are represented by
  3574. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  3575. */
  3576. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  3577. /* keep last */
  3578. QCA_ATTR_NUD_STATS_SET_LAST,
  3579. QCA_ATTR_NUD_STATS_SET_MAX =
  3580. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  3581. };
  3582. /**
  3583. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  3584. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3585. * information to start / stop the NUD stats collection.
  3586. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  3587. * Bitmap to Flag to Start / Stop the NUD stats collection
  3588. * Start - If included , Stop - If not included
  3589. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
  3590. * IPv4 address of Default Gateway (in network byte order)
  3591. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3592. * information to start / stop the NUD stats collection.
  3593. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  3594. * Flag to Start / Stop the NUD stats collection
  3595. * Start - If included , Stop - If not included
  3596. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
  3597. * IPv4 address of Default Gateway (in network byte order)
  3598. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3599. * information to start / stop the NUD stats collection.
  3600. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  3601. * Flag to Start / Stop the NUD stats collection
  3602. * Start - If included , Stop - If not included
  3603. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
  3604. * IPv4 address of Default Gateway (in network byte order)
  3605. */
  3606. enum qca_attr_connectivity_check_stats_set {
  3607. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  3608. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  3609. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  3610. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  3611. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  3612. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  3613. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  3614. /* keep last */
  3615. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  3616. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  3617. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  3618. };
  3619. /**
  3620. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  3621. * data types for which the stats have to get collected.
  3622. */
  3623. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  3624. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  3625. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  3626. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  3627. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  3628. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  3629. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  3630. * to represent the stats of respective data type.
  3631. */
  3632. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  3633. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  3634. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  3635. };
  3636. enum qca_attr_connectivity_check_stats {
  3637. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  3638. /* Data packet type for which the stats are collected.
  3639. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  3640. */
  3641. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  3642. /* ID corresponding to the DNS frame for which the respective DNS stats
  3643. * are monitored (u32).
  3644. */
  3645. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  3646. /* source / destination port on which the respective proto stats are
  3647. * collected (u32).
  3648. */
  3649. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  3650. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  3651. /* IPv4/IPv6 address for which the destined data packets are
  3652. * monitored. (in network byte order)
  3653. */
  3654. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  3655. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  3656. /* Data packet Request count received from netdev */
  3657. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  3658. /* Data packet Request count sent to lower MAC from upper MAC */
  3659. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  3660. /* Data packet Request count received by lower MAC from upper MAC */
  3661. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  3662. /* Data packet Request count successfully transmitted by the device */
  3663. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  3664. /* Data packet Response count received by lower MAC */
  3665. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  3666. /* Data packet Response count received by upper MAC */
  3667. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  3668. /* Data packet Response count delivered to netdev */
  3669. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  3670. /* Data Packet Response count that are dropped out of order */
  3671. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  3672. /* keep last */
  3673. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  3674. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  3675. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  3676. };
  3677. /**
  3678. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  3679. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  3680. * NUD statistics collected when queried.
  3681. */
  3682. enum qca_attr_nud_stats_get {
  3683. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  3684. /* ARP Request count from netdev */
  3685. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  3686. /* ARP Request count sent to lower MAC from upper MAC */
  3687. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  3688. /* ARP Request count received by lower MAC from upper MAC */
  3689. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  3690. /* ARP Request count successfully transmitted by the device */
  3691. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  3692. /* ARP Response count received by lower MAC */
  3693. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  3694. /* ARP Response count received by upper MAC */
  3695. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  3696. /* ARP Response count delivered to netdev */
  3697. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  3698. /* ARP Response count delivered to netdev */
  3699. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  3700. /*
  3701. * Flag indicating if the station's link to the AP is active.
  3702. * Active Link - If included, Inactive link - If not included
  3703. */
  3704. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  3705. /*
  3706. * Flag indicating if there is any duplicate address detected (DAD).
  3707. * Yes - If detected, No - If not detected.
  3708. */
  3709. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  3710. /*
  3711. * List of Data types for which the stats are requested.
  3712. * This list does not carry ARP stats as they are done by the
  3713. * above attributes. Represented by enum qca_attr_nud_data_stats.
  3714. */
  3715. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  3716. /* keep last */
  3717. QCA_ATTR_NUD_STATS_GET_LAST,
  3718. QCA_ATTR_NUD_STATS_GET_MAX =
  3719. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  3720. };
  3721. enum qca_wlan_btm_candidate_status {
  3722. QCA_STATUS_ACCEPT = 0,
  3723. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  3724. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  3725. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  3726. QCA_STATUS_REJECT_LOW_RSSI = 4,
  3727. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  3728. QCA_STATUS_REJECT_UNKNOWN = 6,
  3729. };
  3730. enum qca_wlan_vendor_attr_btm_candidate_info {
  3731. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  3732. /* 6-byte MAC address representing the BSSID of transition candidate */
  3733. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  3734. /*
  3735. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  3736. * returned by the driver. It says whether the BSSID provided in
  3737. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  3738. * the driver, if not it specifies the reason for rejection.
  3739. * Note that the user-space can overwrite the transition reject reason
  3740. * codes provided by driver based on more information.
  3741. */
  3742. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  3743. /* keep last */
  3744. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  3745. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  3746. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  3747. };
  3748. enum qca_attr_trace_level {
  3749. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  3750. /*
  3751. * Nested array of the following attributes:
  3752. * QCA_ATTR_TRACE_LEVEL_MODULE,
  3753. * QCA_ATTR_TRACE_LEVEL_MASK.
  3754. */
  3755. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  3756. /*
  3757. * Specific QCA host driver module. Please refer to the QCA host
  3758. * driver implementation to get the specific module ID.
  3759. */
  3760. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  3761. /* Different trace level masks represented in the QCA host driver. */
  3762. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  3763. /* keep last */
  3764. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  3765. QCA_ATTR_TRACE_LEVEL_MAX =
  3766. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  3767. };
  3768. /**
  3769. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  3770. * supported features
  3771. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  3772. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  3773. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  3774. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  3775. *
  3776. * enum values are used for NL attributes for data used by
  3777. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  3778. */
  3779. enum qca_wlan_vendor_attr_get_logger_features {
  3780. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  3781. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  3782. /* keep last */
  3783. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  3784. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  3785. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  3786. };
  3787. /**
  3788. * enum qca_wlan_vendor_attr_link_properties - link properties
  3789. *
  3790. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  3791. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  3792. * specify the number of spatial streams negotiated
  3793. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  3794. * to specify negotiated rate flags i.e. ht, vht and channel width
  3795. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  3796. * specify the operating frequency
  3797. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  3798. * (STA / AP ) for the connected link.
  3799. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  3800. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  3801. * address of the peer represented by
  3802. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  3803. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  3804. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  3805. */
  3806. enum qca_wlan_vendor_attr_link_properties {
  3807. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  3808. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  3809. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  3810. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  3811. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  3812. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  3813. /* KEEP LAST */
  3814. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  3815. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  3816. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  3817. };
  3818. /**
  3819. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  3820. *
  3821. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  3822. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  3823. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  3824. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  3825. *
  3826. * enum values are used for NL attributes for data used by
  3827. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  3828. */
  3829. enum qca_wlan_vendor_attr_nd_offload {
  3830. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  3831. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  3832. /* Keep last */
  3833. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  3834. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  3835. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  3836. };
  3837. /**
  3838. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  3839. *
  3840. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  3841. * management offload, a mechanism where the station's firmware
  3842. * does the exchange with the AP to establish the temporal keys
  3843. * after roaming, rather than having the user space wpa_supplicant do it.
  3844. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  3845. * band selection based on channel selection results.
  3846. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  3847. * simultaneous off-channel operations.
  3848. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  3849. * Listen offload; a mechanism where the station's firmware takes care of
  3850. * responding to incoming Probe Request frames received from other P2P
  3851. * Devices whilst in Listen state, rather than having the user space
  3852. * wpa_supplicant do it. Information from received P2P requests are
  3853. * forwarded from firmware to host whenever the host processor wakes up.
  3854. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  3855. * specific features.
  3856. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  3857. * features.
  3858. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  3859. * specific features only. If a Device sets this bit but not the
  3860. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  3861. * this Device may not support all OCE AP functionalities but can support
  3862. * only OCE STA-CFON functionalities.
  3863. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  3864. * managed regulatory.
  3865. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  3866. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  3867. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  3868. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  3869. * and applying thermal configuration through
  3870. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  3871. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  3872. * userspace.
  3873. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  3874. * With Adaptive 11r feature, access points advertise the vendor
  3875. * specific IEs and MDE but do not include FT AKM in the RSNE.
  3876. * The Adaptive 11r supported stations are expected to identify
  3877. * such vendor specific IEs and connect to the AP in FT mode though
  3878. * the profile is configured in non-FT mode.
  3879. * The driver-based SME cases also need to have this support for
  3880. * Adaptive 11r to handle the connection and roaming scenarios.
  3881. * This flag indicates the support for the same to the user space.
  3882. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  3883. * concurrent network sessions on different Wi-Fi Bands. This feature
  3884. * capability is attributed to the hardware's capability to support
  3885. * the same (e.g., DBS).
  3886. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  3887. * responses for the respective TWT operations are asynchronous (separate)
  3888. * event message) from the driver. If not specified, the responses are
  3889. * synchronous (in vendor command reply) to the request. Each TWT
  3890. * operation is specifically mentioned (against its respective)
  3891. * documentation) to support either of these or both modes.
  3892. *
  3893. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  3894. */
  3895. enum qca_wlan_vendor_features {
  3896. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  3897. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  3898. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  3899. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  3900. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  3901. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  3902. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  3903. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  3904. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  3905. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  3906. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  3907. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  3908. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  3909. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  3910. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  3911. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  3912. };
  3913. /**
  3914. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  3915. * conditional channel switch
  3916. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  3917. * value
  3918. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  3919. * frequency list (an array of u32 values in host byte order)
  3920. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  3921. * conditional switch (u32)- 0: Success, Non-zero: Failure
  3922. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  3923. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  3924. */
  3925. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  3926. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  3927. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  3928. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  3929. /* Keep Last */
  3930. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  3931. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  3932. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  3933. };
  3934. /**
  3935. * enum wifi_logger_supported_features - values for supported logger features
  3936. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  3937. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  3938. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  3939. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  3940. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  3941. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  3942. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  3943. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  3944. */
  3945. enum wifi_logger_supported_features {
  3946. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  3947. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  3948. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  3949. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  3950. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  3951. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  3952. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  3953. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  3954. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  3955. };
  3956. /**
  3957. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  3958. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  3959. *
  3960. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  3961. * Used with event to notify the primary channel number selected in ACS
  3962. * operation.
  3963. * Note: If both the driver and user-space application supports the 6 GHz band,
  3964. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  3965. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  3966. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  3967. * is still used if either of the driver or user space application doesn't
  3968. * support the 6 GHz band.
  3969. *
  3970. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  3971. * Used with event to notify the secondary channel number selected in ACS
  3972. * operation.
  3973. * Note: If both the driver and user-space application supports the 6 GHz band,
  3974. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  3975. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  3976. * To maintain backward compatibility,
  3977. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  3978. * the driver or user space application doesn't support 6 GHz band.
  3979. *
  3980. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  3981. * (a) Used with command to configure hw_mode from
  3982. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  3983. * (b) Also used with event to notify the hw_mode of selected primary channel
  3984. * in ACS operation.
  3985. *
  3986. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  3987. * Used with command to configure ACS operation for HT mode.
  3988. * Disable (flag attribute not present) - HT disabled and
  3989. * Enable (flag attribute present) - HT enabled.
  3990. *
  3991. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  3992. * Used with command to configure ACS operation for HT40 mode.
  3993. * Disable (flag attribute not present) - HT40 disabled and
  3994. * Enable (flag attribute present) - HT40 enabled.
  3995. *
  3996. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  3997. * Used with command to configure ACS operation for VHT mode.
  3998. * Disable (flag attribute not present) - VHT disabled and
  3999. * Enable (flag attribute present) - VHT enabled.
  4000. *
  4001. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4002. * mandatory with event.
  4003. * If specified in command path, ACS operation is configured with the given
  4004. * channel width (in MHz).
  4005. * In event path, specifies the channel width of the primary channel selected.
  4006. *
  4007. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4008. * Used with command to configure channel list using an array of
  4009. * channel numbers (u8).
  4010. * Note: If both the driver and user-space application supports the 6 GHz band,
  4011. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4012. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4013. *
  4014. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4015. * Used with event to notify the VHT segment 0 center channel number selected in
  4016. * ACS operation.
  4017. * Note: If both the driver and user-space application supports the 6 GHz band,
  4018. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4019. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4020. * To maintain backward compatibility,
  4021. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4022. * the driver or user space application doesn't support the 6 GHz band.
  4023. *
  4024. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4025. * Used with event to notify the VHT segment 1 center channel number selected in
  4026. * ACS operation.
  4027. * Note: If both the driver and user-space application supports the 6 GHz band,
  4028. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4029. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4030. * To maintain backward compatibility,
  4031. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4032. * the driver or user space application doesn't support the 6 GHz band.
  4033. *
  4034. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4035. * Used with command to configure the channel list using an array of channel
  4036. * center frequencies in MHz (u32).
  4037. * Note: If both the driver and user-space application supports the 6 GHz band,
  4038. * the driver first parses the frequency list and if it fails to get a frequency
  4039. * list, parses the channel list specified using
  4040. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4041. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4042. *
  4043. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4044. * Used with event to notify the primary channel center frequency (MHz) selected
  4045. * in ACS operation.
  4046. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4047. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4048. *
  4049. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4050. * Used with event to notify the secondary channel center frequency (MHz)
  4051. * selected in ACS operation.
  4052. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4053. * includes this attribute along with
  4054. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4055. *
  4056. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4057. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4058. * selected in ACS operation.
  4059. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4060. * includes this attribute along with
  4061. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4062. *
  4063. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4064. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4065. * selected in ACS operation.
  4066. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4067. * includes this attribute along with
  4068. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4069. *
  4070. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4071. * Used with command to notify the driver of EDMG request for ACS
  4072. * operation.
  4073. *
  4074. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4075. * Used with event to notify the EDMG channel number selected in ACS
  4076. * operation.
  4077. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4078. *
  4079. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4080. * Used with event to notify the puncture pattern selected in ACS operation.
  4081. * Encoding for this attribute will follow the convention used in the Disabled
  4082. * Subchannel Bitmap field of the EHT Operation IE.
  4083. *
  4084. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4085. * Used with command to configure ACS operation for EHT mode.
  4086. * Disable (flag attribute not present) - EHT disabled and
  4087. * Enable (flag attribute present) - EHT enabled.
  4088. */
  4089. enum qca_wlan_vendor_attr_acs_offload {
  4090. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4091. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4092. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4093. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4094. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4095. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4096. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4097. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4098. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4099. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4100. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4101. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4102. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4103. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4104. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4105. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4106. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4107. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4108. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4109. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4110. /* keep last */
  4111. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4112. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4113. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4114. };
  4115. /**
  4116. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4117. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4118. *
  4119. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4120. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4121. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4122. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4123. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4124. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4125. */
  4126. enum qca_wlan_vendor_acs_hw_mode {
  4127. QCA_ACS_MODE_IEEE80211B,
  4128. QCA_ACS_MODE_IEEE80211G,
  4129. QCA_ACS_MODE_IEEE80211A,
  4130. QCA_ACS_MODE_IEEE80211AD,
  4131. QCA_ACS_MODE_IEEE80211ANY,
  4132. QCA_ACS_MODE_IEEE80211AX,
  4133. };
  4134. /**
  4135. * enum qca_access_policy - access control policy
  4136. *
  4137. * Access control policy is applied on the configured IE
  4138. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4139. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4140. *
  4141. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4142. *» with the specific configuration (IE) set, i.e. allow all the
  4143. *» connections which do not match the configuration.
  4144. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4145. *» with the specific configuration (IE) set, i.e. deny all the
  4146. *» connections which do not match the configuration.
  4147. */
  4148. enum qca_access_policy {
  4149. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4150. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4151. };
  4152. /**
  4153. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4154. *
  4155. * The valid values for the ignore assoc disallowed
  4156. *
  4157. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4158. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4159. *
  4160. */
  4161. enum qca_ignore_assoc_disallowed {
  4162. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4163. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4164. };
  4165. /* Attributes for data used by
  4166. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4167. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4168. */
  4169. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4170. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4171. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4172. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4173. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4174. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4175. enum qca_wlan_vendor_attr_config {
  4176. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4177. /*
  4178. * Unsigned 32-bit value to set the DTIM period.
  4179. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4180. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4181. * DTIM beacons.
  4182. */
  4183. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4184. /*
  4185. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4186. * used to calculate statistics like average the TSF offset or average
  4187. * number of frame leaked.
  4188. * For instance, upon Beacon frame reception:
  4189. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4190. * For instance, when evaluating leaky APs:
  4191. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4192. */
  4193. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4194. /*
  4195. * Unsigned 32-bit value to configure guard time, i.e., when
  4196. * implementing IEEE power management based on frame control PM bit, how
  4197. * long the driver waits before shutting down the radio and after
  4198. * receiving an ACK frame for a Data frame with PM bit set.
  4199. */
  4200. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4201. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4202. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4203. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4204. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4205. /*
  4206. * Unsigned 32-bit value to configure the number of continuous
  4207. * Beacon Miss which shall be used by the firmware to penalize
  4208. * the RSSI.
  4209. */
  4210. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4211. /*
  4212. * Unsigned 8-bit value to configure the channel avoidance indication
  4213. * behavior. Firmware to send only one indication and ignore duplicate
  4214. * indications when set to avoid multiple Apps wakeups.
  4215. */
  4216. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4217. /*
  4218. * 8-bit unsigned value to configure the maximum TX MPDU for
  4219. * aggregation.
  4220. */
  4221. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4222. /*
  4223. * 8-bit unsigned value to configure the maximum RX MPDU for
  4224. * aggregation.
  4225. */
  4226. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4227. /*
  4228. * 8-bit unsigned value to configure the Non aggregrate/11g sw
  4229. * retry threshold (0 disable, 31 max).
  4230. */
  4231. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4232. /*
  4233. * 8-bit unsigned value to configure the aggregrate sw
  4234. * retry threshold (0 disable, 31 max).
  4235. */
  4236. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4237. /*
  4238. * 8-bit unsigned value to configure the MGMT frame
  4239. * retry threshold (0 disable, 31 max).
  4240. */
  4241. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4242. /*
  4243. * 8-bit unsigned value to configure the CTRL frame
  4244. * retry threshold (0 disable, 31 max).
  4245. */
  4246. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4247. /*
  4248. * 8-bit unsigned value to configure the propagation delay for
  4249. * 2G/5G band (0~63, units in us)
  4250. */
  4251. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4252. /*
  4253. * Unsigned 32-bit value to configure the number of unicast TX fail
  4254. * packet count. The peer is disconnected once this threshold is
  4255. * reached.
  4256. */
  4257. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4258. /*
  4259. * Attribute used to set scan default IEs to the driver.
  4260. *
  4261. * These IEs can be used by scan operations that will be initiated by
  4262. * the driver/firmware.
  4263. *
  4264. * For further scan requests coming to the driver, these IEs should be
  4265. * merged with the IEs received along with scan request coming to the
  4266. * driver. If a particular IE is present in the scan default IEs but not
  4267. * present in the scan request, then that IE should be added to the IEs
  4268. * sent in the Probe Request frames for that scan request.
  4269. */
  4270. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4271. /* Unsigned 32-bit attribute for generic commands */
  4272. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4273. /* Unsigned 32-bit value attribute for generic commands */
  4274. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4275. /* Unsigned 32-bit data attribute for generic command response */
  4276. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4277. /*
  4278. * Unsigned 32-bit length attribute for
  4279. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4280. */
  4281. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4282. /*
  4283. * Unsigned 32-bit flags attribute for
  4284. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4285. */
  4286. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4287. /*
  4288. * Unsigned 32-bit, defining the access policy.
  4289. * See enum qca_access_policy. Used with
  4290. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4291. */
  4292. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4293. /*
  4294. * Sets the list of full set of IEs for which a specific access policy
  4295. * has to be applied. Used along with
  4296. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4297. * Zero length payload can be used to clear this access constraint.
  4298. */
  4299. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4300. /*
  4301. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4302. * corresponding configurations are applied. If the interface index is
  4303. * not specified, the configurations are attributed to the respective
  4304. * wiphy.
  4305. */
  4306. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4307. /*
  4308. * 8-bit unsigned value to trigger QPower:
  4309. * 1-Enable, 0-Disable
  4310. */
  4311. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4312. /*
  4313. * 8-bit unsigned value to configure the driver and below layers to
  4314. * ignore the assoc disallowed set by APs while connecting
  4315. * 1-Ignore, 0-Don't ignore
  4316. */
  4317. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4318. /*
  4319. * 32-bit unsigned value to trigger antenna diversity features:
  4320. * 1-Enable, 0-Disable
  4321. */
  4322. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4323. /* 32-bit unsigned value to configure specific chain antenna */
  4324. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4325. /*
  4326. * 32-bit unsigned value to trigger cycle selftest
  4327. * 1-Enable, 0-Disable
  4328. */
  4329. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4330. /*
  4331. * 32-bit unsigned to configure the cycle time of selftest
  4332. * the unit is micro-second
  4333. */
  4334. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4335. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4336. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4337. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4338. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4339. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4340. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4341. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4342. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4343. /* 6-byte MAC address to point out the specific peer */
  4344. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4345. /* 32-bit unsigned value to set window size for specific peer */
  4346. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4347. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4348. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4349. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4350. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4351. /*
  4352. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4353. * station device while in disconnect state. The attribute use the
  4354. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4355. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4356. * 10 MHz channel width, the station will not connect to a BSS using 20
  4357. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4358. * clear this constraint.
  4359. */
  4360. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4361. /*
  4362. * 32-bit unsigned value to configure the propagation absolute delay
  4363. * for 2G/5G band (units in us)
  4364. */
  4365. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4366. /* 32-bit unsigned value to set probe period */
  4367. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4368. /* 32-bit unsigned value to set stay period */
  4369. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4370. /* 32-bit unsigned value to set snr diff */
  4371. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4372. /* 32-bit unsigned value to set probe dwell time */
  4373. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4374. /* 32-bit unsigned value to set mgmt snr weight */
  4375. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4376. /* 32-bit unsigned value to set data snr weight */
  4377. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4378. /* 32-bit unsigned value to set ack snr weight */
  4379. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4380. /*
  4381. * 32-bit unsigned value to configure the listen interval.
  4382. * This is in units of beacon intervals. This configuration alters
  4383. * the negotiated listen interval with the AP during the connection.
  4384. * It is highly recommended to configure a value less than or equal to
  4385. * the one negotiated during the association. Configuring any greater
  4386. * value can have adverse effects (frame loss, AP disassociating STA,
  4387. * etc.).
  4388. */
  4389. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4390. /*
  4391. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4392. * disable operations that would cause the AP/GO to leave its operating
  4393. * channel.
  4394. *
  4395. * This will restrict the scans to the AP/GO operating channel and the
  4396. * channels of the other band, if DBS is supported.A STA/CLI interface
  4397. * brought up after this setting is enabled, will be restricted to
  4398. * connecting to devices only on the AP/GO interface's operating channel
  4399. * or on the other band in DBS case. P2P supported channel list is
  4400. * modified, to only include AP interface's operating-channel and the
  4401. * channels of the other band if DBS is supported.
  4402. *
  4403. * These restrictions are only applicable as long as the AP/GO interface
  4404. * is alive. If the AP/GO interface is brought down then this
  4405. * setting/restriction is forgotten.
  4406. *
  4407. * If this variable is set on an AP/GO interface while a multi-channel
  4408. * concurrent session is active, it has no effect on the operation of
  4409. * the current interfaces, other than restricting the scan to the AP/GO
  4410. * operating channel and the other band channels if DBS is supported.
  4411. * However, if the STA is brought down and restarted then the new STA
  4412. * connection will either be formed on the AP/GO channel or on the
  4413. * other band in a DBS case. This is because of the scan being
  4414. * restricted on these channels as mentioned above.
  4415. *
  4416. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4417. */
  4418. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4419. /*
  4420. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4421. * on an interface.
  4422. * 1 - Enable , 0 - Disable.
  4423. */
  4424. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4425. /*
  4426. * 8 bit unsigned value to globally enable/disable scan
  4427. * 1 - Enable, 0 - Disable.
  4428. */
  4429. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4430. /* 8-bit unsigned value to set the total beacon miss count */
  4431. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4432. /*
  4433. * Unsigned 32-bit value to configure the number of continuous
  4434. * Beacon Miss which shall be used by the firmware to penalize
  4435. * the RSSI for BTC.
  4436. */
  4437. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4438. /*
  4439. * 8-bit unsigned value to configure the driver and below layers to
  4440. * enable/disable all fils features.
  4441. * 0-enable, 1-disable
  4442. */
  4443. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4444. /* 16-bit unsigned value to configure the level of WLAN latency
  4445. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4446. */
  4447. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4448. /*
  4449. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  4450. * the connect interface. Exclusively used for the scenarios where the
  4451. * device is used as a test bed device with special functionality and
  4452. * not recommended for production. This helps driver to not validate the
  4453. * RSNE passed from user space and thus allow arbitrary IE data to be
  4454. * used for testing purposes.
  4455. * 1-enable, 0-disable.
  4456. * Applications set/reset this configuration. If not reset, this
  4457. * parameter remains in use until the driver is unloaded.
  4458. */
  4459. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  4460. /*
  4461. * 8-bit unsigned value to trigger green Tx power saving.
  4462. * 1-Enable, 0-Disable
  4463. */
  4464. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  4465. /*
  4466. * Attribute to configure disconnect IEs to the driver.
  4467. * This carries an array of unsigned 8-bit characters.
  4468. *
  4469. * If this is configured, driver shall fill the IEs in disassoc/deauth
  4470. * frame.
  4471. * These IEs are expected to be considered only for the next
  4472. * immediate disconnection (disassoc/deauth frame) originated by
  4473. * the DUT, irrespective of the entity (user space/driver/firmware)
  4474. * triggering the disconnection.
  4475. * The host drivers are not expected to use the IEs set through
  4476. * this interface for further disconnections after the first immediate
  4477. * disconnection initiated post the configuration.
  4478. * If the IEs are also updated through cfg80211 interface (after the
  4479. * enhancement to cfg80211_disconnect), host driver is expected to
  4480. * take the union of IEs from both of these interfaces and send in
  4481. * further disassoc/deauth frames.
  4482. */
  4483. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  4484. /* 8-bit unsigned value for ELNA bypass.
  4485. * 1-Enable, 0-Disable
  4486. */
  4487. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  4488. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4489. * to send the Beacon Report response with failure reason for the
  4490. * scenarios where STA cannot honor the Beacon report request from AP.
  4491. * 1-Enable, 0-Disable.
  4492. */
  4493. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  4494. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4495. * to send roam reason information in the reassociation request to the
  4496. * AP. 1-Enable, 0-Disable.
  4497. */
  4498. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  4499. /* 32-bit unsigned value to configure different PHY modes to the
  4500. * driver/firmware. The possible values are defined in
  4501. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  4502. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  4503. * the driver.
  4504. */
  4505. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  4506. /* 8-bit unsigned value to configure the maximum supported channel width
  4507. * for STA mode. If this value is configured when STA is in connected
  4508. * state, it should not exceed the negotiated channel width. If it is
  4509. * configured when STA is in disconnected state, the configured value
  4510. * will take effect for the next immediate connection.
  4511. * Possible values are:
  4512. * NL80211_CHAN_WIDTH_20
  4513. * NL80211_CHAN_WIDTH_40
  4514. * NL80211_CHAN_WIDTH_80
  4515. * NL80211_CHAN_WIDTH_80P80
  4516. * NL80211_CHAN_WIDTH_160
  4517. */
  4518. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  4519. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  4520. * This attribute is only applicable for STA mode. When dynamic
  4521. * bandwidth adjustment is disabled, STA will use static channel width
  4522. * the value of which is negotiated during connection.
  4523. * 1-enable (default), 0-disable
  4524. */
  4525. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  4526. /* 8-bit unsigned value to configure the maximum number of subframes of
  4527. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4528. * it is decided by hardware.
  4529. */
  4530. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  4531. /* 8-bit unsigned value to configure the maximum number of subframes of
  4532. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4533. * it is decided by hardware.
  4534. */
  4535. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  4536. /* 8-bit unsigned value. This attribute is used to dynamically
  4537. * enable/disable the LDPC capability of the device. When configured in
  4538. * the disconnected state, the updated configuration will be considered
  4539. * for the immediately following connection attempt. If this
  4540. * configuration is modified while the device is in the connected state,
  4541. * the LDPC TX will be updated with this configuration immediately,
  4542. * while the LDPC RX configuration update will take place starting from
  4543. * the subsequent association attempt.
  4544. * 1-Enable, 0-Disable.
  4545. */
  4546. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  4547. /* 8-bit unsigned value. This attribute is used to dynamically
  4548. * enable/disable the TX STBC capability of the device. When configured
  4549. * in the disconnected state, the updated configuration will be
  4550. * considered for the immediately following connection attempt. If the
  4551. * connection is formed with TX STBC enabled and if this configuration
  4552. * is disabled during that association, the TX will be impacted
  4553. * immediately. Further connection attempts will disable TX STBC.
  4554. * However, enabling the TX STBC for a connected session with disabled
  4555. * capability is not allowed and will fail.
  4556. * 1-Enable, 0-Disable.
  4557. */
  4558. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  4559. /* 8-bit unsigned value. This attribute is used to dynamically
  4560. * enable/disable the RX STBC capability of the device. When configured
  4561. * in the disconnected state, the updated configuration will be
  4562. * considered for the immediately following connection attempt. If the
  4563. * configuration is modified in the connected state, there will be no
  4564. * impact for the current association, but further connection attempts
  4565. * will use the updated configuration.
  4566. * 1-Enable, 0-Disable.
  4567. */
  4568. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  4569. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4570. * the number of spatial streams. When configured in the disconnected
  4571. * state, the updated configuration will be considered for the
  4572. * immediately following connection attempt. If the NSS is updated after
  4573. * the connection, the updated NSS value is notified to the peer using
  4574. * the Operating Mode Notification/Spatial Multiplexing Power Save
  4575. * frame. The updated NSS value after the connection shall not be
  4576. * greater than the one negotiated during the connection. Any such
  4577. * higher value configuration shall be returned with a failure.
  4578. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  4579. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  4580. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  4581. * configure the asymmetric NSS configuration (such as 1X2).
  4582. */
  4583. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  4584. /*
  4585. * 8-bit unsigned value to trigger Optimized Power Management:
  4586. * 1-Enable, 0-Disable
  4587. */
  4588. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  4589. /* 8-bit unsigned value. This attribute takes the QOS/access category
  4590. * value represented by the enum qca_wlan_ac_type and expects the driver
  4591. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  4592. * is invalid for this attribute. This will override the DSCP value
  4593. * configured in the frame with the intention to only upgrade the QOS.
  4594. * That said, it is not intended to downgrade the QOS for the frames.
  4595. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  4596. * to disable.
  4597. */
  4598. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  4599. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4600. * the number of chains to be used for transmitting data. This
  4601. * configuration is allowed only when in connected state and will be
  4602. * effective until disconnected. The driver rejects this configuration
  4603. * if the number of spatial streams being used in the current connection
  4604. * cannot be supported by this configuration.
  4605. */
  4606. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  4607. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4608. * the number of chains to be used for receiving data. This
  4609. * configuration is allowed only when in connected state and will be
  4610. * effective until disconnected. The driver rejects this configuration
  4611. * if the number of spatial streams being used in the current connection
  4612. * cannot be supported by this configuration.
  4613. */
  4614. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  4615. /* 8-bit unsigned value to configure ANI setting type.
  4616. * See &enum qca_wlan_ani_setting for possible values.
  4617. */
  4618. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  4619. /* 32-bit signed value to configure ANI level. This is used when
  4620. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  4621. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  4622. * is invalid, the driver will return a failure.
  4623. */
  4624. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  4625. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4626. * the number of spatial streams used for transmitting the data. When
  4627. * configured in the disconnected state, the configured value will
  4628. * be considered for the following connection attempt.
  4629. * If the NSS is updated after the connection, the updated NSS value
  4630. * is notified to the peer using the Operating Mode Notification/Spatial
  4631. * Multiplexing Power Save frame.
  4632. * The TX NSS value configured after the connection shall not be greater
  4633. * than the value negotiated during the connection. Any such higher
  4634. * value configuration shall be treated as invalid configuration by
  4635. * the driver. This attribute shall be configured along with
  4636. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  4637. * configuration (such as 2X2 or 1X1) or the asymmetric
  4638. * configuration (such as 1X2).
  4639. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4640. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  4641. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  4642. */
  4643. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  4644. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4645. * the number of spatial streams used for receiving the data. When
  4646. * configured in the disconnected state, the configured value will
  4647. * be considered for the following connection attempt.
  4648. * If the NSS is updated after the connection, the updated NSS value
  4649. * is notified to the peer using the Operating Mode Notification/Spatial
  4650. * Multiplexing Power Save frame.
  4651. * The RX NSS value configured after the connection shall not be greater
  4652. * than the value negotiated during the connection. Any such higher
  4653. * value configuration shall be treated as invalid configuration by
  4654. * the driver. This attribute shall be configured along with
  4655. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  4656. * configuration (such as 2X2 or 1X1) or the asymmetric
  4657. * configuration (such as 1X2).
  4658. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4659. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  4660. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  4661. */
  4662. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  4663. /*
  4664. * 8-bit unsigned value. This attribute, when set, indicates whether the
  4665. * specified interface is the primary STA interface when there are more
  4666. * than one STA interfaces concurrently active.
  4667. *
  4668. * This configuration helps the firmware/hardware to support certain
  4669. * features (e.g., roaming) on this primary interface, if the same
  4670. * cannot be supported on the concurrent STA interfaces simultaneously.
  4671. *
  4672. * This configuration is only applicable for a single STA interface on
  4673. * a device and gives the priority for it only over other concurrent STA
  4674. * interfaces.
  4675. *
  4676. * If the device is a multi wiphy/soc, this configuration applies to a
  4677. * single STA interface across the wiphys.
  4678. *
  4679. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  4680. */
  4681. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  4682. /*
  4683. * 8-bit unsigned value. This attribute can be used to configure the
  4684. * driver to enable/disable FT-over-DS feature. Possible values for
  4685. * this attribute are 1-Enable and 0-Disable.
  4686. */
  4687. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  4688. /*
  4689. * 8-bit unsigned value. This attribute can be used to configure the
  4690. * firmware to enable/disable ARP/NS offload feature. Possible values
  4691. * for this attribute are 0-Disable and 1-Enable.
  4692. *
  4693. * This attribute is only applicable for STA/P2P-Client interface,
  4694. * and is optional, default behavior is APR/NS offload Enable.
  4695. *
  4696. * This attribute can be set in disconncted and connected state, and
  4697. * will restore to default behavior if interface is closed.
  4698. */
  4699. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  4700. /* keep last */
  4701. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  4702. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  4703. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  4704. };
  4705. /**
  4706. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  4707. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  4708. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  4709. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  4710. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  4711. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  4712. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  4713. */
  4714. enum qca_wlan_vendor_attr_wifi_logger_start {
  4715. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  4716. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  4717. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  4718. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  4719. /* keep last */
  4720. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  4721. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  4722. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  4723. };
  4724. /*
  4725. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  4726. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  4727. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  4728. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  4729. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  4730. */
  4731. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  4732. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  4733. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  4734. /* keep last */
  4735. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  4736. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  4737. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  4738. };
  4739. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  4740. /**
  4741. * enum wlan_offloaded_packets_control - control commands
  4742. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  4743. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  4744. *
  4745. */
  4746. enum wlan_offloaded_packets_control {
  4747. WLAN_START_OFFLOADED_PACKETS = 1,
  4748. WLAN_STOP_OFFLOADED_PACKETS = 2
  4749. };
  4750. /**
  4751. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  4752. *
  4753. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  4754. * the offloaded data.
  4755. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  4756. * data.
  4757. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  4758. * indication.
  4759. */
  4760. enum qca_wlan_vendor_attr_data_offload_ind {
  4761. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  4762. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  4763. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  4764. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  4765. /* keep last */
  4766. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  4767. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  4768. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  4769. };
  4770. /**
  4771. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  4772. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  4773. */
  4774. enum qca_wlan_vendor_attr_offloaded_packets {
  4775. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  4776. /* Takes valid value from the enum
  4777. * qca_wlan_offloaded_packets_sending_control
  4778. * Unsigned 32-bit value
  4779. */
  4780. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  4781. /* Unsigned 32-bit value */
  4782. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  4783. /* array of u8 len: Max packet size */
  4784. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  4785. /* 6-byte MAC address used to represent source MAC address */
  4786. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  4787. /* 6-byte MAC address used to represent destination MAC address */
  4788. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  4789. /* Unsigned 32-bit value, in milli seconds */
  4790. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  4791. /* This optional unsigned 16-bit attribute is used for specifying
  4792. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  4793. */
  4794. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  4795. /* keep last */
  4796. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  4797. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  4798. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  4799. };
  4800. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  4801. /**
  4802. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  4803. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  4804. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  4805. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  4806. */
  4807. enum qca_wlan_rssi_monitoring_control {
  4808. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  4809. QCA_WLAN_RSSI_MONITORING_START,
  4810. QCA_WLAN_RSSI_MONITORING_STOP,
  4811. };
  4812. /**
  4813. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  4814. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  4815. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  4816. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  4817. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  4818. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  4819. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  4820. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  4821. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  4822. */
  4823. enum qca_wlan_vendor_attr_rssi_monitoring {
  4824. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  4825. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  4826. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  4827. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  4828. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  4829. /* attributes to be used/received in callback */
  4830. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  4831. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  4832. /* keep last */
  4833. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  4834. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  4835. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  4836. };
  4837. /**
  4838. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  4839. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  4840. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  4841. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  4842. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  4843. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
  4844. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  4845. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  4846. * address
  4847. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  4848. * created
  4849. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  4850. * NCS_SK_TYPE/PMK/SCID instead
  4851. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  4852. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  4853. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  4854. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  4855. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  4856. * code: accept/reject
  4857. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  4858. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  4859. * driver
  4860. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  4861. * driver
  4862. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  4863. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  4864. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  4865. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  4866. * PMKID
  4867. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  4868. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  4869. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  4870. * update:
  4871. * BIT_0: NSS Update
  4872. * BIT_1: Channel list update
  4873. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  4874. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  4875. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  4876. * 0:20 MHz,
  4877. * 1:40 MHz,
  4878. * 2:80 MHz,
  4879. * 3:160 MHz
  4880. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  4881. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  4882. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  4883. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  4884. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  4885. * transport port used by NDP.
  4886. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  4887. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  4888. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  4889. * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  4890. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  4891. * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  4892. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  4893. * A lower-case representation of the Service Name shall be used to
  4894. * calculate the Service ID.
  4895. * Array of u8: length is 6 bytes
  4896. * This attribute is used and optional for ndp indication.
  4897. */
  4898. enum qca_wlan_vendor_attr_ndp_params {
  4899. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  4900. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  4901. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  4902. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  4903. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  4904. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  4905. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  4906. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  4907. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  4908. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  4909. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  4910. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  4911. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  4912. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  4913. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  4914. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  4915. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  4916. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  4917. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  4918. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  4919. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  4920. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  4921. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  4922. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  4923. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  4924. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  4925. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  4926. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  4927. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  4928. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  4929. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  4930. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  4931. /* keep last */
  4932. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  4933. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  4934. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  4935. };
  4936. /**
  4937. * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
  4938. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  4939. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  4940. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: create a ndi
  4941. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: delete a ndi
  4942. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST: initiate a ndp session
  4943. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  4944. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  4945. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  4946. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  4947. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  4948. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  4949. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  4950. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  4951. * being received
  4952. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  4953. * update
  4954. */
  4955. enum qca_wlan_ndp_sub_cmd {
  4956. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  4957. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  4958. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  4959. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  4960. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  4961. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  4962. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  4963. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  4964. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  4965. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  4966. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  4967. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  4968. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  4969. };
  4970. /**
  4971. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  4972. * information. These attributes are sent as part of
  4973. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  4974. * attributes correspond to a single channel.
  4975. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  4976. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  4977. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  4978. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  4979. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  4980. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  4981. * regulatory transmission power
  4982. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  4983. * transmission power
  4984. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  4985. * transmission power
  4986. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  4987. * class id
  4988. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  4989. * antenna gain in dbm
  4990. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  4991. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  4992. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  4993. * segment 0 in center freq in MHz.
  4994. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  4995. * segment 1 in center freq in MHz.
  4996. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  4997. * flag indicating the AP power modes supported by the channel, as given by
  4998. * enum qca_wlan_vendor_external_acs_chan_power_level.
  4999. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5000. * attributes for each power mode. It takes attr as defined in enum
  5001. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5002. *
  5003. */
  5004. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5005. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5006. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5007. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5008. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5009. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5010. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5011. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5012. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5013. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5014. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5015. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5016. /*
  5017. * A bitmask (u32) with flags specified in
  5018. * enum qca_wlan_vendor_channel_prop_flags_2.
  5019. */
  5020. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5021. /*
  5022. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5023. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5024. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5025. * along with
  5026. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5027. *
  5028. * If both the driver and user-space application supports the 6 GHz
  5029. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5030. * is deprecated and
  5031. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5032. * should be used.
  5033. *
  5034. * To maintain backward compatibility,
  5035. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5036. * is still used if either of the driver or user space application
  5037. * doesn't support the 6 GHz band.
  5038. */
  5039. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
  5040. /*
  5041. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5042. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5043. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5044. * along with
  5045. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5046. *
  5047. * If both the driver and user-space application supports the 6 GHz
  5048. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5049. * is deprecated and
  5050. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5051. * should be considered.
  5052. *
  5053. * To maintain backward compatibility,
  5054. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5055. * is still used if either of the driver or user space application
  5056. * doesn't support the 6 GHz band.
  5057. */
  5058. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
  5059. /*
  5060. * 16-bit attribute of bits indicating the AP power modes supported by
  5061. * the channel (u16).
  5062. * Note: Currently, only 3 bits are used in the attribute and each bit
  5063. * corresponds to the power mode mentioned in enum
  5064. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5065. * set if the associated mode is supported.
  5066. */
  5067. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5068. = 14,
  5069. /* Array of nested attributes for each power mode. It takes attr as
  5070. * defined in enum
  5071. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5072. */
  5073. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5074. /* keep last */
  5075. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  5076. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  5077. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  5078. };
  5079. /**
  5080. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  5081. * values that the vendor external ACS channel power attribute
  5082. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  5083. * take.
  5084. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  5085. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  5086. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  5087. */
  5088. enum qca_wlan_vendor_external_acs_chan_power_level {
  5089. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  5090. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  5091. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  5092. };
  5093. /**
  5094. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  5095. * attributes for power mode type and power values corresponding to that.
  5096. * These attributes are sent as part of
  5097. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  5098. */
  5099. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  5100. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  5101. /*
  5102. * Power mode (u8) takes the values defined in enum
  5103. * qca_wlan_vendor_external_acs_chan_power_mode
  5104. */
  5105. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  5106. = 1,
  5107. /*
  5108. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  5109. * present, it indicates a PSD value.
  5110. */
  5111. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  5112. /*
  5113. * Power value (u32) PSD/EIRP as indicated by
  5114. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  5115. * for power mode corresponding to the
  5116. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  5117. * Units for PSD - dBm/MHz
  5118. * Units for EIRP - dBm
  5119. */
  5120. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  5121. = 3,
  5122. /* keep last */
  5123. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  5124. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  5125. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  5126. };
  5127. /**
  5128. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  5129. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  5130. * driver.
  5131. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  5132. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  5133. * ACS need to be started
  5134. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  5135. * driver supports spectral scanning or not
  5136. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  5137. * offloaded to firmware.
  5138. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  5139. * provides additional channel capability as part of scan operation.
  5140. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  5141. * interface status is UP
  5142. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  5143. * interface. It takes one of nl80211_iftype values.
  5144. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  5145. * of chan width. ACS logic should try to get a channel with specified width
  5146. * if not found then look for lower values.
  5147. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  5148. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  5149. * a/b/g/n/ac.
  5150. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  5151. * among which ACS should choose best frequency.
  5152. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  5153. * driver which will have <channel(u8), weight(u8)> format as array of
  5154. * nested values.
  5155. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  5156. * for each channel. It takes attr as defined in
  5157. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  5158. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  5159. * qca_wlan_vendor_attr_external_acs_policy.
  5160. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  5161. * Operating Parameter (RROP) availability information (u16). It uses values
  5162. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  5163. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  5164. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  5165. */
  5166. enum qca_wlan_vendor_attr_external_acs_event {
  5167. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  5168. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  5169. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  5170. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  5171. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  5172. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  5173. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  5174. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  5175. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  5176. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  5177. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  5178. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  5179. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  5180. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  5181. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  5182. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  5183. /* keep last */
  5184. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  5185. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  5186. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  5187. };
  5188. enum qca_iface_type {
  5189. QCA_IFACE_TYPE_STA,
  5190. QCA_IFACE_TYPE_AP,
  5191. QCA_IFACE_TYPE_P2P_CLIENT,
  5192. QCA_IFACE_TYPE_P2P_GO,
  5193. QCA_IFACE_TYPE_IBSS,
  5194. QCA_IFACE_TYPE_TDLS,
  5195. };
  5196. /**
  5197. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  5198. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  5199. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  5200. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  5201. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  5202. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  5203. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  5204. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  5205. */
  5206. enum qca_wlan_vendor_attr_pcl_config {
  5207. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  5208. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  5209. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  5210. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  5211. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  5212. };
  5213. enum qca_set_band {
  5214. QCA_SETBAND_AUTO = 0,
  5215. QCA_SETBAND_5G = BIT(0),
  5216. QCA_SETBAND_2G = BIT(1),
  5217. QCA_SETBAND_6G = BIT(2),
  5218. };
  5219. /**
  5220. * enum set_reset_packet_filter - set packet filter control commands
  5221. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  5222. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  5223. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  5224. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  5225. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  5226. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  5227. */
  5228. enum set_reset_packet_filter {
  5229. QCA_WLAN_SET_PACKET_FILTER = 1,
  5230. QCA_WLAN_GET_PACKET_FILTER = 2,
  5231. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  5232. QCA_WLAN_READ_PACKET_FILTER = 4,
  5233. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  5234. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  5235. };
  5236. /**
  5237. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  5238. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  5239. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  5240. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  5241. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  5242. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  5243. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  5244. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  5245. * section in packet filter buffer
  5246. */
  5247. enum qca_wlan_vendor_attr_packet_filter {
  5248. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  5249. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  5250. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  5251. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  5252. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  5253. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  5254. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  5255. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  5256. /* keep last */
  5257. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  5258. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  5259. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  5260. };
  5261. /**
  5262. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  5263. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  5264. */
  5265. enum qca_wlan_vendor_attr_wake_stats {
  5266. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  5267. /* Unsigned 32-bit value indicating the total count of wake event */
  5268. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  5269. /* Array of individual wake count, each index representing wake reason
  5270. */
  5271. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  5272. /* Unsigned 32-bit value representing wake count array */
  5273. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  5274. /* Unsigned 32-bit total wake count value of driver/fw */
  5275. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  5276. /* Array of wake stats of driver/fw */
  5277. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  5278. /* Unsigned 32-bit total wake count value of driver/fw */
  5279. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  5280. /* Unsigned 32-bit total wake count value of packets received */
  5281. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  5282. /* Unsigned 32-bit wake count value unicast packets received */
  5283. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  5284. /* Unsigned 32-bit wake count value multicast packets received */
  5285. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  5286. /* Unsigned 32-bit wake count value broadcast packets received */
  5287. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  5288. /* Unsigned 32-bit wake count value of ICMP packets */
  5289. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  5290. /* Unsigned 32-bit wake count value of ICMP6 packets */
  5291. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  5292. /* Unsigned 32-bit value ICMP6 router advertisement */
  5293. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  5294. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  5295. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  5296. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  5297. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  5298. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  5299. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  5300. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  5301. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  5302. /* Unsigned 32-bit wake count value of receive side multicast */
  5303. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  5304. /* Unsigned 32-bit wake count value of a given RSSI breach */
  5305. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  5306. /* Unsigned 32-bit wake count value of low RSSI */
  5307. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  5308. /* Unsigned 32-bit value GSCAN count */
  5309. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  5310. /* Unsigned 32-bit value PNO complete count */
  5311. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  5312. /* Unsigned 32-bit value PNO match count */
  5313. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  5314. /* keep last */
  5315. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  5316. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  5317. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  5318. };
  5319. /**
  5320. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  5321. * configured by userspace to the driver/firmware. The values will be
  5322. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  5323. * The driver/firmware takes necessary actions requested by userspace
  5324. * such as throttling wifi tx etc. in order to mitigate high temperature.
  5325. *
  5326. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  5327. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  5328. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  5329. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  5330. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  5331. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  5332. */
  5333. enum qca_wlan_vendor_thermal_level {
  5334. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  5335. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  5336. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  5337. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  5338. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  5339. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  5340. };
  5341. /**
  5342. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  5343. * cmd value. Used for NL attributes for data used by
  5344. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5345. */
  5346. enum qca_wlan_vendor_attr_thermal_cmd {
  5347. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  5348. /* The value of command, driver will implement different operations
  5349. * according to this value. It uses values defined in
  5350. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  5351. * u32 attribute.
  5352. */
  5353. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  5354. /* Userspace uses this attribute to configure thermal level to the
  5355. * driver/firmware, or get thermal level from the driver/firmware.
  5356. * Used in request or response, u32 attribute,
  5357. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  5358. */
  5359. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  5360. /* Userspace uses this attribute to configure the time in which the
  5361. * driver/firmware should complete applying settings it received from
  5362. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  5363. * command type. Used in request, u32 attribute, value is in
  5364. * milliseconds. A value of zero indicates to apply the settings
  5365. * immediately. The driver/firmware can delay applying the configured
  5366. * thermal settings within the time specified in this attribute if
  5367. * there is any critical ongoing operation.
  5368. */
  5369. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  5370. /* Nested attribute, driver/firmware uses this attribute to report
  5371. * thermal stats of different thermal levels to userspace when requested
  5372. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  5373. * type. This attribute contains nested array of records of thermal
  5374. * statistics of multiple levels. The attributes used inside this nested
  5375. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  5376. */
  5377. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  5378. /* keep last */
  5379. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  5380. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  5381. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  5382. };
  5383. /**
  5384. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  5385. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  5386. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  5387. * thermal command types sent to driver.
  5388. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  5389. * get thermal shutdown configuration parameters for display. Parameters
  5390. * responded from driver are defined in
  5391. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  5392. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  5393. * get temperature. Host should respond with a temperature data. It is defined
  5394. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  5395. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  5396. * suspend action.
  5397. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  5398. * resume action.
  5399. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  5400. * the driver/firmware.
  5401. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  5402. * thermal level from the driver/firmware. The driver should respond with a
  5403. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  5404. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  5405. * current thermal stats from the driver/firmware. The driver should respond
  5406. * with stats of all thermal levels encapsulated in attribute
  5407. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  5408. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  5409. * the current thermal stats all thermal levels maintained in the
  5410. * driver/firmware and start counting from zero again.
  5411. */
  5412. enum qca_wlan_vendor_attr_thermal_cmd_type {
  5413. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  5414. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  5415. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  5416. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  5417. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  5418. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  5419. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  5420. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  5421. };
  5422. /**
  5423. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  5424. * to get chip temperature by user.
  5425. * enum values are used for NL attributes for data used by
  5426. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  5427. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5428. */
  5429. enum qca_wlan_vendor_attr_thermal_get_temperature {
  5430. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  5431. /* Temperature value (degree Celsius) from driver.
  5432. * u32 attribute.
  5433. */
  5434. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  5435. /* keep last */
  5436. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  5437. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  5438. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  5439. };
  5440. /**
  5441. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  5442. * report thermal events from driver to user space.
  5443. * enum values are used for NL attributes for data used by
  5444. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  5445. */
  5446. enum qca_wlan_vendor_attr_thermal_event {
  5447. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  5448. /* Temperature value (degree Celsius) from driver.
  5449. * u32 attribute.
  5450. */
  5451. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  5452. /* Indication of resume completion from power save mode.
  5453. * NLA_FLAG attribute.
  5454. */
  5455. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  5456. /* Thermal level from the driver.
  5457. * u32 attribute. Possible values are defined in
  5458. * enum qca_wlan_vendor_thermal_level.
  5459. */
  5460. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  5461. /* keep last */
  5462. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  5463. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  5464. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  5465. };
  5466. /**
  5467. * enum qca_vendor_element_id - QCA Vendor Specific element types
  5468. *
  5469. * These values are used to identify QCA Vendor Specific elements. The
  5470. * payload of the element starts with the three octet OUI (OUI_QCA) and
  5471. * is followed by a single octet type which is defined by this enum.
  5472. *
  5473. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  5474. * This element can be used to specify preference order for supported
  5475. * channels. The channels in this list are in preference order (the first
  5476. * one has the highest preference) and are described as a pair of
  5477. * (global) Operating Class and Channel Number (each one octet) fields.
  5478. *
  5479. * This extends the standard P2P functionality by providing option to have
  5480. * more than one preferred operating channel. When this element is present,
  5481. * it replaces the preference indicated in the Operating Channel attribute.
  5482. * For supporting other implementations, the Operating Channel attribute is
  5483. * expected to be used with the highest preference channel. Similarly, all
  5484. * the channels included in this Preferred channel list element are
  5485. * expected to be included in the Channel List attribute.
  5486. *
  5487. * This vendor element may be included in GO Negotiation Request, P2P
  5488. * Invitation Request, and Provision Discovery Request frames.
  5489. *
  5490. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  5491. * This element can be used for pre-standard publication testing of HE
  5492. * before P802.11ax draft assigns the element ID. The payload of this
  5493. * vendor specific element is defined by the latest P802.11ax draft.
  5494. * Please note that the draft is still work in progress and this element
  5495. * payload is subject to change.
  5496. *
  5497. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  5498. * This element can be used for pre-standard publication testing of HE
  5499. * before P802.11ax draft assigns the element ID. The payload of this
  5500. * vendor specific element is defined by the latest P802.11ax draft.
  5501. * Please note that the draft is still work in progress and this element
  5502. * payload is subject to change.
  5503. *
  5504. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  5505. * element).
  5506. * This element can be used for pre-standard publication testing of HE
  5507. * before P802.11ax draft assigns the element ID extension. The payload of
  5508. * this vendor specific element is defined by the latest P802.11ax draft
  5509. * (not including the Element ID Extension field). Please note that the
  5510. * draft is still work in progress and this element payload is subject to
  5511. * change.
  5512. *
  5513. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  5514. * This element can be used for pre-standard publication testing of HE
  5515. * before P802.11ax draft assigns the element ID extension. The payload of
  5516. * this vendor specific element is defined by the latest P802.11ax draft
  5517. * (not including the Element ID Extension field). Please note that the
  5518. * draft is still work in progress and this element payload is subject to
  5519. * change.
  5520. *
  5521. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  5522. * This element can be used for pre-standard publication testing of HE
  5523. * before P802.11ax draft assigns the element ID extension. The payload of
  5524. * this vendor specific element is defined by the latest P802.11ax draft
  5525. * (not including the Element ID Extension field). Please note that the
  5526. * draft is still work in progress and this element payload is subject to
  5527. * change.
  5528. */
  5529. enum qca_vendor_element_id {
  5530. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  5531. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  5532. QCA_VENDOR_ELEM_HE_OPER = 2,
  5533. QCA_VENDOR_ELEM_RAPS = 3,
  5534. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  5535. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  5536. };
  5537. /**
  5538. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  5539. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  5540. * Specify the TSF command. Possible values are defined in
  5541. * &enum qca_tsf_cmd.
  5542. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  5543. * This attribute contains TSF timer value. This attribute is only available
  5544. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  5545. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  5546. * This attribute contains SOC timer value at TSF capture. This attribute is
  5547. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  5548. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  5549. * This attribute is used to provide TSF sync interval and only applicable when
  5550. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  5551. * driver will use the default value. Time unit is in milliseconds.
  5552. */
  5553. enum qca_vendor_attr_tsf_cmd {
  5554. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  5555. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  5556. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  5557. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  5558. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  5559. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  5560. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  5561. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  5562. };
  5563. /**
  5564. * enum qca_tsf_cmd: TSF driver commands
  5565. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  5566. * @QCA_TSF_GET: Get TSF capture value
  5567. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  5568. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  5569. * will automatically send TSF report to the host. To query
  5570. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  5571. * initiated first.
  5572. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  5573. * will not automatically send TSF report to the host. If
  5574. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  5575. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  5576. * operation needs to be initiated.
  5577. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  5578. * fetches TSF and host time mapping from the firmware with interval configured
  5579. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  5580. * interval value is not provided the driver will use the default value. The
  5581. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  5582. * command.
  5583. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  5584. */
  5585. enum qca_tsf_cmd {
  5586. QCA_TSF_CAPTURE,
  5587. QCA_TSF_GET,
  5588. QCA_TSF_SYNC_GET,
  5589. QCA_TSF_AUTO_REPORT_ENABLE,
  5590. QCA_TSF_AUTO_REPORT_DISABLE,
  5591. QCA_TSF_SYNC_START,
  5592. QCA_TSF_SYNC_STOP,
  5593. };
  5594. /**
  5595. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  5596. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  5597. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  5598. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  5599. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  5600. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  5601. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  5602. */
  5603. enum qca_vendor_attr_get_preferred_freq_list {
  5604. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  5605. /* A 32-unsigned value; the interface type/mode for which the preferred
  5606. * frequency list is requested (see enum qca_iface_type for possible
  5607. * values); used in both south- and north-bound.
  5608. */
  5609. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  5610. /* An array of 32-unsigned values; values are frequency (MHz); used
  5611. * in north-bound only.
  5612. */
  5613. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  5614. /* An array of nested values as per enum
  5615. * qca_wlan_vendor_attr_pcl_config attribute.
  5616. * Each element contains frequency (MHz), weight, and flag
  5617. * bit mask indicating how the frequency should be used in P2P
  5618. * negotiation.
  5619. */
  5620. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  5621. /* keep last */
  5622. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  5623. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  5624. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  5625. };
  5626. /**
  5627. * enum qca_vendor_attr_probable_oper_channel - channel hint
  5628. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  5629. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  5630. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  5631. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  5632. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  5633. */
  5634. enum qca_vendor_attr_probable_oper_channel {
  5635. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  5636. /* 32-bit unsigned value; indicates the connection/iface type likely to
  5637. * come on this channel (see enum qca_iface_type).
  5638. */
  5639. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  5640. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  5641. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  5642. /* keep last */
  5643. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  5644. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  5645. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  5646. };
  5647. /**
  5648. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  5649. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  5650. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  5651. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  5652. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  5653. */
  5654. enum qca_wlan_vendor_attr_gw_param_config {
  5655. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  5656. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  5657. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  5658. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  5659. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  5660. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  5661. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  5662. };
  5663. /**
  5664. * enum drv_dbs_capability - DBS capability
  5665. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  5666. * @DRV_DBS_CAPABILITY_1X1: 1x1
  5667. * @DRV_DBS_CAPABILITY_2X2: 2x2
  5668. */
  5669. enum drv_dbs_capability {
  5670. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  5671. DRV_DBS_CAPABILITY_1X1,
  5672. DRV_DBS_CAPABILITY_2X2,
  5673. };
  5674. /**
  5675. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  5676. *
  5677. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  5678. */
  5679. enum qca_vendor_attr_txpower_decr_db {
  5680. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  5681. /*
  5682. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  5683. * a virtual interface.
  5684. */
  5685. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  5686. /* keep last */
  5687. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  5688. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  5689. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  5690. };
  5691. /**
  5692. * enum qca_vendor_attr_ota_test - Enable OTA test
  5693. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  5694. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  5695. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  5696. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  5697. */
  5698. enum qca_vendor_attr_ota_test {
  5699. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  5700. /* 8-bit unsigned value to indicate if OTA test is enabled */
  5701. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  5702. /* keep last */
  5703. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  5704. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  5705. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  5706. };
  5707. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  5708. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  5709. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  5710. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  5711. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  5712. */
  5713. enum qca_vendor_attr_txpower_scale {
  5714. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  5715. /* 8-bit unsigned value to indicate the scaling of tx power */
  5716. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  5717. /* keep last */
  5718. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  5719. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  5720. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  5721. };
  5722. /**
  5723. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  5724. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  5725. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  5726. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  5727. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  5728. */
  5729. enum qca_vendor_attr_txpower_scale_decr_db {
  5730. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  5731. /* 8-bit unsigned value to indicate the scaling of tx power */
  5732. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  5733. /* keep last */
  5734. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  5735. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  5736. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  5737. };
  5738. /**
  5739. * enum dfs_mode - state of DFS mode
  5740. * @DFS_MODE_NONE: DFS mode attribute is none
  5741. * @DFS_MODE_ENABLE: DFS mode is enabled
  5742. * @DFS_MODE_DISABLE: DFS mode is disabled
  5743. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  5744. */
  5745. enum dfs_mode {
  5746. DFS_MODE_NONE,
  5747. DFS_MODE_ENABLE,
  5748. DFS_MODE_DISABLE,
  5749. DFS_MODE_DEPRIORITIZE
  5750. };
  5751. /**
  5752. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  5753. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  5754. *
  5755. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  5756. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  5757. *
  5758. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  5759. * channel number hint for ACS operation, if valid channel is specified then
  5760. * ACS operation gives priority to this channel.
  5761. * Note: If both the driver and user space application supports the 6 GHz band,
  5762. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  5763. * should be used.
  5764. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  5765. * is still used if either of the driver or user space application doesn't
  5766. * support the 6 GHz band.
  5767. *
  5768. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  5769. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  5770. * frequency is specified, ACS operation gives priority to this channel.
  5771. */
  5772. enum qca_wlan_vendor_attr_acs_config {
  5773. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  5774. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  5775. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  5776. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  5777. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  5778. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  5779. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  5780. };
  5781. /**
  5782. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  5783. */
  5784. enum qca_wlan_vendor_attr_get_hw_capability {
  5785. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  5786. /*
  5787. * Antenna isolation
  5788. * An attribute used in the response.
  5789. * The content of this attribute is encoded in a byte array. Each byte
  5790. * value is an antenna isolation value. The array length is the number
  5791. * of antennas.
  5792. */
  5793. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  5794. /*
  5795. * Request HW capability
  5796. * An attribute used in the request.
  5797. * The content of this attribute is a u32 array for one or more of
  5798. * hardware capabilities (attribute IDs) that are being requested. Each
  5799. * u32 value has a value from this
  5800. * enum qca_wlan_vendor_attr_get_hw_capability
  5801. * identifying which capabilities are requested.
  5802. */
  5803. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  5804. /* keep last */
  5805. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  5806. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  5807. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  5808. };
  5809. /**
  5810. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  5811. * config params for sta roam policy
  5812. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  5813. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  5814. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  5815. * If sta should skip unsafe channels or not in scanning
  5816. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  5817. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  5818. */
  5819. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  5820. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  5821. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  5822. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  5823. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  5824. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  5825. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  5826. };
  5827. /* Attributes for FTM commands and events */
  5828. /**
  5829. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  5830. *
  5831. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  5832. * enum qca_wlan_vendor_attr_loc_capa_flags.
  5833. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  5834. * of measurement sessions that can run concurrently.
  5835. * Default is one session (no session concurrency).
  5836. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  5837. * peers that are supported in running sessions. For example,
  5838. * if the value is 8 and maximum number of sessions is 2, you can
  5839. * have one session with 8 unique peers, or 2 sessions with 4 unique
  5840. * peers each, and so on.
  5841. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  5842. * of bursts per peer, as an exponent (2^value). Default is 0,
  5843. * meaning no multi-burst support.
  5844. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  5845. * of measurement exchanges allowed in a single burst.
  5846. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  5847. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  5848. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  5849. */
  5850. enum qca_wlan_vendor_attr_loc_capa {
  5851. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  5852. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  5853. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  5854. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  5855. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  5856. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  5857. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  5858. /* keep last */
  5859. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  5860. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  5861. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  5862. };
  5863. /**
  5864. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  5865. *
  5866. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  5867. * can be configured as an FTM responder (for example, an AP that
  5868. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  5869. * will be supported if set.
  5870. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  5871. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  5872. * will be supported if set.
  5873. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  5874. * supports immediate (ASAP) response.
  5875. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  5876. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  5877. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  5878. * requesting AOA measurements as part of an FTM session.
  5879. */
  5880. enum qca_wlan_vendor_attr_loc_capa_flags {
  5881. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  5882. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  5883. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  5884. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  5885. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  5886. };
  5887. /**
  5888. * enum qca_wlan_ani_setting - ANI setting type
  5889. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  5890. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  5891. */
  5892. enum qca_wlan_ani_setting {
  5893. QCA_WLAN_ANI_SETTING_AUTO = 0,
  5894. QCA_WLAN_ANI_SETTING_FIXED = 1,
  5895. };
  5896. /**
  5897. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  5898. *
  5899. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  5900. * Channel number on which Access Point should restart.
  5901. * Note: If both the driver and user space application supports the 6 GHz band,
  5902. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  5903. * should be used.
  5904. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  5905. * is still used if either of the driver or user space application doesn't
  5906. * support the 6 GHz band.
  5907. *
  5908. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  5909. * Nested attribute to hold list of center frequencies on which AP is
  5910. * expected to operate. This is irrespective of ACS configuration.
  5911. * This list is a priority based one and is looked for before the AP is
  5912. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  5913. * co-exist in the system.
  5914. *
  5915. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  5916. * Channel center frequency (MHz) on which the access point should restart.
  5917. */
  5918. enum qca_wlan_vendor_attr_sap_config {
  5919. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  5920. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  5921. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  5922. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  5923. /* Keep last */
  5924. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  5925. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  5926. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  5927. };
  5928. /**
  5929. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  5930. * a single peer in a measurement session.
  5931. *
  5932. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  5933. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  5934. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  5935. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  5936. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  5937. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  5938. * list of supported attributes.
  5939. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  5940. * secure measurement.
  5941. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  5942. * measurement every <value> bursts. If 0 or not specified,
  5943. * AOA measurements will be disabled for this peer.
  5944. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  5945. * the measurement frames are exchanged. Optional; if not
  5946. * specified, try to locate the peer in the kernel scan
  5947. * results cache and use frequency from there.
  5948. */
  5949. enum qca_wlan_vendor_attr_ftm_peer_info {
  5950. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  5951. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  5952. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  5953. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  5954. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  5955. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  5956. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  5957. /* keep last */
  5958. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  5959. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  5960. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  5961. };
  5962. /**
  5963. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  5964. * per-peer
  5965. *
  5966. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  5967. * immediate (ASAP) response from peer.
  5968. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  5969. * LCI report from peer. The LCI report includes the absolute
  5970. * location of the peer in "official" coordinates (similar to GPS).
  5971. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  5972. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  5973. * Location civic report from peer. The LCR includes the location
  5974. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  5975. * 11.24.6.7 for more information.
  5976. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  5977. * request a secure measurement.
  5978. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  5979. */
  5980. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  5981. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  5982. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  5983. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  5984. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  5985. };
  5986. /**
  5987. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  5988. *
  5989. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  5990. * to perform in a single burst.
  5991. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  5992. * perform, specified as an exponent (2^value).
  5993. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  5994. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  5995. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  5996. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  5997. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  5998. */
  5999. enum qca_wlan_vendor_attr_ftm_meas_param {
  6000. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6001. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6002. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6003. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6004. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6005. /* keep last */
  6006. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6007. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6008. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6009. };
  6010. /**
  6011. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6012. *
  6013. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6014. * peer.
  6015. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6016. * request for this peer.
  6017. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6018. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6019. * to measurement results for this peer.
  6020. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6021. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6022. * request failed and peer requested not to send an additional request
  6023. * for this number of seconds.
  6024. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6025. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6026. * 9.4.2.22.10.
  6027. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6028. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6029. * 9.4.2.22.13.
  6030. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6031. * overridden some measurement request parameters. See
  6032. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6033. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6034. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6035. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6036. * results. Each entry is a nested attribute defined
  6037. * by enum qca_wlan_vendor_attr_ftm_meas.
  6038. */
  6039. enum qca_wlan_vendor_attr_ftm_peer_result {
  6040. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6041. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6042. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6043. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6044. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6045. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6046. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6047. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6048. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6049. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6050. /* keep last */
  6051. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  6052. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  6053. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  6054. };
  6055. /**
  6056. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  6057. *
  6058. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  6059. * will be provided. Peer may have overridden some measurement parameters,
  6060. * in which case overridden parameters will be report by
  6061. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  6062. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  6063. * of performing the measurement request. No more results will be sent
  6064. * for this peer in this session.
  6065. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  6066. * failed, and requested not to send an additional request for number
  6067. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  6068. * attribute.
  6069. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  6070. * failed. Request was not sent over the air.
  6071. */
  6072. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  6073. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  6074. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  6075. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  6076. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  6077. };
  6078. /**
  6079. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  6080. * for measurement result, per-peer
  6081. *
  6082. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  6083. * measurement completed for this peer. No more results will be reported
  6084. * for this peer in this session.
  6085. */
  6086. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  6087. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  6088. };
  6089. /**
  6090. * enum qca_vendor_attr_loc_session_status: Session completion status code
  6091. *
  6092. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  6093. * successfully.
  6094. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  6095. * by request.
  6096. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  6097. * was invalid and was not started.
  6098. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  6099. * and did not complete normally (for example out of resources).
  6100. */
  6101. enum qca_vendor_attr_loc_session_status {
  6102. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  6103. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  6104. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  6105. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  6106. };
  6107. /**
  6108. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  6109. *
  6110. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  6111. * recorded by responder, in picoseconds.
  6112. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6113. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  6114. * initiator, in picoseconds.
  6115. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6116. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  6117. * initiator, in picoseconds.
  6118. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6119. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  6120. * responder, in picoseconds.
  6121. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6122. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  6123. * during this measurement exchange. Optional and will be provided if
  6124. * the hardware can measure it.
  6125. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  6126. * responder. Not always provided.
  6127. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6128. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  6129. * responder. Not always provided.
  6130. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6131. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  6132. * initiator. Not always provided.
  6133. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6134. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  6135. * initiator. Not always provided.
  6136. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6137. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  6138. */
  6139. enum qca_wlan_vendor_attr_ftm_meas {
  6140. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  6141. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  6142. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  6143. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  6144. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  6145. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  6146. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  6147. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  6148. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  6149. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  6150. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  6151. /* keep last */
  6152. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  6153. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  6154. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  6155. };
  6156. /**
  6157. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  6158. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  6159. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  6160. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  6161. * of the social channels.
  6162. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  6163. * A 32-bit unsigned value; the P2P listen offload period (ms).
  6164. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  6165. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  6166. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  6167. * A 32-bit unsigned value; number of interval times the Firmware needs
  6168. * to run the offloaded P2P listen operation before it stops.
  6169. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  6170. * An array of unsigned 8-bit characters; vendor information elements.
  6171. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  6172. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  6173. * A 32-bit unsigned value; a control flag to indicate whether listen
  6174. * results need to be flushed to wpa_supplicant.
  6175. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  6176. * A 8-bit unsigned value; reason code for P2P listen offload stop
  6177. * event.
  6178. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  6179. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  6180. */
  6181. enum qca_wlan_vendor_attr_p2p_listen_offload {
  6182. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  6183. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  6184. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  6185. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  6186. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  6187. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  6188. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  6189. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  6190. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  6191. /* keep last */
  6192. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  6193. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  6194. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  6195. };
  6196. /**
  6197. * enum qca_wlan_vendor_drv_info - WLAN driver info
  6198. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  6199. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  6200. * between Firmware & Host.
  6201. */
  6202. enum qca_wlan_vendor_drv_info {
  6203. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  6204. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  6205. /* keep last */
  6206. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  6207. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  6208. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  6209. };
  6210. /**
  6211. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  6212. *
  6213. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  6214. * CIR (channel impulse response) path for each antenna.
  6215. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  6216. * of the strongest CIR path for each antenna.
  6217. */
  6218. enum qca_wlan_vendor_attr_aoa_type {
  6219. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  6220. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  6221. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  6222. };
  6223. /**
  6224. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  6225. * validate encryption engine
  6226. *
  6227. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  6228. * This will be included if the request is for decryption; if not included,
  6229. * the request is treated as a request for encryption by default.
  6230. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  6231. * indicating the key cipher suite. Takes same values as
  6232. * NL80211_ATTR_KEY_CIPHER.
  6233. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  6234. * Key Id to be used for encryption
  6235. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  6236. * Key (TK) to be used for encryption/decryption
  6237. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  6238. * Packet number to be specified for encryption/decryption
  6239. * 6 bytes for TKIP/CCMP/GCMP.
  6240. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  6241. * representing the 802.11 packet (header + payload + FCS) that
  6242. * needs to be encrypted/decrypted.
  6243. * Encrypted/decrypted response from the driver will also be sent
  6244. * to userspace with the same attribute.
  6245. */
  6246. enum qca_wlan_vendor_attr_encryption_test {
  6247. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  6248. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  6249. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  6250. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  6251. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  6252. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  6253. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  6254. /* keep last */
  6255. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  6256. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  6257. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  6258. };
  6259. /**
  6260. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  6261. * sector for DMG RF sector operations.
  6262. *
  6263. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  6264. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  6265. */
  6266. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  6267. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  6268. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  6269. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  6270. };
  6271. /**
  6272. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  6273. *
  6274. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  6275. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  6276. */
  6277. enum qca_wlan_vendor_attr_fw_state {
  6278. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  6279. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  6280. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  6281. };
  6282. /**
  6283. * BRP antenna limit mode
  6284. *
  6285. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  6286. * antenna limit, BRP will be performed as usual.
  6287. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  6288. * antennas limit. the hardware may use less antennas than the
  6289. * maximum limit.
  6290. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  6291. * use exactly the specified number of antennas for BRP.
  6292. */
  6293. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  6294. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  6295. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  6296. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  6297. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  6298. };
  6299. /**
  6300. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  6301. * DMG RF sector configuration for a single RF module.
  6302. * The values are defined in a compact way which closely matches
  6303. * the way it is stored in HW registers.
  6304. * The configuration provides values for 32 antennas and 8 distribution
  6305. * amplifiers, and together describes the characteristics of the RF
  6306. * sector - such as a beam in some direction with some gain.
  6307. *
  6308. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  6309. * of RF module for this configuration.
  6310. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  6311. * amplifier gain index. Unsigned 32 bit number containing
  6312. * bits for all 32 antennas.
  6313. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  6314. * amplifier gain index. Unsigned 32 bit number containing
  6315. * bits for all 32 antennas.
  6316. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  6317. * amplifier gain index. Unsigned 32 bit number containing
  6318. * bits for all 32 antennas.
  6319. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  6320. * for first 16 antennas, 2 bits per antenna.
  6321. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  6322. * for last 16 antennas, 2 bits per antenna.
  6323. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  6324. * DTYPE values (3 bits) for each distribution amplifier, followed
  6325. * by X16 switch bits for each distribution amplifier. There are
  6326. * total of 8 distribution amplifiers.
  6327. */
  6328. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  6329. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  6330. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  6331. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  6332. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  6333. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  6334. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  6335. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  6336. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  6337. /* keep last */
  6338. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  6339. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  6340. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  6341. };
  6342. /**
  6343. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  6344. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  6345. *
  6346. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  6347. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  6348. * represents the different TDLS trigger modes.
  6349. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  6350. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  6351. * of packets shall meet the criteria for implicit TDLS setup.
  6352. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  6353. * packets within a duration.
  6354. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  6355. * a TDLS setup.
  6356. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
  6357. * a TDLS Discovery to the Peer.
  6358. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  6359. * discovery attempts to know the TDLS capability of the peer. A peer is
  6360. * marked as TDLS not capable if there is no response for all the attempts.
  6361. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  6362. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  6363. * number of TX / RX frames meet the criteria for TDLS teardown.
  6364. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  6365. * (u32) of Tx/Rx packets within a duration
  6366. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  6367. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  6368. * corresponding to the RSSI of the peer below which a TDLS
  6369. * setup is triggered.
  6370. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  6371. * corresponding to the RSSI of the peer above which
  6372. * a TDLS teardown is triggered.
  6373. */
  6374. enum qca_wlan_vendor_attr_tdls_configuration {
  6375. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  6376. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  6377. /* Attributes configuring the TDLS Implicit Trigger */
  6378. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  6379. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  6380. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  6381. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  6382. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  6383. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  6384. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  6385. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  6386. /* keep last */
  6387. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  6388. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  6389. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  6390. };
  6391. /**
  6392. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  6393. * the driver.
  6394. *
  6395. * The following are the different values for
  6396. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  6397. *
  6398. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  6399. * initiate/teardown the TDLS connection to a respective peer comes
  6400. * from the user space. wpa_supplicant provides the commands
  6401. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  6402. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  6403. * setup/teardown to the eligible peer once the configured criteria
  6404. * (such as TX/RX threshold, RSSI) is met. The attributes
  6405. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  6406. * the different configuration criteria for the TDLS trigger from the
  6407. * host driver.
  6408. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  6409. * the TDLS setup / teardown through the implicit mode, only to the
  6410. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  6411. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  6412. * External mode works on top of the implicit mode, thus the host Driver
  6413. * is expected to be configured in TDLS Implicit mode too to operate in
  6414. * External mode. Configuring External mode alone without Implicit
  6415. * mode is invalid.
  6416. *
  6417. * All the above implementations work as expected only when the host driver
  6418. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  6419. * representing that the TDLS message exchange is not internal to the host
  6420. * driver, but depends on wpa_supplicant to do the message exchange.
  6421. */
  6422. enum qca_wlan_vendor_tdls_trigger_mode {
  6423. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  6424. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  6425. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  6426. };
  6427. /**
  6428. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  6429. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  6430. * that is hard-coded in the Board Data File (BDF).
  6431. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  6432. * that is hard-coded in the Board Data File (BDF).
  6433. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  6434. * that is hard-coded in the Board Data File (BDF).
  6435. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  6436. * that is hard-coded in the Board Data File (BDF).
  6437. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  6438. * that is hard-coded in the Board Data File (BDF).
  6439. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  6440. * source of SAR power limits, thereby disabling the SAR power
  6441. * limit feature.
  6442. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  6443. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6444. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  6445. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6446. *
  6447. * This enumerates the valid set of values that may be supplied for
  6448. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  6449. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  6450. * the response to an instance of the
  6451. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6452. */
  6453. enum qca_vendor_attr_sar_limits_selections {
  6454. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  6455. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  6456. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  6457. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  6458. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  6459. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  6460. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  6461. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  6462. };
  6463. /**
  6464. * enum qca_vendor_attr_sar_limits_spec_modulations -
  6465. * SAR limits specification modulation
  6466. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  6467. * CCK modulation
  6468. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  6469. * OFDM modulation
  6470. *
  6471. * This enumerates the valid set of values that may be supplied for
  6472. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  6473. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  6474. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  6475. * command or in the response to an instance of the
  6476. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6477. */
  6478. enum qca_vendor_attr_sar_limits_spec_modulations {
  6479. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  6480. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  6481. };
  6482. /**
  6483. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  6484. *
  6485. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  6486. * select which SAR power limit table should be used. Valid
  6487. * values are enumerated in enum
  6488. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  6489. * power limit selection is unchanged if this attribute is not
  6490. * present.
  6491. *
  6492. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  6493. * which specifies the number of SAR power limit specifications
  6494. * which will follow.
  6495. *
  6496. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  6497. * limit specifications. The number of specifications is
  6498. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  6499. * specification contains a set of
  6500. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  6501. * specification is uniquely identified by the attributes
  6502. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  6503. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  6504. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  6505. * contains as a payload the attribute
  6506. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  6507. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  6508. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  6509. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  6510. * needed based upon the value of
  6511. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  6512. *
  6513. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  6514. * indicate for which band this specification applies. Valid
  6515. * values are enumerated in enum %nl80211_band (although not all
  6516. * bands may be supported by a given device). If the attribute is
  6517. * not supplied then the specification will be applied to all
  6518. * supported bands.
  6519. *
  6520. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  6521. * to indicate for which antenna chain this specification
  6522. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  6523. * attribute is not supplied then the specification will be
  6524. * applied to all chains.
  6525. *
  6526. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  6527. * value to indicate for which modulation scheme this
  6528. * specification applies. Valid values are enumerated in enum
  6529. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  6530. * is not supplied then the specification will be applied to all
  6531. * modulation schemes.
  6532. *
  6533. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  6534. * value to specify the actual power limit value in units of 0.5
  6535. * dBm (i.e., a value of 11 represents 5.5 dBm).
  6536. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6537. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  6538. *
  6539. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  6540. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  6541. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6542. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  6543. *
  6544. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  6545. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  6546. */
  6547. enum qca_vendor_attr_sar_limits {
  6548. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  6549. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  6550. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  6551. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  6552. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  6553. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  6554. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  6555. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  6556. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  6557. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  6558. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  6559. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  6560. };
  6561. /**
  6562. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  6563. * offload which is an extension for LL_STATS.
  6564. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  6565. * If MAC counters do not exceed the threshold, FW will report monitored
  6566. * link layer counters periodically as this setting. The first report is
  6567. * always triggered by this timer.
  6568. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  6569. * For each MAC layer counter, FW holds two copies. One is the current value.
  6570. * The other is the last report. Once a current counter's increment is larger
  6571. * than the threshold, FW will indicate that counter to host even if the
  6572. * monitoring timer does not expire.
  6573. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  6574. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  6575. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  6576. * failure code.
  6577. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  6578. * 1: TX packet discarded
  6579. * 2: No ACK
  6580. * 3: Postpone
  6581. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  6582. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  6583. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  6584. * Threshold for all monitored parameters. If per counter dedicated threshold
  6585. * is not enabled, this threshold will take effect.
  6586. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  6587. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  6588. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  6589. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  6590. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  6591. * Bit0: TX counter unit in MSDU
  6592. * Bit1: TX counter unit in MPDU
  6593. * Bit2: TX counter unit in PPDU
  6594. * Bit3: TX counter unit in byte
  6595. * Bit4: Dropped MSDUs
  6596. * Bit5: Dropped Bytes
  6597. * Bit6: MPDU retry counter
  6598. * Bit7: MPDU failure counter
  6599. * Bit8: PPDU failure counter
  6600. * Bit9: MPDU aggregation counter
  6601. * Bit10: MCS counter for ACKed MPDUs
  6602. * Bit11: MCS counter for Failed MPDUs
  6603. * Bit12: TX Delay counter
  6604. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  6605. * Bit0: MAC RX counter unit in MPDU
  6606. * Bit1: MAC RX counter unit in byte
  6607. * Bit2: PHY RX counter unit in PPDU
  6608. * Bit3: PHY RX counter unit in byte
  6609. * Bit4: Disorder counter
  6610. * Bit5: Retry counter
  6611. * Bit6: Duplication counter
  6612. * Bit7: Discard counter
  6613. * Bit8: MPDU aggregation size counter
  6614. * Bit9: MCS counter
  6615. * Bit10: Peer STA power state change (wake to sleep) counter
  6616. * Bit11: Peer STA power save counter, total time in PS mode
  6617. * Bit12: Probe request counter
  6618. * Bit13: Other management frames counter
  6619. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  6620. * Bit0: Idle time
  6621. * Bit1: TX time
  6622. * Bit2: time RX in current bss
  6623. * Bit3: Out of current bss time
  6624. * Bit4: Wireless medium busy time
  6625. * Bit5: RX in bad condition time
  6626. * Bit6: TX in bad condition time
  6627. * Bit7: time wlan card not available
  6628. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  6629. * Bit0: Per channel SNR counter
  6630. * Bit1: Per channel noise floor counter
  6631. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  6632. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  6633. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  6634. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  6635. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  6636. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  6637. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  6638. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  6639. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  6640. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  6641. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  6642. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  6643. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  6644. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  6645. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  6646. * aggregation stats buffer length
  6647. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  6648. * buffer for ACKed MPDUs.
  6649. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  6650. * buffer for failed MPDUs.
  6651. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  6652. * length of delay stats array.
  6653. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  6654. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  6655. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  6656. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  6657. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  6658. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  6659. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  6660. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  6661. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  6662. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  6663. * flagged as retransmissions
  6664. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  6665. * flagged as duplicated
  6666. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  6667. * packets discarded
  6668. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  6669. * stats buffer.
  6670. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  6671. * stats buffer.
  6672. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  6673. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  6674. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  6675. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  6676. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  6677. * requests received
  6678. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  6679. * frames received
  6680. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  6681. * there is no TX, nor RX, nor interference.
  6682. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  6683. * transmitting packets.
  6684. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  6685. * for receiving.
  6686. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  6687. * interference detected.
  6688. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  6689. * receiving packets with errors.
  6690. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  6691. * TX no-ACK.
  6692. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  6693. * the chip is unable to work in normal conditions.
  6694. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  6695. * receiving packets in current BSS.
  6696. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  6697. * receiving packets not in current BSS.
  6698. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  6699. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  6700. * This is a container for per antenna signal stats.
  6701. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  6702. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  6703. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  6704. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  6705. */
  6706. enum qca_wlan_vendor_attr_ll_stats_ext {
  6707. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  6708. /* Attributes for configurations */
  6709. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  6710. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  6711. /* Peer STA power state change */
  6712. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  6713. /* TX failure event */
  6714. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  6715. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  6716. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  6717. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  6718. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  6719. /* MAC counters */
  6720. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  6721. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  6722. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  6723. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  6724. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  6725. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  6726. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  6727. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  6728. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  6729. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  6730. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  6731. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  6732. /* Sub-attributes for PEER_AC_TX */
  6733. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  6734. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  6735. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  6736. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  6737. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  6738. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  6739. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  6740. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  6741. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  6742. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  6743. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  6744. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  6745. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  6746. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  6747. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  6748. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  6749. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  6750. /* Sub-attributes for PEER_AC_RX */
  6751. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  6752. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  6753. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  6754. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  6755. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  6756. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  6757. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  6758. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  6759. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  6760. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  6761. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  6762. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  6763. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  6764. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  6765. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  6766. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  6767. /* Sub-attributes for CCA_BSS */
  6768. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  6769. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  6770. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  6771. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  6772. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  6773. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  6774. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  6775. /* sub-attribute for BSS_RX_TIME */
  6776. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  6777. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  6778. /* Sub-attributes for PEER_SIGNAL */
  6779. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  6780. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  6781. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  6782. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  6783. /* Sub-attributes for IFACE_BSS */
  6784. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  6785. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  6786. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  6787. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  6788. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  6789. };
  6790. /**
  6791. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  6792. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  6793. * in priority order as decided after ACS operation in userspace.
  6794. *
  6795. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  6796. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  6797. *
  6798. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  6799. * Array of nested values for each channel with following attributes:
  6800. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  6801. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  6802. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  6803. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  6804. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  6805. * Note: If both the driver and user-space application supports the 6 GHz band,
  6806. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  6807. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  6808. * To maintain backward compatibility,
  6809. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  6810. * is still used if either of the driver or user space application doesn't
  6811. * support the 6 GHz band.
  6812. *
  6813. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  6814. * Primary channel number
  6815. * Note: If both the driver and user-space application supports the 6 GHz band,
  6816. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  6817. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  6818. * To maintain backward compatibility,
  6819. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  6820. * is still used if either of the driver or user space application doesn't
  6821. * support the 6 GHz band.
  6822. *
  6823. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  6824. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  6825. * Note: If both the driver and user-space application supports the 6 GHz band,
  6826. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  6827. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  6828. * To maintain backward compatibility,
  6829. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  6830. * is still used if either of the driver or user space application
  6831. * doesn't support the 6 GHz band.
  6832. *
  6833. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  6834. * VHT seg0 channel number
  6835. * Note: If both the driver and user-space application supports the 6 GHz band,
  6836. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  6837. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  6838. * To maintain backward compatibility,
  6839. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  6840. * is still used if either of the driver or user space application
  6841. * doesn't support the 6 GHz band.
  6842. *
  6843. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  6844. * VHT seg1 channel number
  6845. * Note: If both the driver and user-space application supports the 6 GHz band,
  6846. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  6847. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  6848. * To maintain backward compatibility,
  6849. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  6850. * is still used if either of the driver or user space application
  6851. * doesn't support the 6 GHz band.
  6852. *
  6853. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  6854. * Takes one of enum nl80211_chan_width values.
  6855. *
  6856. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  6857. * Array of nested values for each channel with following attributes:
  6858. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  6859. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  6860. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  6861. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  6862. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  6863. * Note: If user-space application has no support of the 6 GHz band, this
  6864. * attribute is optional.
  6865. *
  6866. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  6867. * Primary channel frequency in MHz
  6868. * Note: If user-space application has no support of the 6 GHz band, this
  6869. * attribute is optional.
  6870. *
  6871. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  6872. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  6873. * Note: If user-space application has no support of the 6 GHz band, this
  6874. * attribute is optional.
  6875. *
  6876. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  6877. * VHT seg0 channel frequency in MHz
  6878. * Note: If user-space application has no support of the 6GHz band, this
  6879. * attribute is optional.
  6880. *
  6881. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  6882. * VHT seg1 channel frequency in MHz
  6883. * Note: If user-space application has no support of the 6 GHz band, this
  6884. * attribute is optional.
  6885. */
  6886. enum qca_wlan_vendor_attr_external_acs_channels {
  6887. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  6888. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  6889. */
  6890. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  6891. /* Array of nested values for each channel with following attributes:
  6892. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  6893. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  6894. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  6895. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  6896. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  6897. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  6898. */
  6899. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  6900. /* This (u8) will hold values of one of enum nl80211_bands */
  6901. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  6902. /* Primary channel (u8) */
  6903. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  6904. /* Secondary channel (u8) used for HT 40 MHz channels */
  6905. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  6906. /* VHT seg0 channel (u8) */
  6907. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  6908. /* VHT seg1 channel (u8) */
  6909. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  6910. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  6911. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  6912. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  6913. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  6914. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  6915. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  6916. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  6917. /* keep last */
  6918. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  6919. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  6920. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  6921. };
  6922. /**
  6923. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  6924. * the ACS has to be triggered. These values are used by
  6925. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  6926. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  6927. */
  6928. enum qca_wlan_vendor_acs_select_reason {
  6929. /* Represents the reason that the ACS triggered during the AP start */
  6930. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  6931. /* Represents the reason that DFS found with the current channel */
  6932. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  6933. /* Represents the reason that LTE co-exist in the current band. */
  6934. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  6935. /* Represents the reason that generic, uncategorized interference has
  6936. * been found in the current channel.
  6937. */
  6938. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  6939. /* Represents the reason that excessive 802.11 interference has been
  6940. * found in the current channel.
  6941. */
  6942. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  6943. /* Represents the reason that generic Continuous Wave (CW) interference
  6944. * has been found in the current channel.
  6945. */
  6946. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  6947. /* Represents the reason that Microwave Oven (MWO) interference has been
  6948. * found in the current channel.
  6949. */
  6950. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  6951. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  6952. * (FHSS) interference has been found in the current channel. This may
  6953. * include 802.11 waveforms.
  6954. */
  6955. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  6956. /* Represents the reason that non-802.11 generic Frequency-Hopping
  6957. * Spread Spectrum (FHSS) interference has been found in the current
  6958. * channel.
  6959. */
  6960. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  6961. /* Represents the reason that generic Wideband (WB) interference has
  6962. * been found in the current channel. This may include 802.11 waveforms.
  6963. */
  6964. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  6965. /* Represents the reason that non-802.11 generic Wideband (WB)
  6966. * interference has been found in the current channel.
  6967. */
  6968. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  6969. /* Represents the reason that Jammer interference has been found in the
  6970. * current channel.
  6971. */
  6972. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  6973. /* Represents the reason that ACS triggered by AFC */
  6974. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  6975. };
  6976. /**
  6977. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  6978. *
  6979. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  6980. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  6981. * to get the available value that this item can use.
  6982. *
  6983. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  6984. * value to specify the gpio number.
  6985. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6986. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  6987. *
  6988. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  6989. * value to specify the gpio output level, please refer to enum qca_gpio_value
  6990. * to get the available value that this item can use.
  6991. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6992. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  6993. *
  6994. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  6995. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  6996. * to get the available value that this item can use.
  6997. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6998. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  6999. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7000. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7001. * attribute is present.
  7002. *
  7003. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7004. * value to specify the gpio interrupt mode, please refer to enum
  7005. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7006. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7007. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7008. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7009. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7010. * attribute is present.
  7011. *
  7012. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7013. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7014. * to get the available value that this item can use.
  7015. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7016. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7017. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7018. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7019. * attribute is present.
  7020. *
  7021. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7022. * Value to specify the mux config. Meaning of a given value is dependent
  7023. * on the target chipset and gpio pin. Must be of the range 0-15.
  7024. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7025. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7026. *
  7027. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7028. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7029. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7030. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7031. *
  7032. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7033. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7034. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7035. * other parameters for the given GPIO will be obtained from internal
  7036. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7037. * specified to indicate the GPIO pin being configured.
  7038. */
  7039. enum qca_wlan_gpio_attr {
  7040. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7041. /* Unsigned 32-bit attribute for GPIO command */
  7042. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7043. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7044. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  7045. /* Unsigned 32-bit attribute for GPIO value to configure */
  7046. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  7047. /* Unsigned 32-bit attribute for GPIO pull type */
  7048. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  7049. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  7050. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  7051. /* Unsigned 32-bit attribute for GPIO direction to configure */
  7052. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  7053. /* Unsigned 32-bit attribute for GPIO mux config */
  7054. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  7055. /* Unsigned 32-bit attribute for GPIO drive */
  7056. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  7057. /* Flag attribute for using internal gpio configuration */
  7058. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  7059. /* keep last */
  7060. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  7061. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  7062. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  7063. };
  7064. /**
  7065. * enum gpio_cmd_type - GPIO configuration command type
  7066. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  7067. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  7068. */
  7069. enum qca_gpio_cmd_type {
  7070. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  7071. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  7072. };
  7073. /**
  7074. * enum qca_gpio_pull_type - GPIO pull type
  7075. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  7076. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  7077. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  7078. */
  7079. enum qca_gpio_pull_type {
  7080. QCA_WLAN_GPIO_PULL_NONE = 0,
  7081. QCA_WLAN_GPIO_PULL_UP = 1,
  7082. QCA_WLAN_GPIO_PULL_DOWN = 2,
  7083. QCA_WLAN_GPIO_PULL_MAX,
  7084. };
  7085. /**
  7086. * enum qca_gpio_direction - GPIO direction
  7087. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  7088. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  7089. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  7090. */
  7091. enum qca_gpio_direction {
  7092. QCA_WLAN_GPIO_INPUT = 0,
  7093. QCA_WLAN_GPIO_OUTPUT = 1,
  7094. QCA_WLAN_GPIO_DIR_MAX,
  7095. };
  7096. /**
  7097. * enum qca_gpio_value - GPIO Value
  7098. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  7099. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  7100. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  7101. */
  7102. enum qca_gpio_value {
  7103. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  7104. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  7105. QCA_WLAN_GPIO_LEVEL_MAX,
  7106. };
  7107. /**
  7108. * enum gpio_interrupt_mode - GPIO interrupt mode
  7109. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  7110. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  7111. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  7112. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  7113. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  7114. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  7115. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  7116. */
  7117. enum qca_gpio_interrupt_mode {
  7118. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  7119. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  7120. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  7121. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  7122. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  7123. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  7124. QCA_WLAN_GPIO_INTMODE_MAX,
  7125. };
  7126. /**
  7127. * enum gpio_drive - GPIO drive
  7128. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  7129. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  7130. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  7131. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  7132. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  7133. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  7134. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  7135. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  7136. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  7137. */
  7138. enum qca_gpio_drive {
  7139. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  7140. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  7141. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  7142. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  7143. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  7144. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  7145. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  7146. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  7147. QCA_WLAN_GPIO_DRIVE_MAX,
  7148. };
  7149. /**
  7150. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  7151. * MSDUQ depth threshold per peer per tid in the target
  7152. *
  7153. * Associated Vendor Command:
  7154. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  7155. */
  7156. enum qca_wlan_set_qdepth_thresh_attr {
  7157. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  7158. /* 6-byte MAC address */
  7159. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  7160. /* Unsigned 32-bit attribute for holding the TID */
  7161. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  7162. /* Unsigned 32-bit attribute for holding the update mask
  7163. * bit 0 - Update high priority msdu qdepth threshold
  7164. * bit 1 - Update low priority msdu qdepth threshold
  7165. * bit 2 - Update UDP msdu qdepth threshold
  7166. * bit 3 - Update Non UDP msdu qdepth threshold
  7167. * rest of bits are reserved
  7168. */
  7169. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  7170. /* Unsigned 32-bit attribute for holding the threshold value */
  7171. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  7172. /* keep last */
  7173. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  7174. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  7175. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  7176. };
  7177. /**
  7178. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  7179. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  7180. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  7181. * external ACS policies to select the channels w.r.t. the PCL weights.
  7182. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  7183. * their PCL weights.)
  7184. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  7185. * select a channel with non-zero PCL weight.
  7186. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  7187. * channel with non-zero PCL weight.
  7188. *
  7189. */
  7190. enum qca_wlan_vendor_attr_external_acs_policy {
  7191. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  7192. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  7193. };
  7194. /**
  7195. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  7196. */
  7197. enum qca_wlan_vendor_attr_spectral_scan {
  7198. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  7199. /*
  7200. * Number of times the chip enters spectral scan mode before
  7201. * deactivating spectral scans. When set to 0, chip will enter spectral
  7202. * scan mode continuously. u32 attribute.
  7203. */
  7204. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  7205. /*
  7206. * Spectral scan period. Period increment resolution is 256*Tclk,
  7207. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  7208. */
  7209. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  7210. /* Spectral scan priority. u32 attribute. */
  7211. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  7212. /* Number of FFT data points to compute. u32 attribute. */
  7213. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  7214. /*
  7215. * Enable targeted gain change before starting the spectral scan FFT.
  7216. * u32 attribute.
  7217. */
  7218. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  7219. /* Restart a queued spectral scan. u32 attribute. */
  7220. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  7221. /*
  7222. * Noise floor reference number for the calculation of bin power.
  7223. * u32 attribute.
  7224. */
  7225. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  7226. /*
  7227. * Disallow spectral scan triggers after TX/RX packets by setting
  7228. * this delay value to roughly SIFS time period or greater.
  7229. * u32 attribute.
  7230. */
  7231. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  7232. /*
  7233. * Number of strong bins (inclusive) per sub-channel, below
  7234. * which a signal is declared a narrow band tone. u32 attribute.
  7235. */
  7236. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  7237. /*
  7238. * Specify the threshold over which a bin is declared strong (for
  7239. * scan bandwidth analysis). u32 attribute.
  7240. */
  7241. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  7242. /* Spectral scan report mode. u32 attribute. */
  7243. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  7244. /*
  7245. * RSSI report mode, if the ADC RSSI is below
  7246. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  7247. * then FFTs will not trigger, but timestamps and summaries get
  7248. * reported. u32 attribute.
  7249. */
  7250. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  7251. /*
  7252. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  7253. * to ensure spectral scan reporting with normal error code.
  7254. * u32 attribute.
  7255. */
  7256. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  7257. /*
  7258. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  7259. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  7260. * u32 attribute.
  7261. */
  7262. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  7263. /*
  7264. * Format of FFT report to software for spectral scan triggered FFTs.
  7265. * 0: No FFT report (only spectral scan summary report)
  7266. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  7267. * report
  7268. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  7269. * bins (in-band) per FFT + spectral scan summary report
  7270. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  7271. * bins (all) per FFT + spectral scan summary report
  7272. * u32 attribute.
  7273. */
  7274. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  7275. /*
  7276. * Number of LSBs to shift out in order to scale the FFT bins.
  7277. * u32 attribute.
  7278. */
  7279. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  7280. /*
  7281. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  7282. * in dBm power. u32 attribute.
  7283. */
  7284. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  7285. /*
  7286. * Per chain enable mask to select input ADC for search FFT.
  7287. * u32 attribute.
  7288. */
  7289. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  7290. /*
  7291. * An unsigned 64-bit integer provided by host driver to identify the
  7292. * spectral scan request. This attribute is included in the scan
  7293. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  7294. * and used as an attribute in
  7295. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  7296. * specific scan to be stopped.
  7297. */
  7298. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  7299. /* Skip interval for FFT reports. u32 attribute */
  7300. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  7301. /* Set to report only one set of FFT results.
  7302. * u32 attribute.
  7303. */
  7304. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  7305. /* Debug level for spectral module in driver.
  7306. * 0 : Verbosity level 0
  7307. * 1 : Verbosity level 1
  7308. * 2 : Verbosity level 2
  7309. * 3 : Matched filterID display
  7310. * 4 : One time dump of FFT report
  7311. * u32 attribute.
  7312. */
  7313. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  7314. /* Type of spectral scan request. u32 attribute.
  7315. * It uses values defined in enum
  7316. * qca_wlan_vendor_attr_spectral_scan_request_type.
  7317. */
  7318. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  7319. /* This specifies the frequency span over which spectral
  7320. * scan would be carried out. Its value depends on the
  7321. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  7322. * the relation is as follows.
  7323. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7324. * Not applicable. Spectral scan would happen in the
  7325. * operating span.
  7326. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7327. * Center frequency (in MHz) of the span of interest or
  7328. * for convenience, center frequency (in MHz) of any channel
  7329. * in the span of interest. For 80+80 MHz agile spectral scan
  7330. * request it represents center frequency (in MHz) of the primary
  7331. * 80 MHz span or for convenience, center frequency (in MHz) of any
  7332. * channel in the primary 80 MHz span. If agile spectral scan is
  7333. * initiated without setting a valid frequency it returns the
  7334. * error code
  7335. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  7336. * u32 attribute.
  7337. */
  7338. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  7339. /* Spectral scan mode. u32 attribute.
  7340. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7341. * If this attribute is not present, it is assumed to be
  7342. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  7343. */
  7344. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  7345. /* Spectral scan error code. u32 attribute.
  7346. * It uses values defined in enum
  7347. * qca_wlan_vendor_spectral_scan_error_code.
  7348. * This attribute is included only in failure scenarios.
  7349. */
  7350. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  7351. /* 8-bit unsigned value to enable/disable debug of the
  7352. * Spectral DMA ring.
  7353. * 1-enable, 0-disable
  7354. */
  7355. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  7356. /* 8-bit unsigned value to enable/disable debug of the
  7357. * Spectral DMA buffers.
  7358. * 1-enable, 0-disable
  7359. */
  7360. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  7361. /* This specifies the frequency span over which spectral scan would be
  7362. * carried out. Its value depends on the value of
  7363. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  7364. * follows.
  7365. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7366. * Not applicable. Spectral scan would happen in the operating span.
  7367. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7368. * This attribute is applicable only for agile spectral scan
  7369. * requests in 80+80 MHz mode. It represents center frequency (in
  7370. * MHz) of the secondary 80 MHz span or for convenience, center
  7371. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  7372. * u32 attribute.
  7373. */
  7374. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  7375. /* This attribute specifies the bandwidth to be used for Spectral scan
  7376. * operation. This is an u8 attribute and uses the values in enum
  7377. * nl80211_chan_width. This is an optional attribute.
  7378. * If this attribute is not populated, the driver should configure the
  7379. * Spectral scan bandwidth to the maximum value supported by the target
  7380. * for the current operating bandwidth.
  7381. */
  7382. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  7383. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  7384. * recapture. Recapture can only be enabled for Scan period greater
  7385. * than 52us.
  7386. * If this attribute is enabled, re-triggers will be enabled in uCode
  7387. * when AGC gain changes.
  7388. */
  7389. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  7390. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  7391. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  7392. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  7393. };
  7394. /**
  7395. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  7396. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  7397. */
  7398. enum qca_wlan_vendor_attr_spectral_diag_stats {
  7399. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  7400. /* Number of spectral TLV signature mismatches.
  7401. * u64 attribute.
  7402. */
  7403. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  7404. /* Number of spectral phyerror events with insufficient length when
  7405. * parsing for secondary 80 search FFT report. u64 attribute.
  7406. */
  7407. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  7408. /* Number of spectral phyerror events without secondary 80
  7409. * search FFT report. u64 attribute.
  7410. */
  7411. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  7412. /* Number of spectral phyerror events with vht operation segment 1 id
  7413. * mismatches in search fft report. u64 attribute.
  7414. */
  7415. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  7416. /* Number of spectral phyerror events with vht operation segment 2 id
  7417. * mismatches in search fft report. u64 attribute.
  7418. */
  7419. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  7420. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  7421. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  7422. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  7423. };
  7424. /**
  7425. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  7426. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  7427. */
  7428. enum qca_wlan_vendor_attr_spectral_cap {
  7429. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  7430. /* Flag attribute to indicate phydiag capability */
  7431. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  7432. /* Flag attribute to indicate radar detection capability */
  7433. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  7434. /* Flag attribute to indicate spectral capability */
  7435. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  7436. /* Flag attribute to indicate advanced spectral capability */
  7437. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  7438. /* Spectral hardware generation. u32 attribute.
  7439. * It uses values defined in enum
  7440. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  7441. */
  7442. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  7443. /* Spectral bin scaling formula ID. u16 attribute.
  7444. * It uses values defined in enum
  7445. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  7446. */
  7447. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  7448. /* Spectral bin scaling param - low level offset.
  7449. * s16 attribute.
  7450. */
  7451. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  7452. /* Spectral bin scaling param - high level offset.
  7453. * s16 attribute.
  7454. */
  7455. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  7456. /* Spectral bin scaling param - RSSI threshold.
  7457. * s16 attribute.
  7458. */
  7459. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  7460. /* Spectral bin scaling param - default AGC max gain.
  7461. * u8 attribute.
  7462. */
  7463. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  7464. /* Flag attribute to indicate agile spectral scan capability
  7465. * for 20/40/80 MHz modes.
  7466. */
  7467. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  7468. /* Flag attribute to indicate agile spectral scan capability
  7469. * for 160 MHz mode.
  7470. */
  7471. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  7472. /* Flag attribute to indicate agile spectral scan capability
  7473. * for 80+80 MHz mode.
  7474. */
  7475. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  7476. /* Number of spectral detectors used for scan in 20 MHz.
  7477. * u32 attribute.
  7478. */
  7479. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  7480. /* Number of spectral detectors used for scan in 40 MHz.
  7481. * u32 attribute.
  7482. */
  7483. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  7484. /* Number of spectral detectors used for scan in 80 MHz.
  7485. * u32 attribute.
  7486. */
  7487. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  7488. /* Number of spectral detectors used for scan in 160 MHz.
  7489. * u32 attribute.
  7490. */
  7491. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  7492. /* Number of spectral detectors used for scan in 80+80 MHz.
  7493. * u32 attribute.
  7494. */
  7495. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  7496. /* Flag attribute to indicate agile spectral scan capability
  7497. * for 320 MHz mode.
  7498. */
  7499. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  7500. /* Number of spectral detectors used for scan in 320 MHz.
  7501. * u32 attribute.
  7502. */
  7503. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  7504. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  7505. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  7506. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  7507. };
  7508. /**
  7509. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  7510. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  7511. */
  7512. enum qca_wlan_vendor_attr_spectral_scan_status {
  7513. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  7514. /* Flag attribute to indicate whether spectral scan is enabled */
  7515. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  7516. /* Flag attribute to indicate whether spectral scan is in progress*/
  7517. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  7518. /* Spectral scan mode. u32 attribute.
  7519. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7520. * If this attribute is not present, normal mode
  7521. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  7522. * requested.
  7523. */
  7524. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  7525. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  7526. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  7527. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  7528. };
  7529. /**
  7530. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  7531. * wlan latency module.
  7532. *
  7533. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  7534. * power saving which would causing data exchange out of service, this
  7535. * would be a big impact on latency. For latency sensitive applications over
  7536. * Wi-Fi are intolerant to such operations and thus would configure them
  7537. * to meet their respective needs. It is well understood by such applications
  7538. * that altering the default behavior would degrade the Wi-Fi functionality
  7539. * w.r.t the above pointed WLAN operations.
  7540. *
  7541. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  7542. * Default WLAN operation level which throughput orientated.
  7543. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  7544. * Use XR level to benefit XR (extended reality) application to achieve
  7545. * latency and power by via constraint scan/roaming/adaptive PS.
  7546. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  7547. * Use low latency level to benifit application like concurrent
  7548. * downloading or video streaming via constraint scan/adaptive PS.
  7549. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  7550. * Use ultra low latency level to benefit for gaming/voice
  7551. * application via constraint scan/roaming/adaptive PS.
  7552. */
  7553. enum qca_wlan_vendor_attr_config_latency_level {
  7554. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  7555. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  7556. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  7557. /* legacy name */
  7558. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  7559. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  7560. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  7561. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  7562. /* keep last */
  7563. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  7564. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  7565. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  7566. };
  7567. /**
  7568. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  7569. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  7570. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  7571. * spectral scan request types.
  7572. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  7573. * set the spectral parameters and start scan.
  7574. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  7575. * only set the spectral parameters.
  7576. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  7577. * only start the spectral scan.
  7578. */
  7579. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  7580. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  7581. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  7582. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  7583. };
  7584. /**
  7585. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  7586. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  7587. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  7588. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  7589. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  7590. * spectral scan modes.
  7591. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  7592. * spectral scan in the current operating span.
  7593. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  7594. * spectral scan in the configured agile span.
  7595. */
  7596. enum qca_wlan_vendor_spectral_scan_mode {
  7597. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  7598. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  7599. };
  7600. /**
  7601. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  7602. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  7603. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  7604. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  7605. * of a parameter is not supported.
  7606. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  7607. * mode is not supported.
  7608. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  7609. * has invalid value.
  7610. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  7611. * is not initialized.
  7612. */
  7613. enum qca_wlan_vendor_spectral_scan_error_code {
  7614. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  7615. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  7616. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  7617. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  7618. };
  7619. /**
  7620. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  7621. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  7622. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  7623. * spectral hardware generation.
  7624. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  7625. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  7626. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  7627. */
  7628. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  7629. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  7630. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  7631. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  7632. };
  7633. /**
  7634. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  7635. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  7636. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  7637. * Spectral bin scaling formula ID.
  7638. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  7639. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  7640. * and RSSI threshold based formula.
  7641. */
  7642. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  7643. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  7644. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  7645. };
  7646. /**
  7647. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  7648. * RF Operating Parameter (RROP) information is available, and if so, at which
  7649. * point in the application-driver interaction sequence it can be retrieved by
  7650. * the application from the driver. This point may vary by architecture and
  7651. * other factors. This is a u16 value.
  7652. */
  7653. enum qca_wlan_vendor_attr_rropavail_info {
  7654. /* RROP information is unavailable. */
  7655. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  7656. /* RROP information is available and the application can retrieve the
  7657. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  7658. * event from the driver.
  7659. */
  7660. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  7661. /* RROP information is available only after a vendor specific scan
  7662. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  7663. * successfully completed. The application can retrieve the information
  7664. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  7665. * the driver.
  7666. */
  7667. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  7668. };
  7669. /**
  7670. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  7671. * Representative RF Operating Parameter (RROP) information. It is sent for the
  7672. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  7673. * intended for use by external Auto Channel Selection applications. It provides
  7674. * guidance values for some RF parameters that are used by the system during
  7675. * operation. These values could vary by channel, band, radio, and so on.
  7676. */
  7677. enum qca_wlan_vendor_attr_rrop_info {
  7678. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  7679. /* Representative Tx Power List (RTPL) which has an array of nested
  7680. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  7681. */
  7682. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  7683. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  7684. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  7685. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  7686. };
  7687. /**
  7688. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  7689. * entry instances in the Representative Tx Power List (RTPL). It provides
  7690. * simplified power values intended for helping external Auto channel Selection
  7691. * applications compare potential Tx power performance between channels, other
  7692. * operating conditions remaining identical. These values are not necessarily
  7693. * the actual Tx power values that will be used by the system. They are also not
  7694. * necessarily the max or average values that will be used. Instead, they are
  7695. * relative, summarized keys for algorithmic use computed by the driver or
  7696. * underlying firmware considering a number of vendor specific factors.
  7697. */
  7698. enum qca_wlan_vendor_attr_rtplinst {
  7699. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  7700. /* Primary channel number (u8).
  7701. * Note: If both the driver and user space application support the
  7702. * 6 GHz band, this attribute is deprecated and
  7703. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  7704. * maintain backward compatibility,
  7705. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  7706. * driver or user space application or both do not support the 6 GHz
  7707. * band.
  7708. */
  7709. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  7710. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  7711. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  7712. /* Representative Tx power in dBm (s32) with emphasis on range. */
  7713. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  7714. /* Primary channel center frequency (u32) in MHz */
  7715. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  7716. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  7717. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  7718. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  7719. };
  7720. /**
  7721. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  7722. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  7723. *
  7724. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  7725. * array of nested values as per attributes in
  7726. * enum qca_wlan_vendor_attr_mac_mode_info.
  7727. */
  7728. enum qca_wlan_vendor_attr_mac {
  7729. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  7730. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  7731. /* keep last */
  7732. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  7733. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  7734. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  7735. };
  7736. /**
  7737. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  7738. * WiFi netdev interface on a respective MAC. Used by the attribute
  7739. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  7740. *
  7741. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  7742. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  7743. * the connected Wi-Fi interface(u32).
  7744. */
  7745. enum qca_wlan_vendor_attr_mac_iface_info {
  7746. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  7747. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  7748. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  7749. /* keep last */
  7750. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  7751. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  7752. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  7753. };
  7754. /**
  7755. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  7756. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  7757. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  7758. *
  7759. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  7760. * MAC (u32)
  7761. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  7762. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  7763. * in enum nl80211_band.
  7764. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  7765. * interfaces associated with this MAC. Represented by enum
  7766. * qca_wlan_vendor_attr_mac_iface_info.
  7767. */
  7768. enum qca_wlan_vendor_attr_mac_info {
  7769. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  7770. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  7771. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  7772. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  7773. /* keep last */
  7774. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  7775. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  7776. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  7777. };
  7778. /**
  7779. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  7780. * to get thermal status from driver/firmware.
  7781. * enum values are used for NL attributes encapsulated inside
  7782. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  7783. *
  7784. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  7785. * of a thermal level in Celsius. u32 size.
  7786. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  7787. * of a thermal level in Celsius. u32 size.
  7788. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  7789. * thermal level in milliseconds. u32 size.
  7790. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  7791. * of times the temperature crossed into the temperature range defined by the
  7792. * thermal level from both higher and lower directions. u32 size.
  7793. */
  7794. enum qca_wlan_vendor_attr_thermal_stats {
  7795. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  7796. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  7797. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  7798. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  7799. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  7800. /* keep last */
  7801. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  7802. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  7803. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  7804. };
  7805. /**
  7806. * enum he_fragmentation_val - HE fragmentation support values
  7807. * Indicates level of dynamic fragmentation that is supported by
  7808. * a STA as a recipient.
  7809. * HE fragmentation values are defined as per 11ax spec and are used in
  7810. * HE capability IE to advertise the support. These values are validated
  7811. * in the driver to check the device capability and advertised in the HE
  7812. * capability element.
  7813. *
  7814. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  7815. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  7816. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  7817. * within an A-MPDU that is not an S-MPDU.
  7818. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  7819. * contained within an MPDU or S-MPDU and support for up to one dynamic
  7820. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  7821. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  7822. * MPDU or S-MPDU.
  7823. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  7824. * contained within an MPDU or S-MPDU and support for multiple dynamic
  7825. * fragments for each MSDU and for each A-MSDU if supported by the
  7826. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  7827. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  7828. */
  7829. enum he_fragmentation_val {
  7830. HE_FRAG_DISABLE,
  7831. HE_FRAG_LEVEL1,
  7832. HE_FRAG_LEVEL2,
  7833. HE_FRAG_LEVEL3,
  7834. };
  7835. /**
  7836. * enum he_mcs_config - HE MCS support configuration
  7837. *
  7838. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  7839. * These values are used in driver to configure the HE MCS map to advertise
  7840. * Tx/Rx MCS map in HE capability and these values are applied for all the
  7841. * streams supported by the device. To configure MCS for different bandwidths,
  7842. * vendor command needs to be sent using this attribute with appropriate value.
  7843. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  7844. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  7845. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  7846. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  7847. *
  7848. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  7849. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  7850. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  7851. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  7852. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  7853. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  7854. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  7855. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  7856. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  7857. */
  7858. enum he_mcs_config {
  7859. HE_80_MCS0_7 = 0,
  7860. HE_80_MCS0_9 = 1,
  7861. HE_80_MCS0_11 = 2,
  7862. HE_160_MCS0_7 = 4,
  7863. HE_160_MCS0_9 = 5,
  7864. HE_160_MCS0_11 = 6,
  7865. HE_80p80_MCS0_7 = 8,
  7866. HE_80p80_MCS0_9 = 9,
  7867. HE_80p80_MCS0_11 = 10,
  7868. };
  7869. /**
  7870. * enum qca_wlan_ba_session_config - BA session configuration
  7871. *
  7872. * Indicates the configuration values for BA session configuration attribute.
  7873. *
  7874. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  7875. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  7876. */
  7877. enum qca_wlan_ba_session_config {
  7878. QCA_WLAN_ADD_BA = 1,
  7879. QCA_WLAN_DELETE_BA = 2,
  7880. };
  7881. /**
  7882. * enum qca_wlan_ac_type - access category type
  7883. *
  7884. * Indicates the access category type value.
  7885. *
  7886. * @QCA_WLAN_AC_BE: BE access category
  7887. * @QCA_WLAN_AC_BK: BK access category
  7888. * @QCA_WLAN_AC_VI: VI access category
  7889. * @QCA_WLAN_AC_VO: VO access category
  7890. * @QCA_WLAN_AC_ALL: All ACs
  7891. */
  7892. enum qca_wlan_ac_type {
  7893. QCA_WLAN_AC_BE = 0,
  7894. QCA_WLAN_AC_BK = 1,
  7895. QCA_WLAN_AC_VI = 2,
  7896. QCA_WLAN_AC_VO = 3,
  7897. QCA_WLAN_AC_ALL = 4,
  7898. };
  7899. /**
  7900. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  7901. *
  7902. * Indicates the HE LTF configuration value.
  7903. *
  7904. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  7905. * the mandatory HE-LTF based on the GI setting
  7906. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  7907. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  7908. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  7909. */
  7910. enum qca_wlan_he_ltf_cfg {
  7911. QCA_WLAN_HE_LTF_AUTO = 0,
  7912. QCA_WLAN_HE_LTF_1X = 1,
  7913. QCA_WLAN_HE_LTF_2X = 2,
  7914. QCA_WLAN_HE_LTF_4X = 3,
  7915. };
  7916. /**
  7917. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  7918. *
  7919. * Indicates the HE trigger frame MAC padding duration value.
  7920. *
  7921. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  7922. * process the trigger frame.
  7923. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  7924. * trigger frame.
  7925. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  7926. * trigger frame.
  7927. */
  7928. enum qca_wlan_he_mac_padding_dur {
  7929. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  7930. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  7931. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  7932. };
  7933. /**
  7934. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  7935. *
  7936. * Indicates the HE Operating mode control channel width setting value.
  7937. *
  7938. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  7939. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  7940. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  7941. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  7942. */
  7943. enum qca_wlan_he_om_ctrl_ch_bw {
  7944. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  7945. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  7946. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  7947. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  7948. };
  7949. /**
  7950. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  7951. *
  7952. * Indicates the frame types to use for keep alive data.
  7953. *
  7954. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  7955. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  7956. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  7957. */
  7958. enum qca_wlan_keep_alive_data_type {
  7959. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  7960. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  7961. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  7962. };
  7963. /**
  7964. * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
  7965. * HE operating mode control transmit request. These attributes are
  7966. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
  7967. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  7968. *
  7969. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  7970. * indicates the maximum number of spatial streams, NSS, that the STA
  7971. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  7972. * and is set to NSS - 1.
  7973. *
  7974. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  7975. * indicates the operating channel width supported by the STA for both
  7976. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  7977. *
  7978. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  7979. * indicates the all trigger based UL MU operations by the STA.
  7980. * 0 - UL MU operations are enabled by the STA.
  7981. * 1 - All triggered UL MU transmissions are suspended by the STA.
  7982. *
  7983. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  7984. * indicates the maximum number of space-time streams, NSTS, that
  7985. * the STA supports in transmission and is set to NSTS - 1.
  7986. *
  7987. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  7988. * combined with the UL MU Disable subfield and the recipient's setting
  7989. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  7990. * capabilities to determine which HE TB PPDUs are possible by the
  7991. * STA to transmit.
  7992. * 0 - UL MU data operations are enabled by the STA.
  7993. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  7994. * bit is not set, else UL MU Tx is suspended.
  7995. *
  7996. */
  7997. enum qca_wlan_vendor_attr_he_omi_tx {
  7998. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  7999. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  8000. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  8001. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  8002. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  8003. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  8004. /* keep last */
  8005. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
  8006. QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
  8007. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
  8008. };
  8009. /**
  8010. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  8011. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  8012. *
  8013. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  8014. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  8015. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  8016. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  8017. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  8018. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  8019. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  8020. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  8021. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  8022. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  8023. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  8024. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  8025. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  8026. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  8027. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  8028. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  8029. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  8030. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  8031. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  8032. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  8033. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  8034. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  8035. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  8036. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  8037. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  8038. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  8039. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  8040. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  8041. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  8042. */
  8043. enum qca_wlan_vendor_phy_mode {
  8044. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  8045. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  8046. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  8047. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  8048. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  8049. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  8050. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  8051. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  8052. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  8053. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  8054. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  8055. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  8056. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  8057. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  8058. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  8059. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  8060. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  8061. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  8062. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  8063. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  8064. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  8065. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  8066. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  8067. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  8068. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  8069. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  8070. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  8071. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  8072. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  8073. };
  8074. /* Attributes for data used by
  8075. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  8076. */
  8077. enum qca_wlan_vendor_attr_wifi_test_config {
  8078. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  8079. /* 8-bit unsigned value to configure the driver to enable/disable
  8080. * WMM feature. This attribute is used to configure testbed device.
  8081. * 1-enable, 0-disable
  8082. */
  8083. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  8084. /* 8-bit unsigned value to configure the driver to accept/reject
  8085. * the addba request from peer. This attribute is used to configure
  8086. * the testbed device.
  8087. * 1-accept addba, 0-reject addba
  8088. */
  8089. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  8090. /* 8-bit unsigned value to configure the driver to send or not to
  8091. * send the addba request to peer.
  8092. * This attribute is used to configure the testbed device.
  8093. * 1-send addba, 0-do not send addba
  8094. */
  8095. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  8096. /* 8-bit unsigned value to indicate the HE fragmentation support.
  8097. * Uses enum he_fragmentation_val values.
  8098. * This attribute is used to configure the testbed device to
  8099. * allow the advertised hardware capabilities to be downgraded
  8100. * for testing purposes.
  8101. */
  8102. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  8103. /* 8-bit unsigned value to indicate the HE MCS support.
  8104. * Uses enum he_mcs_config values.
  8105. * This attribute is used to configure the testbed device to
  8106. * allow the advertised hardware capabilities to be downgraded
  8107. * for testing purposes.
  8108. */
  8109. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  8110. /* 8-bit unsigned value to configure the driver to allow or not to
  8111. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  8112. * This attribute is used to configure the testbed device.
  8113. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  8114. */
  8115. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  8116. /* 8-bit unsigned value to configure the driver to add a
  8117. * new BA session or delete the existing BA session for
  8118. * given TID. ADDBA command uses the buffer size and tid
  8119. * configuration if user specifies the values else default
  8120. * value for buffer size is used for all tids if the tid
  8121. * also not specified. For DEL_BA command TID value is
  8122. * required to process the command.
  8123. * Uses enum qca_wlan_ba_session_config values.
  8124. * This attribute is used to configure the testbed device.
  8125. */
  8126. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  8127. /* 16-bit unsigned value to configure the buffer size in addba
  8128. * request and response frames.
  8129. * This attribute is used to configure the testbed device.
  8130. * The range of the value is 0 to 256.
  8131. */
  8132. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  8133. /* 8-bit unsigned value to configure the buffer size in addba
  8134. * request and response frames.
  8135. * This attribute is used to configure the testbed device.
  8136. */
  8137. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  8138. /* 8-bit unsigned value to configure the no ack policy.
  8139. * To configure no ack policy, access category value
  8140. * is required to process the command.
  8141. * This attribute is used to configure the testbed device.
  8142. * 1 - enable no ack, 0 - disable no ack
  8143. */
  8144. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  8145. /* 8-bit unsigned value to configure the AC for no ack policy
  8146. * This attribute is used to configure the testbed device.
  8147. * uses the enum qca_wlan_ac_type values
  8148. */
  8149. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  8150. /* 8-bit unsigned value to configure the HE LTF
  8151. * This attribute is used to configure the testbed device.
  8152. * Uses the enum qca_wlan_he_ltf_cfg values.
  8153. */
  8154. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  8155. /* 8-bit unsigned value to configure the tx beamformee.
  8156. * This attribute is used to configure the testbed device.
  8157. * 1 - enable, 0 - disable.
  8158. */
  8159. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  8160. /* 8-bit unsigned value to configure the tx beamformee number of
  8161. * space-time streams.
  8162. * This attribute is used to configure the testbed device.
  8163. * The range of the value is 0 to 8
  8164. */
  8165. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  8166. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  8167. * This attribute is used to configure the testbed device.
  8168. * Uses the enum qca_wlan_ac_type values.
  8169. */
  8170. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  8171. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  8172. * To configure MU EDCA AIFSN value, MU EDCA access category value
  8173. * is required to process the command.
  8174. * This attribute is used to configure the testbed device.
  8175. */
  8176. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  8177. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  8178. * given AC.
  8179. * To configure MU EDCA ECW min value, MU EDCA access category value
  8180. * is required to process the command.
  8181. * This attribute is used to configure the testbed device.
  8182. */
  8183. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  8184. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  8185. * given AC.
  8186. * To configure MU EDCA ECW max value, MU EDCA access category value
  8187. * is required to process the command.
  8188. * This attribute is used to configure the testbed device.
  8189. */
  8190. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  8191. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  8192. * To configure MU EDCA timer value, MU EDCA access category value
  8193. * is required to process the command.
  8194. * This attribute is used to configure the testbed device.
  8195. */
  8196. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  8197. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  8198. * duration.
  8199. * This attribute is used to configure the testbed device.
  8200. * Uses the enum qca_wlan_he_mac_padding_dur values.
  8201. */
  8202. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  8203. /* 8-bit unsigned value to override the MU EDCA params to defaults
  8204. * regardless of the AP beacon MU EDCA params. If it is enabled use
  8205. * the default values else use the MU EDCA params from AP beacon.
  8206. * This attribute is used to configure the testbed device.
  8207. * 1 - enable override, 0 - disable.
  8208. */
  8209. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  8210. /* 8-bit unsigned value to configure the support for receiving
  8211. * an MPDU that contains an operating mode control subfield.
  8212. * This attribute is used to configure the testbed device.
  8213. * 1-enable, 0-disable.
  8214. */
  8215. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  8216. /* Nested attribute values required to setup the TWT session.
  8217. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  8218. * information to set up the session. It contains broadcast flags,
  8219. * set_up flags, trigger value, flow type, flow ID, wake interval
  8220. * exponent, protection, target wake time, wake duration, wake interval
  8221. * mantissa. These nested attributes are used to setup a host triggered
  8222. * TWT session.
  8223. */
  8224. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  8225. /* This nested attribute is used to terminate the current TWT session.
  8226. * It does not currently carry any attributes.
  8227. */
  8228. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  8229. /* This nested attribute is used to suspend the current TWT session.
  8230. * It does not currently carry any attributes.
  8231. */
  8232. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  8233. /* Nested attribute values to indicate the request for resume.
  8234. * This attribute is used to resume the TWT session.
  8235. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  8236. * parameters required to resume the TWT session.
  8237. */
  8238. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  8239. /* 8-bit unsigned value to set the HE operating mode control
  8240. * (OM CTRL) Channel Width subfield.
  8241. * The Channel Width subfield indicates the operating channel width
  8242. * supported by the STA for both reception and transmission.
  8243. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  8244. * This setting is cleared with the
  8245. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8246. * flag attribute to reset defaults.
  8247. * This attribute is used to configure the testbed device.
  8248. */
  8249. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  8250. /* 8-bit unsigned value to configure the number of spatial
  8251. * streams in HE operating mode control field.
  8252. * This setting is cleared with the
  8253. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8254. * flag attribute to reset defaults.
  8255. * This attribute is used to configure the testbed device.
  8256. */
  8257. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  8258. /* Flag attribute to configure the UL MU disable bit in
  8259. * HE operating mode control field.
  8260. * This setting is cleared with the
  8261. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8262. * flag attribute to reset defaults.
  8263. * This attribute is used to configure the testbed device.
  8264. */
  8265. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  8266. /* Flag attribute to clear the previously set HE operating mode
  8267. * control field configuration.
  8268. * This attribute is used to configure the testbed device to reset
  8269. * defaults to clear any previously set HE operating mode control
  8270. * field configuration.
  8271. */
  8272. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  8273. /* 8-bit unsigned value to configure HE single user PPDU
  8274. * transmission. By default this setting is disabled and it
  8275. * is disabled in the reset defaults of the device configuration.
  8276. * This attribute is used to configure the testbed device.
  8277. * 1-enable, 0-disable
  8278. */
  8279. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  8280. /* 8-bit unsigned value to configure action frame transmission
  8281. * in HE trigger based PPDU transmission.
  8282. * By default this setting is disabled and it is disabled in
  8283. * the reset defaults of the device configuration.
  8284. * This attribute is used to configure the testbed device.
  8285. * 1-enable, 0-disable
  8286. */
  8287. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  8288. /* Nested attribute to indicate HE operating mode control field
  8289. * transmission. It contains operating mode control field Nss,
  8290. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  8291. * These nested attributes are used to send HE operating mode control
  8292. * with configured values.
  8293. * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
  8294. * This attribute is used to configure the testbed device.
  8295. */
  8296. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
  8297. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  8298. * support for the reception of a frame that carries an HE variant
  8299. * HT Control field.
  8300. * This attribute is used to configure the testbed device.
  8301. * 1-enable, 0-disable
  8302. */
  8303. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  8304. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  8305. * This attribute is used to configure the testbed device.
  8306. * 1-enable, 0-disable
  8307. */
  8308. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  8309. /* 8-bit unsigned value to configure HE testbed defaults.
  8310. * This attribute is used to configure the testbed device.
  8311. * 1-set the device HE capabilities to testbed defaults.
  8312. * 0-reset the device HE capabilities to supported config.
  8313. */
  8314. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  8315. /* 8-bit unsigned value to configure twt request support.
  8316. * This attribute is used to configure the testbed device.
  8317. * 1-enable, 0-disable.
  8318. */
  8319. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  8320. /* 8-bit unsigned value to configure protection for Management
  8321. * frames when PMF is enabled for the association.
  8322. * This attribute is used to configure the testbed device.
  8323. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  8324. */
  8325. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  8326. /* Flag attribute to inject Disassociation frame to the connected AP.
  8327. * This attribute is used to configure the testbed device.
  8328. */
  8329. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  8330. /* 8-bit unsigned value to configure an override for the RSNXE Used
  8331. * subfield in the MIC control field of the FTE in FT Reassociation
  8332. * Request frame.
  8333. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  8334. * This attribute is used to configure the testbed device.
  8335. * This attribute can be configured when STA is in disconnected or
  8336. * associated state and the configuration is valid until the next
  8337. * disconnection.
  8338. */
  8339. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  8340. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  8341. * Switch Announcement) when STA is in connected state.
  8342. * 0 - Default behavior, 1 - Ignore CSA.
  8343. * This attribute is used to configure the testbed device.
  8344. * This attribute can be configured when STA is in disconnected or
  8345. * associated state and the configuration is valid until the next
  8346. * disconnection.
  8347. */
  8348. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  8349. /* Nested attribute values required to configure OCI (Operating Channel
  8350. * Information). Attributes defined in enum
  8351. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  8352. * This attribute is used to configure the testbed device.
  8353. * This attribute can be configured when STA is in disconnected or
  8354. * associated state and the configuration is valid until the next
  8355. * disconnection.
  8356. */
  8357. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  8358. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  8359. * Query timeout. If this configuration is enabled STA shall not send
  8360. * Deauthentication frmae when SA Query times out (mainly, after a
  8361. * channel switch when OCV is enabled).
  8362. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  8363. * This attribute is used to configure the testbed device.
  8364. * This attribute can be configured only when STA is in associated state
  8365. * and the configuration is valid until the disconnection.
  8366. */
  8367. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  8368. /* 8-bit unsigned value to configure the driver/firmware to start or
  8369. * stop transmitting FILS discovery frames.
  8370. * 0 - Stop transmitting FILS discovery frames
  8371. * 1 - Start transmitting FILS discovery frames
  8372. * This attribute is used to configure the testbed device.
  8373. * This attribute can be configured only in AP mode and the
  8374. * configuration is valid until AP restart.
  8375. */
  8376. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  8377. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8378. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  8379. * information field.
  8380. * 0 - Disable full bandwidth UL MU-MIMO subfield
  8381. * 1 - Enable full bandwidth UL MU-MIMO subfield
  8382. * This attribute is used to configure the testbed device.
  8383. */
  8384. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  8385. /* 16-bit unsigned value to configure the driver with a specific BSS
  8386. * max idle period to advertise in the BSS Max Idle Period element
  8387. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  8388. * This attribute is used to configure the testbed device.
  8389. */
  8390. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  8391. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  8392. * for data transmission.
  8393. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  8394. * This attribute is used to configure the testbed device.
  8395. */
  8396. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  8397. /* 8-bit unsigned value to configure the driver to disable data and
  8398. * management response frame transmission to test the BSS max idle
  8399. * feature.
  8400. * 0 - Default behavior, 1 - Disable data and management response Tx.
  8401. * This attribute is used to configure the testbed device.
  8402. */
  8403. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  8404. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8405. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  8406. * information field.
  8407. * 0 - Disable Punctured Preamble Rx subfield
  8408. * 1 - Enable Punctured Preamble Rx subfield
  8409. * This attribute is used to configure the testbed device.
  8410. */
  8411. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  8412. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  8413. * requirement mismatch for 6 GHz connection.
  8414. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  8415. * This attribute is used to configure the testbed device.
  8416. */
  8417. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  8418. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  8419. * connection with all security modes.
  8420. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  8421. * modes.
  8422. * This attribute is used for testing purposes.
  8423. */
  8424. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  8425. /* 8-bit unsigned value to configure the driver to transmit data with
  8426. * ER SU PPDU type.
  8427. *
  8428. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  8429. * This attribute is used for testing purposes.
  8430. */
  8431. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  8432. /* 8-bit unsigned value to configure the driver to use Data or
  8433. * Management frame type for keep alive data.
  8434. * Uses enum qca_wlan_keep_alive_data_type values.
  8435. *
  8436. * This attribute is used for testing purposes.
  8437. */
  8438. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  8439. /* 8-bit unsigned value to configure the driver to use scan request
  8440. * BSSID value in Probe Request frame RA(A1) during the scan. The
  8441. * driver saves this configuration and applies this setting to all user
  8442. * space scan requests until the setting is cleared. If this
  8443. * configuration is set, the driver uses the BSSID value from the scan
  8444. * request to set the RA(A1) in the Probe Request frames during the
  8445. * scan.
  8446. *
  8447. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  8448. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  8449. * This attribute is used for testing purposes.
  8450. */
  8451. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  8452. /* 8-bit unsigned value to configure the driver to enable/disable the
  8453. * BSS max idle period support.
  8454. *
  8455. * 0 - Disable the BSS max idle support.
  8456. * 1 - Enable the BSS max idle support.
  8457. * This attribute is used for testing purposes.
  8458. */
  8459. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  8460. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8461. * disable Rx control frame to MultiBSS subfield in the HE MAC
  8462. * capabilities information field.
  8463. * 0 - Disable Rx control frame to MultiBSS subfield
  8464. * 1 - Enable Rx control frame to MultiBSS subfield
  8465. * This attribute is used to configure the testbed device.
  8466. */
  8467. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  8468. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8469. * disable Broadcast TWT support subfield in the HE MAC capabilities
  8470. * information field.
  8471. * 0 - Disable Broadcast TWT support subfield
  8472. * 1 - Enable Broadcast TWT support subfield
  8473. * This attribute is used to configure the testbed device.
  8474. */
  8475. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  8476. /* keep last */
  8477. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  8478. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  8479. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  8480. };
  8481. /**
  8482. * enum qca_wlan_twt_operation - Operation of the config TWT request
  8483. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  8484. * The response for the respective operations can be either synchronous or
  8485. * asynchronous (wherever specified). If synchronous, the response to this
  8486. * operation is obtained in the corresponding vendor command reply to the user
  8487. * space. For the asynchronous case the response is obtained as an event with
  8488. * the same operation type.
  8489. *
  8490. * Drivers shall support either of these modes but not both simultaneously.
  8491. * This support for asynchronous mode is advertised through the flag
  8492. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  8493. * the driver shall support synchronous mode.
  8494. *
  8495. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  8496. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8497. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  8498. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  8499. * synchronous or asynchronous operation.
  8500. *
  8501. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  8502. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8503. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  8504. *
  8505. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  8506. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8507. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8508. * This terminate can either get triggered by the user space or can as well be
  8509. * a notification from the firmware if it initiates a terminate.
  8510. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8511. * the request from user space can either be a synchronous or asynchronous
  8512. * operation.
  8513. *
  8514. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  8515. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8516. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8517. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8518. * this is either a synchronous or asynchronous operation.
  8519. *
  8520. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  8521. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8522. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  8523. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  8524. * request.
  8525. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8526. * capability, this is either a synchronous or asynchronous operation.
  8527. *
  8528. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  8529. * combination of suspend and resume in a single request. Required parameters
  8530. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  8531. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  8532. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8533. * capability, this is either a synchronous or asynchronous operation.
  8534. *
  8535. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  8536. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  8537. * session is setup. It's a synchronous operation.
  8538. *
  8539. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  8540. * Valid only after the TWT session is setup. It's a synchronous operation.
  8541. *
  8542. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  8543. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  8544. * operation.
  8545. *
  8546. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is
  8547. * ready for a new TWT session setup after it issued a twt teardown.
  8548. *
  8549. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  8550. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  8551. * the enum qca_wlan_vendor_attr_twt_set_param.
  8552. *
  8553. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  8554. * related information for example TWT required bit in AP capabilities etc.
  8555. * The reason for the notification is sent using
  8556. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  8557. */
  8558. enum qca_wlan_twt_operation {
  8559. QCA_WLAN_TWT_SET = 0,
  8560. QCA_WLAN_TWT_GET = 1,
  8561. QCA_WLAN_TWT_TERMINATE = 2,
  8562. QCA_WLAN_TWT_SUSPEND = 3,
  8563. QCA_WLAN_TWT_RESUME = 4,
  8564. QCA_WLAN_TWT_NUDGE = 5,
  8565. QCA_WLAN_TWT_GET_STATS = 6,
  8566. QCA_WLAN_TWT_CLEAR_STATS = 7,
  8567. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  8568. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  8569. QCA_WLAN_TWT_SET_PARAM = 10,
  8570. QCA_WLAN_TWT_NOTIFY = 11,
  8571. };
  8572. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  8573. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  8574. *
  8575. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  8576. * u8 attribute. Specify the TWT operation of this request. Possible values
  8577. * are defined in enum qca_wlan_twt_operation. The parameters for the
  8578. * respective operation is specified through
  8579. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  8580. *
  8581. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  8582. * parameters configured for TWT. These parameters are represented by
  8583. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  8584. * enum qca_wlan_vendor_attr_twt_set_param or
  8585. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  8586. *
  8587. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  8588. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  8589. * The values used by this attribute are defined in
  8590. * enum qca_wlan_vendor_twt_status.
  8591. */
  8592. enum qca_wlan_vendor_attr_config_twt {
  8593. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  8594. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  8595. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  8596. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  8597. /* keep last */
  8598. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  8599. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  8600. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  8601. };
  8602. /**
  8603. * qca_wlan_twt_setup_state: Represents the TWT session states.
  8604. *
  8605. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  8606. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  8607. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  8608. */
  8609. enum qca_wlan_twt_setup_state {
  8610. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  8611. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  8612. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  8613. };
  8614. /**
  8615. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  8616. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  8617. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  8618. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  8619. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8620. *
  8621. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  8622. * Disable (flag attribute not present) - Individual TWT
  8623. * Enable (flag attribute present) - Broadcast TWT.
  8624. * Individual means the session is between the STA and the AP.
  8625. * This session is established using a separate negotiation between
  8626. * STA and AP.
  8627. * Broadcast means the session is across multiple STAs and an AP. The
  8628. * configuration parameters are announced in Beacon frames by the AP.
  8629. * This is used in
  8630. * 1. TWT SET Request and Response
  8631. * 2. TWT GET Response
  8632. *
  8633. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  8634. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  8635. * specify the TWT request type. This is used in TWT SET operation.
  8636. *
  8637. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  8638. * Enable (flag attribute present) - TWT with trigger support.
  8639. * Disable (flag attribute not present) - TWT without trigger support.
  8640. * Trigger means the AP will send the trigger frame to allow STA to send data.
  8641. * Without trigger, the STA will wait for the MU EDCA timer before
  8642. * transmitting the data.
  8643. * This is used in
  8644. * 1. TWT SET Request and Response
  8645. * 2. TWT GET Response
  8646. *
  8647. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  8648. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  8649. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  8650. * NULL frame to AP.
  8651. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  8652. * This is a required parameter for
  8653. * 1. TWT SET Request and Response
  8654. * 2. TWT GET Response
  8655. *
  8656. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  8657. * Flow ID is the unique identifier for each TWT session.
  8658. * If not provided then dialog ID will be set to zero.
  8659. * This is an optional parameter for
  8660. * 1. TWT SET Request and Response
  8661. * 2. TWT GET Request and Response
  8662. * 3. TWT TERMINATE Request and Response
  8663. * 4. TWT SUSPEND Request and Response
  8664. * Flow Id values from 0 to 254 represent a single TWT session
  8665. * Flow ID value of 255 represents all twt sessions for the following
  8666. * 1. TWT TERMINATE Request and Response
  8667. * 2. TWT SUSPEND Request and Response
  8668. * 4. TWT CLEAR STATISTICS request
  8669. * 5. TWT GET STATISTICS request and response
  8670. * If an invalid dialog id is provided, status
  8671. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  8672. *
  8673. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  8674. * This attribute (exp) is used along with the mantissa to derive the
  8675. * wake interval using the following formula:
  8676. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  8677. * Wake interval is the interval between 2 successive SP.
  8678. * This is a required parameter for
  8679. * 1. TWT SET Request and Response
  8680. * 2. TWT GET Response
  8681. *
  8682. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  8683. * Enable (flag attribute present) - Protection required.
  8684. * Disable (flag attribute not present) - Protection not required.
  8685. * If protection is enabled, then the AP will use protection
  8686. * mechanism using RTS/CTS to self to reserve the airtime.
  8687. * This is used in
  8688. * 1. TWT SET Request and Response
  8689. * 2. TWT GET Response
  8690. *
  8691. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  8692. * This attribute is used as the SP offset which is the offset from
  8693. * TSF after which the wake happens. The units are in microseconds. If
  8694. * this attribute is not provided, then the value will be set to zero.
  8695. * This is an optional parameter for
  8696. * 1. TWT SET Request and Response
  8697. * 2. TWT GET Response
  8698. *
  8699. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  8700. * This is the duration of the service period. This is specified as
  8701. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  8702. * This is a required parameter for
  8703. * 1. TWT SET Request and Response
  8704. * 2. TWT GET Response
  8705. *
  8706. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  8707. * This attribute is used to configure wake interval mantissa.
  8708. * The units are in TU.
  8709. * This is a required parameter for
  8710. * 1. TWT SET Request and Response
  8711. * 2. TWT GET Response
  8712. *
  8713. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  8714. * This field is applicable for TWT response only.
  8715. * This contains status values in enum qca_wlan_vendor_twt_status
  8716. * and is passed to the userspace. This is used in TWT SET operation.
  8717. * This is a required parameter for
  8718. * 1. TWT SET Response
  8719. * 2. TWT TERMINATE Response
  8720. * 3. TWT SUSPEND Response
  8721. * 4. TWT RESUME Response
  8722. * 5. TWT NUDGE Response
  8723. *
  8724. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  8725. * This field is applicable for TWT response only.
  8726. * This field contains response type from the TWT responder and is
  8727. * passed to the userspace. The values for this field are defined in
  8728. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  8729. * response.
  8730. *
  8731. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  8732. * In TWT setup command this field contains absolute TSF that will
  8733. * be used by TWT requester during setup.
  8734. * In TWT response this field contains absolute TSF value of the
  8735. * wake time received from the TWT responder and is passed to
  8736. * the userspace.
  8737. * This is an optional parameter for
  8738. * 1. TWT SET Request
  8739. * This is a required parameter for
  8740. * 1. TWT SET Response
  8741. * 2. TWT GET Response
  8742. *
  8743. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  8744. * Enable (flag attribute present) - Indicates that the TWT responder
  8745. * supports reception of TWT information frame from the TWT requestor.
  8746. * Disable (flag attribute not present) - Indicates that the responder
  8747. * doesn't support reception of TWT information frame from requestor.
  8748. * This is used in
  8749. * 1. TWT SET Response
  8750. * 2. TWT GET Response
  8751. *
  8752. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  8753. * Represents the MAC address of the peer for which the TWT session
  8754. * is being configured. This is used in AP mode to represent the respective
  8755. * client
  8756. * In AP mode, this is a required parameter in response for
  8757. * 1. TWT SET
  8758. * 2. TWT GET
  8759. * 3. TWT TERMINATE
  8760. * 4. TWT SUSPEND
  8761. * In STA mode, this is an optional parameter in request and response for
  8762. * the above four TWT operations.
  8763. * In AP mode, this is a required parameter in request for
  8764. * 1. TWT GET
  8765. * 2. TWT TERMINATE
  8766. *
  8767. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  8768. * Minimum tolerance limit of wake interval parameter in microseconds.
  8769. *
  8770. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  8771. * Maximum tolerance limit of wake interval parameter in microseconds.
  8772. *
  8773. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  8774. * Minimum tolerance limit of wake duration parameter in microseconds.
  8775. *
  8776. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  8777. * Maximum tolerance limit of wake duration parameter in microseconds.
  8778. *
  8779. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  8780. * TWT state for the given dialog id. The values for this are represented
  8781. * by enum qca_wlan_twt_setup_state.
  8782. * This is obtained through TWT GET operation.
  8783. *
  8784. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  8785. * This attribute is used to configure wake interval mantissa.
  8786. * The unit is microseconds. This attribute, when specified, takes
  8787. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  8788. * This parameter is used for
  8789. * 1. TWT SET Request and Response
  8790. * 2. TWT GET Response
  8791. *
  8792. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  8793. * This attribute is used to configure Broadcast TWT ID.
  8794. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  8795. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  8796. * This parameter is used for
  8797. * 1. TWT SET Request
  8798. * 2. TWT TERMINATE Request
  8799. *
  8800. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  8801. * This attribute is used to configure Broadcast TWT recommendation.
  8802. * The Broadcast TWT Recommendation subfield contains a value that indicates
  8803. * recommendations on the types of frames that are transmitted by TWT
  8804. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  8805. * The allowed values are 0 - 3.
  8806. * This parameter is used for
  8807. * 1. TWT SET Request
  8808. *
  8809. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  8810. * This attribute is used to configure Broadcast TWT Persistence.
  8811. * The Broadcast TWT Persistence subfield indicates the number of
  8812. * TBTTs during which the Broadcast TWT SPs corresponding to this
  8813. * broadcast TWT Parameter set are present. The number of beacon intervals
  8814. * during which the Broadcast TWT SPs are present is equal to the value in the
  8815. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  8816. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  8817. * This parameter is used for
  8818. * 1. TWT SET Request
  8819. *
  8820. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  8821. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  8822. * from TWT response frame.
  8823. * This parameter is used for
  8824. * 1. TWT SET Response
  8825. * 2. TWT GET Response
  8826. *
  8827. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  8828. * This attribute is used to configure the announce timeout value (in us) in
  8829. * firmware. This timeout value is only applicable for announced TWT. If
  8830. * timeout value is non-zero then firmware waits upto timeout value to use
  8831. * data frame as announcement frame. If timeout value is 0 then firmware sends
  8832. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  8833. * firmware is 0.
  8834. * This parameter is used for
  8835. * 1. TWT SET Request
  8836. */
  8837. enum qca_wlan_vendor_attr_twt_setup {
  8838. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  8839. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  8840. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  8841. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  8842. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  8843. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  8844. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  8845. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  8846. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  8847. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  8848. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  8849. /* TWT Response only attributes */
  8850. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  8851. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  8852. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  8853. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  8854. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  8855. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  8856. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  8857. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  8858. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  8859. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  8860. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  8861. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  8862. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  8863. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  8864. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  8865. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  8866. /* keep last */
  8867. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  8868. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  8869. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  8870. };
  8871. /**
  8872. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  8873. * TWT operation
  8874. *
  8875. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  8876. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  8877. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  8878. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  8879. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  8880. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  8881. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  8882. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  8883. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  8884. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  8885. * request/response frame
  8886. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  8887. * frame
  8888. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  8889. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  8890. * unknown reason
  8891. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  8892. * suspend state
  8893. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  8894. * invalid IE in the received TWT frame
  8895. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  8896. * the responder are not in the specified range
  8897. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  8898. * session due to request from the responder. Used on the TWT_TERMINATE
  8899. * notification from the firmware.
  8900. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  8901. * session due to roaming. Used on the TWT_TERMINATE notification from the
  8902. * firmware.
  8903. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  8904. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  8905. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  8906. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  8907. * request due to roaming in progress.
  8908. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  8909. * setup request due to channel switch in progress.
  8910. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  8911. * request due to scan in progress.
  8912. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  8913. * terminate an existing TWT session on power save exit request from userspace.
  8914. * Used on the TWT_TERMINATE notification from the driver/firmware.
  8915. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  8916. * required bit in its capabilities.
  8917. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  8918. * the TWT required bit(1->0) in its capabilities.
  8919. */
  8920. enum qca_wlan_vendor_twt_status {
  8921. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  8922. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  8923. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  8924. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  8925. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  8926. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  8927. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  8928. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  8929. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  8930. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  8931. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  8932. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  8933. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  8934. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  8935. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  8936. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  8937. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  8938. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  8939. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  8940. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  8941. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  8942. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  8943. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  8944. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  8945. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  8946. };
  8947. /**
  8948. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  8949. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  8950. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  8951. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  8952. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8953. *
  8954. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  8955. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  8956. * These attributes are used as the SP offset which is the offset from TSF after
  8957. * which the wake happens. The units are in microseconds. Please note that
  8958. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  8959. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  8960. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  8961. * will be set to zero.
  8962. *
  8963. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  8964. * This attribute represents the next TWT subfield size.
  8965. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  8966. * and 4 for 64 bits.
  8967. *
  8968. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  8969. * Flow ID is the unique identifier for each TWT session. This attribute
  8970. * represents the respective TWT session to resume.
  8971. * Flow Id values from 0 to 254 represent a single TWT session
  8972. * Flow ID value of 255 represents all TWT sessions.
  8973. * If an invalid dialog id is provided, status
  8974. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  8975. *
  8976. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  8977. * Represents the MAC address of the peer to which TWT Resume is
  8978. * being sent. This is used in AP mode to represent the respective
  8979. * client and is a required parameter. In STA mode, this is an optional
  8980. * parameter
  8981. *
  8982. */
  8983. enum qca_wlan_vendor_attr_twt_resume {
  8984. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  8985. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  8986. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  8987. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  8988. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  8989. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  8990. /* keep last */
  8991. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  8992. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  8993. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  8994. };
  8995. /**
  8996. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  8997. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  8998. * and resume in a single request. These attributes are sent as part of
  8999. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9000. *
  9001. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9002. * Flow ID is the unique identifier for each TWT session. This attribute
  9003. * represents the respective TWT session to suspend and resume.
  9004. *
  9005. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9006. * Flow ID is the unique identifier for each TWT session. This attribute
  9007. * represents the respective TWT session to suspend and resume.
  9008. * Flow Id values from 0 to 254 represent a single TWT session
  9009. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  9010. * and response.
  9011. * If an invalid dialog id is provided, status
  9012. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9013. *
  9014. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  9015. * This attribute is used as the SP offset which is the offset from
  9016. * TSF after which the wake happens. The units are in microseconds.
  9017. *
  9018. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  9019. * This attribute represents the next TWT subfield size.
  9020. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9021. * and 4 for 64 bits.
  9022. *
  9023. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  9024. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  9025. * being sent. This is used in AP mode to represent the respective
  9026. * client and is a required parameter. In STA mode, this is an optional
  9027. * parameter.
  9028. *
  9029. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  9030. * This field contains absolute TSF value of the time at which twt
  9031. * sesion will be resumed.
  9032. */
  9033. enum qca_wlan_vendor_attr_twt_nudge {
  9034. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  9035. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  9036. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  9037. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  9038. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  9039. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  9040. /* keep last */
  9041. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  9042. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  9043. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  9044. };
  9045. /**
  9046. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  9047. * TWT (Target Wake Time) get statistics and clear statistics request.
  9048. * These attributes are sent as part of
  9049. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9050. *
  9051. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  9052. * Flow ID is the unique identifier for each TWT session. This attribute
  9053. * represents the respective TWT session for get and clear TWT statistics.
  9054. * Flow Id values from 0 to 254 represent a single TWT session
  9055. * Flow ID value of 255 represents all TWT sessions in
  9056. * 1) TWT GET STATISTICS request and response
  9057. * 2) TWT CLEAR STATISTICS request
  9058. *
  9059. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  9060. * Represents the MAC address of the peer for which TWT Statistics
  9061. * is required.
  9062. * In AP mode this is used to represent the respective
  9063. * client and is a required parameter for
  9064. * 1) TWT GET STATISTICS request and response
  9065. * 2) TWT CLEAR STATISTICS request and response
  9066. * In STA mode, this is an optional parameter.
  9067. *
  9068. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  9069. * This is the duration of the service period in microseconds.
  9070. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9071. *
  9072. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  9073. * Average of actual wake duration observed so far. Unit is microseconds.
  9074. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9075. *
  9076. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  9077. * Number of TWT service period elapsed so far.
  9078. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9079. *
  9080. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9081. * This is the minimum value of wake duration observed across
  9082. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9083. * microseconds.
  9084. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9085. *
  9086. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9087. * This is the maximum value of wake duration observed across
  9088. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9089. * microseconds.
  9090. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9091. *
  9092. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  9093. * Average number of MPDU's transmitted successfully across
  9094. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9095. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9096. *
  9097. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  9098. * Average number of MPDU's received successfully across
  9099. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9100. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9101. *
  9102. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  9103. * Average number of bytes transmitted successfully across
  9104. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9105. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9106. *
  9107. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  9108. * Average number of bytes received successfully across
  9109. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9110. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9111. *
  9112. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  9113. * Status of the TWT GET STATISTICS request.
  9114. * This contains status values in enum qca_wlan_vendor_twt_status
  9115. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9116. */
  9117. enum qca_wlan_vendor_attr_twt_stats {
  9118. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  9119. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  9120. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  9121. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  9122. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  9123. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  9124. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  9125. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  9126. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  9127. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  9128. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  9129. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  9130. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  9131. /* keep last */
  9132. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  9133. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  9134. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  9135. };
  9136. /**
  9137. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  9138. * supported by the device and peer.
  9139. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  9140. *
  9141. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  9142. * TWT non-scheduling STA. This capability is advertised in the HE
  9143. * capability/Extended capabilities information element in the
  9144. * Association request frame by the device.
  9145. *
  9146. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  9147. * by the TWT scheduling AP. This capability is advertised in the extended
  9148. * capabilities/HE capabilities information element.
  9149. *
  9150. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  9151. * for the broadcast TWT functionality. On responder side, this indicates
  9152. * support for the role of broadcast TWT scheduling functionality. This
  9153. * capability is advertised in the HE capabilities information element.
  9154. *
  9155. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  9156. * This capability is advertised in the HE capabilities information element.
  9157. *
  9158. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  9159. * that it mandates the associated HE STAs to support TWT. This capability is
  9160. * advertised by AP in the HE Operation Parameters field of the HE operation
  9161. * information element.
  9162. */
  9163. enum qca_wlan_twt_capa {
  9164. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  9165. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  9166. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  9167. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  9168. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  9169. };
  9170. /**
  9171. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  9172. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  9173. * operation.
  9174. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  9175. * Represents the MAC address of the peer for which the TWT capabilities
  9176. * are being queried. This is used in AP mode to represent the respective
  9177. * client. In STA mode, this is an optional parameter.
  9178. *
  9179. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  9180. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  9181. * enum qca_wlan_twt_capa.
  9182. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  9183. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  9184. * enum qca_wlan_twt_capa.
  9185. */
  9186. enum qca_wlan_vendor_attr_twt_capability {
  9187. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  9188. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  9189. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  9190. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  9191. /* keep last */
  9192. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  9193. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  9194. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  9195. };
  9196. /**
  9197. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  9198. * TWT (Target Wake Time) related parameters. It is used when
  9199. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  9200. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9201. *
  9202. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  9203. * This attribute configures AC parameters to be used for all TWT
  9204. * sessions in AP mode.
  9205. * Uses the enum qca_wlan_ac_type values.
  9206. */
  9207. enum qca_wlan_vendor_attr_twt_set_param {
  9208. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  9209. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  9210. /* keep last */
  9211. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  9212. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  9213. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  9214. };
  9215. /**
  9216. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  9217. * the TWT responder
  9218. *
  9219. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  9220. * parameters that are different from TWT requesting STA suggested
  9221. * or demanded TWT parameters
  9222. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  9223. * parameters that are different from TWT requesting STA TWT suggested
  9224. * or demanded parameters
  9225. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  9226. * setup
  9227. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  9228. * setup.
  9229. */
  9230. enum qca_wlan_vendor_twt_setup_resp_type {
  9231. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  9232. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  9233. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  9234. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  9235. };
  9236. /**
  9237. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  9238. * Represents the setup type being requested for TWT.
  9239. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  9240. * parameters but relying on AP to fill the parameters during the negotiation.
  9241. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  9242. * values which the AP may accept or AP may provide alternative parameters
  9243. * which the STA may accept.
  9244. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  9245. * alternate parameters than the requested ones.
  9246. */
  9247. enum qca_wlan_vendor_twt_setup_req_type {
  9248. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  9249. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  9250. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  9251. };
  9252. /**
  9253. * enum qca_wlan_throughput_level - Current throughput level
  9254. *
  9255. * Indicates the current level of throughput calculated by driver. The driver
  9256. * may choose different thresholds to decide whether the throughput level is
  9257. * low or medium or high based on variety of parameters like physical link
  9258. * capacity of current connection, number of pakcets being dispatched per
  9259. * second etc. The throughput level events might not be consistent with the
  9260. * actual current throughput value being observed.
  9261. *
  9262. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  9263. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  9264. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  9265. */
  9266. enum qca_wlan_throughput_level {
  9267. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  9268. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  9269. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  9270. };
  9271. /**
  9272. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  9273. * report throughput changes from driver to user space. enum values are used
  9274. * for NL attributes sent with
  9275. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  9276. */
  9277. enum qca_wlan_vendor_attr_throughput_change {
  9278. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  9279. /*
  9280. * Indicates the direction of throughput in which the change is being
  9281. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  9282. */
  9283. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  9284. /*
  9285. * Indicates the newly observed throughput level.
  9286. * qca_wlan_throughput_level describes the possible range of values.
  9287. * u8 attribute.
  9288. */
  9289. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  9290. /*
  9291. * Indicates the driver's guidance on the new value to be set to
  9292. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  9293. * may optionally include this attribute.
  9294. */
  9295. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  9296. /*
  9297. * Indicates the driver's guidance on the new value to be set to
  9298. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  9299. * values are from -31 to 31. Driver may optionally include this
  9300. * attribute.
  9301. */
  9302. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  9303. /*
  9304. * Indicates the driver's guidance on the new value to be set to
  9305. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  9306. * optionally include this attribute.
  9307. */
  9308. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  9309. /* keep last */
  9310. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  9311. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  9312. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  9313. };
  9314. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  9315. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  9316. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9317. */
  9318. enum qca_wlan_nan_ext_subcmd_type {
  9319. /* Subcmd of type NAN Enable Request */
  9320. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  9321. /* Subcmd of type NAN Disable Request */
  9322. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  9323. };
  9324. /**
  9325. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  9326. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9327. */
  9328. enum qca_wlan_vendor_attr_nan_params {
  9329. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  9330. /* Carries NAN command for firmware component. Every vendor command
  9331. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  9332. * payload containing the NAN command. NLA_BINARY attribute.
  9333. */
  9334. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  9335. /* Indicates the type of NAN command sent with
  9336. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  9337. * describes the possible range of values. This attribute is mandatory
  9338. * if the command being issued is either
  9339. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  9340. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  9341. */
  9342. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  9343. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  9344. * band. This attribute is mandatory when command type is
  9345. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  9346. */
  9347. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  9348. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  9349. * band. This attribute is optional and should be included when command
  9350. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  9351. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  9352. */
  9353. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  9354. /* keep last */
  9355. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  9356. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  9357. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  9358. };
  9359. /**
  9360. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  9361. * transport modes and is used by attribute
  9362. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  9363. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9364. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  9365. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  9366. * data. The data shall be encapsulated within
  9367. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along withe vendor sub command
  9368. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  9369. */
  9370. enum qca_wlan_vendor_cfr_data_transport_modes {
  9371. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  9372. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  9373. };
  9374. /**
  9375. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  9376. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  9377. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9378. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  9379. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  9380. * with phase
  9381. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  9382. */
  9383. enum qca_wlan_vendor_cfr_method {
  9384. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  9385. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  9386. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  9387. };
  9388. /**
  9389. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  9390. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  9391. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  9392. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  9393. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  9394. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  9395. * is provided by one or more of below attributes:
  9396. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  9397. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  9398. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  9399. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  9400. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  9401. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  9402. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9403. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  9404. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  9405. */
  9406. enum qca_wlan_vendor_cfr_capture_type {
  9407. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  9408. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  9409. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  9410. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  9411. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  9412. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  9413. };
  9414. /**
  9415. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  9416. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  9417. * Channel Frequency Response capture parameters and enable periodic CFR
  9418. * capture.
  9419. *
  9420. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  9421. * MAC address of peer. This is for CFR version 1 only.
  9422. *
  9423. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  9424. * Enable peer CFR Capture. This attribute is mandatory to
  9425. * enable peer CFR capture. If this attribute is not present,
  9426. * peer CFR capture is disabled.
  9427. *
  9428. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  9429. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  9430. * Supported values: 20, 40, 80, 80+80, 160.
  9431. * Note that all targets may not support all bandwidths.
  9432. * This attribute is mandatory for version 1 if attribute
  9433. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9434. *
  9435. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  9436. * Periodicity of CFR measurement in msec.
  9437. * Periodicity should be a multiple of Base timer.
  9438. * Current Base timer value supported is 10 msecs (default).
  9439. * 0 for one shot capture.
  9440. * This attribute is mandatory for version 1 if attribute
  9441. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9442. *
  9443. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  9444. * Method used to capture Channel Frequency Response.
  9445. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  9446. * This attribute is mandatory for version 1 if attribute
  9447. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9448. *
  9449. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  9450. * Enable periodic CFR capture.
  9451. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  9452. * If this attribute is not present, periodic CFR capture is disabled.
  9453. *
  9454. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  9455. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  9456. * can't be enabled at same time. This attribute is mandatory if target
  9457. * support both versions and use one of them.
  9458. *
  9459. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  9460. * This attribute is mandatory for version 2 if
  9461. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  9462. * Bits 15:0 Bit fields indicating which group to be enabled.
  9463. * Bits 31:16 Reserved for future use.
  9464. *
  9465. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  9466. * CFR capture duration in microsecond. This attribute is mandatory for
  9467. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  9468. *
  9469. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  9470. * CFR capture interval in microsecond. This attribute is mandatory for
  9471. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  9472. *
  9473. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  9474. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  9475. * This attribute is mandatory for version 2.
  9476. *
  9477. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  9478. * Bit fields indicating which user in the current UL MU
  9479. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  9480. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  9481. * then the CFR capture will happen for user index 0 in the current
  9482. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  9483. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  9484. * This is for CFR version 2 only.
  9485. *
  9486. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  9487. * Indicates the number of consecutive Rx packets to be skipped
  9488. * before CFR capture is enabled again.
  9489. * This is for CFR version 2 only.
  9490. *
  9491. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  9492. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  9493. *
  9494. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  9495. * the following GROUP attributes:
  9496. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  9497. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  9498. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  9499. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  9500. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  9501. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  9502. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  9503. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  9504. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  9505. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9506. *
  9507. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  9508. * Target support multiple groups for some configurations. Group number could be
  9509. * any value between 0 and 15. This is for CFR version 2 only.
  9510. *
  9511. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  9512. * Transmitter address which is used to filter packets, this MAC address takes
  9513. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  9514. * This is for CFR version 2 only.
  9515. *
  9516. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  9517. * Receiver address which is used to filter packets, this MAC address takes
  9518. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  9519. * This is for CFR version 2 only.
  9520. *
  9521. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  9522. * Mask of transmitter address which is used to filter packets.
  9523. * This is for CFR version 2 only.
  9524. *
  9525. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  9526. * Mask of receiver address which is used to filter packets.
  9527. * This is for CFR version 2 only.
  9528. *
  9529. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  9530. * Indicates packets with a specific NSS will be filtered for CFR capture.
  9531. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  9532. * be done for packets matching the NSS specified within this bitmask.
  9533. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  9534. * bit 0 : NSS 1
  9535. * bit 1 : NSS 2
  9536. * ...
  9537. * bit 7 : NSS 8
  9538. *
  9539. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  9540. * Indicates packets with a specific BW will be filtered for CFR capture.
  9541. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  9542. * will be done for packets matching the bandwidths specified within this
  9543. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  9544. * numerated in enum nl80211_band (although not all bands may be supported
  9545. * by a given device).
  9546. *
  9547. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  9548. * Management packets matching the subtype filter categories will be
  9549. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9550. * represents the corresponding mgmt subtype value as per
  9551. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9552. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  9553. * This is for CFR version 2 only
  9554. *
  9555. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  9556. * Control packets matching the subtype filter categories will be
  9557. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9558. * represents the corresponding control subtype value as per
  9559. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9560. * This is for CFR version 2 only.
  9561. *
  9562. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  9563. * Data packets matching the subtype filter categories will be
  9564. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9565. * represents the corresponding data subtype value as per
  9566. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9567. * This is for CFR version 2 only.
  9568. *
  9569. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  9570. * Userspace can use this attribute to specify the driver about which transport
  9571. * mode shall be used by the driver to send CFR data to userspace. Uses values
  9572. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  9573. * not present, driver shall choose the default transport mechanism which is
  9574. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  9575. *
  9576. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  9577. * Userspace can use this attribute to specify the nl port id of the application
  9578. * which receives the CFR data and processes it further so that the drivers can
  9579. * unicast the NL events to a specific application. Optionally included when
  9580. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  9581. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  9582. * shall multicast the netlink events when this attribute is not included.
  9583. *
  9584. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  9585. * This attribute will be used by the driver to encapsulate and send CFR data
  9586. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  9587. * asynchronous event when the driver is configured to send CFR data using NL
  9588. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  9589. *
  9590. */
  9591. enum qca_wlan_vendor_peer_cfr_capture_attr {
  9592. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  9593. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  9594. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  9595. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  9596. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  9597. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  9598. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  9599. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  9600. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  9601. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  9602. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  9603. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  9604. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  9605. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  9606. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  9607. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  9608. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  9609. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  9610. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  9611. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  9612. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  9613. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  9614. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  9615. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  9616. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  9617. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  9618. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  9619. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  9620. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  9621. /* Keep last */
  9622. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  9623. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  9624. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  9625. };
  9626. /**
  9627. * enum qca_coex_config_profiles - This enum defines different types of
  9628. * traffic streams that can be prioritized one over the other during coex
  9629. * scenarios.
  9630. * The types defined in this enum are categorized in the below manner.
  9631. * 0 - 31 values corresponds to WLAN
  9632. * 32 - 63 values corresponds to BT
  9633. * 64 - 95 values corresponds to Zigbee
  9634. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  9635. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  9636. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  9637. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  9638. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  9639. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  9640. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  9641. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  9642. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  9643. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  9644. * @QCA_BT_A2DP: Prioritize BT A2DP
  9645. * @QCA_BT_BLE: Prioritize BT BLE
  9646. * @QCA_BT_SCO: Prioritize BT SCO
  9647. * @QCA_ZB_LOW: Prioritize Zigbee Low
  9648. * @QCA_ZB_HIGH: Prioritize Zigbee High
  9649. */
  9650. enum qca_coex_config_profiles {
  9651. /* 0 - 31 corresponds to WLAN */
  9652. QCA_WIFI_STA_DISCOVERY = 0,
  9653. QCA_WIFI_STA_CONNECTION = 1,
  9654. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  9655. QCA_WIFI_STA_DATA = 3,
  9656. QCA_WIFI_STA_ALL = 4,
  9657. QCA_WIFI_SAP_DISCOVERY = 5,
  9658. QCA_WIFI_SAP_CONNECTION = 6,
  9659. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  9660. QCA_WIFI_SAP_DATA = 8,
  9661. QCA_WIFI_SAP_ALL = 9,
  9662. QCA_WIFI_CASE_MAX = 31,
  9663. /* 32 - 63 corresponds to BT */
  9664. QCA_BT_A2DP = 32,
  9665. QCA_BT_BLE = 33,
  9666. QCA_BT_SCO = 34,
  9667. QCA_BT_CASE_MAX = 63,
  9668. /* 64 - 95 corresponds to Zigbee */
  9669. QCA_ZB_LOW = 64,
  9670. QCA_ZB_HIGH = 65,
  9671. QCA_ZB_CASE_MAX = 95,
  9672. /* 0xff is default value if the u8 profile value is not set. */
  9673. QCA_PROFILE_DEFAULT_VALUE = 255
  9674. };
  9675. /**
  9676. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  9677. * This enum defines the valid set of values of coex configuration types. These
  9678. * values may used by attribute
  9679. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  9680. *
  9681. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  9682. * weights to default values.
  9683. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  9684. * weights with configurability value.
  9685. */
  9686. enum qca_vendor_attr_coex_config_types {
  9687. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  9688. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  9689. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  9690. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  9691. };
  9692. /**
  9693. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  9694. * attributes
  9695. * Attributes for data used by
  9696. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  9697. *
  9698. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  9699. * Indicate config type.
  9700. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  9701. *
  9702. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  9703. * Indicate the Priority 1 profiles.
  9704. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9705. * In same priority level, maximum to 4 profiles can be set here.
  9706. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  9707. * Indicate the Priority 2 profiles.
  9708. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9709. * In same priority level, maximum to 4 profiles can be set here.
  9710. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  9711. * Indicate the Priority 3 profiles.
  9712. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9713. * In same priority level, maximum to 4 profiles can be set here.
  9714. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  9715. * Indicate the Priority 4 profiles.
  9716. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9717. * In same priority level, maximum to 4 profiles can be set here.
  9718. * NOTE:
  9719. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  9720. * arrangement:
  9721. * 1: In the same u32 attribute(priority x), the profiles enum values own
  9722. * same priority level.
  9723. * 2: 0xff is default value if the u8 profile value is not set.
  9724. * 3: max to 4 rules/profiles in same priority level.
  9725. * 4: max to 4 priority level (priority 1 - priority 4)
  9726. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  9727. * hybrid rules not support.
  9728. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  9729. * remain blank to reset all parameters.
  9730. * For example:
  9731. *
  9732. * If the attributes as follow:
  9733. * priority 1:
  9734. * ------------------------------------
  9735. * | 0xff | 0 | 1 | 2 |
  9736. * ------------------------------------
  9737. * priority 2:
  9738. * -------------------------------------
  9739. * | 0xff | 0xff | 0xff | 32 |
  9740. * -------------------------------------
  9741. * priority 3:
  9742. * -------------------------------------
  9743. * | 0xff | 0xff | 0xff | 65 |
  9744. * -------------------------------------
  9745. * then it means:
  9746. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  9747. * owns same priority level.
  9748. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  9749. * has priority over BT_A2DP and ZB_HIGH.
  9750. * 3: BT_A2DP has priority over ZB_HIGH.
  9751. */
  9752. enum qca_vendor_attr_coex_config_three_way {
  9753. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  9754. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  9755. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  9756. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  9757. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  9758. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  9759. /* Keep last */
  9760. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  9761. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  9762. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  9763. };
  9764. /**
  9765. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  9766. * This enum defines the valid set of values of peer stats cache types. These
  9767. * values are used by attribute
  9768. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  9769. *
  9770. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  9771. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  9772. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  9773. * statistics
  9774. */
  9775. enum qca_vendor_attr_peer_stats_cache_type {
  9776. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  9777. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  9778. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  9779. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  9780. };
  9781. /**
  9782. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  9783. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  9784. * Attributes are required to flush peer rate statistics from driver to
  9785. * user application.
  9786. *
  9787. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  9788. * Indicate peer stats cache type.
  9789. * The statistics types are 32-bit values from
  9790. * qca_vendor_attr_peer_stats_cache_type
  9791. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  9792. * of size 6, representing peer mac address.
  9793. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  9794. * containing buffer of statistics to send event to application layer entity.
  9795. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  9796. * representing cookie for peer unique session.
  9797. */
  9798. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  9799. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  9800. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  9801. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  9802. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  9803. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  9804. /* Keep last */
  9805. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  9806. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  9807. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  9808. };
  9809. /**
  9810. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  9811. * this enum defines all the possible state of zigbee, which can be
  9812. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  9813. *
  9814. * @ZIGBEE_IDLE: zigbee in idle state
  9815. * @ZIGBEE_FORM_NETWORK: zibee forming network
  9816. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  9817. * @ZIGBEE_JOIN: zigbee joining network
  9818. * @ZIGBEE_NETWORK_UP: zigbee network is up
  9819. * @ZIGBEE_HMI: zigbee in HMI mode
  9820. */
  9821. enum qca_mpta_helper_attr_zigbee_state {
  9822. ZIGBEE_IDLE = 0,
  9823. ZIGBEE_FORM_NETWORK = 1,
  9824. ZIGBEE_WAIT_JOIN = 2,
  9825. ZIGBEE_JOIN = 3,
  9826. ZIGBEE_NETWORK_UP = 4,
  9827. ZIGBEE_HMI = 5,
  9828. };
  9829. /**
  9830. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  9831. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  9832. */
  9833. enum qca_mpta_helper_vendor_attr {
  9834. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  9835. /* Optional attribute used to update zigbee state.
  9836. * enum qca_mpta_helper_attr_zigbee_state.
  9837. * NLA_U32 attribute.
  9838. */
  9839. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  9840. /* Optional attribute used to configure wlan duration for Shape-OCS
  9841. * during interrupt.
  9842. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  9843. * Value range 0 ~ 300 (ms).
  9844. * NLA_U32 attribute.
  9845. */
  9846. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  9847. /* Optional attribute used to configure non wlan duration for Shape-OCS
  9848. * during interrupt.
  9849. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  9850. * Value range 0 ~ 300 (ms).
  9851. * NLA_U32 attribute.
  9852. */
  9853. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  9854. /* Optional attribute used to configure wlan duration for Shape-OCS
  9855. * monitor period.
  9856. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  9857. * Value range 0 ~ 300 (ms)
  9858. * NLA_U32 attribute
  9859. */
  9860. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  9861. /* Optional attribute used to configure non wlan duration for Shape-OCS
  9862. * monitor period.
  9863. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  9864. * Value range 0 ~ 300 (ms)
  9865. * NLA_U32 attribute
  9866. */
  9867. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  9868. /* Optional attribute used to configure ocs interrupt duration.
  9869. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  9870. * Value range 1000 ~ 20000 (ms)
  9871. * NLA_U32 attribute
  9872. */
  9873. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  9874. /* Optional attribute used to configure ocs monitor duration.
  9875. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  9876. * Value range 1000 ~ 20000 (ms)
  9877. * NLA_U32 attribute
  9878. */
  9879. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  9880. /* Optional attribute used to notify wlan FW current zigbee channel.
  9881. * Value range 11 ~ 26
  9882. * NLA_U32 attribute
  9883. */
  9884. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  9885. /* Optional attribute used to configure wlan mute duration.
  9886. * Value range 0 ~ 400 (ms)
  9887. * NLA_U32 attribute
  9888. */
  9889. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  9890. /* keep last */
  9891. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  9892. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  9893. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  9894. };
  9895. /**
  9896. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  9897. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  9898. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  9899. *
  9900. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  9901. * to request the driver to start reporting Beacon frames.
  9902. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  9903. * to request the driver to stop reporting Beacon frames.
  9904. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  9905. * userspace to report received Beacon frames.
  9906. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  9907. * to indicate that the driver is going to pause reporting Beacon frames.
  9908. */
  9909. enum qca_wlan_vendor_beacon_reporting_op_types {
  9910. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  9911. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  9912. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  9913. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  9914. };
  9915. /**
  9916. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  9917. * types of reasons for which the driver is pausing reporting Beacon frames.
  9918. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  9919. *
  9920. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  9921. * reasons.
  9922. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  9923. * driver/firmware is starting a scan.
  9924. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  9925. * driver/firmware disconnects from the ESS and indicates the disconnection to
  9926. * userspace (non-seamless roaming case). This reason code will be used by the
  9927. * driver/firmware to indicate stopping of beacon report events. Userspace
  9928. * will need to start beacon reporting again (if desired) by sending vendor
  9929. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  9930. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  9931. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  9932. * completed.
  9933. */
  9934. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  9935. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  9936. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  9937. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  9938. };
  9939. /*
  9940. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  9941. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  9942. */
  9943. enum qca_wlan_vendor_attr_beacon_reporting_params {
  9944. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  9945. /* Specifies the type of operation that the vendor command/event is
  9946. * intended for. Possible values for this attribute are defined in
  9947. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  9948. */
  9949. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  9950. /* Optionally set by userspace to request the driver to report Beacon
  9951. * frames using asynchronous vendor events when the
  9952. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9953. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  9954. * If this flag is not set, the driver will only update Beacon frames
  9955. * in cfg80211 scan cache but not send any vendor events.
  9956. */
  9957. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  9958. /* Optionally used by userspace to request the driver/firmware to
  9959. * report Beacon frames periodically when the
  9960. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9961. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  9962. * u32 attribute, indicates the period of Beacon frames to be reported
  9963. * and in the units of beacon interval.
  9964. * If this attribute is missing in the command, then the default value
  9965. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  9966. * Zero is an invalid value.
  9967. * If a valid value is received for this attribute, the driver will
  9968. * update the cfg80211 scan cache periodically as per the value
  9969. * received in this attribute in addition to updating the cfg80211 scan
  9970. * cache when there is significant change in Beacon frame IEs.
  9971. */
  9972. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  9973. /* Used by the driver to encapsulate the SSID when the
  9974. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9975. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  9976. * u8 array with a maximum size of 32.
  9977. *
  9978. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  9979. * will be taken from the SSID element of the received Beacon frame.
  9980. *
  9981. * When generating beacon report from Multiple BSSID Beacon frame and
  9982. * if the BSSID of the current connected BSS matches the BSSID of the
  9983. * transmitting BSS, the SSID will be taken from the SSID element of
  9984. * the received Beacon frame.
  9985. *
  9986. * When generating beacon report from Multiple BSSID Beacon frame and
  9987. * if the BSSID of the current connected BSS matches the BSSID of one
  9988. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  9989. * field included in the nontransmitted BSS profile whose derived BSSI
  9990. * is same as the BSSID of the current connected BSS. When there is no
  9991. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  9992. * of current connected* BSS, this attribute will not be present.
  9993. */
  9994. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  9995. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  9996. * is currently connected to when the
  9997. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9998. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  9999. * fixed size of 6 bytes.
  10000. *
  10001. * When generating beacon report from a Multiple BSSID beacon and the
  10002. * current connected BSSID matches one of the nontransmitted BSSIDs in
  10003. * a Multiple BSSID set, this BSSID will be that particular
  10004. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  10005. * transmitting address of the Beacon frame).
  10006. */
  10007. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  10008. /* Used by the driver to encapsulate the frequency in MHz on which
  10009. * the Beacon frame was received when the
  10010. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  10011. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10012. * u32 attribute.
  10013. */
  10014. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  10015. /* Used by the driver to encapsulate the Beacon interval
  10016. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10017. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10018. * u16 attribute. The value will be copied from the Beacon frame and
  10019. * the units are TUs.
  10020. */
  10021. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  10022. /* Used by the driver to encapsulate the Timestamp field from the
  10023. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  10024. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10025. * u64 attribute.
  10026. */
  10027. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  10028. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  10029. * Beacon frame is received in the driver when the
  10030. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10031. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  10032. * the units of nanoseconds. This value is expected to have accuracy of
  10033. * about 10 ms.
  10034. */
  10035. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  10036. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  10037. * which this event is generated when the
  10038. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10039. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  10040. */
  10041. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  10042. /* Used by the driver to specify the reason for the driver/firmware to
  10043. * pause sending beacons to userspace when the
  10044. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10045. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  10046. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  10047. * attribute.
  10048. */
  10049. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  10050. /* Used by the driver to specify whether the driver will automatically
  10051. * resume reporting beacon events to userspace later (for example after
  10052. * the ongoing off-channel activity is completed etc.) when the
  10053. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10054. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  10055. */
  10056. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  10057. /* Optionally set by userspace to request the driver not to resume
  10058. * beacon reporting after a pause is completed, when the
  10059. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10060. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10061. * If this flag is set, the driver will not resume beacon reporting
  10062. * after any pause in beacon reporting is completed. Userspace has to
  10063. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  10064. * to initiate beacon reporting again. If this flag is set in the recent
  10065. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  10066. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  10067. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  10068. * set by the driver. Setting this flag until and unless there is a
  10069. * specific need is not recommended as there is a chance of some beacons
  10070. * received after pause command and next start command being not
  10071. * reported.
  10072. */
  10073. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  10074. /* Keep last */
  10075. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  10076. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  10077. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  10078. };
  10079. /**
  10080. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  10081. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  10082. *
  10083. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  10084. * a virtual device.
  10085. *
  10086. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  10087. * a physical device.
  10088. */
  10089. enum qca_vendor_oem_device_type {
  10090. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  10091. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  10092. };
  10093. /*
  10094. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  10095. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  10096. *
  10097. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  10098. * used to set/query the data to/from the firmware. On query, the same
  10099. * attribute is used to carry the respective data in the reply sent by the
  10100. * driver to userspace. The request to set/query the data and the format of the
  10101. * respective data from the firmware are embedded in the attribute. The
  10102. * maximum size of the attribute payload is 1024 bytes.
  10103. *
  10104. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  10105. * based on this field. This optional attribute is included to specify whether
  10106. * the device type is a virtual device or a physical device for the command.
  10107. * This attribute can be omitted for a virtual device (default) command.
  10108. * This u8 attribute is used to carry information for the device type using
  10109. * values defined by enum qca_vendor_oem_device_type.
  10110. *
  10111. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  10112. * attribute when the data is queried from the firmware.
  10113. *
  10114. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  10115. * is set when the userspace queries data from the firmware. This attribute
  10116. * should not be set when userspace sets the OEM data to the firmware.
  10117. */
  10118. enum qca_wlan_vendor_attr_oem_data_params {
  10119. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  10120. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  10121. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  10122. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  10123. /* keep last */
  10124. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  10125. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  10126. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  10127. };
  10128. /**
  10129. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  10130. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  10131. *
  10132. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  10133. * Nested attribute containing multiple ranges with following attributes:
  10134. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  10135. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  10136. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  10137. *
  10138. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  10139. * Starting center frequency in MHz.
  10140. *
  10141. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  10142. * Ending center frequency in MHz.
  10143. *
  10144. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  10145. * s32 attribute, optional. It is a per frequency range attribute.
  10146. * The maximum TX power limit from user space is to be applied on an
  10147. * unrestricted interface for corresponding frequency range. It is also
  10148. * possible that the actual TX power may be even lower than this cap due to
  10149. * other considerations such as regulatory compliance, SAR, etc. In absence of
  10150. * this attribute the driver shall follow current behavior which means
  10151. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  10152. * power derived by the driver based on regulatory/SAR during interface up.
  10153. *
  10154. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  10155. * u32 attribute, optional. Indicates all the interface types which are
  10156. * restricted for all frequency ranges provided in
  10157. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  10158. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  10159. * This attribute encapsulates bitmasks of interface types defined in
  10160. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  10161. * move to a safe channel and if no safe channel is available the driver shall
  10162. * terminate that interface functionality. In absence of this attribute,
  10163. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  10164. * TX power limit derived from either
  10165. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  10166. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  10167. * is not provided.
  10168. */
  10169. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  10170. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  10171. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  10172. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  10173. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  10174. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  10175. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  10176. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  10177. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  10178. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  10179. };
  10180. /*
  10181. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  10182. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  10183. */
  10184. enum qca_wlan_vendor_attr_add_sta_node_params {
  10185. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  10186. /* 6 byte MAC address of STA */
  10187. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  10188. /* Authentication algorithm used by the station of size u16;
  10189. * defined in enum nl80211_auth_type.
  10190. */
  10191. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  10192. /* keep last */
  10193. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  10194. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  10195. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  10196. };
  10197. /**
  10198. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  10199. * This enum defines the valid set of values of BT coex chain mode.
  10200. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  10201. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  10202. *
  10203. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
  10204. * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
  10205. */
  10206. enum qca_btc_chain_mode {
  10207. QCA_BTC_CHAIN_SHARED = 0,
  10208. QCA_BTC_CHAIN_SEPARATED = 1,
  10209. };
  10210. /**
  10211. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  10212. * chain mode.
  10213. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  10214. *
  10215. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  10216. * Indicates the BT coex chain mode, are 32-bit values from
  10217. * enum qca_btc_chain_mode. This attribute is mandatory.
  10218. *
  10219. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  10220. * If set, vdev should be restarted when BT coex chain mode is updated.
  10221. * This attribute is optional.
  10222. */
  10223. enum qca_vendor_attr_btc_chain_mode {
  10224. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  10225. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  10226. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  10227. /* Keep last */
  10228. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  10229. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  10230. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  10231. };
  10232. /**
  10233. * enum qca_vendor_wlan_sta_flags - Station feature flags
  10234. * Bits will be set to 1 if the corresponding features are enabled.
  10235. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  10236. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  10237. for the station
  10238. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  10239. for the station
  10240. */
  10241. enum qca_vendor_wlan_sta_flags {
  10242. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  10243. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  10244. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  10245. };
  10246. /**
  10247. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  10248. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  10249. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  10250. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  10251. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  10252. */
  10253. enum qca_vendor_wlan_sta_guard_interval {
  10254. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  10255. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  10256. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  10257. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  10258. };
  10259. /**
  10260. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  10261. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  10262. *
  10263. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  10264. * Required attribute in request for AP mode only, 6-byte MAC address,
  10265. * corresponding to the station's MAC address for which information is
  10266. * requested. For STA mode this is not required as the info always correspond
  10267. * to the self STA and the current/last association.
  10268. *
  10269. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  10270. * Optionally used in response, u32 attribute, contains a bitmap of different
  10271. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  10272. *
  10273. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  10274. * Optionally used in response, u32 attribute, possible values are defined in
  10275. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  10276. * Guard interval used by the station.
  10277. *
  10278. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  10279. * Optionally used in response, u32 attribute, used in AP mode only.
  10280. * Value indicates the number of data frames received from station with retry
  10281. * bit set to 1 in FC.
  10282. *
  10283. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  10284. * Optionally used in response, u32 attribute, used in AP mode only.
  10285. * Counter for number of data frames with broadcast or multicast address in
  10286. * the destination address received from the station.
  10287. *
  10288. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  10289. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  10290. * Value indicates the number of data frames successfully transmitted only
  10291. * after retrying the packets and for which the TX status has been updated
  10292. * back to host from target.
  10293. *
  10294. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  10295. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  10296. * Value indicates the number of data frames not transmitted successfully even
  10297. * after retrying the packets for the number of times equal to the total number
  10298. * of retries allowed for that packet and for which the TX status has been
  10299. * updated back to host from target.
  10300. *
  10301. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  10302. * Optionally used in response, u32 attribute, used in AP mode only.
  10303. * Counter in the target for the number of data frames successfully transmitted
  10304. * to the station.
  10305. *
  10306. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  10307. * Optionally used in response, u32 attribute, used in AP mode only.
  10308. * Value indicates the number of data frames successfully transmitted only
  10309. * after retrying the packets.
  10310. *
  10311. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  10312. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  10313. * Value indicates the number of data frames not transmitted successfully even
  10314. * after retrying the packets for the number of times equal to the total number
  10315. * of retries allowed for that packet.
  10316. *
  10317. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  10318. * the STA mode only. Represent the number of probe requests sent by the STA
  10319. * while attempting to roam on missing certain number of beacons from the
  10320. * connected AP. If queried in the disconnected state, this represents the
  10321. * count for the last connected state.
  10322. *
  10323. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  10324. * the STA mode. Represent the number of probe responses received by the station
  10325. * while attempting to roam on missing certain number of beacons from the
  10326. * connected AP. When queried in the disconnected state, this represents the
  10327. * count when in last connected state.
  10328. *
  10329. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  10330. * STA mode only. Represents the total number of frames sent out by STA
  10331. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  10332. * only for the connect session. Represents the count of last connected session,
  10333. * when queried in the disconnected state.
  10334. *
  10335. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  10336. * Total number of RTS sent out by the STA. This data is maintained per connect
  10337. * session. Represents the count of last connected session, when queried in the
  10338. * disconnected state.
  10339. *
  10340. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  10341. * STA mode.Represent the number of RTS transmission failure that reach retry
  10342. * limit. This data is maintained per connect session. Represents the count of
  10343. * last connected session, when queried in the disconnected state.
  10344. *
  10345. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  10346. * the STA mode. Represent the total number of non aggregated frames transmitted
  10347. * by the STA. This data is maintained per connect session. Represents the count
  10348. * of last connected session, when queried in the disconnected state.
  10349. *
  10350. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  10351. * STA mode. Represent the total number of aggregated frames transmitted by the
  10352. * STA. This data is maintained per connect session. Represents the count of
  10353. * last connected session, when queried in the disconnected state.
  10354. *
  10355. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  10356. * the STA mode. Represents the number of received frames with a good PLCP. This
  10357. * data is maintained per connect session. Represents the count of last
  10358. * connected session, when queried in the disconnected state.
  10359. *
  10360. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  10361. * used in the STA mode. Represents the number of occasions that no valid
  10362. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  10363. * session. Represents the count of last connected session, when queried in the
  10364. * disconnected state.
  10365. *
  10366. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  10367. * STA mode. Represents the number of frames for which CRC check failed in the
  10368. * MAC. This data is maintained per connect session. Represents the count of
  10369. * last connected session, when queried in the disconnected state.
  10370. *
  10371. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  10372. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  10373. * data is maintained per connect session. Represents the count of last
  10374. * connected session, when queried in the disconnected state.
  10375. *
  10376. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  10377. * mode. Represents the number of received Block Acks. This data is maintained
  10378. * per connect session. Represents the count of last connected session, when
  10379. * queried in the disconnected state.
  10380. *
  10381. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  10382. * mode. Represents the number of beacons received from the connected BSS. This
  10383. * data is maintained per connect session. Represents the count of last
  10384. * connected session, when queried in the disconnected state.
  10385. *
  10386. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  10387. * STA mode. Represents the number of beacons received by the other BSS when in
  10388. * connected state (through the probes done by the STA). This data is maintained
  10389. * per connect session. Represents the count of last connected session, when
  10390. * queried in the disconnected state.
  10391. *
  10392. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  10393. * the STA mode. Represents the number of received DATA frames with good FCS and
  10394. * matching Receiver Address when in connected state. This data is maintained
  10395. * per connect session. Represents the count of last connected session, when
  10396. * queried in the disconnected state.
  10397. *
  10398. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  10399. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  10400. * when in the connected state. This data is maintained per connect session.
  10401. * Represents the count of last connected session, when queried in the
  10402. * disconnected state.
  10403. *
  10404. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  10405. * STA mode. This represents the target power in dBm for the transmissions done
  10406. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  10407. * connect session. Represents the count of last connected session, when
  10408. * queried in the disconnected state.
  10409. *
  10410. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  10411. * STA mode. This represents the Target power in dBm for transmissions done to
  10412. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10413. * session. Represents the count of last connected session, when queried in the
  10414. * disconnected state.
  10415. *
  10416. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  10417. * STA mode. This represents the Target power in dBm for transmissions done to
  10418. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  10419. * Represents the count of last connected session, when queried in the
  10420. * disconnected state.
  10421. *
  10422. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  10423. * STA mode. This represents the Target power in dBm for transmissions done to
  10424. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10425. * session. Represents the count of last connected session, when queried in
  10426. * the disconnected state.
  10427. *
  10428. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  10429. * STA mode. This represents the Target power in dBm for for transmissions done
  10430. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  10431. * Represents the count of last connected session, when queried in the
  10432. * disconnected state.
  10433. *
  10434. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  10435. * in the STA mode. This represents the Nested attribute representing the
  10436. * overflow counts of each receive buffer allocated to the hardware during the
  10437. * STA's connection. The number of hw buffers might vary for each WLAN
  10438. * solution and hence this attribute represents the nested array of all such
  10439. * HW buffer count. This data is maintained per connect session. Represents
  10440. * the count of last connected session, when queried in the disconnected state.
  10441. *
  10442. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  10443. * allowed as per the regulatory requirements for the current or last connected
  10444. * session. Used in the STA mode.
  10445. *
  10446. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  10447. * (dBm) used by the station in its latest unicast frame while communicating
  10448. * to the AP in the connected state. When queried in the disconnected state,
  10449. * this represents the TX power used by the STA with last AP communication
  10450. * when in connected state.
  10451. *
  10452. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  10453. * level used to adjust the RX sensitivity. Represents the current ANI level
  10454. * when queried in the connected state. When queried in the disconnected
  10455. * state, this corresponds to the latest ANI level at the instance of
  10456. * disconnection.
  10457. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  10458. * only. This represents the number of group addressed robust management frames
  10459. * received from this station with an invalid MIC or a missing MME when PMF is
  10460. * enabled.
  10461. *
  10462. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  10463. * only. This represents the number of group addressed robust management frames
  10464. * received from this station with the packet number less than or equal to the
  10465. * last received packet number when PMF is enabled.
  10466. *
  10467. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  10468. * mode only. This represents the number of Beacon frames received from this
  10469. * station with an invalid MIC or a missing MME when beacon protection is
  10470. * enabled.
  10471. *
  10472. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  10473. * only. This represents number of Beacon frames received from this station with
  10474. * the packet number less than or equal to the last received packet number when
  10475. * beacon protection is enabled.
  10476. *
  10477. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  10478. * STA mode only. Driver uses this attribute to populate the connection failure
  10479. * reason codes and the values are defined in
  10480. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  10481. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  10482. * connection failure from driver. The driver shall not include this attribute
  10483. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  10484. * connection failure observed in the last attempted connection.
  10485. *
  10486. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  10487. * used by the station in its last TX frame while communicating to the AP in the
  10488. * connected state. When queried in the disconnected state, this represents the
  10489. * rate used by the STA in the last TX frame to the AP when it was connected.
  10490. * This attribute is used for STA mode only.
  10491. *
  10492. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  10493. * This represents the rate index used by the STA for the last TX frame to the
  10494. * AP. When queried in the disconnected state, this gives the last RIX used by
  10495. * the STA in the last TX frame to the AP when it was connected.
  10496. *
  10497. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  10498. * mode only. This represents the number of times the STA TSF goes out of sync
  10499. * from the AP after the connection. If queried in the disconnected state, this
  10500. * gives the count of TSF out of sync for the last connection.
  10501. *
  10502. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  10503. * mode only. This represents the roam trigger reason for the last roaming
  10504. * attempted by the firmware. This can be queried either in connected state or
  10505. * disconnected state. Each bit of this attribute represents the different
  10506. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  10507. *
  10508. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  10509. * only. This represents the roam fail reason for the last failed roaming
  10510. * attempt by the firmware. Different roam failure reason codes are specified
  10511. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  10512. * connected state or disconnected state.
  10513. *
  10514. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  10515. * STA mode only. This represents the roam invoke fail reason for the last
  10516. * failed roam invoke. Different roam invoke failure reason codes
  10517. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  10518. * queried either in connected state or disconnected state.
  10519. *
  10520. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  10521. * This represents the average congestion duration of uplink frames in MAC
  10522. * queue in unit of ms. This can be queried either in connected state or
  10523. * disconnected state.
  10524. */
  10525. enum qca_wlan_vendor_attr_get_sta_info {
  10526. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  10527. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  10528. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  10529. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  10530. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  10531. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  10532. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  10533. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  10534. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  10535. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  10536. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  10537. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  10538. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  10539. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  10540. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  10541. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  10542. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  10543. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  10544. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  10545. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  10546. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  10547. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  10548. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  10549. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  10550. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  10551. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  10552. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  10553. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  10554. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  10555. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  10556. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  10557. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  10558. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  10559. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  10560. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  10561. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  10562. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  10563. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  10564. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  10565. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  10566. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  10567. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  10568. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  10569. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  10570. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  10571. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  10572. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  10573. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  10574. /* keep last */
  10575. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  10576. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  10577. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  10578. };
  10579. /**
  10580. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  10581. * Used when the driver triggers the STA to disconnect from the AP.
  10582. *
  10583. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  10584. * disconnection with the AP due to unspecified reasons.
  10585. *
  10586. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  10587. * disconnection with the AP due to a roaming failure. This roaming is triggered
  10588. * internally (host driver/firmware).
  10589. *
  10590. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  10591. * the AP when the user/external triggered roaming fails.
  10592. *
  10593. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  10594. * by the host driver whenever gateway reachability failure is detected and the
  10595. * driver disconnects with AP.
  10596. *
  10597. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  10598. * the AP on a channel switch announcement from it with an unsupported channel.
  10599. *
  10600. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  10601. * with indoor channels disabled and if the STA is connected on one of these
  10602. * disabled channels, the host driver disconnected the STA with this reason
  10603. * code.
  10604. *
  10605. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  10606. * explicit request from the user to disable the current operating channel.
  10607. *
  10608. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  10609. * the internal host driver/firmware recovery.
  10610. *
  10611. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  10612. * a timeout for the key installations from the user space.
  10613. *
  10614. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  10615. * STA on a band change request from the user space to a different band from the
  10616. * current operation channel/band.
  10617. *
  10618. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  10619. * interface down trigger from the user space.
  10620. *
  10621. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  10622. * STA on getting continuous transmission failures for multiple Data frames.
  10623. *
  10624. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  10625. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  10626. * represents inactivity from AP on such transmissions.
  10627. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  10628. * disconnection when SA Query times out (AP does not respond to SA Query).
  10629. *
  10630. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  10631. * STA on missing the beacons continuously from the AP.
  10632. *
  10633. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  10634. * able to move to the channel mentioned by the AP in CSA.
  10635. *
  10636. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  10637. */
  10638. enum qca_disconnect_reason_codes {
  10639. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  10640. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  10641. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  10642. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  10643. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  10644. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  10645. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  10646. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  10647. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  10648. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  10649. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  10650. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  10651. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  10652. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  10653. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  10654. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  10655. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  10656. };
  10657. /**
  10658. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  10659. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  10660. *
  10661. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  10662. * This attribute represents the driver specific reason codes (local
  10663. * driver/firmware initiated reasons for disconnection) defined
  10664. * in enum qca_disconnect_reason_codes.
  10665. */
  10666. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  10667. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  10668. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  10669. /* keep last */
  10670. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  10671. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  10672. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  10673. };
  10674. /**
  10675. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  10676. *
  10677. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  10678. */
  10679. enum qca_wlan_tspec_operation {
  10680. QCA_WLAN_TSPEC_ADD = 0,
  10681. QCA_WLAN_TSPEC_DEL = 1,
  10682. QCA_WLAN_TSPEC_GET = 2,
  10683. };
  10684. /**
  10685. * enum qca_wlan_tspec_direction - Direction in TSPEC
  10686. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  10687. *
  10688. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  10689. */
  10690. enum qca_wlan_tspec_direction {
  10691. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  10692. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  10693. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  10694. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  10695. };
  10696. /**
  10697. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  10698. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  10699. *
  10700. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  10701. */
  10702. enum qca_wlan_tspec_ack_policy {
  10703. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  10704. QCA_WLAN_TSPEC_NO_ACK = 1,
  10705. /* Reserved */
  10706. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  10707. };
  10708. /**
  10709. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  10710. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  10711. *
  10712. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  10713. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  10714. * are defined in enum qca_wlan_tspec_operation.
  10715. * Mandatory attribute for all kinds of config TSPEC requests.
  10716. *
  10717. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  10718. * u8 attribute. TS ID. Possible values are 0-7.
  10719. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  10720. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  10721. *
  10722. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  10723. * u8 attribute. Direction of data carried by the TS. Possible values are
  10724. * defined in enum qca_wlan_tspec_direction.
  10725. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10726. *
  10727. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  10728. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  10729. * with the TS. set - enabled, not set - disabled.
  10730. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10731. *
  10732. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  10733. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  10734. * belonging to this TS. Possible values are 0-7.
  10735. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10736. *
  10737. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  10738. * u8 attribute. Indicate whether MAC acknowledgements are required for
  10739. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  10740. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  10741. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10742. *
  10743. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  10744. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  10745. * belonging to this TS.
  10746. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10747. *
  10748. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  10749. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  10750. * belonging to this TS.
  10751. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10752. *
  10753. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  10754. * u32 attribute. Specify the minimum interval in microseconds between the
  10755. * start of two successive SPs.
  10756. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10757. *
  10758. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  10759. * u32 attribute. Specify the maximum interval in microseconds between the
  10760. * start of two successive SPs.
  10761. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10762. *
  10763. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  10764. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  10765. * without arrival or transfer of an MPDU belonging to the TS before this TS
  10766. * is deleted by the MAC entity at the HC.
  10767. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10768. *
  10769. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  10770. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  10771. * without arrival or transfer of an MSDU belonging to the TS before the
  10772. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  10773. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  10774. * interval is always less than or equal to the inactivity interval.
  10775. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10776. *
  10777. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  10778. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  10779. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  10780. * bounds of this TSPEC.
  10781. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10782. *
  10783. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  10784. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  10785. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  10786. * bounds of this TSPEC.
  10787. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10788. *
  10789. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  10790. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  10791. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  10792. * the bounds of this TSPEC.
  10793. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10794. *
  10795. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  10796. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  10797. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  10798. * value of 0 indicates that there are no bursts.
  10799. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10800. *
  10801. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  10802. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  10803. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  10804. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10805. *
  10806. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  10807. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  10808. * and above the stated application rates required to transport an MSDU/A-MSDU
  10809. * belonging to the TS in this TSPEC.
  10810. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10811. */
  10812. enum qca_wlan_vendor_attr_config_tspec {
  10813. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  10814. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  10815. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  10816. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  10817. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  10818. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  10819. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  10820. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  10821. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  10822. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  10823. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  10824. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  10825. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  10826. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  10827. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  10828. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  10829. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  10830. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  10831. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  10832. /* keep last */
  10833. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  10834. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  10835. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  10836. };
  10837. /**
  10838. * enum qca_wlan_medium_assess_type - Type of medium assess request
  10839. *
  10840. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  10841. */
  10842. enum qca_wlan_medium_assess_type {
  10843. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  10844. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  10845. };
  10846. /**
  10847. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  10848. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  10849. *
  10850. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  10851. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  10852. * Specify the type of medium assess request and indicate its type in response.
  10853. * Possible values are defined in enum qca_wlan_medium_assess_type.
  10854. *
  10855. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  10856. * u32 attribute. Mandatory in CCA request.
  10857. * Specify the assessment period in terms of seconds. Assessment result will be
  10858. * sent as the response to the CCA request after the assessment period.
  10859. *
  10860. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  10861. * u32 attribute. Mandatory in response to CCA request.
  10862. * Total timer tick count of the assessment cycle.
  10863. *
  10864. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  10865. * u32 attribute. Mandatory in response to CCA request.
  10866. * Timer tick count of idle time in the assessment cycle.
  10867. *
  10868. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  10869. * u32 attribute. Mandatory in response to CCA request.
  10870. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  10871. *
  10872. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  10873. * u32 attribute. Mandatory in response to CCA request.
  10874. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  10875. *
  10876. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  10877. * s32 attribute. Mandatory in response to CCA request.
  10878. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  10879. *
  10880. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  10881. * s32 attribute. Mandatory in response to CCA request.
  10882. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  10883. *
  10884. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  10885. * u8 attribute. Mandatory in congestion report request.
  10886. * 1-enable 0-disable.
  10887. *
  10888. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  10889. * u8 attribute. Mandatory in congestion report enable request and will be
  10890. * ignored if present in congestion report disable request. Possible values are
  10891. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  10892. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  10893. * congestion percentage reaches the configured threshold.
  10894. *
  10895. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  10896. * u8 attribute. Optional in congestion report enable request and will be
  10897. * ignored if present in congestion report disable request.
  10898. * Specify the interval of congestion report event in terms of seconds. Possible
  10899. * values are 1-255. Default value 1 will be used if this attribute is omitted
  10900. * or using invalid values.
  10901. *
  10902. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  10903. * u8 attribute. Mandatory in congestion report event.
  10904. * Indicate the actual congestion percentage. Possible values are 0-100.
  10905. */
  10906. enum qca_wlan_vendor_attr_medium_assess {
  10907. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  10908. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  10909. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  10910. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  10911. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  10912. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  10913. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  10914. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  10915. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  10916. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  10917. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  10918. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  10919. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  10920. /* keep last */
  10921. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  10922. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  10923. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  10924. };
  10925. /**
  10926. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  10927. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  10928. *
  10929. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  10930. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  10931. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  10932. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  10933. *
  10934. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  10935. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  10936. *
  10937. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  10938. * u8 attribute, required. indicates group id of Tx VDEV
  10939. *
  10940. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  10941. * Nested attribute. This attribute shall be used by the driver to send
  10942. * group information. The attributes defined in enum
  10943. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  10944. * are nested in this attribute.
  10945. */
  10946. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  10947. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  10948. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  10949. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  10950. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  10951. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  10952. /* keep last */
  10953. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  10954. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  10955. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  10956. };
  10957. /**
  10958. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  10959. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  10960. *
  10961. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  10962. * u32 attribute, required. contains interface index.
  10963. *
  10964. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  10965. * u8 attribute, required. 0 - means vdev is in down state.
  10966. * 1- means vdev is in up state.
  10967. */
  10968. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  10969. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  10970. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  10971. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  10972. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  10973. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  10974. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  10975. };
  10976. /**
  10977. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  10978. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  10979. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  10980. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  10981. * frame
  10982. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  10983. * Request frame.
  10984. */
  10985. enum qca_wlan_vendor_oci_override_frame_type {
  10986. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  10987. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  10988. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  10989. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  10990. };
  10991. /**
  10992. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  10993. *
  10994. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  10995. * STA interface has to be given while selecting the connection policies
  10996. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  10997. * An interface is set as primary through the attribute
  10998. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  10999. * applicable if the primary interface has not been set earlier.
  11000. *
  11001. * The intention is not to downgrade the primary STA performance, such as:
  11002. * - Do not reduce the number of TX/RX chains of primary connection.
  11003. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  11004. * chains.
  11005. * - If using MCC, should set the MCC duty cycle of the primary connection to
  11006. * be higher than the secondary connection.
  11007. *
  11008. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  11009. * subsequent STA connection shall be chosen to balance with the existing
  11010. * concurrent STA's performance.
  11011. * Such as
  11012. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  11013. * capability.
  11014. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  11015. * to the secondary.
  11016. * - Prefer BSSID candidates which will help provide the best "overall"
  11017. * performance for all the STA connections.
  11018. */
  11019. enum qca_wlan_concurrent_sta_policy_config {
  11020. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  11021. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  11022. };
  11023. /**
  11024. * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes
  11025. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command.
  11026. *
  11027. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG:
  11028. * u8 attribute. Configures the concurrent STA policy configuration.
  11029. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  11030. */
  11031. enum qca_wlan_vendor_attr_concurrent_sta_policy {
  11032. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0,
  11033. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1,
  11034. /* keep last */
  11035. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST,
  11036. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX =
  11037. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1,
  11038. };
  11039. /**
  11040. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  11041. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  11042. * attribute.
  11043. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  11044. * for unicast probe request.
  11045. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  11046. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  11047. * ath request.
  11048. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  11049. * received from AP.
  11050. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  11051. * request.
  11052. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  11053. * assoc request.
  11054. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  11055. * received from AP.
  11056. */
  11057. enum qca_sta_connect_fail_reason_codes {
  11058. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  11059. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  11060. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  11061. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  11062. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  11063. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  11064. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  11065. };
  11066. /**
  11067. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  11068. * OCI override request. These attributes are used inside nested attribute
  11069. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  11070. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  11071. *
  11072. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  11073. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  11074. * attribute to specify the frame type in which the OCI is to be overridden.
  11075. *
  11076. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  11077. * OCI frequency (in MHz) to override in the specified frame type.
  11078. */
  11079. enum qca_wlan_vendor_attr_oci_override {
  11080. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  11081. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  11082. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  11083. /* keep last */
  11084. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  11085. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  11086. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  11087. };
  11088. /**
  11089. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  11090. * filters defined in this enum are used in attribute
  11091. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  11092. *
  11093. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  11094. * shall filter the channels which are not usable because of coexistence with
  11095. * cellular radio.
  11096. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  11097. * shall filter the channels which are not usable because of existing active
  11098. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  11099. *
  11100. */
  11101. enum qca_wlan_vendor_usable_channels_filter {
  11102. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  11103. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  11104. };
  11105. /**
  11106. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  11107. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  11108. *
  11109. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  11110. * u32 attribute, required. Indicates the center frequency of the primary
  11111. * channel in MHz.
  11112. *
  11113. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  11114. * u32 attribute. Indicates the center frequency of the primary segment of the
  11115. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  11116. * 160 MHz, and 320 MHz channels.
  11117. *
  11118. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  11119. * u32 attribute. Indicates the center frequency of the secondary segment of
  11120. * 80+80 channel in MHz. This attribute is required only when
  11121. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  11122. *
  11123. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  11124. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  11125. * values are defined in enum nl80211_chan_width.
  11126. *
  11127. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  11128. * u32 attribute, required. Indicates all the interface types for which this
  11129. * channel is usable. This attribute encapsulates bitmasks of interface types
  11130. * defined in enum nl80211_iftype.
  11131. *
  11132. */
  11133. enum qca_wlan_vendor_attr_chan_info {
  11134. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  11135. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  11136. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  11137. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  11138. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  11139. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  11140. /* keep last */
  11141. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  11142. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  11143. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  11144. };
  11145. /**
  11146. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  11147. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  11148. *
  11149. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  11150. * u32 attribute. Indicates the bands from which the channels should be reported
  11151. * in response. This attribute encapsulates bit masks of bands defined in enum
  11152. * nl80211_band. Optional attribute, if not present in the request the driver
  11153. * shall return channels from all supported bands.
  11154. *
  11155. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  11156. * u32 attribute. Indicates all the interface types for which the usable
  11157. * channels information is requested. This attribute encapsulates bitmasks of
  11158. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  11159. * present in the request the driver shall send information of all supported
  11160. * interface modes.
  11161. *
  11162. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  11163. * u32 attribute. This attribute carries information of all filters that shall
  11164. * be applied while populating usable channels information by the driver. This
  11165. * attribute carries bit masks of different filters defined in enum
  11166. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  11167. * in the request the driver shall send information of channels without applying
  11168. * any of the filters that can be configured through this attribute.
  11169. *
  11170. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  11171. * Nested attribute. This attribute shall be used by the driver to send
  11172. * usability information of each channel. The attributes defined in enum
  11173. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  11174. */
  11175. enum qca_wlan_vendor_attr_usable_channels {
  11176. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  11177. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  11178. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  11179. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  11180. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  11181. /* keep last */
  11182. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  11183. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  11184. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  11185. };
  11186. /**
  11187. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  11188. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  11189. *
  11190. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  11191. * the list of radar history entries.
  11192. * Each entry contains freq, timestamp, and radar signal detect flag.
  11193. * The driver shall add an entry when CAC has finished, or radar signal
  11194. * has been detected post AP beaconing. The driver shall maintain at least
  11195. * 8 entries in order to save CAC result for a 160 MHz channel.
  11196. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  11197. * Channel frequency in MHz.
  11198. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  11199. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  11200. * or radar detection.
  11201. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  11202. * This flag indicates radar signal has been detected.
  11203. */
  11204. enum qca_wlan_vendor_attr_radar_history {
  11205. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  11206. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  11207. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  11208. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  11209. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  11210. /* keep last */
  11211. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  11212. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  11213. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  11214. };
  11215. /**
  11216. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  11217. *
  11218. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  11219. * target exited MCC state and cleared the quota information. In the
  11220. * command it clears MCC quota setting and restores adaptive scheduling.
  11221. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  11222. * will not be changed.
  11223. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  11224. * and the target may change the quota based on the data activity.
  11225. */
  11226. enum qca_wlan_vendor_mcc_quota_type {
  11227. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  11228. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  11229. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  11230. };
  11231. /**
  11232. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  11233. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  11234. * quota information or as a command to set the required MCC quota for an
  11235. * interface.
  11236. *
  11237. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  11238. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  11239. * In a command this specifies the MCC quota type to be set for the interface.
  11240. * In an event this provides the current quota type in force.
  11241. * This is required in a command and an event.
  11242. *
  11243. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  11244. * the list of channel quota entries.
  11245. * In an event each entry contains the frequency and respective time quota for
  11246. * all the MCC interfaces.
  11247. * In a command it specifies the interface index and respective time quota.
  11248. * In a command only one entry (ifindex, quota pair) may be specified.
  11249. *
  11250. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  11251. * Channel frequency in MHz. This is present only in an event.
  11252. *
  11253. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  11254. * Channel time quota expressed as percentage.
  11255. * This is present in an event and a command.
  11256. * In an command, the user shall specify the quota to be allocated for the
  11257. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  11258. * In an event this provides the existing quota for the channel.
  11259. *
  11260. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  11261. * Specifies the interface index (netdev) for which the corresponding
  11262. * configurations are applied. This is required in a command only. Only one
  11263. * interface index may be specified. If not specified, the configuration is
  11264. * rejected.
  11265. */
  11266. enum qca_wlan_vendor_attr_mcc_quota {
  11267. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  11268. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  11269. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  11270. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  11271. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  11272. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  11273. /* keep last */
  11274. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  11275. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  11276. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  11277. };
  11278. /**
  11279. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  11280. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  11281. *
  11282. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  11283. * Enable mDNS offload. This attribute is mandatory to enable
  11284. * mDNS offload feature. If this attribute is not present, mDNS offload
  11285. * is disabled.
  11286. *
  11287. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  11288. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  11289. * attribute is mandatory when enabling the feature, and not required when
  11290. * disabling the feature.
  11291. *
  11292. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  11293. * the following attributes:
  11294. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  11295. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  11296. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  11297. *
  11298. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  11299. * It consists of a hostname and ".local" as the domain name. The character
  11300. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  11301. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  11302. * supported per vdev.
  11303. * For example: myphone.local
  11304. *
  11305. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  11306. * u16 attribute. It specifies the total number of resource records present
  11307. * in the answer section of the answer payload. This attribute is needed by the
  11308. * firmware to populate the mDNS response frame for mNDS queries without having
  11309. * to parse the answer payload.
  11310. *
  11311. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  11312. * attribute sent by the mdnsResponder from userspace. It contains resource
  11313. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  11314. * payload is passed down to firmware and is transmitted in response to
  11315. * mDNS queries.
  11316. * The maximum size of the answer payload supported is 512 bytes.
  11317. */
  11318. enum qca_wlan_vendor_attr_mdns_offload {
  11319. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  11320. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  11321. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  11322. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  11323. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  11324. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  11325. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  11326. /* keep last */
  11327. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  11328. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  11329. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  11330. };
  11331. /**
  11332. * enum qca_vendor_attr_diag_event_type - Attributes used by
  11333. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  11334. *
  11335. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  11336. * driver/firmware during Connection request from Userspace. Uses the
  11337. * following attributes of enum qca_wlan_vendor_attr_diag:
  11338. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11339. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  11340. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11341. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  11342. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11343. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  11344. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  11345. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  11346. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  11347. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  11348. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  11349. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  11350. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11351. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11352. *
  11353. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  11354. * driver/firmware when a connection is failed. Uses the
  11355. * following attributes of enum qca_wlan_vendor_attr_diag:
  11356. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11357. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11358. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11359. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11360. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11361. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11362. *
  11363. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  11364. * driver/firmware during Authentication request from a device. Uses the
  11365. * following attributes of enum qca_wlan_vendor_attr_diag:
  11366. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11367. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11368. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11369. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  11370. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  11371. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11372. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  11373. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11374. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11375. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11376. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11377. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11378. *
  11379. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  11380. * driver/firmware when device receives an authentication response. Uses the
  11381. * following attributes of enum qca_wlan_vendor_attr_diag:
  11382. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11383. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11384. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  11385. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  11386. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11387. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  11388. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11389. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11390. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11391. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11392. *
  11393. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  11394. * driver/firmware when device sends an association request. Uses the
  11395. * following attributes of enum qca_wlan_vendor_attr_diag:
  11396. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11397. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11398. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11399. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11400. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11401. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11402. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11403. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11404. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11405. *
  11406. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  11407. * driver/firmware when device receives an association response. Uses the
  11408. * following attributes of enum qca_wlan_vendor_attr_diag:
  11409. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11410. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11411. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11412. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  11413. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11414. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11415. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11416. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11417. *
  11418. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  11419. * driver/userspace when device receives a deauthentication response. Uses the
  11420. * following attributes of enum qca_wlan_vendor_attr_diag:
  11421. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11422. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11423. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11424. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11425. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11426. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11427. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11428. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11429. *
  11430. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  11431. * driver/userspace when device sends a deauthentication request. Uses the
  11432. * following attributes of enum qca_wlan_vendor_attr_diag:
  11433. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11434. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11435. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11436. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11437. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11438. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11439. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11440. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11441. *
  11442. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  11443. * driver/firmware when device receives a disassociation response. Uses the
  11444. * following attributes of enum qca_wlan_vendor_attr_diag:
  11445. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11446. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11447. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11448. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11449. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11450. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11451. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11452. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11453. *
  11454. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  11455. * driver/firmware when device sends a disassociation request. Uses the
  11456. * following attributes of enum qca_wlan_vendor_attr_diag:
  11457. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11458. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11459. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11460. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11461. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11462. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11463. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11464. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11465. *
  11466. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  11467. * driver/firmware when device did not receive beacon packets during connection.
  11468. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  11469. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11470. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11471. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11472. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11473. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11474. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11475. *
  11476. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  11477. * driver/firmware when Roaming scan is triggered. Uses the following
  11478. * attributes of enum qca_wlan_vendor_attr_diag:
  11479. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11480. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  11481. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  11482. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11483. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11484. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  11485. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  11486. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11487. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11488. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11489. *
  11490. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  11491. * driver/firmware Roam scanning is processed. Uses the following
  11492. * attributes of enum qca_wlan_vendor_attr_diag:
  11493. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11494. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11495. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  11496. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  11497. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11498. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11499. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11500. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11501. *
  11502. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  11503. * driver/firmware to provide Roam information of the current AP. Uses the
  11504. * following attributes of enum qca_wlan_vendor_attr_diag:
  11505. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11506. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11507. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11508. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11509. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11510. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  11511. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11512. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11513. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11514. *
  11515. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  11516. * driver/firmware to provide Roam information of the candid AP. Uses the
  11517. * following attributes of enum qca_wlan_vendor_attr_diag:
  11518. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11519. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11520. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11521. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11522. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11523. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  11524. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  11525. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11526. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11527. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11528. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11529. *
  11530. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  11531. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  11532. * following attributes of enum qca_wlan_vendor_attr_diag:
  11533. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11534. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  11535. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11536. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11537. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11538. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11539. *
  11540. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  11541. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  11542. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11543. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11544. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11545. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11546. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11547. *
  11548. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  11549. * /firmware when STA sends a BTM request frame. Uses the following attributes
  11550. * of enum qca_wlan_vendor_attr_diag:
  11551. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11552. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11553. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  11554. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  11555. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  11556. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  11557. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11558. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11559. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11560. *
  11561. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  11562. * driver/firmware when STA queries about BTM transition. Uses the following
  11563. * attributes of enum qca_wlan_vendor_attr_diag:
  11564. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11565. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11566. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  11567. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11568. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11569. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11570. *
  11571. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  11572. * /firmware when STA receives BTM response frame. Uses the following
  11573. * attributes of enum qca_wlan_vendor_attr_diag:
  11574. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11575. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11576. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  11577. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  11578. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  11579. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11580. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11581. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11582. *
  11583. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  11584. * driver/firmware to provide BTM request candidate information. Uses the
  11585. * following attributes of enum qca_wlan_vendor_attr_diag:
  11586. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11587. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11588. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  11589. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11590. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11591. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11592. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11593. *
  11594. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  11595. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  11596. * enum qca_wlan_vendor_attr_diag:
  11597. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11598. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  11599. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11600. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  11601. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11602. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11603. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11604. *
  11605. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  11606. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  11607. * attributes of enum qca_wlan_vendor_attr_diag:
  11608. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11609. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11610. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11611. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11612. *
  11613. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  11614. * driver/firmware to indicate DHCP offering to AP. Uses the following
  11615. * attributes of enum qca_wlan_vendor_attr_diag:
  11616. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11617. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11618. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11619. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11620. *
  11621. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  11622. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  11623. * attributes of enum qca_wlan_vendor_attr_diag:
  11624. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11625. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11626. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11627. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11628. *
  11629. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  11630. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  11631. * attributes of enum qca_wlan_vendor_attr_diag:
  11632. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11633. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11634. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11635. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11636. *
  11637. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  11638. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  11639. * following attributes of enum qca_wlan_vendor_attr_diag:
  11640. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11641. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11642. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11643. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11644. *
  11645. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  11646. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  11647. * enum qca_wlan_vendor_attr_diag:
  11648. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11649. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11650. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11651. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11652. *
  11653. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  11654. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  11655. * enum qca_wlan_vendor_attr_diag:
  11656. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11657. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11658. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11659. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11660. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11661. *
  11662. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  11663. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  11664. * enum qca_wlan_vendor_attr_diag:
  11665. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11666. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11667. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11668. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11669. *
  11670. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  11671. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  11672. * enum qca_wlan_vendor_attr_diag:
  11673. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11674. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11675. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11676. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11677. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11678. *
  11679. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  11680. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  11681. * enum qca_wlan_vendor_attr_diag:
  11682. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11683. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11684. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11685. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11686. *
  11687. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  11688. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  11689. * enum qca_wlan_vendor_attr_diag:
  11690. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11691. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11692. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11693. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11694. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11695. *
  11696. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  11697. * /firmware to indicate device sent EAP request. Uses the following attributes
  11698. * of enum qca_wlan_vendor_attr_diag:
  11699. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11700. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  11701. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  11702. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11703. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11704. *
  11705. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  11706. * /firmware to indicate device received EAP response. Uses the following
  11707. * attributes of enum qca_wlan_vendor_attr_diag:
  11708. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11709. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  11710. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  11711. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11712. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11713. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11714. *
  11715. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  11716. * /firmware to indicate EAP frame transmission is success. Uses the following
  11717. * attributes of enum qca_wlan_vendor_attr_diag:
  11718. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11719. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11720. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11721. *
  11722. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  11723. * /firmware to indicate EAP frame transmission is failed. Uses the following
  11724. * attributes of enum qca_wlan_vendor_attr_diag:
  11725. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11726. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11727. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11728. */
  11729. enum qca_vendor_attr_diag_event_type {
  11730. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  11731. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  11732. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  11733. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  11734. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  11735. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  11736. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  11737. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  11738. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  11739. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  11740. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  11741. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  11742. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  11743. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  11744. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  11745. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  11746. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  11747. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  11748. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  11749. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  11750. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  11751. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  11752. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  11753. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  11754. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  11755. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  11756. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  11757. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  11758. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  11759. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  11760. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  11761. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  11762. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  11763. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  11764. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  11765. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  11766. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  11767. /* keep last */
  11768. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  11769. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  11770. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  11771. };
  11772. /**
  11773. * enum qca_wlan_vendor_tx_status - Used by attribute
  11774. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  11775. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  11776. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  11777. * is not received.
  11778. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  11779. * acknowledged.
  11780. */
  11781. enum qca_wlan_vendor_tx_status {
  11782. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  11783. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  11784. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  11785. };
  11786. /**
  11787. * enum qca_roam_sub_reason - Used by attribute
  11788. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  11789. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  11790. * timer expiry
  11791. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  11792. * to no candidate found during LOW RSSI trigger.
  11793. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  11794. * Imminent timeout
  11795. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  11796. * failure
  11797. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  11798. * emergency like deauth/disassoc.
  11799. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  11800. * BSS transition management request.
  11801. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  11802. * Roam scan triggered due to Low RSSI periodic timer
  11803. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  11804. * Roam trigger due to periodic timer after no candidate found during CU
  11805. * inactivity timer scan.
  11806. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  11807. * found in high CU roam trigger.
  11808. */
  11809. enum qca_roam_sub_reason {
  11810. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  11811. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  11812. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  11813. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  11814. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  11815. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  11816. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  11817. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  11818. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  11819. };
  11820. /*
  11821. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  11822. * to send diag data to the userspace. The attributes defined in this enum are
  11823. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  11824. *
  11825. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  11826. * by driver/firmware to send diag data. Each instance of this nested attribute
  11827. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  11828. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  11829. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  11830. * nested attribute can be sent with one vendor command
  11831. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  11832. *
  11833. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  11834. * attribute indicates the type of the diag event from driver/firmware. Uses
  11835. * values from enum qca_vendor_attr_diag_event_type.
  11836. *
  11837. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  11838. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  11839. * API to send time of the day in microseconds to userspace.
  11840. *
  11841. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  11842. * This attribute indicates firmware timestamp in microseconds.
  11843. *
  11844. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  11845. * indicates wlan interface index.
  11846. *
  11847. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  11848. * indicates 6-byte MAC address representing the BSSID of the AP.
  11849. *
  11850. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  11851. * indicates the 6-byte MAC address representing the BSSID hint sent in
  11852. * the connect request.
  11853. *
  11854. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  11855. * indicates the SSID in u8 array with a maximum length of 32.
  11856. *
  11857. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  11858. * indicates the frequency of AP in MHz.
  11859. *
  11860. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  11861. * indicates frequency hint given in the connect request in MHz.
  11862. *
  11863. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  11864. * This attribute indicates RSSI of the 802.11 frame in dBm.
  11865. *
  11866. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  11867. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  11868. * Table 12-10—Integrity and key wrap algorithms.
  11869. *
  11870. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  11871. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  11872. * Table 12-10—Integrity and key wrap algorithms.
  11873. *
  11874. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  11875. * attribute indicates Group management cipher suite defined in IEEE Std
  11876. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  11877. *
  11878. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  11879. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  11880. * Table 9-151—AKM suite selectors.
  11881. *
  11882. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  11883. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  11884. * Section 9.4.1.1 Authentication Algorithm Number field.
  11885. *
  11886. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  11887. * indicates bluetooth COEX is active or not.
  11888. *
  11889. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  11890. * attribute indicates SAE authentication frame type. The possible values are
  11891. * 1 - SAE commit frame
  11892. * 2 - SAE confirm frame
  11893. *
  11894. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  11895. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  11896. * Table 9-49—Reason codes.
  11897. *
  11898. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  11899. * attribute indicates sequence number of the frame defined in IEEE Std
  11900. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  11901. * field.
  11902. *
  11903. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  11904. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  11905. * 9-50—Status codes.
  11906. *
  11907. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  11908. * Uses enum qca_wlan_vendor_tx_status.
  11909. *
  11910. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  11911. * indicates if frame transmission is retried.
  11912. *
  11913. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  11914. * Uses enum qca_roam_reason.
  11915. *
  11916. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  11917. * Uses enum qca_roam_sub_reason.
  11918. *
  11919. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  11920. * indicates channel utilization in percentage.
  11921. *
  11922. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  11923. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  11924. *
  11925. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  11926. * This attribute indicates current RSSI threshold in dBm.
  11927. *
  11928. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  11929. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  11930. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  11931. *
  11932. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  11933. * This attribute indicates number of scanned candidate APs.
  11934. *
  11935. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  11936. * attribute indicates roam AP rank computed based on connection preference.
  11937. *
  11938. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  11939. * This attribute indicates expected throughput in kbps.
  11940. *
  11941. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  11942. * This attribute indicates the preference value of candidate AP / connected AP
  11943. * calculated in the firmware.
  11944. *
  11945. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  11946. * indicates connection/roaming is successful or not.
  11947. *
  11948. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  11949. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  11950. * IE present in the BTM frame.
  11951. *
  11952. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  11953. * This attribute indicates BTM WTC duration in milliseconds.
  11954. *
  11955. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  11956. * indicates dialog token value of BTM query/request/response frames.
  11957. *
  11958. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  11959. * attribute indicates the Transition Reason field indicates the reason why
  11960. * a transition attempt occurred and contains one of the values defined in IEEE
  11961. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  11962. *
  11963. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  11964. * indicates BTM mode defined in IEEE Std 802.11‐2020
  11965. * Figure 9-924—Request Mode field format.
  11966. *
  11967. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  11968. * This attribute indicates the Disassociation Timer field which is the number
  11969. * of beacon transmission times (TBTTs) until the serving AP will send a
  11970. * Disassociation frame to this STA.
  11971. *
  11972. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  11973. * This attribute indicates BTM validity interval field in TBTTs defined in
  11974. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  11975. * Action field format.
  11976. *
  11977. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  11978. * This attribute indicates BTM candidate list entries.
  11979. *
  11980. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  11981. * This attribute indicates network preference for BTM transition defined in
  11982. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  11983. *
  11984. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  11985. * This attribute indicates BTM transition status code defined in IEEE Std
  11986. * 802.11‐2020 Table 9-428—BTM status code definitions.
  11987. *
  11988. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  11989. * This attribute indicates BSS termination delay defined in IEEE Std
  11990. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  11991. *
  11992. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  11993. * This attribute indicates 6-byte MAC address representing the BSSID of the
  11994. * BSS that the non-AP STA transitions to.
  11995. *
  11996. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  11997. * indicates EAP frame type. The methods are enumerated by IANA at
  11998. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  11999. *
  12000. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  12001. * indicates EAP frame length.
  12002. *
  12003. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  12004. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  12005. * (Time from boot but not the time spent in suspend) to send in microseconds
  12006. * to userspace.
  12007. */
  12008. enum qca_wlan_vendor_attr_diag {
  12009. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  12010. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  12011. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  12012. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  12013. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  12014. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  12015. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  12016. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  12017. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  12018. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  12019. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  12020. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  12021. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  12022. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  12023. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  12024. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  12025. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  12026. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  12027. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  12028. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  12029. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  12030. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  12031. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  12032. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  12033. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  12034. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  12035. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  12036. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  12037. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  12038. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  12039. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  12040. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  12041. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  12042. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  12043. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  12044. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  12045. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  12046. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  12047. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  12048. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  12049. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  12050. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  12051. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  12052. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  12053. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  12054. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  12055. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  12056. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  12057. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  12058. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  12059. /* keep last */
  12060. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  12061. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  12062. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  12063. };
  12064. /**
  12065. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  12066. * data types to be sent over the monitor interface.
  12067. */
  12068. enum qca_wlan_vendor_monitor_data_frame_type {
  12069. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  12070. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  12071. not set */
  12072. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  12073. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  12074. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  12075. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  12076. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  12077. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  12078. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  12079. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  12080. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  12081. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  12082. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  12083. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  12084. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  12085. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  12086. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  12087. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  12088. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  12089. };
  12090. /**
  12091. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  12092. * mgmt types to be sent over the monitor interface.
  12093. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  12094. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  12095. * except the Beacons. Valid only in the Connect state.
  12096. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  12097. * BSSID Beacons. Valid only in the Connect state.
  12098. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  12099. * the Beacons obtained during the scan (off channel and connected channel)
  12100. * when in connected state.
  12101. */
  12102. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  12103. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  12104. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  12105. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  12106. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  12107. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  12108. };
  12109. /**
  12110. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  12111. * ctrl types to be sent over the monitor interface.
  12112. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  12113. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  12114. */
  12115. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  12116. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  12117. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  12118. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  12119. };
  12120. /**
  12121. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  12122. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  12123. * monitor mode.
  12124. *
  12125. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  12126. * Represents the tx data packet type to be monitored (u32). These data packets
  12127. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  12128. *
  12129. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  12130. * Represents the tx data packet type to be monitored (u32). These data packets
  12131. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  12132. *
  12133. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  12134. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  12135. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  12136. *
  12137. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  12138. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  12139. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  12140. *
  12141. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  12142. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  12143. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  12144. *
  12145. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  12146. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  12147. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  12148. *
  12149. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  12150. * u32 attribute, An interval only for the connected beacon interval, which
  12151. * expects that the connected BSSID's beacons shall be sent on the monitor
  12152. * interface only on this specific interval.
  12153. */
  12154. enum qca_wlan_vendor_attr_set_monitor_mode {
  12155. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  12156. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  12157. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  12158. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  12159. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  12160. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  12161. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  12162. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  12163. /* keep last */
  12164. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  12165. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  12166. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  12167. };
  12168. /**
  12169. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  12170. * Bits will be set to 1 if the corresponding state is enabled.
  12171. *
  12172. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  12173. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  12174. */
  12175. enum qca_wlan_vendor_roam_scan_state {
  12176. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  12177. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  12178. };
  12179. /**
  12180. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  12181. * Bits will be set to 1 if the corresponding event is notified.
  12182. *
  12183. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  12184. * carries the trigger reason. When set, it is expected that the roam event
  12185. * carries the respective reason via the attribute
  12186. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  12187. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  12188. *
  12189. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  12190. * carries the roam fail reason. When set, it is expected that the roam event
  12191. * carries the respective reason via the attribute
  12192. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  12193. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  12194. *
  12195. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  12196. * event carries the roam invoke fail reason. When set, it is expected that
  12197. * the roam event carries the respective reason via the attribute
  12198. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  12199. *
  12200. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  12201. * carries the roam scan state. When set, it is expected that the roam event
  12202. * carries the respective scan state via the attribute
  12203. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  12204. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  12205. */
  12206. enum qca_wlan_vendor_roam_event_type {
  12207. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  12208. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  12209. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  12210. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  12211. };
  12212. /**
  12213. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  12214. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  12215. *
  12216. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  12217. * representing the BSSID of the AP to which the Roam is attempted.
  12218. *
  12219. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  12220. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  12221. * attempted.
  12222. *
  12223. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  12224. * on which the roam is attempted.
  12225. *
  12226. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  12227. * STA mode only. This represents the roam fail reason for the last failed
  12228. * roaming attempt by the firmware for the specific BSSID. Different roam
  12229. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12230. */
  12231. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  12232. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  12233. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  12234. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  12235. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  12236. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  12237. /* keep last */
  12238. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  12239. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  12240. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  12241. };
  12242. /**
  12243. * enum qca_wlan_vendor_attr_roam_events - Used by the
  12244. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  12245. * roam events to the driver or notify these events from the driver.
  12246. *
  12247. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  12248. * driver/firmware to enable/disable the notification of roam events. It's a
  12249. * mandatory attribute and used only in the request from the userspace to the
  12250. * host driver. 1-Enable, 0-Disable.
  12251. * If the roaming is totally offloaded to the firmware, this request when
  12252. * enabled shall mandate the firmware to notify all the relevant roam events
  12253. * represented by the below attributes. If the host is in the suspend mode,
  12254. * the behavior of the firmware to notify these events is guided by
  12255. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  12256. * these events in the suspend state, the firmware is expected to wake up the
  12257. * host before the respective events are notified. Please note that such a
  12258. * request to get the events in the suspend state will have a definite power
  12259. * implication.
  12260. *
  12261. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  12262. * that the roam events need to be notified in the suspend state too. By
  12263. * default, these roam events are notified in the resume state. With this flag,
  12264. * the roam events are notified in both resume and suspend states.
  12265. * This attribute is used in the request from the userspace to the host driver.
  12266. *
  12267. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  12268. * Represents the different roam event types, signified by the enum
  12269. * qca_wlan_vendor_roam_event_type.
  12270. * Each bit of this attribute represents the different roam even types reported
  12271. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12272. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12273. *
  12274. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  12275. * mode only. This represents the roam trigger reason for the last roaming
  12276. * attempted by the firmware. Each bit of this attribute represents the
  12277. * different roam trigger reason code which are defined in enum
  12278. * qca_vendor_roam_triggers.
  12279. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12280. *
  12281. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  12282. * STA mode only. This represents the roam invoke fail reason for the last
  12283. * failed roam invoke. Different roam invoke failure reason codes
  12284. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  12285. *
  12286. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  12287. * for which the roam is attempted. Each entry is a nested attribute defined
  12288. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  12289. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12290. *
  12291. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  12292. * the scan state on which the roam events need to be notified. The values for
  12293. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  12294. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12295. *
  12296. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  12297. * u32 values. List of frequencies in MHz considered for a roam scan.
  12298. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12299. */
  12300. enum qca_wlan_vendor_attr_roam_events {
  12301. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  12302. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  12303. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  12304. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  12305. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  12306. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  12307. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  12308. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  12309. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  12310. /* keep last */
  12311. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  12312. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  12313. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  12314. };
  12315. /*
  12316. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  12317. *
  12318. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  12319. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  12320. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  12321. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  12322. */
  12323. enum qca_wlan_ratemask_params_type {
  12324. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  12325. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  12326. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  12327. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  12328. };
  12329. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  12330. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  12331. * This is used to set the rate mask value to be used in rate selection.
  12332. *
  12333. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  12334. * Array of nested containing attributes
  12335. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  12336. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  12337. *
  12338. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  12339. * the different phy types to which the rate mask config is to be applied.
  12340. * The values for this attribute are referred from enum
  12341. * qca_wlan_vendor_ratemask_params_type.
  12342. *
  12343. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  12344. * A bit value of 1 represents rate is enabled and a value of 0
  12345. * represents rate is disabled.
  12346. * For HE targets, 12 bits correpond to one NSS setting.
  12347. * b0-13 => NSS1, MCS 0-13
  12348. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  12349. * For VHT targets, 10 bits correspond to one NSS setting.
  12350. * b0-9 => NSS1, MCS 0-9
  12351. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  12352. * For HT targets, 8 bits correspond to one NSS setting.
  12353. * b0-7 => NSS1, MCS 0-7
  12354. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  12355. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  12356. */
  12357. enum qca_wlan_vendor_attr_ratemask_params {
  12358. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  12359. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  12360. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  12361. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  12362. /* keep last */
  12363. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  12364. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  12365. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  12366. };
  12367. #endif