qca_vendor.h 468 KB

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