qca_vendor.h 528 KB

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