qca_vendor.h 361 KB

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