qca_vendor.h 405 KB

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