qca_vendor.h 391 KB

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