qca_vendor.h 343 KB

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