qca_vendor.h 427 KB

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