qca_vendor.h 610 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declares vendor commands interfacing with linux kernel
  21. */
  22. #ifndef _WLAN_QCA_VENDOR_H_
  23. #define _WLAN_QCA_VENDOR_H_
  24. /* Vendor id to be used in vendor specific command and events
  25. * to user space.
  26. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  27. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  28. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  29. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  30. */
  31. #define QCA_NL80211_VENDOR_ID 0x001374
  32. #ifndef BIT
  33. #define BIT(x) (1U << (x))
  34. #endif
  35. /**
  36. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  37. *
  38. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  39. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  40. * Sub commands 2 to 8 are not used
  41. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  42. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  43. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  44. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  45. * NAN Request/Response and NAN Indication messages. These messages are
  46. * interpreted between the framework and the firmware component. While
  47. * sending the command from userspace to the driver, payload is not
  48. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  49. * is used when receiving vendor events in userspace from the driver.
  50. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  57. * results
  58. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  59. * results
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  62. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  63. * channels
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  66. * results
  67. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  68. * available. Used when report_threshold is reached in scan cache.
  69. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  70. * result. Used to report scan results when each probe rsp. is received,
  71. * if report_events enabled in wifi_scan_cmd_params.
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  73. * Indicates progress of scanning state-machine.
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  75. * ap found
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  77. * bssid
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  79. * hotlist bssid
  80. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  81. * change
  82. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  83. * significant change
  84. * ap found
  85. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  86. * significant change
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
  88. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
  89. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
  90. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
  91. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  92. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  93. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  94. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  95. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  96. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  97. * roaming and auth information.
  98. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  99. *
  100. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  101. * invoke the ACS function in device and pass selected channels to
  102. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  103. *
  104. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  105. * driver.
  106. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  107. * started CAC on DFS channel
  108. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  109. * completed the CAC check on DFS channel
  110. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  111. * check was aborted by the driver
  112. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  113. * driver completed NOP
  114. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  115. * driver detected radar signal on the current operating channel
  116. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  117. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  118. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  119. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  120. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  121. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  122. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  123. * extscan reset ssid hotlist
  124. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  125. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  126. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  127. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  128. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  129. * reset passpoint list
  130. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  131. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  132. * passpoint network found
  133. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  134. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  135. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  136. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  137. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  138. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  139. list
  140. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  141. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  142. * to the host driver. This command sets the band through either
  143. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  144. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  145. * refers enum qca_set_band as unsigned integer values and
  146. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  147. * values. Also, the acceptable values for
  148. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  149. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  150. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  151. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  152. * implementations configure using both the attributes, the configurations
  153. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  154. * precedence.
  155. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  156. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  157. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  158. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  159. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  160. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  161. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  162. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  163. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  164. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  165. * start the P2P Listen Offload function in device and pass the listen
  166. * channel, period, interval, count, number of device types, device
  167. * types and vendor information elements to device driver and firmware.
  168. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  169. * indicate stop request/response of the P2P Listen Offload function in
  170. * device. As an event, it indicates either the feature stopped after it
  171. * was already running or feature has actually failed to start.
  172. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  173. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  174. * beaconing, this sub command provides the driver, the frequencies on the
  175. * 5 GHz to check for any radar activity. Driver selects one channel from
  176. * this priority list provided through
  177. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  178. * to check for radar activity on it. If no radar activity is detected
  179. * during the channel availability check period, driver internally switches
  180. * to the selected frequency of operation. If the frequency is zero, driver
  181. * internally selects a channel. The status of this conditional switch is
  182. * indicated through an event using the same sub command through
  183. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  184. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  185. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  186. * indication period and threshold for MAC layer counters.
  187. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  188. * in the host driver. The different TDLS configurations are defined
  189. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  190. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  191. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  192. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  193. * require methods to set SAR limits on TX power of WLAN/WWAN.
  194. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  195. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  196. * configuration of vendor ACS.
  197. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  198. * requisite information leading to a power save failure. The information
  199. * carried as part of this event is represented by the
  200. * enum qca_attr_chip_power_save_failure attributes.
  201. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  202. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  203. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  204. * statistics are represented by the enum qca_attr_nud_stats_get
  205. * attributes.
  206. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  207. * the BSS transition status, whether accept or reject, for a list of
  208. * candidate BSSIDs provided by the userspace. This uses the vendor
  209. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  210. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  211. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  212. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  213. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  214. * the driver shall specify array of
  215. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  216. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  217. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  218. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  219. * specific QCA module. The trace levels are represented by
  220. * enum qca_attr_trace_level attributes.
  221. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  222. * Protocol antenna limit in different modes. See enum
  223. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  224. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  225. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  226. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  227. * identifying the operation in success case. In failure cases an
  228. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  229. * describing the reason for the failure is returned.
  230. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  231. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  232. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  233. * be stopped.
  234. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  235. * specific interface. This can be used to modify some of the low level
  236. * scan parameters (off channel dwell time, home channel time) in the
  237. * driver/firmware. These parameters are maintained within the host
  238. * driver.
  239. * This command is valid only when the interface is in the connected
  240. * state.
  241. * These scan parameters shall be reset by the driver/firmware once
  242. * disconnected. The attributes used with this command are defined in
  243. * enum qca_wlan_vendor_attr_active_tos.
  244. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  245. * driver has detected an internal failure. This event carries the
  246. * information indicating the reason that triggered this detection. The
  247. * attributes for this command are defined in
  248. * enum qca_wlan_vendor_attr_hang.
  249. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  250. * of spectral parameters used. The spectral scan parameters are specified
  251. * by enum qca_wlan_vendor_attr_spectral_scan.
  252. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  253. * for spectral scan functionality. The debug stats are specified by
  254. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  255. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  256. * scan system capabilities. The capabilities are specified
  257. * by enum qca_wlan_vendor_attr_spectral_cap.
  258. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  259. * status of spectral scan. The status values are specified
  260. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  261. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  262. * peer pending packets. Specify the peer MAC address in
  263. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  264. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  265. * in enum qca_wlan_vendor_attr_flush_pending.
  266. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  267. * RF Operating Parameter (RROP) information. The attributes for this
  268. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  269. * intended for use by external Auto Channel Selection applications.
  270. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  271. * (SAR) power limits. This is a companion to the command
  272. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  273. * settings currently in use. The attributes returned by this command are
  274. * defined by enum qca_vendor_attr_sar_limits.
  275. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  276. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  277. * This works both as a query (user space asks the current mode) or event
  278. * interface (driver advertizing the current mode to the user space).
  279. * Driver does not trigger this event for temporary hardware mode changes.
  280. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  281. * channel change etc ) are updated with this event. Attributes for this
  282. * interface are defined in enum qca_wlan_vendor_attr_mac.
  283. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  284. * per peer per TID. Attributes for this command are define in
  285. * enum qca_wlan_set_qdepth_thresh_attr
  286. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  287. * guide for WLAN driver. Request to suspend of driver and FW if the
  288. * temperature is higher than the suspend threshold; resume action is
  289. * requested to driver if the temperature is lower than the resume
  290. * threshold. In user poll mode, request temperature data by user. For test
  291. * purpose, getting thermal shutdown configuration parameters is needed.
  292. * Attributes for this interface are defined in
  293. * enum qca_wlan_vendor_attr_thermal_cmd.
  294. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  295. * driver. Thermal temperature and indication of resume completion are
  296. * reported as thermal events. The attributes for this command are defined
  297. * in enum qca_wlan_vendor_attr_thermal_event.
  298. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  299. * test configuration. Attributes for this command are defined in
  300. * enum qca_wlan_vendor_attr_wifi_test_config.
  301. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  302. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  303. * carried a payload which was a binary blob of data. The command was not
  304. * extendable to send more information. The newer version carries the
  305. * legacy blob encapsulated within an attribute and can be extended with
  306. * additional vendor attributes that can enhance the NAN command
  307. * interface.
  308. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  309. * configure parameters per peer to capture Channel Frequency Response
  310. * (CFR) and enable Periodic CFR capture. The attributes for this command
  311. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  312. * can also be used to send CFR data from the driver to userspace when
  313. * netlink events are used to send CFR data.
  314. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  315. * The returned firmware state is specified in the attribute
  316. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  317. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  318. * is used by host driver to flush per-peer cached statistics to user space
  319. * application. This interface is used as an event from host driver to
  320. * user space application. Attributes for this event are specified in
  321. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  322. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  323. * sent as event from host driver.
  324. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  325. * improve the success rate of Zigbee joining network.
  326. * Due to PTA master limitation, zigbee joining network success rate is
  327. * low while wlan is working. Wlan host driver need to configure some
  328. * parameters including Zigbee state and specific WLAN periods to enhance
  329. * PTA master. All this parameters are delivered by the NetLink attributes
  330. * defined in "enum qca_mpta_helper_vendor_attr".
  331. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  332. * implement Beacon frame reporting feature.
  333. *
  334. * Userspace can request the driver/firmware to periodically report
  335. * received Beacon frames whose BSSID is same as the current connected
  336. * BSS's MAC address.
  337. *
  338. * In case the STA seamlessly (without sending disconnect indication to
  339. * userspace) roams to a different BSS, Beacon frame reporting will be
  340. * automatically enabled for the Beacon frames whose BSSID is same as the
  341. * MAC address of the new BSS. Beacon reporting will be stopped when the
  342. * STA is disconnected (when the disconnect indication is sent to
  343. * userspace) and need to be explicitly enabled by userspace for next
  344. * connection.
  345. *
  346. * When a Beacon frame matching configured conditions is received, and if
  347. * userspace has requested to send asynchronous beacon reports, the
  348. * driver/firmware will encapsulate the details of the Beacon frame in an
  349. * event and send it to userspace along with updating the BSS information
  350. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  351. * scan cache with the information from the received Beacon frame but
  352. * will not send any active report to userspace.
  353. *
  354. * The userspace can request the driver/firmware to stop reporting Beacon
  355. * frames. If the driver/firmware is not able to receive Beacon frames
  356. * due to other Wi-Fi operations such as off-channel activities, etc.,
  357. * the driver/firmware will send a pause event to userspace and stop
  358. * reporting Beacon frames. Whether the beacon reporting will be
  359. * automatically resumed or not by the driver/firmware later will be
  360. * reported to userspace using the
  361. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  362. * reporting shall be resumed for all the cases except either when
  363. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  364. * in the command which triggered the current beacon reporting or during
  365. * any disconnection case as indicated by setting
  366. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  367. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  368. * driver.
  369. *
  370. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  371. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  372. * flag not set, the next first
  373. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  374. * shall be considered as un-pause event.
  375. *
  376. * All the attributes used with this command are defined in
  377. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  378. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  379. * interop issues with the DUT. This sub command is used to transfer the
  380. * ap info between driver and user space. This works both as a command
  381. * or event. As a command, it configs the stored list of aps from user
  382. * space to firmware; as an event, it indicates the ap info detected by
  383. * firmware to user space for persistent storage. The attributes defined
  384. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  385. * parameters.
  386. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  387. * binary blobs from application/service to firmware. The attributes
  388. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  389. * deliver the parameters.
  390. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  391. * to send/receive avoid frequency data using
  392. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  393. * This new command is alternative to existing command
  394. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  395. * is using stream of bytes instead of structured data using vendor
  396. * attributes. User space sends unsafe frequency ranges to the driver using
  397. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  398. * reception of this command, the driver shall check if an interface is
  399. * operating on an unsafe frequency and the driver shall try to move to a
  400. * safe channel when needed. If the driver is not able to find a safe
  401. * channel the interface can keep operating on an unsafe channel with the
  402. * TX power limit derived based on internal configurations like
  403. * regulatory/SAR rules.
  404. *
  405. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  406. * add the STA node details in driver/firmware. Attributes for this event
  407. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  408. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  409. * coex chain mode from application/service.
  410. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  411. * to deliver the parameters.
  412. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  413. * get information of a station from driver to userspace. This command can
  414. * be used in both STA and AP modes. For STA mode, it provides information
  415. * of the current association when in connected state or the last
  416. * association when in disconnected state. For AP mode, only information
  417. * of the currently connected stations is available. This command uses
  418. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  419. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  420. * Host drivers can request the user space entity to set the SAR power
  421. * limits with this event. Accordingly, the user space entity is expected
  422. * to set the SAR power limits. Host drivers can retry this event to the
  423. * user space for the SAR power limits configuration from user space. If
  424. * the driver does not get the SAR power limits from user space for all
  425. * the retried attempts, it can configure a default SAR power limit.
  426. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  427. * is used to update the information about the station from the driver to
  428. * userspace. Uses attributes from enum
  429. * qca_wlan_vendor_attr_update_sta_info.
  430. *
  431. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  432. * The host driver initiates the disconnection for scenarios such as beacon
  433. * miss, NUD failure, peer kick out, etc. The disconnection indication
  434. * through cfg80211_disconnected() expects the reason codes from enum
  435. * ieee80211_reasoncode which does not signify these various reasons why
  436. * the driver has triggered the disconnection. This event will be used to
  437. * send the driver specific reason codes by the host driver to userspace.
  438. * Host drivers should trigger this event and pass the respective reason
  439. * code immediately prior to triggering cfg80211_disconnected(). The
  440. * attributes used with this event are defined in enum
  441. * qca_wlan_vendor_attr_driver_disconnect_reason.
  442. *
  443. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  444. * add/delete TSPEC for each AC. One command is for one specific AC only.
  445. * This command can only be used in STA mode and the STA must be
  446. * associated with an AP when the command is issued. Uses attributes
  447. * defined in enum qca_wlan_vendor_attr_config_tspec.
  448. *
  449. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  450. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  451. *
  452. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  453. * the host driver. The band configurations obtained are referred through
  454. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  455. *
  456. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  457. * assessment.
  458. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  459. *
  460. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  461. * used to update SSID information in hostapd when it is updated in the
  462. * driver. Uses the attribute NL80211_ATTR_SSID.
  463. *
  464. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  465. * the driver to send opaque data from the firmware to userspace. The
  466. * driver sends an event to userspace whenever such data is received from
  467. * the firmware.
  468. *
  469. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  470. * send this opaque data for this event.
  471. *
  472. * The format of the opaque data is specific to the particular firmware
  473. * version and there is no guarantee of the format remaining same.
  474. *
  475. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  476. * The host driver selects Tx VDEV, and notifies user. The attributes
  477. * used with this event are defined in enum
  478. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  479. * This event contains Tx VDEV group information contains other VDEVs
  480. * interface index and status information.
  481. *
  482. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY: Vendor command to
  483. * configure the concurrent session policies when multiple STA interfaces
  484. * are (getting) active. The attributes used by this command are defined
  485. * in enum qca_wlan_vendor_attr_concurrent_sta_policy.
  486. *
  487. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  488. * to query usable channels for different interface types such as STA,
  489. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  490. * channels in the response based on country code, different static
  491. * configurations, concurrency combinations, etc. The attributes used
  492. * with this command are defined in
  493. * enum qca_wlan_vendor_attr_usable_channels.
  494. *
  495. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  496. * to get DFS radar history from the driver to userspace. The driver
  497. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  498. * array of nested entries.
  499. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  500. * enable/disable mDNS offload to the firmware. The attributes used with
  501. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  502. *
  503. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  504. * important debug events that are required for various issues. The
  505. * attributes used with this command are defined in
  506. * enum qca_wlan_vendor_attr_diag.
  507. * This command is defined for temporary usage until this interface is
  508. * moved to the existing diag infra with cnss diag events. This command
  509. * will be deprecated soon and it is not recommended to do any further
  510. * enhancements to this command.
  511. *
  512. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  513. * to set packet monitor mode that aims to send the specified set of TX and
  514. * RX frames on the current client interface to an active monitor interface.
  515. * If this Monitor mode is set, the driver will send the configured frames,
  516. * from the interface on which the command is issued, to an active monitor
  517. * interface. The attributes used with this command are defined in
  518. * enum qca_wlan_vendor_attr_set_monitor_mode.
  519. *
  520. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  521. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  522. * to consider the possibility of sending these frames over the monitor
  523. * interface. For example, the control frames are handled with in the
  524. * hardware and thus passing such frames over the monitor interface is left
  525. * to the respective designs.
  526. *
  527. * Also, this monitor mode is governed to behave accordingly in
  528. * suspend/resume states. If the firmware handles any of such frames
  529. * in suspend state without waking up the host and if the monitor mode
  530. * is configured to notify all such frames, then the firmware is expected
  531. * to resume the host and forward the respective frames to the monitor
  532. * interface. Please note that such a request to get the frames over the
  533. * monitor interface will have a definite power implications.
  534. *
  535. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  536. * as a request to set the driver/firmware with the parameters to trigger
  537. * the roaming events, and also used by the driver/firmware to pass on the
  538. * various roam events to userspace.
  539. * Applicable only for the STA mode. The attributes used with this command
  540. * are defined in enum qca_wlan_vendor_attr_roam_events.
  541. *
  542. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  543. * rate mask config for a list of phy types. Userspace shall provide
  544. * an array of the vendor attributes defined in
  545. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  546. *
  547. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  548. * when two interfaces are active on the same band, using two different
  549. * home channels, and only supported by a single radio. In this scenario
  550. * the device must split the use of the radio between the two interfaces.
  551. * The percentage of time allocated to a given interface is the quota.
  552. * Depending on the configuration, the quota can either be fixed or
  553. * dynamic.
  554. *
  555. * When used as an event, the device will report the quota type, and for
  556. * all interfaces operating in MCC it will report the current quota.
  557. * When used as a command, the device can be configured for a specific
  558. * quota type, and in the case of a fixed quota, the quota to apply to one
  559. * of the interfaces.
  560. *
  561. * Applications can use the event to do TX bitrate control based on the
  562. * information, and can use the command to explicitly set the quota to
  563. * enhance performance in specific scenarios.
  564. *
  565. * The attributes used with this command are defined in
  566. * enum qca_wlan_vendor_attr_mcc_quota.
  567. *
  568. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
  569. * user space that the driver is ready for operations again after
  570. * recovering from internal failures. This occurs following a failure
  571. * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  572. *
  573. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
  574. * get the WLAN radio combinations matrix supported by the device which
  575. * provides the device simultaneous radio configurations such as
  576. * standalone, dual band simultaneous, and single band simultaneous.
  577. *
  578. * The attributes used with this command are defined in
  579. * enum qca_wlan_vendor_attr_radio_combination_matrix.
  580. *
  581. * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
  582. * security negotiation and key generation to user space.
  583. *
  584. * When used as an event, the driver requests userspace to trigger the PASN
  585. * authentication or dropping of a PTKSA for the indicated peer devices.
  586. * When used as a command response, userspace indicates a consolidated
  587. * status report for all the peers that were requested for.
  588. *
  589. * The attributes used with this command are defined in
  590. * enum qca_wlan_vendor_attr_pasn.
  591. *
  592. * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
  593. * secure ranging context such as TK and LTF keyseed for each peer
  594. * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
  595. *
  596. * The attributes used with this command are defined in
  597. * enum qca_wlan_vendor_attr_secure_ranging_ctx.
  598. *
  599. * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
  600. * enable/disable offload processing in firmware during system/runtime
  601. * suspend for CoAP messages (see RFC7252: The Constrained Application
  602. * Protocol) and fetch information of the CoAP messages cached during
  603. * offload processing.
  604. *
  605. * The attributes used with this command are defined in
  606. * enum qca_wlan_vendor_attr_coap_offload.
  607. *
  608. * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
  609. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  610. *
  611. * The attributes used with this event are defined in
  612. * enum qca_wlan_vendor_attr_scs_rule_config.
  613. */
  614. enum qca_nl80211_vendor_subcmds {
  615. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  616. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  617. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  618. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  619. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  620. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  621. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  622. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  623. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  624. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  625. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  626. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  627. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  628. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  629. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  630. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  631. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  632. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  633. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  634. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  635. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  636. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  637. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  638. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  639. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  640. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  641. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  642. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  643. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  644. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  645. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  646. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  647. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  648. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  649. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  650. /* Get Concurrency Matrix */
  651. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  652. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  653. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  654. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  655. /* Deprecated */
  656. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  657. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  658. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  659. /* Off loaded DFS events */
  660. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  661. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  662. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  663. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  664. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  665. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  666. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  667. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  668. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  669. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  670. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  671. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  672. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  673. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  674. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  675. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  676. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  677. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  678. /* Wi-Fi Configuration subcommands */
  679. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  680. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  681. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  682. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  683. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  684. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  685. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  686. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  687. /* NS Offload enable/disable cmd */
  688. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  689. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  690. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  691. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  692. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  693. /* OCB commands */
  694. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  695. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  696. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  697. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  698. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  699. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  700. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  701. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  702. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  703. /* subcommand to get link properties */
  704. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  705. /* LFR Subnet Detection */
  706. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  707. /* DBS subcommands */
  708. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  709. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  710. /* Vendor setband command */
  711. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  712. /* Vendor scan commands */
  713. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  714. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  715. /* OTA test subcommand */
  716. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  717. /* Tx power scaling subcommands */
  718. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  719. /* Tx power scaling in db subcommands */
  720. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  721. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  722. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  723. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  724. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  725. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  726. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  727. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  728. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  729. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  730. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  731. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  732. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  733. /* FTM/indoor location subcommands */
  734. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  735. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  736. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  737. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  738. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  739. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  740. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  741. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  742. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  743. /* Encrypt/Decrypt command */
  744. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  745. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  746. /* DMG low level RF sector operations */
  747. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  748. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  749. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  750. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  751. /* Configure the TDLS mode from user space */
  752. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  753. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  754. /* Vendor abort scan command */
  755. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  756. /* Set Specific Absorption Rate(SAR) Power Limits */
  757. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  758. /* External Auto channel configuration setting */
  759. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  760. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  761. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  762. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  763. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  764. /* Set the trace level for QDF */
  765. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  766. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  767. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  768. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  769. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  770. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  771. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  772. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  773. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  774. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  775. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  776. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  777. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  778. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  779. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  780. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  781. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  782. /* Wi-Fi test configuration subcommand */
  783. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  784. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  785. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  786. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  787. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  788. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  789. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  790. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  791. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  792. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  793. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  794. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  795. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  796. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  797. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  798. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  799. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  800. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  801. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  802. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  803. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  804. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  805. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  806. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  807. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  808. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197,
  809. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  810. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  811. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  812. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  813. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  814. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  815. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  816. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  817. /* 206..212 - reserved for QCA */
  818. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  819. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  820. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  821. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  822. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  823. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  824. };
  825. enum qca_wlan_vendor_tos {
  826. QCA_WLAN_VENDOR_TOS_BK = 0,
  827. QCA_WLAN_VENDOR_TOS_BE = 1,
  828. QCA_WLAN_VENDOR_TOS_VI = 2,
  829. QCA_WLAN_VENDOR_TOS_VO = 3,
  830. };
  831. /**
  832. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  833. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  834. */
  835. enum qca_wlan_vendor_attr_active_tos {
  836. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  837. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  838. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  839. /* Flag attribute representing the start (attribute included) or stop
  840. * (attribute not included) of the respective TOS.
  841. */
  842. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  843. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  844. };
  845. enum qca_wlan_vendor_hang_reason {
  846. /* Unspecified reason */
  847. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  848. /* No Map for the MAC entry for the received frame */
  849. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  850. /* peer deletion timeout happened */
  851. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  852. /* peer unmap timeout */
  853. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  854. /* Scan request timed out */
  855. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  856. /* Consecutive Scan attempt failures */
  857. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  858. /* Unable to get the message buffer */
  859. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  860. /* Current command processing is timedout */
  861. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  862. /* Timeout for an ACK from FW for suspend request */
  863. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  864. /* Timeout for an ACK from FW for resume request */
  865. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  866. /* Transmission timeout for consecutive data frames */
  867. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  868. /* Timeout for the TX completion status of data frame */
  869. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  870. /* DXE failure for tx/Rx, DXE resource unavailability */
  871. QCA_WLAN_HANG_DXE_FAILURE = 12,
  872. /* WMI pending commands exceed the maximum count */
  873. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  874. /* Timeout for peer STA connection accept command's response from the
  875. * FW in AP mode. This command is triggered when a STA (peer) connects
  876. * to AP (DUT).
  877. */
  878. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  879. /* Timeout for the AP connection accept command's response from the FW
  880. * in STA mode. This command is triggered when the STA (DUT) connects
  881. * to an AP (peer).
  882. */
  883. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  884. /* Timeout waiting for the response to the MAC HW mode change command
  885. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  886. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  887. * Channel Concurrency) mode.
  888. */
  889. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  890. /* Timeout waiting for the response from FW to configure the MAC HW's
  891. * mode. This operation is to configure the single/two MACs in either
  892. * SCC/MCC/DBS mode.
  893. */
  894. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  895. /* Timeout waiting for response of VDEV start command from the FW */
  896. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  897. /* Timeout waiting for response of VDEV restart command from the FW */
  898. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  899. /* Timeout waiting for response of VDEV stop command from the FW */
  900. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  901. /* Timeout waiting for response of VDEV delete command from the FW */
  902. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  903. /* Timeout waiting for response of peer all delete request command to
  904. * the FW on a specific VDEV.
  905. */
  906. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  907. /* WMI sequence mismatch between WMI command and Tx completion */
  908. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  909. /* Write to Device HAL register failed */
  910. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  911. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  912. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  913. /* Bus failure */
  914. QCA_WLAN_HANG_BUS_FAILURE = 26,
  915. /* tasklet/credit latency found */
  916. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  917. };
  918. /**
  919. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  920. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  921. */
  922. enum qca_wlan_vendor_attr_hang {
  923. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  924. /*
  925. * Reason for the Hang - Represented by enum
  926. * qca_wlan_vendor_hang_reason.
  927. */
  928. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  929. /* The binary blob data associated with the hang reason specified by
  930. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  931. * contain the required dump to analyze the reason for the hang.
  932. * NLA_BINARY attribute, the max size is 1024 bytes.
  933. */
  934. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  935. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  936. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  937. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  938. };
  939. /**
  940. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  941. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  942. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  943. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  944. level needs to be updated.
  945. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  946. * to be set.
  947. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  948. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  949. */
  950. enum qca_vendor_attr_set_trace_level {
  951. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  952. /*
  953. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  954. * attributes.
  955. */
  956. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  957. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  958. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  959. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  960. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  961. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  962. };
  963. /**
  964. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  965. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  966. * station information. The information obtained through these
  967. * commands signify the current info in connected state and
  968. * latest cached information during the connected state , if queried
  969. * when in disconnected state.
  970. *
  971. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  972. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  973. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  974. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  975. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  976. */
  977. enum qca_wlan_vendor_attr_get_station {
  978. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  979. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  980. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  981. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  982. /* keep last */
  983. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  984. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  985. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  986. };
  987. /**
  988. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  989. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  990. *
  991. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  992. * Used in STA mode. This attribute represents the list of channel center
  993. * frequencies in MHz (u32) the station has learnt during the last connection
  994. * or roaming attempt. This information shall not signify the channels for
  995. * an explicit scan request from the user space. Host drivers can update this
  996. * information to the user space in both connected and disconnected state.
  997. * In the disconnected state this information shall signify the channels
  998. * scanned in the last connection/roam attempt that lead to the disconnection.
  999. */
  1000. enum qca_wlan_vendor_attr_update_sta_info {
  1001. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1002. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1003. /* keep last */
  1004. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1005. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1006. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1007. };
  1008. /**
  1009. * enum qca_wlan_802_11_mode - dot11 mode
  1010. * @QCA_WLAN_802_11_MODE_11B: mode B
  1011. * @QCA_WLAN_802_11_MODE_11G: mode G
  1012. * @QCA_WLAN_802_11_MODE_11N: mode N
  1013. * @QCA_WLAN_802_11_MODE_11A: mode A
  1014. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1015. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1016. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1017. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1018. */
  1019. enum qca_wlan_802_11_mode {
  1020. QCA_WLAN_802_11_MODE_11B,
  1021. QCA_WLAN_802_11_MODE_11G,
  1022. QCA_WLAN_802_11_MODE_11N,
  1023. QCA_WLAN_802_11_MODE_11A,
  1024. QCA_WLAN_802_11_MODE_11AC,
  1025. QCA_WLAN_802_11_MODE_11AX,
  1026. QCA_WLAN_802_11_MODE_11BE,
  1027. QCA_WLAN_802_11_MODE_INVALID,
  1028. };
  1029. /**
  1030. * enum qca_wlan_auth_type - Authentication key management type
  1031. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1032. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1033. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1034. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1035. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1036. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1037. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1038. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1039. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1040. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1041. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1042. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1043. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1044. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1045. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1046. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1047. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1048. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1049. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1050. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1051. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1052. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1053. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1054. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1055. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1056. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1057. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1058. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1059. */
  1060. enum qca_wlan_auth_type {
  1061. QCA_WLAN_AUTH_TYPE_INVALID,
  1062. QCA_WLAN_AUTH_TYPE_OPEN,
  1063. QCA_WLAN_AUTH_TYPE_SHARED,
  1064. QCA_WLAN_AUTH_TYPE_WPA,
  1065. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1066. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1067. QCA_WLAN_AUTH_TYPE_RSN,
  1068. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1069. QCA_WLAN_AUTH_TYPE_FT,
  1070. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1071. QCA_WLAN_AUTH_TYPE_SHA256,
  1072. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1073. QCA_WLAN_AUTH_TYPE_WAI,
  1074. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1075. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1076. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1077. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1078. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1079. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1080. QCA_WLAN_AUTH_TYPE_SAE,
  1081. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1082. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1083. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1084. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1085. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1086. QCA_WLAN_AUTH_TYPE_OWE,
  1087. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1088. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1089. };
  1090. /**
  1091. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1092. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1093. *
  1094. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1095. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1096. * Get the standard NL attributes Nested with this attribute.
  1097. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1098. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1099. * NL80211_ATTR_STA_INFO
  1100. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1101. * Get the standard NL attributes Nested with this attribute.
  1102. * Ex : Query HT/VHT Capability advertized by the AP.
  1103. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1104. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1105. * Number of successful Roam attempts before a
  1106. * disconnect, Unsigned 32 bit value
  1107. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1108. * Authentication Key Management Type used for the connected session.
  1109. * Signified by enum qca_wlan_auth_type
  1110. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1111. * connected Session, signified by enum qca_wlan_802_11_mode
  1112. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1113. * HS20 Indication Element
  1114. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1115. * Status Code Corresponding to the Association Failure.
  1116. * Unsigned 32 bit value.
  1117. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1118. * Max phy rate of remote station
  1119. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1120. * TX packets to remote station
  1121. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1122. * TX bytes to remote station
  1123. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1124. * RX packets from remote station
  1125. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1126. * RX bytes from remote station
  1127. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1128. * Last TX rate with remote station
  1129. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1130. * Last RX rate with remote station
  1131. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1132. * Remote station enable/disable WMM
  1133. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1134. * Remote station connection mode
  1135. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1136. * Remote station AMPDU enable/disable
  1137. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1138. * Remote station TX Space-time block coding enable/disable
  1139. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1140. * Remote station RX Space-time block coding enable/disable
  1141. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1142. * Remote station channel width
  1143. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1144. * Remote station short GI enable/disable
  1145. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1146. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1147. * containing the raw information elements from Beacon frames. Represents
  1148. * the Beacon frames of the current BSS in the connected state. When queried
  1149. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1150. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1151. * disconnect reason for the last disconnection if the disconnection is
  1152. * triggered from the host driver. The values are referred from
  1153. * enum qca_disconnect_reason_codes. If the disconnect is from
  1154. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1155. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1156. * Applicable in AP mode only. It contains the raw information elements
  1157. * from assoc request frame of the given peer station. User queries with the
  1158. * mac address of peer station when it disconnects. Host driver sends
  1159. * assoc request frame of the given station. Host driver doesn't provide
  1160. * the IEs when the peer station is still in connected state.
  1161. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1162. * sending HE operation info.
  1163. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1164. *
  1165. */
  1166. enum qca_wlan_vendor_attr_get_station_info {
  1167. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1168. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1169. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1170. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1171. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1172. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1173. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1174. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1175. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1176. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1177. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1178. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1179. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1180. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1181. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1182. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1183. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1184. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1185. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1186. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1187. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1188. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1189. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1190. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1191. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1192. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1193. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1194. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1195. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1196. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1197. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1198. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1199. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1200. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1201. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1202. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1203. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1204. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1205. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1206. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1207. /* keep last */
  1208. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1209. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1210. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1211. };
  1212. /**
  1213. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  1214. *
  1215. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  1216. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  1217. * value
  1218. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  1219. * keep as unsigned for now
  1220. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  1221. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  1222. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  1223. * in KBPS
  1224. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  1225. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  1226. */
  1227. enum qca_wlan_vendor_attr_tdls_enable {
  1228. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  1229. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  1230. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  1231. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  1232. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  1233. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  1234. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  1235. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  1236. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  1237. };
  1238. /**
  1239. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  1240. *
  1241. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  1242. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  1243. * 8-bit value
  1244. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  1245. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  1246. */
  1247. enum qca_wlan_vendor_attr_tdls_disable {
  1248. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  1249. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  1250. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  1251. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  1252. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  1253. };
  1254. /**
  1255. * qca_chip_power_save_failure_reason: Power save failure reason
  1256. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1257. * due to protocol/module.
  1258. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1259. * due to hardware
  1260. */
  1261. enum qca_chip_power_save_failure_reason {
  1262. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1263. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1264. };
  1265. /**
  1266. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1267. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1268. * information leading to the power save failure.
  1269. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1270. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1271. * represented by enum qca_chip_power_save_failure_reason
  1272. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1273. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1274. */
  1275. enum qca_attr_chip_power_save_failure {
  1276. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1277. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1278. /* keep last */
  1279. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1280. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1281. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1282. };
  1283. /**
  1284. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1285. *
  1286. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1287. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1288. * 8-bit value
  1289. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1290. * unsigned 32-bit value
  1291. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1292. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1293. * unsigned 32-bit value
  1294. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1295. * class, unsigned 32-bit value
  1296. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1297. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1298. */
  1299. enum qca_wlan_vendor_attr_tdls_get_status {
  1300. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1301. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1302. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1303. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1304. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1305. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1306. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1307. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1308. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1309. };
  1310. /**
  1311. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1312. *
  1313. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1314. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1315. * 8-bit value
  1316. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1317. * unsigned 32-bit value
  1318. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1319. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1320. * unsigned 32-bit value
  1321. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1322. * operating class, unsigned 32-bit value
  1323. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1324. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1325. */
  1326. enum qca_wlan_vendor_attr_tdls_state {
  1327. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1328. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1329. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1330. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1331. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1332. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1333. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1334. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1335. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  1336. };
  1337. /* enum's to provide TDLS capabilities */
  1338. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1339. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1340. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1341. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1342. /* keep last */
  1343. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1344. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1345. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1346. };
  1347. enum qca_wlan_vendor_attr {
  1348. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1349. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1350. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1351. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1352. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1353. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1354. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1355. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1356. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1357. /*
  1358. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1359. * by enum qca_roaming_policy.
  1360. */
  1361. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1362. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1363. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1364. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1365. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1366. /*
  1367. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1368. * Unsigned 32-bit value.
  1369. */
  1370. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1371. /* Unsigned 32-bit value */
  1372. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1373. /* Unsigned 32-bit value */
  1374. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1375. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1376. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1377. * is deprecated. Recommendation is to use
  1378. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1379. * using both the attributes, the ones configured through
  1380. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1381. */
  1382. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1383. /* Dummy (NOP) attribute for 64 bit padding */
  1384. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1385. /*
  1386. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1387. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1388. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1389. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1390. */
  1391. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1392. /*
  1393. * Indoor location capabilities, returned by
  1394. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1395. * see enum qca_wlan_vendor_attr_loc_capa.
  1396. */
  1397. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1398. /*
  1399. * Array of nested attributes containing information about each peer
  1400. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1401. * for supported attributes for each peer.
  1402. */
  1403. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1404. /*
  1405. * Array of nested attributes containing measurement results for
  1406. * one or more peers, reported by the
  1407. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1408. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1409. * attributes.
  1410. */
  1411. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1412. /* Flag attribute for enabling or disabling responder functionality. */
  1413. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1414. /*
  1415. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1416. * command to specify the LCI report that will be sent by
  1417. * the responder during a measurement exchange. The format is
  1418. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1419. */
  1420. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1421. /*
  1422. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1423. * command to specify the location civic report that will
  1424. * be sent by the responder during a measurement exchange.
  1425. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1426. */
  1427. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1428. /*
  1429. * Session/measurement completion status code,
  1430. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1431. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1432. * see enum qca_vendor_attr_loc_session_status.
  1433. */
  1434. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1435. /*
  1436. * Initial dialog token used by responder (0 if not specified),
  1437. * unsigned 8 bit value.
  1438. */
  1439. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1440. /*
  1441. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1442. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1443. * AOA measurements are needed as part of an FTM session.
  1444. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1445. * enum qca_wlan_vendor_attr_aoa_type.
  1446. */
  1447. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1448. /*
  1449. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1450. * by indoor location measurements. Refers to the antenna
  1451. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1452. */
  1453. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1454. /*
  1455. * AOA measurement data. Its contents depends on the AOA measurement
  1456. * type and antenna array mask:
  1457. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1458. * phase of the strongest CIR path for each antenna in the measured
  1459. * array(s).
  1460. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1461. * values, phase and amplitude of the strongest CIR path for each
  1462. * antenna in the measured array(s).
  1463. */
  1464. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1465. /*
  1466. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1467. * to specify the chain number (unsigned 32 bit value) to inquire
  1468. * the corresponding antenna RSSI value */
  1469. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1470. /*
  1471. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1472. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1473. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1474. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1475. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1476. /*
  1477. * TSF timer value, unsigned 64 bit value.
  1478. * May be returned by various commands.
  1479. */
  1480. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1481. /*
  1482. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1483. * 0..127 for sector indices or 65535 as special value used to
  1484. * unlock sector selection in
  1485. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1486. */
  1487. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1488. /*
  1489. * DMG RF sector type, unsigned 8 bit value. One of the values
  1490. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1491. */
  1492. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1493. /*
  1494. * Bitmask of DMG RF modules for which information is requested. Each
  1495. * bit corresponds to an RF module with the same index as the bit
  1496. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1497. * all DMG chips currently have up to 8 RF modules.
  1498. */
  1499. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1500. /*
  1501. * Array of nested attributes where each entry is DMG RF sector
  1502. * configuration for a single RF module.
  1503. * Attributes for each entry are taken from enum
  1504. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1505. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1506. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1507. */
  1508. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1509. /*
  1510. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1511. * to report frame aggregation statistics to userspace.
  1512. */
  1513. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1514. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1515. /*
  1516. * Unsigned 8-bit value representing MBO transition reason code as
  1517. * provided by the AP used by subcommand
  1518. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1519. * specified by the userspace in the request to the driver.
  1520. */
  1521. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1522. /*
  1523. * Array of nested attributes, BSSID and status code, used by subcommand
  1524. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1525. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1526. * The userspace space specifies the list/array of candidate BSSIDs in
  1527. * the order of preference in the request. The driver specifies the
  1528. * status code, for each BSSID in the list, in the response. The
  1529. * acceptable candidates are listed in the order preferred by the
  1530. * driver.
  1531. */
  1532. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1533. /*
  1534. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1535. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1536. */
  1537. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1538. /*
  1539. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1540. * to define the number of antennas to use for BRP.
  1541. * different purpose in each ANT_LIMIT_MODE:
  1542. * DISABLE - ignored
  1543. * EFFECTIVE - upper limit to number of antennas to be used
  1544. * FORCE - exact number of antennas to be used
  1545. * unsigned 8 bit value
  1546. */
  1547. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1548. /*
  1549. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1550. * to report the corresponding antenna index to the chain RSSI value
  1551. */
  1552. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1553. /*
  1554. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1555. * to report the specific antenna EVM value (unsigned 32 bit value).
  1556. * With a determinate group of antennas, the driver specifies the
  1557. * EVM value for each antenna ID, and application extract them
  1558. * in user space.
  1559. */
  1560. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1561. /*
  1562. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1563. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1564. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1565. */
  1566. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1567. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1568. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1569. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1570. * This attribute shall consider the bitmask combinations to define
  1571. * the respective Band combinations and always takes precedence over
  1572. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1573. */
  1574. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1575. /* keep last */
  1576. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1577. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1578. };
  1579. enum qca_wlan_vendor_attr_extscan_config_params {
  1580. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1581. /* Unsigned 32-bit value */
  1582. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1583. /*
  1584. * Attributes for data used by
  1585. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1586. */
  1587. /* Unsigned 32-bit value */
  1588. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1589. = 2,
  1590. /* Unsigned 32-bit value */
  1591. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1592. = 3,
  1593. /*
  1594. * Attributes for input params used by
  1595. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1596. */
  1597. /* Unsigned 32-bit value; channel frequency */
  1598. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1599. /* Unsigned 32-bit value; dwell time in ms. */
  1600. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1601. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1602. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1603. /* Unsigned 8-bit value; channel class */
  1604. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1605. /* Unsigned 8-bit value; bucket index, 0 based */
  1606. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1607. /* Unsigned 8-bit value; band. */
  1608. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1609. /* Unsigned 32-bit value; desired period, in ms. */
  1610. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1611. /* Unsigned 8-bit value; report events semantics. */
  1612. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1613. /*
  1614. * Unsigned 32-bit value. Followed by a nested array of
  1615. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1616. */
  1617. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1618. /*
  1619. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1620. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1621. */
  1622. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1623. /* Unsigned 32-bit value; base timer period in ms. */
  1624. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1625. /*
  1626. * Unsigned 32-bit value; number of APs to store in each scan in the
  1627. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1628. */
  1629. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1630. /*
  1631. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1632. * up AP.
  1633. */
  1634. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1635. = 16,
  1636. /*
  1637. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1638. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1639. * of the array is determined by NUM_BUCKETS.
  1640. */
  1641. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1642. /*
  1643. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1644. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1645. */
  1646. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1647. /* Unsigned 8-bit value */
  1648. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1649. = 19,
  1650. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1651. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1652. = 20,
  1653. /* An array of 6 x unsigned 8-bit value */
  1654. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1655. /* Signed 32-bit value */
  1656. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1657. /* Signed 32-bit value */
  1658. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1659. /* Unsigned 32-bit value */
  1660. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1661. /*
  1662. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1663. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1664. * array is determined by NUM_AP.
  1665. */
  1666. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1667. /*
  1668. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1669. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1670. */
  1671. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1672. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1673. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1674. = 27,
  1675. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1676. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1677. = 28,
  1678. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1679. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1680. /*
  1681. * Unsigned 32-bit value; number of APs. Followed by an array of
  1682. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1683. */
  1684. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1685. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1686. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1687. = 31,
  1688. /*
  1689. * Unsigned 32-bit value. If max_period is non zero or different than
  1690. * period, then this bucket is an exponential backoff bucket.
  1691. */
  1692. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1693. /* Unsigned 32-bit value. */
  1694. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1695. /*
  1696. * Unsigned 32-bit value. For exponential back off bucket, number of
  1697. * scans to perform for a given period.
  1698. */
  1699. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1700. /*
  1701. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1702. * many scans.
  1703. */
  1704. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1705. = 35,
  1706. /*
  1707. * Attributes for data used by
  1708. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1709. */
  1710. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1711. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1712. = 36,
  1713. /*
  1714. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1715. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1716. * size of the array is determined by NUM_SSID.
  1717. */
  1718. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1719. /*
  1720. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1721. * attributes.
  1722. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1723. */
  1724. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1725. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1726. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1727. /* Unsigned 8-bit value */
  1728. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1729. /* Signed 32-bit value */
  1730. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1731. /* Signed 32-bit value */
  1732. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1733. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1734. */
  1735. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1736. /* keep last */
  1737. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1738. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1739. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1740. };
  1741. enum qca_wlan_vendor_attr_extscan_results {
  1742. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1743. /*
  1744. * Unsigned 32-bit value; must match the request Id supplied by
  1745. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1746. */
  1747. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1748. /*
  1749. * Unsigned 32-bit value; used to indicate the status response from
  1750. * firmware/driver for the vendor sub-command.
  1751. */
  1752. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1753. /*
  1754. * EXTSCAN Valid Channels attributes */
  1755. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1756. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1757. /*
  1758. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1759. * representing channel numbers.
  1760. */
  1761. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1762. /* EXTSCAN Capabilities attributes */
  1763. /* Unsigned 32-bit value */
  1764. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1765. /* Unsigned 32-bit value */
  1766. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1767. /* Unsigned 32-bit value */
  1768. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1769. = 7,
  1770. /* Unsigned 32-bit value */
  1771. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1772. = 8,
  1773. /* Signed 32-bit value */
  1774. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1775. = 9,
  1776. /* Unsigned 32-bit value */
  1777. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1778. /* Unsigned 32-bit value */
  1779. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1780. = 11,
  1781. /* Unsigned 32-bit value */
  1782. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1783. = 12,
  1784. /*
  1785. * EXTSCAN Attributes used with
  1786. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1787. */
  1788. /* Unsigned 32-bit value */
  1789. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1790. /*
  1791. * EXTSCAN attributes used with
  1792. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1793. */
  1794. /*
  1795. * An array of NUM_RESULTS_AVAILABLE x
  1796. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1797. */
  1798. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1799. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1800. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1801. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1802. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1803. /* An array of 6 x unsigned 8-bit value */
  1804. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1805. /* Unsigned 32-bit value; channel frequency in MHz */
  1806. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1807. /* Signed 32-bit value */
  1808. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1809. /* Unsigned 32-bit value */
  1810. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1811. /* Unsigned 32-bit value */
  1812. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1813. /* Unsigned 16-bit value */
  1814. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1815. /* Unsigned 16-bit value */
  1816. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1817. /* Unsigned 32-bit value; size of the IE DATA blob */
  1818. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1819. /*
  1820. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1821. * information elements found in the beacon; this data should be a
  1822. * packed list of wifi_information_element objects, one after the
  1823. * other.
  1824. */
  1825. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1826. /*
  1827. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1828. * available.
  1829. */
  1830. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1831. /*
  1832. * EXTSCAN attributes for
  1833. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1834. */
  1835. /* Unsigned 8-bit value */
  1836. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1837. /* Unsigned 32-bit value */
  1838. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1839. /*
  1840. * EXTSCAN attributes for
  1841. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  1842. */
  1843. /*
  1844. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1845. * to indicate number of results.
  1846. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1847. * list of results.
  1848. */
  1849. /*
  1850. * EXTSCAN attributes for
  1851. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  1852. */
  1853. /* An array of 6 x unsigned 8-bit value */
  1854. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  1855. /* Unsigned 32-bit value */
  1856. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  1857. = 30,
  1858. /* Unsigned 32-bit value. */
  1859. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  1860. = 31,
  1861. /*
  1862. * A nested array of signed 32-bit RSSI values. Size of the array is
  1863. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  1864. */
  1865. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  1866. = 32,
  1867. /*
  1868. * EXTSCAN attributes used with
  1869. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  1870. */
  1871. /*
  1872. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1873. * to indicate number of extscan cached results returned.
  1874. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  1875. * the list of extscan cached results.
  1876. */
  1877. /*
  1878. * An array of NUM_RESULTS_AVAILABLE x
  1879. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  1880. */
  1881. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  1882. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  1883. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  1884. /*
  1885. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  1886. */
  1887. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  1888. /*
  1889. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1890. * to indicate number of wifi scan results/bssids retrieved by the scan.
  1891. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1892. * list of wifi scan results returned for each cached result block.
  1893. */
  1894. /*
  1895. * EXTSCAN attributes for
  1896. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  1897. */
  1898. /*
  1899. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  1900. * number of results.
  1901. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1902. * list of wifi scan results returned for each
  1903. * wifi_passpoint_match_result block.
  1904. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  1905. */
  1906. /*
  1907. * EXTSCAN attributes for
  1908. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  1909. */
  1910. /* Unsigned 32-bit value */
  1911. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  1912. = 36,
  1913. /*
  1914. * A nested array of
  1915. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  1916. * attributes. Array size =
  1917. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  1918. */
  1919. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  1920. /* Unsigned 32-bit value; network block id for the matched network */
  1921. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  1922. /*
  1923. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1924. * list of wifi scan results returned for each
  1925. * wifi_passpoint_match_result block.
  1926. */
  1927. /* Unsigned 32-bit value */
  1928. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  1929. /*
  1930. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  1931. * ANQP data in the information_element format.
  1932. */
  1933. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  1934. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1935. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  1936. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1937. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  1938. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1939. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  1940. = 43,
  1941. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1942. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  1943. = 44,
  1944. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  1945. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  1946. /* keep last */
  1947. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  1948. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  1949. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  1950. };
  1951. /**
  1952. * enum qca_vendor_interop_issues_ap_type - interop issues type
  1953. * This enum defines the valid set of values of interop issues type. These
  1954. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  1955. *
  1956. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  1957. * when the STA's Qpower feature is enabled.
  1958. */
  1959. enum qca_vendor_interop_issues_ap_type {
  1960. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  1961. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  1962. };
  1963. /**
  1964. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  1965. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  1966. *
  1967. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  1968. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  1969. * 32-bit unsigned value, The type defined in enum
  1970. * qca_vendor_interop_issues_ap_type are used.
  1971. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  1972. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  1973. * it is present and mandatory for the command but is not used for
  1974. * the event since only a single BSSID is reported in an event.
  1975. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  1976. * 6-byte MAC address. It is used within the nested
  1977. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  1978. * and without such encapsulation in the event case.
  1979. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  1980. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  1981. */
  1982. enum qca_vendor_attr_interop_issues_ap {
  1983. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  1984. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  1985. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  1986. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  1987. /* keep last */
  1988. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  1989. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  1990. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  1991. };
  1992. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  1993. /**
  1994. * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
  1995. *
  1996. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
  1997. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
  1998. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
  1999. * Aggresive stats gathering
  2000. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
  2001. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
  2002. */
  2003. enum qca_wlan_vendor_attr_ll_stats_set {
  2004. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  2005. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  2006. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
  2007. /* keep last */
  2008. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  2009. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2010. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
  2011. };
  2012. /**
  2013. * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
  2014. *
  2015. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
  2016. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
  2017. * provided by the caller issuing the GET stats command. When reporting
  2018. * the stats results, the driver uses the same value to indicate which
  2019. * GET request the results correspond to.
  2020. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
  2021. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  2022. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  2023. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
  2024. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
  2025. */
  2026. enum qca_wlan_vendor_attr_ll_stats_get {
  2027. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2028. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
  2029. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
  2030. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2031. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2032. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
  2033. };
  2034. /**
  2035. * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
  2036. *
  2037. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
  2038. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
  2039. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
  2040. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  2041. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  2042. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
  2043. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
  2044. */
  2045. enum qca_wlan_vendor_attr_ll_stats_clr {
  2046. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2047. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
  2048. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
  2049. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
  2050. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
  2051. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2052. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2053. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
  2054. };
  2055. /**
  2056. * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
  2057. *
  2058. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
  2059. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
  2060. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
  2061. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
  2062. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
  2063. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
  2064. */
  2065. enum qca_wlan_vendor_attr_ll_stats_results_type {
  2066. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
  2067. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
  2068. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
  2069. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
  2070. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
  2071. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
  2072. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
  2073. };
  2074. enum qca_wlan_vendor_attr_ll_stats_results {
  2075. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2076. /* Unsigned 32bit value. Used by the driver; must match the request id
  2077. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2078. */
  2079. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2080. /* Unsigned 32 bit value */
  2081. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2082. /* Unsigned 32 bit value */
  2083. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2084. /* Unsigned 32 bit value */
  2085. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2086. /* Unsigned 32 bit value */
  2087. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2088. /* Signed 32 bit value */
  2089. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2090. /* Signed 32 bit value */
  2091. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2092. /* Signed 32 bit value */
  2093. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2094. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2095. * nested within the interface stats.
  2096. */
  2097. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2098. * Type = enum wifi_interface_mode.
  2099. */
  2100. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2101. /* Interface MAC address. An array of 6 Unsigned int8 */
  2102. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2103. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2104. * AUTHENTICATING, etc. valid for STA, CLI only.
  2105. */
  2106. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2107. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2108. */
  2109. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2110. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2111. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2112. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2113. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2114. /* BSSID. An array of 6 unsigned 8 bit values */
  2115. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2116. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2117. * values.
  2118. */
  2119. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2120. /* Country string for this association. An array of 3 unsigned 8 bit
  2121. * values.
  2122. */
  2123. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2124. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2125. * be nested within the interface stats.
  2126. */
  2127. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2128. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2129. /* Unsigned int 32 value corresponding to respective AC */
  2130. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2131. /* Unsigned int 32 value corresponding to respective AC */
  2132. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2133. /* Unsigned int 32 value corresponding to respective AC */
  2134. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2135. /* Unsigned int 32 value corresponding to respective AC */
  2136. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2137. /* Unsigned int 32 value corresponding to respective AC */
  2138. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2139. /* Unsigned int 32 value corresponding to respective AC */
  2140. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2141. /* Unsigned int 32 value corresponding to respective AC */
  2142. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2143. /* Unsigned int 32 value corresponding to respective AC */
  2144. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2145. /* Unsigned int 32 value corresponding to respective AC */
  2146. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2147. /* Unsigned int 32 values corresponding to respective AC */
  2148. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2149. /* Unsigned int 32 values corresponding to respective AC */
  2150. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2151. /* Unsigned int 32 values corresponding to respective AC */
  2152. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2153. /* Unsigned int 32 values corresponding to respective AC */
  2154. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2155. /* Unsigned int 32 values corresponding to respective AC */
  2156. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2157. /* Unsigned 32 bit value. Number of peers */
  2158. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2159. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2160. * nested within the interface stats.
  2161. */
  2162. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2163. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2164. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2165. * 8 bit values.
  2166. */
  2167. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2168. /* Unsigned int 32 bit value representing capabilities corresponding
  2169. * to respective peer.
  2170. */
  2171. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2172. /* Unsigned 32 bit value. Number of rates */
  2173. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2174. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2175. * are nested within the rate stat.
  2176. */
  2177. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2178. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2179. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2180. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2181. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2182. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2183. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2184. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2185. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2186. */
  2187. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2188. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2189. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2190. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2191. * nested within the peer info stats.
  2192. */
  2193. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2194. * packets, i.e., with ACK received corresponding to the respective
  2195. * rate.
  2196. */
  2197. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2198. /* Unsigned int 32 bit value. Number of received data packets
  2199. * corresponding to the respective rate.
  2200. */
  2201. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2202. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2203. * received corresponding to the respective rate.
  2204. */
  2205. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2206. /* Unsigned int 32 bit value. Total number of data packet retries for
  2207. * the respective rate.
  2208. */
  2209. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2210. /* Unsigned int 32 bit value. Total number of short data packet retries
  2211. * for the respective rate.
  2212. */
  2213. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2214. /* Unsigned int 32 bit value. Total number of long data packet retries
  2215. * for the respective rate.
  2216. */
  2217. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2218. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2219. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2220. * accruing over time.
  2221. */
  2222. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2223. /* Unsigned 32 bit value. Total number of msecs the radio is
  2224. * transmitting accruing over time.
  2225. */
  2226. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2227. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2228. * receive accruing over time.
  2229. */
  2230. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2231. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2232. * to all scan accruing over time.
  2233. */
  2234. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2235. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2236. * to NAN accruing over time.
  2237. */
  2238. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2239. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2240. * to GSCAN accruing over time.
  2241. */
  2242. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2243. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2244. * to roam scan accruing over time.
  2245. */
  2246. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2247. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2248. * to PNO scan accruing over time.
  2249. */
  2250. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2251. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2252. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2253. */
  2254. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2255. /* Unsigned 32 bit value. Number of channels. */
  2256. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2257. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2258. * be nested within the channel stats.
  2259. */
  2260. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2261. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2262. /* Unsigned 32 bit value. Primary 20 MHz channel. */
  2263. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2264. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2265. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2266. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2267. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2268. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2269. * nested within the radio stats.
  2270. */
  2271. /* Unsigned int 32 bit value representing total number of msecs the
  2272. * radio is awake on that channel accruing over time, corresponding to
  2273. * the respective channel.
  2274. */
  2275. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2276. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2277. * register is busy accruing over time corresponding to the respective
  2278. * channel.
  2279. */
  2280. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2281. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2282. /* Signifies the nested list of channel attributes
  2283. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2284. */
  2285. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2286. /* Signifies the nested list of peer info attributes
  2287. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
  2288. */
  2289. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2290. /* Signifies the nested list of rate info attributes
  2291. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2292. */
  2293. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2294. /* Signifies the nested list of wmm info attributes
  2295. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2296. */
  2297. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2298. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2299. * that more stats, e.g., peers or radio, are to follow in the next
  2300. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2301. * Otherwise, it is set to 0.
  2302. */
  2303. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2304. /* Unsigned 64 bit value */
  2305. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2306. /* Unsigned 32 bit value */
  2307. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2308. /* Unsigned 32 bit value */
  2309. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2310. /* Unsigned 32 bit value */
  2311. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2312. /* Unsigned 32 bit value */
  2313. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2314. /* Unsigned 32 bit value */
  2315. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2316. /* Number of msecs the radio spent in transmitting for each power level
  2317. */
  2318. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2319. /* Unsigned 32 bit value */
  2320. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2321. /* Unsigned 32 bit value */
  2322. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2323. /* Unsigned 32 bit value */
  2324. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2325. /* Unsigned 32 bit value */
  2326. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2327. /* Unsigned int 32 value.
  2328. * Pending MSDUs corresponding to respective AC.
  2329. */
  2330. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2331. /* u32 value representing total time in milliseconds for which the radio
  2332. * is transmitting on this channel. This attribute will be nested
  2333. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2334. */
  2335. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2336. /* u32 value representing total time in milliseconds for which the radio
  2337. * is receiving all 802.11 frames intended for this device on this
  2338. * channel. This attribute will be nested within
  2339. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2340. */
  2341. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2342. /* u8 value representing the channel load percentage. Possible values
  2343. * are 0-100.
  2344. */
  2345. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2346. /* u8 value representing the time slicing duty cycle percentage.
  2347. * Possible values are 0-100.
  2348. */
  2349. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2350. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2351. * from the associated AP and indicate buffered unicast frame(s) for us
  2352. * in the TIM element.
  2353. */
  2354. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2355. /* Unsigned 32 bit value. The total number of Beacon frames received
  2356. * from the associated AP that have wrongly indicated buffered unicast
  2357. * traffic in the TIM element for us.
  2358. * Below scenarios will be considered as wrong TIM element beacon:
  2359. * 1) The related TIM element is set in the beacon for STA but STA
  2360. * doesn’t receive any unicast data after this beacon.
  2361. * 2) The related TIM element is still set in the beacon for STA
  2362. * after STA has indicated power save exit by QoS Null Data frame.
  2363. */
  2364. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2365. /* keep last */
  2366. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2367. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2368. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2369. };
  2370. enum qca_wlan_vendor_attr_ll_stats_type {
  2371. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2372. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2373. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2374. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2375. /* keep last */
  2376. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2377. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2378. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2379. };
  2380. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2381. /**
  2382. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2383. *
  2384. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2385. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2386. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2387. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2388. */
  2389. enum qca_wlan_vendor_attr_get_supported_features {
  2390. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2391. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2392. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2393. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2394. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2395. };
  2396. /**
  2397. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2398. *
  2399. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2400. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2401. * value
  2402. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2403. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2404. */
  2405. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2406. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2407. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2408. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2409. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2410. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2411. };
  2412. /**
  2413. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2414. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2415. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2416. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2417. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2418. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2419. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2420. */
  2421. enum qca_wlan_vendor_scan_priority {
  2422. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2423. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2424. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2425. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2426. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2427. };
  2428. /**
  2429. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2430. *
  2431. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2432. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2433. * with frequencies to be scanned (in MHz)
  2434. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2435. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2436. * rates to be included
  2437. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2438. * at non CCK rate in 2GHz band
  2439. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2440. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2441. * driver for the specific scan request
  2442. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2443. * request decoded as in enum scan_status
  2444. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2445. * scan flag is set
  2446. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2447. * randomisation
  2448. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2449. * specific BSSID to scan for.
  2450. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2451. * microseconds. This is a common value which applies across all
  2452. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2453. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2454. * other scan requests. It is a u32 attribute and takes values from enum
  2455. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2456. * If this attribute is not configured, the driver shall use
  2457. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2458. */
  2459. enum qca_wlan_vendor_attr_scan {
  2460. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2461. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2462. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2463. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2464. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2465. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2466. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2467. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2468. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2469. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2470. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2471. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2472. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2473. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2474. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2475. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2476. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2477. };
  2478. /**
  2479. * enum scan_status - Specifies the valid values the vendor scan attribute
  2480. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2481. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2482. * new scan results
  2483. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2484. */
  2485. enum scan_status {
  2486. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2487. VENDOR_SCAN_STATUS_ABORTED,
  2488. VENDOR_SCAN_STATUS_MAX,
  2489. };
  2490. /**
  2491. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2492. *
  2493. * NL attributes for data used by
  2494. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2495. *
  2496. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2497. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2498. * Unsigned 32-bit value
  2499. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2500. * Unsigned 32-bit value
  2501. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2502. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2503. * combinations
  2504. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2505. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2506. */
  2507. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2508. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2509. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2510. = 1,
  2511. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2512. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2513. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2514. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2515. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2516. };
  2517. /**
  2518. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2519. *
  2520. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2521. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2522. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2523. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2524. */
  2525. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2526. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2527. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2528. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2529. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2530. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2531. };
  2532. /**
  2533. * enum qca_vendor_attr_wisa_cmd
  2534. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2535. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2536. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2537. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2538. * WISA setup vendor commands
  2539. */
  2540. enum qca_vendor_attr_wisa_cmd {
  2541. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2542. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2543. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2544. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2545. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2546. };
  2547. enum qca_roaming_policy {
  2548. QCA_ROAMING_NOT_ALLOWED,
  2549. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2550. };
  2551. /**
  2552. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2553. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2554. *
  2555. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2556. * reasons.
  2557. *
  2558. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2559. * the configured threshold.
  2560. *
  2561. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2562. * beacon misses from the then connected AP.
  2563. *
  2564. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2565. * by the connected AP.
  2566. *
  2567. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2568. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2569. * not poor.
  2570. *
  2571. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2572. * or environment being very noisy / congested.
  2573. *
  2574. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2575. * from the user (user space).
  2576. *
  2577. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2578. * connected AP.
  2579. *
  2580. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2581. * breaching out the configured threshold.
  2582. *
  2583. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2584. * transition request.
  2585. *
  2586. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2587. * there is no data activity with the AP and the current rssi falls below a
  2588. * certain threshold.
  2589. *
  2590. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2591. * deauthentication or disassociation frames received from the connected AP.
  2592. *
  2593. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2594. * scan that happens when there is no candiate AP found during the poor
  2595. * RSSI scan trigger.
  2596. *
  2597. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2598. * results obtained from an external scan (not aimed at roaming).
  2599. *
  2600. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2601. * connection is established when the station is connected in 2.4 Ghz band.
  2602. */
  2603. enum qca_roam_reason {
  2604. QCA_ROAM_REASON_UNKNOWN,
  2605. QCA_ROAM_REASON_PER,
  2606. QCA_ROAM_REASON_BEACON_MISS,
  2607. QCA_ROAM_REASON_POOR_RSSI,
  2608. QCA_ROAM_REASON_BETTER_RSSI,
  2609. QCA_ROAM_REASON_CONGESTION,
  2610. QCA_ROAM_REASON_USER_TRIGGER,
  2611. QCA_ROAM_REASON_BTM,
  2612. QCA_ROAM_REASON_BSS_LOAD,
  2613. QCA_ROAM_REASON_WTC,
  2614. QCA_ROAM_REASON_IDLE,
  2615. QCA_ROAM_REASON_DISCONNECTION,
  2616. QCA_ROAM_REASON_PERIODIC_TIMER,
  2617. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2618. QCA_ROAM_REASON_BT_ACTIVITY,
  2619. };
  2620. /**
  2621. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2622. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP
  2623. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2624. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2625. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2626. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2627. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2628. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2629. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2630. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2631. * Indicates the status of re-association requested by user space for
  2632. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2633. * Type u16.
  2634. * Represents the status code from AP. Use
  2635. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2636. * real status code for failures.
  2637. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2638. * This attribute indicates that the old association was maintained when
  2639. * a re-association is requested by user space and that re-association
  2640. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2641. * remain associated with the BSS with which the association was in
  2642. * place when being requested to roam). Used along with
  2643. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2644. * re-association status. Type flag.
  2645. * This attribute is applicable only for re-association failure cases.
  2646. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2647. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2648. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2649. * seq number
  2650. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2651. * representing the reasons for the roaming. Defined by enum
  2652. * qca_roam_reason.
  2653. */
  2654. enum qca_wlan_vendor_attr_roam_auth {
  2655. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2656. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2657. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2658. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2659. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2660. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2661. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2662. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2663. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2664. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2665. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2666. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2667. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2668. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2669. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  2670. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  2671. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  2672. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  2673. };
  2674. /**
  2675. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  2676. *
  2677. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  2678. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  2679. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  2680. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  2681. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  2682. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  2683. */
  2684. enum qca_wlan_vendor_attr_wifi_config {
  2685. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  2686. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  2687. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  2688. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  2689. /* keep last */
  2690. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  2691. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  2692. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  2693. };
  2694. /**
  2695. * enum qca_wlan_epno_type - the type of request to the EPNO command
  2696. * @QCA_WLAN_EPNO: epno type request
  2697. * @QCA_WLAN_PNO: pno type request
  2698. */
  2699. enum qca_wlan_epno_type {
  2700. QCA_WLAN_EPNO,
  2701. QCA_WLAN_PNO
  2702. };
  2703. /**
  2704. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  2705. *
  2706. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  2707. *
  2708. * NL attributes for data used by
  2709. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  2710. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  2711. * Unsigned 32-bit value; pno passpoint number of networks
  2712. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  2713. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  2714. * attributes. Array size =
  2715. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  2716. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  2717. * Unsigned 32-bit value; network id
  2718. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  2719. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  2720. * realm, 0 if unspecified.
  2721. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  2722. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  2723. * to match, 0 if unspecified.
  2724. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  2725. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  2726. * unspecified.
  2727. *
  2728. * NL attributes for data used by
  2729. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  2730. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  2731. * Unsigned 32-bit value; set pno number of networks
  2732. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  2733. * Array of nested
  2734. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  2735. * attributes. Array size =
  2736. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  2737. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  2738. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  2739. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  2740. * Signed 8-bit value; threshold for considering this SSID as found,
  2741. * required granularity for this threshold is 4dBm to 8dBm
  2742. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  2743. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  2744. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  2745. * Unsigned 8-bit value; auth bit field for matching WPA IE
  2746. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  2747. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  2748. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  2749. * Nested attribute to send the channel list
  2750. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  2751. * Unsigned 32-bit value; indicates the Interval between PNO scan
  2752. * cycles in msec
  2753. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  2754. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  2755. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  2756. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  2757. * This attribute is obsolete now.
  2758. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  2759. * Signed 32-bit value; the maximum score that a network
  2760. * can have before bonuses
  2761. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  2762. * Signed 32-bit value; only report when there is a network's
  2763. * score this much higher han the current connection
  2764. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  2765. * Signed 32-bit value; score bonus for all networks with
  2766. * the same network flag
  2767. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  2768. * Signed 32-bit value; score bonus for networks that are not open
  2769. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  2770. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  2771. * 5GHz networks
  2772. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  2773. * Unsigned 32-bit value, representing the PNO Request ID
  2774. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  2775. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  2776. */
  2777. enum qca_wlan_vendor_attr_pno_config_params {
  2778. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  2779. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  2780. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  2781. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  2782. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  2783. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  2784. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  2785. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  2786. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  2787. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  2788. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  2789. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  2790. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  2791. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  2792. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  2793. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  2794. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  2795. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  2796. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  2797. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  2798. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  2799. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  2800. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  2801. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  2802. /* keep last */
  2803. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  2804. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  2805. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  2806. };
  2807. /**
  2808. * enum qca_scan_freq_list_type: Frequency list types
  2809. *
  2810. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  2811. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2812. * a preferred frequency list for roaming.
  2813. *
  2814. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  2815. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2816. * a specific frequency list for roaming.
  2817. */
  2818. enum qca_scan_freq_list_type {
  2819. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  2820. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  2821. };
  2822. /**
  2823. * enum qca_roam_scan_scheme: scan scheme
  2824. *
  2825. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  2826. * Indicates the driver to not scan on a Roam Trigger scenario, but
  2827. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  2828. * disconnect from the current connected AP by notifying a failure
  2829. * code in the BTM response.
  2830. *
  2831. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  2832. * trigger partial frequency scans. These frequencies are the ones learnt
  2833. * or maintained by the driver based on the probability of finding the
  2834. * BSSID's in the ESS for which the roaming is triggered.
  2835. *
  2836. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  2837. * trigger the scan on all the valid frequencies to find the better
  2838. * candidates to roam.
  2839. */
  2840. enum qca_roam_scan_scheme {
  2841. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  2842. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  2843. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  2844. };
  2845. /**
  2846. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  2847. *
  2848. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  2849. * List of frequencies in MHz to be considered for a roam scan.
  2850. *
  2851. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  2852. * Type of frequency list scheme being configured/gotten as defined by the
  2853. * enum qca_scan_freq_list_type.
  2854. */
  2855. enum qca_vendor_attr_scan_freq_list_scheme {
  2856. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  2857. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  2858. /* keep last */
  2859. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  2860. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  2861. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  2862. };
  2863. /*
  2864. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  2865. *
  2866. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  2867. * a bad packet error rates (PER).
  2868. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  2869. * based on beacon misses from the connected AP.
  2870. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  2871. * due to poor RSSI of the connected AP.
  2872. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  2873. * upon finding a BSSID with a better RSSI than the connected BSSID.
  2874. * Here the RSSI of the current BSSID need not be poor.
  2875. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  2876. * by triggering a periodic scan to find a better AP to roam.
  2877. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  2878. * when the connected channel environment is too noisy/congested.
  2879. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  2880. * when BTM Request frame is received from the connected AP.
  2881. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  2882. * when the channel utilization is goes above the configured threshold.
  2883. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  2884. * based on the request from the user (space).
  2885. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  2886. * device receives Deauthentication/Disassociation frame from connected
  2887. * AP.
  2888. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  2889. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  2890. * is determined to be a poor one.
  2891. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  2892. * based on continuous TX Data Frame failures to the connected AP.
  2893. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  2894. * based on the scan results obtained from an external scan (not
  2895. * triggered to aim roaming)
  2896. *
  2897. * Set the corresponding roam trigger reason bit to consider it for roam
  2898. * trigger.
  2899. * Userspace can set multiple bits and send to the driver. The driver shall
  2900. * consider all of them to trigger/initiate a roam scan.
  2901. */
  2902. enum qca_vendor_roam_triggers {
  2903. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  2904. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  2905. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  2906. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  2907. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  2908. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  2909. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  2910. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  2911. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  2912. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  2913. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  2914. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  2915. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  2916. };
  2917. /*
  2918. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  2919. * fail reasons. This enum value is used in
  2920. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  2921. *
  2922. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  2923. * able to trigger the scan.
  2924. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  2925. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  2926. * scan.
  2927. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  2928. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  2929. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  2930. * status code.
  2931. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  2932. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  2933. * frame.
  2934. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  2935. * with error status code.
  2936. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  2937. * received.
  2938. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  2939. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  2940. * frame.
  2941. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  2942. * internally before transmission.
  2943. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  2944. * Request frame.
  2945. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  2946. * dropped internally.
  2947. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  2948. * times out.
  2949. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  2950. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  2951. * internally.
  2952. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  2953. * M2 frame.
  2954. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  2955. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  2956. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  2957. * internally.
  2958. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  2959. * frame.
  2960. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  2961. * started for final beacon miss case.
  2962. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  2963. * received from the AP during roaming handoff.
  2964. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  2965. * or host is suspended and gives the indication of the last roamed AP only
  2966. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  2967. * progress, this ongoing roaming is aborted and the last roamed AP is
  2968. * indicated to host.
  2969. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  2970. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  2971. * out.
  2972. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  2973. */
  2974. enum qca_vendor_roam_fail_reasons {
  2975. QCA_ROAM_FAIL_REASON_NONE = 0,
  2976. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  2977. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  2978. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  2979. QCA_ROAM_FAIL_REASON_HOST = 4,
  2980. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  2981. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  2982. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  2983. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  2984. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  2985. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  2986. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  2987. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  2988. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  2989. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  2990. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  2991. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  2992. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  2993. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  2994. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  2995. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  2996. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  2997. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  2998. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  2999. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3000. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3001. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3002. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3003. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3004. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3005. };
  3006. /*
  3007. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3008. * invoke fail reasons. This enum value is used in
  3009. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3010. *
  3011. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3012. * in roam invoke command.
  3013. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3014. * enabled.
  3015. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3016. * length is invalid.
  3017. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3018. * in progress.
  3019. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3020. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3021. * firmware when the given AP is configured to be ignored or SSID/security
  3022. * does not match.
  3023. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3024. * firmware internal reasons.
  3025. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3026. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3027. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3028. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3029. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3030. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3031. */
  3032. enum qca_vendor_roam_invoke_fail_reasons {
  3033. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3034. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3035. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3036. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3037. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3038. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3039. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3040. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3041. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3042. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3043. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3044. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3045. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3046. };
  3047. /**
  3048. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3049. *
  3050. * Each attribute carries a weightage in percentage (%).
  3051. *
  3052. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3053. * Represents the weightage to be given for the RSSI selection
  3054. * criteria among other parameters.
  3055. *
  3056. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3057. * Represents the weightage to be given for the rate selection
  3058. * criteria among other parameters.
  3059. *
  3060. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3061. * Represents the weightage to be given for the band width selection
  3062. * criteria among other parameters.
  3063. *
  3064. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3065. * Represents the weightage to be given for the band selection
  3066. * criteria among other parameters.
  3067. *
  3068. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3069. * Represents the weightage to be given for the NSS selection
  3070. * criteria among other parameters.
  3071. *
  3072. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3073. * Represents the weightage to be given for the channel congestion
  3074. * selection criteria among other parameters.
  3075. *
  3076. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3077. * Represents the weightage to be given for the beamforming selection
  3078. * criteria among other parameters.
  3079. *
  3080. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3081. * Represents the weightage to be given for the OCE selection
  3082. * criteria among other parameters.
  3083. */
  3084. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3085. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3086. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3087. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3088. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3089. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3090. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3091. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3092. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3093. /* keep last */
  3094. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3095. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3096. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3097. };
  3098. /**
  3099. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3100. * The following attributes are used to set/get/clear the respective
  3101. * configurations to/from the driver.
  3102. * For the get, the attribute for the configuration to be queried shall
  3103. * carry any of its acceptable values to the driver. In return, the driver
  3104. * shall send the configured values within the same attribute to the user
  3105. * space.
  3106. *
  3107. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3108. * Signifies to enable/disable roam control in driver.
  3109. * 1-enable, 0-disable
  3110. * Enable: Mandates the driver to do the further roams using the
  3111. * configuration parameters set through
  3112. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3113. * Disable: Disables the driver/firmware roaming triggered through
  3114. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3115. * expected to continue with the default configurations.
  3116. *
  3117. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3118. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3119. * Roam control status is obtained through this attribute.
  3120. *
  3121. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3122. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3123. * is to be cleared in the driver.
  3124. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3125. * and shall be ignored if used with other sub commands.
  3126. * If this attribute is specified along with subcmd
  3127. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3128. * all other attributes, if there are any.
  3129. * If this attribute is not specified when the subcmd
  3130. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3131. * clear the data corresponding to the attributes specified.
  3132. *
  3133. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3134. * list of frequencies and its type, represented by
  3135. * enum qca_vendor_attr_scan_freq_list_scheme.
  3136. * Frequency list and its type are mandatory for this attribute to set
  3137. * the frequencies.
  3138. * Frequency type is mandatory for this attribute to get the frequencies
  3139. * and the frequency list is obtained through
  3140. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3141. * Frequency list type is mandatory for this attribute to clear the
  3142. * frequencies.
  3143. *
  3144. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3145. * Carries the value of scan period in seconds to set.
  3146. * The value of scan period is obtained with the same attribute for get.
  3147. * Clears the scan period in the driver when specified with clear command.
  3148. * Scan period is the idle time in seconds between each subsequent
  3149. * channel scans.
  3150. *
  3151. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3152. * Carries the value of full scan period in seconds to set.
  3153. * The value of full scan period is obtained with the same attribute for
  3154. * get.
  3155. * Clears the full scan period in the driver when specified with clear
  3156. * command. Full scan period is the idle period in seconds between two
  3157. * successive full channel roam scans.
  3158. *
  3159. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3160. * Carries a bitmap of the roam triggers specified in
  3161. * enum qca_vendor_roam_triggers.
  3162. * The driver shall enable roaming by enabling corresponding roam triggers
  3163. * based on the trigger bits sent with this attribute.
  3164. * If this attribute is not configured, the driver shall proceed with
  3165. * default behavior.
  3166. * The bitmap configured is obtained with the same attribute for get.
  3167. * Clears the bitmap configured in driver when specified with clear
  3168. * command.
  3169. *
  3170. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3171. * weightage in percentage (%) to be given for each selection criteria.
  3172. * Different roam candidate selection criteria are represented by
  3173. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3174. * The driver shall select the roam candidate based on corresponding
  3175. * candidate selection scores sent.
  3176. *
  3177. * An empty nested attribute is used to indicate that no specific
  3178. * preference score/criteria is configured (i.e., to disable this mechanism
  3179. * in the set case and to show that the mechanism is disabled in the get
  3180. * case).
  3181. *
  3182. * Userspace can send multiple attributes out of this enum to the driver.
  3183. * Since this attribute represents the weight/percentage of preference for
  3184. * the respective selection criteria, it is preferred to configure 100%
  3185. * total weightage. The value in each attribute or cumulative weight of the
  3186. * values in all the nested attributes should not exceed 100%. The driver
  3187. * shall reject such configuration.
  3188. *
  3189. * If the weights configured through this attribute are less than 100%,
  3190. * the driver shall honor the weights (x%) passed for the corresponding
  3191. * selection criteria and choose/distribute rest of the weight (100-x)%
  3192. * for the other selection criteria, based on its internal logic.
  3193. *
  3194. * The selection criteria configured is obtained with the same
  3195. * attribute for get.
  3196. *
  3197. * Clears the selection criteria configured in the driver when specified
  3198. * with clear command.
  3199. *
  3200. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3201. * Represents value of scan frequency scheme from
  3202. * enum qca_roam_scan_scheme.
  3203. *
  3204. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3205. * signifying the RSSI threshold of the current connected AP, indicating
  3206. * the driver to trigger roam only when the current connected AP's RSSI
  3207. * is lesser than this threshold.
  3208. *
  3209. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3210. * signifying the RSSI threshold of the candidate AP, indicating
  3211. * the driver to trigger roam only to the candidate AP with RSSI
  3212. * better than this threshold. If RSSI thresholds for candidate APs found
  3213. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3214. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3215. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3216. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3217. * will take precedence over the value configured using
  3218. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3219. *
  3220. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3221. * user triggered reason code to be sent to the AP in response to AP's
  3222. * request to trigger the roam if the roaming cannot be triggered.
  3223. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3224. *
  3225. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3226. * Carries a bitmap of the roam triggers specified in
  3227. * enum qca_vendor_roam_triggers.
  3228. * Represents the roam triggers for which the specific scan scheme from
  3229. * enum qca_roam_scan_scheme has to be applied.
  3230. * It's an optional attribute. If this attribute is not configured, but
  3231. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3232. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3233. * all the roams.
  3234. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3235. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3236. * driver shall proceed with the default behavior.
  3237. *
  3238. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3239. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3240. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3241. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3242. * threshold. Optional attribute. If this attribute is not included, then
  3243. * threshold value specified by the
  3244. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3245. *
  3246. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3247. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3248. * band. The driver/firmware shall trigger roaming to the candidate AP
  3249. * found in 5GHz band only if it's RSSI value is better than this
  3250. * threshold. Optional attribute. If this attribute is not included, then
  3251. * threshold value specified by the
  3252. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3253. *
  3254. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3255. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3256. * band. The driver/firmware shall trigger roaming to the candidate AP
  3257. * found in 6GHz band only if it's RSSI value is better than this
  3258. * threshold. Optional attribute. If this attribute is not included, then
  3259. * threshold value specified by the
  3260. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3261. *
  3262. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3263. * Carries bitmask value of bits from &enum qca_set_band and represents
  3264. * all the bands in which roaming is allowed. The configuration is valid
  3265. * until next disconnection. If this attribute is not present, the
  3266. * existing configuration shall be used. By default, roaming is allowed
  3267. * on all bands supported by local device. When the value is set to
  3268. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3269. *
  3270. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3271. * Optional parameter. RX link speed threshold to disable roaming.
  3272. * If the current RX link speed is above the threshold, roaming is not
  3273. * needed. If this attribute is not configured, or if it is set to 0, the
  3274. * driver will not consider the RX link speed in the roaming decision.
  3275. */
  3276. enum qca_vendor_attr_roam_control {
  3277. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3278. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3279. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3280. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3281. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3282. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3283. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3284. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3285. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3286. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3287. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3288. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3289. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3290. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3291. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3292. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3293. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3294. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3295. /* keep last */
  3296. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3297. QCA_ATTR_ROAM_CONTROL_MAX =
  3298. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3299. };
  3300. /**
  3301. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3302. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3303. *
  3304. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3305. * Represents the different roam sub commands referred by
  3306. * enum qca_wlan_vendor_roaming_subcmd.
  3307. *
  3308. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3309. * Represents the Request ID for the specific set of commands.
  3310. * This also helps to map specific set of commands to the respective
  3311. * ID / client. e.g., helps to identify the user entity configuring the
  3312. * Blacklist BSSID and accordingly clear the respective ones with the
  3313. * matching ID.
  3314. *
  3315. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3316. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3317. *
  3318. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3319. * to carry the list of Whitelist SSIDs.
  3320. *
  3321. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3322. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3323. * represent the list of SSIDs to which the firmware/driver can consider
  3324. * to roam to.
  3325. *
  3326. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3327. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3328. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3329. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3330. *
  3331. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3332. * value, RSSI threshold above which 5GHz RSSI is favored.
  3333. *
  3334. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3335. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3336. *
  3337. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3338. * value, factor by which 5GHz RSSI is boosted.
  3339. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3340. *
  3341. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3342. * value, factor by which 5GHz RSSI is penalized.
  3343. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3344. *
  3345. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3346. * value, maximum boost that can be applied to a 5GHz RSSI.
  3347. *
  3348. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3349. * value, boost applied to current BSSID to ensure the currently
  3350. * associated BSSID is favored so as to prevent ping-pong situations.
  3351. *
  3352. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3353. * value, RSSI below which "Alert" roam is enabled.
  3354. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3355. * because the RSSI is low, or because many successive beacons have been
  3356. * lost or other bad link conditions.
  3357. *
  3358. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3359. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3360. * firmware is hunting for a better BSSID or white listed SSID even though
  3361. * the RSSI of the link is good. The parameters enabling the roaming are
  3362. * configured through the PARAM_A_BAND_XX attrbutes.
  3363. *
  3364. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3365. * represents the BSSIDs preferred over others while evaluating them
  3366. * for the roaming.
  3367. *
  3368. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3369. * 32-bit value. Represents the number of preferred BSSIDs set.
  3370. *
  3371. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3372. * address representing the BSSID to be preferred.
  3373. *
  3374. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3375. * 32-bit value, representing the modifier to be applied to the RSSI of
  3376. * the BSSID for the purpose of comparing it with other roam candidate.
  3377. *
  3378. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3379. * represents the BSSIDs to get blacklisted for roaming.
  3380. *
  3381. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3382. * 32-bit value, represents the number of blacklisted BSSIDs.
  3383. *
  3384. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3385. * address representing the Blacklisted BSSID.
  3386. *
  3387. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3388. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3389. * select this BSSID in the worst case (when no other BSSIDs are better).
  3390. *
  3391. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3392. * set/get/clear the roam control config as
  3393. * defined @enum qca_vendor_attr_roam_control.
  3394. *
  3395. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3396. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3397. */
  3398. enum qca_wlan_vendor_attr_roaming_config_params {
  3399. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3400. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3401. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3402. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3403. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3404. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3405. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3406. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3407. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3408. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3409. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3410. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3411. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3412. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3413. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3414. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3415. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3416. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3417. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3418. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3419. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3420. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3421. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3422. /* keep last */
  3423. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3424. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3425. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3426. };
  3427. /**
  3428. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3429. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3430. *
  3431. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3432. * configure the white list SSIDs. These are configured through
  3433. * the following attributes.
  3434. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3435. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3436. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3437. *
  3438. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3439. * configure the Roam params. These parameters are evaluated on the extscan
  3440. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3441. * params.
  3442. *
  3443. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3444. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3445. * to enable/disable Lazy roam.
  3446. *
  3447. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3448. * preference. Contains the attribute
  3449. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3450. * preference.
  3451. *
  3452. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3453. *
  3454. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3455. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3456. * set the same.
  3457. *
  3458. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3459. * roam control config to the driver with the attribute
  3460. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3461. *
  3462. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3463. * roam control config from driver with the attribute
  3464. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3465. * For the get, the attribute for the configuration to be queried shall
  3466. * carry any of its acceptable value to the driver. In return, the driver
  3467. * shall send the configured values within the same attribute to the user
  3468. * space.
  3469. *
  3470. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3471. * roam control config in the driver with the attribute
  3472. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3473. * The driver shall continue with its default roaming behavior when data
  3474. * corresponding to an attribute is cleared.
  3475. */
  3476. enum qca_wlan_vendor_roaming_subcmd {
  3477. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3478. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3479. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3480. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3481. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3482. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3483. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3484. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3485. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3486. };
  3487. /**
  3488. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3489. *
  3490. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3491. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3492. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3493. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3494. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3495. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3496. */
  3497. enum qca_wlan_vendor_attr_get_wifi_info {
  3498. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3499. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3500. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3501. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3502. /* KEEP LAST */
  3503. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3504. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3505. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3506. };
  3507. enum qca_wlan_vendor_attr_logger_results {
  3508. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3509. /*
  3510. * Unsigned 32-bit value; must match the request Id supplied by
  3511. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3512. */
  3513. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3514. /*
  3515. * Unsigned 32-bit value; used to indicate the size of memory
  3516. * dump to be allocated.
  3517. */
  3518. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3519. /* keep last */
  3520. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3521. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3522. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3523. };
  3524. /**
  3525. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3526. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3527. */
  3528. enum qca_wlan_vendor_channel_prop_flags {
  3529. /* Bits 0, 1, 2, and 3 are reserved */
  3530. /* Turbo channel */
  3531. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3532. /* CCK channel */
  3533. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3534. /* OFDM channel */
  3535. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3536. /* 2.4 GHz spectrum channel. */
  3537. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3538. /* 5 GHz spectrum channel */
  3539. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3540. /* Only passive scan allowed */
  3541. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3542. /* Dynamic CCK-OFDM channel */
  3543. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3544. /* GFSK channel (FHSS PHY) */
  3545. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3546. /* Radar found on channel */
  3547. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3548. /* 11a static turbo channel only */
  3549. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3550. /* Half rate channel */
  3551. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3552. /* Quarter rate channel */
  3553. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3554. /* HT 20 channel */
  3555. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3556. /* HT 40 with extension channel above */
  3557. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3558. /* HT 40 with extension channel below */
  3559. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3560. /* HT 40 intolerant */
  3561. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3562. /* VHT 20 channel */
  3563. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3564. /* VHT 40 with extension channel above */
  3565. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3566. /* VHT 40 with extension channel below */
  3567. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3568. /* VHT 80 channel */
  3569. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3570. /* HT 40 intolerant mark bit for ACS use */
  3571. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3572. /* Channel temporarily blocked due to noise */
  3573. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3574. /* VHT 160 channel */
  3575. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3576. /* VHT 80+80 channel */
  3577. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3578. /* HE 20 channel */
  3579. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3580. /* HE 40 with extension channel above */
  3581. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3582. /* HE 40 with extension channel below */
  3583. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3584. /* HE 40 intolerant */
  3585. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
  3586. };
  3587. /**
  3588. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3589. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3590. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  3591. */
  3592. enum qca_wlan_vendor_channel_prop_flags_2 {
  3593. /* HE 40 intolerant mark bit for ACS use */
  3594. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  3595. /* HE 80 channel */
  3596. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  3597. /* HE 160 channel */
  3598. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  3599. /* HE 80+80 channel */
  3600. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  3601. };
  3602. /**
  3603. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  3604. * each channel. This is used by
  3605. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  3606. */
  3607. enum qca_wlan_vendor_channel_prop_flags_ext {
  3608. /* Radar found on channel */
  3609. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  3610. /* DFS required on channel */
  3611. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  3612. /* DFS required on channel for 2nd band of 80+80 */
  3613. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  3614. /* If channel has been checked for DFS */
  3615. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  3616. /* Excluded in 802.11d */
  3617. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  3618. /* Channel Switch Announcement received on this channel */
  3619. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  3620. /* Ad-hoc is not allowed */
  3621. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  3622. /* Station only channel */
  3623. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  3624. /* DFS radar history for slave device (STA mode) */
  3625. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  3626. /* DFS CAC valid for slave device (STA mode) */
  3627. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  3628. };
  3629. /**
  3630. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  3631. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  3632. * information to start/stop the NUD statistics collection.
  3633. */
  3634. enum qca_attr_nud_stats_set {
  3635. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  3636. /*
  3637. * Flag to start/stop the NUD statistics collection.
  3638. * Start - If included, Stop - If not included
  3639. */
  3640. QCA_ATTR_NUD_STATS_SET_START = 1,
  3641. /* IPv4 address of the default gateway (in network byte order) */
  3642. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  3643. /*
  3644. * Represents the data packet type to be monitored.
  3645. * Host driver tracks the stats corresponding to each data frame
  3646. * represented by these flags.
  3647. * These data packets are represented by
  3648. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  3649. */
  3650. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  3651. /* keep last */
  3652. QCA_ATTR_NUD_STATS_SET_LAST,
  3653. QCA_ATTR_NUD_STATS_SET_MAX =
  3654. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  3655. };
  3656. /**
  3657. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  3658. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3659. * information to start / stop the NUD stats collection.
  3660. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  3661. * Bitmap to Flag to Start / Stop the NUD stats collection
  3662. * Start - If included , Stop - If not included
  3663. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
  3664. * IPv4 address of Default Gateway (in network byte order)
  3665. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3666. * information to start / stop the NUD stats collection.
  3667. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  3668. * Flag to Start / Stop the NUD stats collection
  3669. * Start - If included , Stop - If not included
  3670. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
  3671. * IPv4 address of Default Gateway (in network byte order)
  3672. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3673. * information to start / stop the NUD stats collection.
  3674. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  3675. * Flag to Start / Stop the NUD stats collection
  3676. * Start - If included , Stop - If not included
  3677. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
  3678. * IPv4 address of Default Gateway (in network byte order)
  3679. */
  3680. enum qca_attr_connectivity_check_stats_set {
  3681. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  3682. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  3683. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  3684. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  3685. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  3686. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  3687. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  3688. /* keep last */
  3689. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  3690. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  3691. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  3692. };
  3693. /**
  3694. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  3695. * data types for which the stats have to get collected.
  3696. */
  3697. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  3698. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  3699. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  3700. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  3701. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  3702. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  3703. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  3704. * to represent the stats of respective data type.
  3705. */
  3706. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  3707. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  3708. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  3709. };
  3710. enum qca_attr_connectivity_check_stats {
  3711. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  3712. /* Data packet type for which the stats are collected.
  3713. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  3714. */
  3715. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  3716. /* ID corresponding to the DNS frame for which the respective DNS stats
  3717. * are monitored (u32).
  3718. */
  3719. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  3720. /* source / destination port on which the respective proto stats are
  3721. * collected (u32).
  3722. */
  3723. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  3724. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  3725. /* IPv4/IPv6 address for which the destined data packets are
  3726. * monitored. (in network byte order)
  3727. */
  3728. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  3729. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  3730. /* Data packet Request count received from netdev */
  3731. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  3732. /* Data packet Request count sent to lower MAC from upper MAC */
  3733. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  3734. /* Data packet Request count received by lower MAC from upper MAC */
  3735. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  3736. /* Data packet Request count successfully transmitted by the device */
  3737. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  3738. /* Data packet Response count received by lower MAC */
  3739. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  3740. /* Data packet Response count received by upper MAC */
  3741. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  3742. /* Data packet Response count delivered to netdev */
  3743. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  3744. /* Data Packet Response count that are dropped out of order */
  3745. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  3746. /* keep last */
  3747. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  3748. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  3749. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  3750. };
  3751. /**
  3752. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  3753. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  3754. * NUD statistics collected when queried.
  3755. */
  3756. enum qca_attr_nud_stats_get {
  3757. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  3758. /* ARP Request count from netdev */
  3759. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  3760. /* ARP Request count sent to lower MAC from upper MAC */
  3761. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  3762. /* ARP Request count received by lower MAC from upper MAC */
  3763. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  3764. /* ARP Request count successfully transmitted by the device */
  3765. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  3766. /* ARP Response count received by lower MAC */
  3767. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  3768. /* ARP Response count received by upper MAC */
  3769. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  3770. /* ARP Response count delivered to netdev */
  3771. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  3772. /* ARP Response count delivered to netdev */
  3773. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  3774. /*
  3775. * Flag indicating if the station's link to the AP is active.
  3776. * Active Link - If included, Inactive link - If not included
  3777. */
  3778. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  3779. /*
  3780. * Flag indicating if there is any duplicate address detected (DAD).
  3781. * Yes - If detected, No - If not detected.
  3782. */
  3783. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  3784. /*
  3785. * List of Data types for which the stats are requested.
  3786. * This list does not carry ARP stats as they are done by the
  3787. * above attributes. Represented by enum qca_attr_nud_data_stats.
  3788. */
  3789. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  3790. /* keep last */
  3791. QCA_ATTR_NUD_STATS_GET_LAST,
  3792. QCA_ATTR_NUD_STATS_GET_MAX =
  3793. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  3794. };
  3795. enum qca_wlan_btm_candidate_status {
  3796. QCA_STATUS_ACCEPT = 0,
  3797. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  3798. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  3799. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  3800. QCA_STATUS_REJECT_LOW_RSSI = 4,
  3801. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  3802. QCA_STATUS_REJECT_UNKNOWN = 6,
  3803. };
  3804. enum qca_wlan_vendor_attr_btm_candidate_info {
  3805. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  3806. /* 6-byte MAC address representing the BSSID of transition candidate */
  3807. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  3808. /*
  3809. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  3810. * returned by the driver. It says whether the BSSID provided in
  3811. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  3812. * the driver, if not it specifies the reason for rejection.
  3813. * Note that the user-space can overwrite the transition reject reason
  3814. * codes provided by driver based on more information.
  3815. */
  3816. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  3817. /* keep last */
  3818. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  3819. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  3820. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  3821. };
  3822. enum qca_attr_trace_level {
  3823. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  3824. /*
  3825. * Nested array of the following attributes:
  3826. * QCA_ATTR_TRACE_LEVEL_MODULE,
  3827. * QCA_ATTR_TRACE_LEVEL_MASK.
  3828. */
  3829. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  3830. /*
  3831. * Specific QCA host driver module. Please refer to the QCA host
  3832. * driver implementation to get the specific module ID.
  3833. */
  3834. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  3835. /* Different trace level masks represented in the QCA host driver. */
  3836. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  3837. /* keep last */
  3838. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  3839. QCA_ATTR_TRACE_LEVEL_MAX =
  3840. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  3841. };
  3842. /**
  3843. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  3844. * supported features
  3845. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  3846. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  3847. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  3848. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  3849. *
  3850. * enum values are used for NL attributes for data used by
  3851. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  3852. */
  3853. enum qca_wlan_vendor_attr_get_logger_features {
  3854. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  3855. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  3856. /* keep last */
  3857. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  3858. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  3859. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  3860. };
  3861. /**
  3862. * enum qca_wlan_vendor_attr_link_properties - link properties
  3863. *
  3864. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  3865. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  3866. * specify the number of spatial streams negotiated
  3867. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  3868. * to specify negotiated rate flags i.e. ht, vht and channel width
  3869. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  3870. * specify the operating frequency
  3871. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  3872. * (STA / AP ) for the connected link.
  3873. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  3874. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  3875. * address of the peer represented by
  3876. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  3877. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  3878. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  3879. */
  3880. enum qca_wlan_vendor_attr_link_properties {
  3881. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  3882. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  3883. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  3884. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  3885. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  3886. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  3887. /* KEEP LAST */
  3888. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  3889. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  3890. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  3891. };
  3892. /**
  3893. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  3894. *
  3895. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  3896. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  3897. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  3898. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  3899. *
  3900. * enum values are used for NL attributes for data used by
  3901. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  3902. */
  3903. enum qca_wlan_vendor_attr_nd_offload {
  3904. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  3905. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  3906. /* Keep last */
  3907. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  3908. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  3909. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  3910. };
  3911. /**
  3912. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  3913. *
  3914. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  3915. * management offload, a mechanism where the station's firmware
  3916. * does the exchange with the AP to establish the temporal keys
  3917. * after roaming, rather than having the user space wpa_supplicant do it.
  3918. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  3919. * band selection based on channel selection results.
  3920. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  3921. * simultaneous off-channel operations.
  3922. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  3923. * Listen offload; a mechanism where the station's firmware takes care of
  3924. * responding to incoming Probe Request frames received from other P2P
  3925. * Devices whilst in Listen state, rather than having the user space
  3926. * wpa_supplicant do it. Information from received P2P requests are
  3927. * forwarded from firmware to host whenever the host processor wakes up.
  3928. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  3929. * specific features.
  3930. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  3931. * features.
  3932. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  3933. * specific features only. If a Device sets this bit but not the
  3934. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  3935. * this Device may not support all OCE AP functionalities but can support
  3936. * only OCE STA-CFON functionalities.
  3937. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  3938. * managed regulatory.
  3939. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  3940. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  3941. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  3942. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  3943. * and applying thermal configuration through
  3944. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  3945. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  3946. * userspace.
  3947. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  3948. * With Adaptive 11r feature, access points advertise the vendor
  3949. * specific IEs and MDE but do not include FT AKM in the RSNE.
  3950. * The Adaptive 11r supported stations are expected to identify
  3951. * such vendor specific IEs and connect to the AP in FT mode though
  3952. * the profile is configured in non-FT mode.
  3953. * The driver-based SME cases also need to have this support for
  3954. * Adaptive 11r to handle the connection and roaming scenarios.
  3955. * This flag indicates the support for the same to the user space.
  3956. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  3957. * concurrent network sessions on different Wi-Fi Bands. This feature
  3958. * capability is attributed to the hardware's capability to support
  3959. * the same (e.g., DBS).
  3960. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  3961. * responses for the respective TWT operations are asynchronous (separate)
  3962. * event message) from the driver. If not specified, the responses are
  3963. * synchronous (in vendor command reply) to the request. Each TWT
  3964. * operation is specifically mentioned (against its respective)
  3965. * documentation) to support either of these or both modes.
  3966. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  3967. * that the driver requires add/del virtual interface path using the
  3968. * generic nl80211 commands for NDP interface create/delete and to
  3969. * register/unregister the netdev instead of creating/deleting the NDP
  3970. * interface using the vendor commands
  3971. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  3972. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  3973. * (5.12 version onward), interface creation/deletion is not allowed using
  3974. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  3975. * during the register/unregister of netdev. Create and delete NDP
  3976. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  3977. * commands respectively if the driver advertises this capability set.
  3978. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  3979. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  3980. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  3981. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  3982. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  3983. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  3984. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  3985. * station mode supports secure RTT measurement exchange. If
  3986. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  3987. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  3988. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  3989. * mode supports secure RTT measurement exchange. If
  3990. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  3991. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  3992. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  3993. * the device in station mode supports protection of range negotiation and
  3994. * measurement management frames. If
  3995. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  3996. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  3997. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  3998. * the device in AP mode supports protection of range negotiation and
  3999. * measurement management frames. If
  4000. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4001. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4002. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4003. */
  4004. enum qca_wlan_vendor_features {
  4005. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4006. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4007. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4008. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4009. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4010. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4011. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4012. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4013. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4014. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4015. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4016. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4017. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4018. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4019. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4020. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4021. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4022. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4023. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4024. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4025. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4026. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4027. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4028. };
  4029. /**
  4030. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4031. * conditional channel switch
  4032. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4033. * value
  4034. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4035. * frequency list (an array of u32 values in host byte order)
  4036. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4037. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4038. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4039. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4040. */
  4041. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4042. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4043. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4044. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4045. /* Keep Last */
  4046. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4047. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4048. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4049. };
  4050. /**
  4051. * enum wifi_logger_supported_features - values for supported logger features
  4052. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4053. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4054. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4055. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4056. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4057. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4058. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4059. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4060. */
  4061. enum wifi_logger_supported_features {
  4062. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4063. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4064. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4065. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4066. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4067. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4068. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4069. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4070. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4071. };
  4072. /**
  4073. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4074. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4075. *
  4076. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4077. * Used with event to notify the primary channel number selected in ACS
  4078. * operation.
  4079. * Note: If both the driver and user-space application supports the 6 GHz band,
  4080. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4081. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4082. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4083. * is still used if either of the driver or user space application doesn't
  4084. * support the 6 GHz band.
  4085. *
  4086. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4087. * Used with event to notify the secondary channel number selected in ACS
  4088. * operation.
  4089. * Note: If both the driver and user-space application supports the 6 GHz band,
  4090. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4091. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4092. * To maintain backward compatibility,
  4093. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4094. * the driver or user space application doesn't support 6 GHz band.
  4095. *
  4096. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4097. * (a) Used with command to configure hw_mode from
  4098. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4099. * (b) Also used with event to notify the hw_mode of selected primary channel
  4100. * in ACS operation.
  4101. *
  4102. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4103. * Used with command to configure ACS operation for HT mode.
  4104. * Disable (flag attribute not present) - HT disabled and
  4105. * Enable (flag attribute present) - HT enabled.
  4106. *
  4107. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4108. * Used with command to configure ACS operation for HT40 mode.
  4109. * Disable (flag attribute not present) - HT40 disabled and
  4110. * Enable (flag attribute present) - HT40 enabled.
  4111. *
  4112. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4113. * Used with command to configure ACS operation for VHT mode.
  4114. * Disable (flag attribute not present) - VHT disabled and
  4115. * Enable (flag attribute present) - VHT enabled.
  4116. *
  4117. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4118. * mandatory with event.
  4119. * If specified in command path, ACS operation is configured with the given
  4120. * channel width (in MHz).
  4121. * In event path, specifies the channel width of the primary channel selected.
  4122. *
  4123. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4124. * Used with command to configure channel list using an array of
  4125. * channel numbers (u8).
  4126. * Note: If both the driver and user-space application supports the 6 GHz band,
  4127. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4128. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4129. *
  4130. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4131. * Used with event to notify the VHT segment 0 center channel number selected in
  4132. * ACS operation.
  4133. * Note: If both the driver and user-space application supports the 6 GHz band,
  4134. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4135. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4136. * To maintain backward compatibility,
  4137. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4138. * the driver or user space application doesn't support the 6 GHz band.
  4139. *
  4140. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4141. * Used with event to notify the VHT segment 1 center channel number selected in
  4142. * ACS operation.
  4143. * Note: If both the driver and user-space application supports the 6 GHz band,
  4144. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4145. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4146. * To maintain backward compatibility,
  4147. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4148. * the driver or user space application doesn't support the 6 GHz band.
  4149. *
  4150. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4151. * Used with command to configure the channel list using an array of channel
  4152. * center frequencies in MHz (u32).
  4153. * Note: If both the driver and user-space application supports the 6 GHz band,
  4154. * the driver first parses the frequency list and if it fails to get a frequency
  4155. * list, parses the channel list specified using
  4156. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4157. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4158. *
  4159. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4160. * Used with event to notify the primary channel center frequency (MHz) selected
  4161. * in ACS operation.
  4162. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4163. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4164. *
  4165. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4166. * Used with event to notify the secondary channel center frequency (MHz)
  4167. * selected in ACS operation.
  4168. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4169. * includes this attribute along with
  4170. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4171. *
  4172. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4173. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4174. * selected in ACS operation.
  4175. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4176. * includes this attribute along with
  4177. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4178. *
  4179. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4180. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4181. * selected in ACS operation.
  4182. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4183. * includes this attribute along with
  4184. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4185. *
  4186. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4187. * Used with command to notify the driver of EDMG request for ACS
  4188. * operation.
  4189. *
  4190. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4191. * Used with event to notify the EDMG channel number selected in ACS
  4192. * operation.
  4193. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4194. *
  4195. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4196. * Used with event to notify the puncture pattern selected in ACS operation.
  4197. * Encoding for this attribute will follow the convention used in the Disabled
  4198. * Subchannel Bitmap field of the EHT Operation IE.
  4199. *
  4200. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4201. * Used with command to configure ACS operation for EHT mode.
  4202. * Disable (flag attribute not present) - EHT disabled and
  4203. * Enable (flag attribute present) - EHT enabled.
  4204. *
  4205. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4206. * Used with command to configure how older scan can be considered for ACS
  4207. * scoring. In case scan was performed on partial set of channels configured
  4208. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4209. * (in ms), then scan only remaining channels.
  4210. */
  4211. enum qca_wlan_vendor_attr_acs_offload {
  4212. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4213. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4214. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4215. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4216. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4217. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4218. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4219. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4220. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4221. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4222. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4223. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4224. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4225. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4226. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4227. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4228. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4229. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4230. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4231. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4232. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4233. /* keep last */
  4234. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4235. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4236. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4237. };
  4238. /**
  4239. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4240. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4241. *
  4242. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4243. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4244. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4245. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4246. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4247. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4248. */
  4249. enum qca_wlan_vendor_acs_hw_mode {
  4250. QCA_ACS_MODE_IEEE80211B,
  4251. QCA_ACS_MODE_IEEE80211G,
  4252. QCA_ACS_MODE_IEEE80211A,
  4253. QCA_ACS_MODE_IEEE80211AD,
  4254. QCA_ACS_MODE_IEEE80211ANY,
  4255. QCA_ACS_MODE_IEEE80211AX,
  4256. };
  4257. /**
  4258. * enum qca_access_policy - access control policy
  4259. *
  4260. * Access control policy is applied on the configured IE
  4261. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4262. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4263. *
  4264. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4265. *» with the specific configuration (IE) set, i.e. allow all the
  4266. *» connections which do not match the configuration.
  4267. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4268. *» with the specific configuration (IE) set, i.e. deny all the
  4269. *» connections which do not match the configuration.
  4270. */
  4271. enum qca_access_policy {
  4272. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4273. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4274. };
  4275. /**
  4276. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4277. *
  4278. * The valid values for the ignore assoc disallowed
  4279. *
  4280. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4281. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4282. *
  4283. */
  4284. enum qca_ignore_assoc_disallowed {
  4285. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4286. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4287. };
  4288. /* Attributes for data used by
  4289. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4290. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4291. */
  4292. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4293. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4294. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4295. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4296. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4297. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4298. enum qca_wlan_vendor_attr_config {
  4299. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4300. /*
  4301. * Unsigned 32-bit value to set the DTIM period.
  4302. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4303. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4304. * DTIM beacons.
  4305. */
  4306. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4307. /*
  4308. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4309. * used to calculate statistics like average the TSF offset or average
  4310. * number of frame leaked.
  4311. * For instance, upon Beacon frame reception:
  4312. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4313. * For instance, when evaluating leaky APs:
  4314. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4315. */
  4316. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4317. /*
  4318. * Unsigned 32-bit value to configure guard time, i.e., when
  4319. * implementing IEEE power management based on frame control PM bit, how
  4320. * long the driver waits before shutting down the radio and after
  4321. * receiving an ACK frame for a Data frame with PM bit set.
  4322. */
  4323. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4324. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4325. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4326. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4327. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4328. /*
  4329. * Unsigned 32-bit value to configure the number of continuous
  4330. * Beacon Miss which shall be used by the firmware to penalize
  4331. * the RSSI.
  4332. */
  4333. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4334. /*
  4335. * Unsigned 8-bit value to configure the channel avoidance indication
  4336. * behavior. Firmware to send only one indication and ignore duplicate
  4337. * indications when set to avoid multiple Apps wakeups.
  4338. */
  4339. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4340. /*
  4341. * 8-bit unsigned value to configure the maximum TX MPDU for
  4342. * aggregation.
  4343. */
  4344. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4345. /*
  4346. * 8-bit unsigned value to configure the maximum RX MPDU for
  4347. * aggregation.
  4348. */
  4349. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4350. /*
  4351. * 8-bit unsigned value to configure the Non aggregrate/11g sw
  4352. * retry threshold (0 disable, 31 max).
  4353. */
  4354. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4355. /*
  4356. * 8-bit unsigned value to configure the aggregrate sw
  4357. * retry threshold (0 disable, 31 max).
  4358. */
  4359. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4360. /*
  4361. * 8-bit unsigned value to configure the MGMT frame
  4362. * retry threshold (0 disable, 31 max).
  4363. */
  4364. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4365. /*
  4366. * 8-bit unsigned value to configure the CTRL frame
  4367. * retry threshold (0 disable, 31 max).
  4368. */
  4369. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4370. /*
  4371. * 8-bit unsigned value to configure the propagation delay for
  4372. * 2G/5G band (0~63, units in us)
  4373. */
  4374. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4375. /*
  4376. * Unsigned 32-bit value to configure the number of unicast TX fail
  4377. * packet count. The peer is disconnected once this threshold is
  4378. * reached.
  4379. */
  4380. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4381. /*
  4382. * Attribute used to set scan default IEs to the driver.
  4383. *
  4384. * These IEs can be used by scan operations that will be initiated by
  4385. * the driver/firmware.
  4386. *
  4387. * For further scan requests coming to the driver, these IEs should be
  4388. * merged with the IEs received along with scan request coming to the
  4389. * driver. If a particular IE is present in the scan default IEs but not
  4390. * present in the scan request, then that IE should be added to the IEs
  4391. * sent in the Probe Request frames for that scan request.
  4392. */
  4393. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4394. /* Unsigned 32-bit attribute for generic commands */
  4395. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4396. /* Unsigned 32-bit value attribute for generic commands */
  4397. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4398. /* Unsigned 32-bit data attribute for generic command response */
  4399. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4400. /*
  4401. * Unsigned 32-bit length attribute for
  4402. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4403. */
  4404. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4405. /*
  4406. * Unsigned 32-bit flags attribute for
  4407. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4408. */
  4409. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4410. /*
  4411. * Unsigned 32-bit, defining the access policy.
  4412. * See enum qca_access_policy. Used with
  4413. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4414. */
  4415. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4416. /*
  4417. * Sets the list of full set of IEs for which a specific access policy
  4418. * has to be applied. Used along with
  4419. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4420. * Zero length payload can be used to clear this access constraint.
  4421. */
  4422. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4423. /*
  4424. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4425. * corresponding configurations are applied. If the interface index is
  4426. * not specified, the configurations are attributed to the respective
  4427. * wiphy.
  4428. */
  4429. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4430. /*
  4431. * 8-bit unsigned value to trigger QPower:
  4432. * 1-Enable, 0-Disable
  4433. */
  4434. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4435. /*
  4436. * 8-bit unsigned value to configure the driver and below layers to
  4437. * ignore the assoc disallowed set by APs while connecting
  4438. * 1-Ignore, 0-Don't ignore
  4439. */
  4440. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4441. /*
  4442. * 32-bit unsigned value to trigger antenna diversity features:
  4443. * 1-Enable, 0-Disable
  4444. */
  4445. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4446. /* 32-bit unsigned value to configure specific chain antenna */
  4447. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4448. /*
  4449. * 32-bit unsigned value to trigger cycle selftest
  4450. * 1-Enable, 0-Disable
  4451. */
  4452. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4453. /*
  4454. * 32-bit unsigned to configure the cycle time of selftest
  4455. * the unit is micro-second
  4456. */
  4457. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4458. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4459. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4460. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4461. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4462. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4463. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4464. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4465. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4466. /* 6-byte MAC address to point out the specific peer */
  4467. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4468. /* 32-bit unsigned value to set window size for specific peer */
  4469. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4470. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4471. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4472. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4473. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4474. /*
  4475. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4476. * station device while in disconnect state. The attribute use the
  4477. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4478. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4479. * 10 MHz channel width, the station will not connect to a BSS using 20
  4480. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4481. * clear this constraint.
  4482. */
  4483. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4484. /*
  4485. * 32-bit unsigned value to configure the propagation absolute delay
  4486. * for 2G/5G band (units in us)
  4487. */
  4488. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4489. /* 32-bit unsigned value to set probe period */
  4490. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4491. /* 32-bit unsigned value to set stay period */
  4492. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4493. /* 32-bit unsigned value to set snr diff */
  4494. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4495. /* 32-bit unsigned value to set probe dwell time */
  4496. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4497. /* 32-bit unsigned value to set mgmt snr weight */
  4498. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4499. /* 32-bit unsigned value to set data snr weight */
  4500. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4501. /* 32-bit unsigned value to set ack snr weight */
  4502. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4503. /*
  4504. * 32-bit unsigned value to configure the listen interval.
  4505. * This is in units of beacon intervals. This configuration alters
  4506. * the negotiated listen interval with the AP during the connection.
  4507. * It is highly recommended to configure a value less than or equal to
  4508. * the one negotiated during the association. Configuring any greater
  4509. * value can have adverse effects (frame loss, AP disassociating STA,
  4510. * etc.).
  4511. */
  4512. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4513. /*
  4514. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4515. * disable operations that would cause the AP/GO to leave its operating
  4516. * channel.
  4517. *
  4518. * This will restrict the scans to the AP/GO operating channel and the
  4519. * channels of the other band, if DBS is supported.A STA/CLI interface
  4520. * brought up after this setting is enabled, will be restricted to
  4521. * connecting to devices only on the AP/GO interface's operating channel
  4522. * or on the other band in DBS case. P2P supported channel list is
  4523. * modified, to only include AP interface's operating-channel and the
  4524. * channels of the other band if DBS is supported.
  4525. *
  4526. * These restrictions are only applicable as long as the AP/GO interface
  4527. * is alive. If the AP/GO interface is brought down then this
  4528. * setting/restriction is forgotten.
  4529. *
  4530. * If this variable is set on an AP/GO interface while a multi-channel
  4531. * concurrent session is active, it has no effect on the operation of
  4532. * the current interfaces, other than restricting the scan to the AP/GO
  4533. * operating channel and the other band channels if DBS is supported.
  4534. * However, if the STA is brought down and restarted then the new STA
  4535. * connection will either be formed on the AP/GO channel or on the
  4536. * other band in a DBS case. This is because of the scan being
  4537. * restricted on these channels as mentioned above.
  4538. *
  4539. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4540. */
  4541. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4542. /*
  4543. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4544. * on an interface.
  4545. * 1 - Enable , 0 - Disable.
  4546. */
  4547. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4548. /*
  4549. * 8 bit unsigned value to globally enable/disable scan
  4550. * 1 - Enable, 0 - Disable.
  4551. */
  4552. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4553. /* 8-bit unsigned value to set the total beacon miss count */
  4554. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4555. /*
  4556. * Unsigned 32-bit value to configure the number of continuous
  4557. * Beacon Miss which shall be used by the firmware to penalize
  4558. * the RSSI for BTC.
  4559. */
  4560. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4561. /*
  4562. * 8-bit unsigned value to configure the driver and below layers to
  4563. * enable/disable all fils features.
  4564. * 0-enable, 1-disable
  4565. */
  4566. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4567. /* 16-bit unsigned value to configure the level of WLAN latency
  4568. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4569. */
  4570. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4571. /*
  4572. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  4573. * the connect interface. Exclusively used for the scenarios where the
  4574. * device is used as a test bed device with special functionality and
  4575. * not recommended for production. This helps driver to not validate the
  4576. * RSNE passed from user space and thus allow arbitrary IE data to be
  4577. * used for testing purposes.
  4578. * 1-enable, 0-disable.
  4579. * Applications set/reset this configuration. If not reset, this
  4580. * parameter remains in use until the driver is unloaded.
  4581. */
  4582. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  4583. /*
  4584. * 8-bit unsigned value to trigger green Tx power saving.
  4585. * 1-Enable, 0-Disable
  4586. */
  4587. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  4588. /*
  4589. * Attribute to configure disconnect IEs to the driver.
  4590. * This carries an array of unsigned 8-bit characters.
  4591. *
  4592. * If this is configured, driver shall fill the IEs in disassoc/deauth
  4593. * frame.
  4594. * These IEs are expected to be considered only for the next
  4595. * immediate disconnection (disassoc/deauth frame) originated by
  4596. * the DUT, irrespective of the entity (user space/driver/firmware)
  4597. * triggering the disconnection.
  4598. * The host drivers are not expected to use the IEs set through
  4599. * this interface for further disconnections after the first immediate
  4600. * disconnection initiated post the configuration.
  4601. * If the IEs are also updated through cfg80211 interface (after the
  4602. * enhancement to cfg80211_disconnect), host driver is expected to
  4603. * take the union of IEs from both of these interfaces and send in
  4604. * further disassoc/deauth frames.
  4605. */
  4606. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  4607. /* 8-bit unsigned value for ELNA bypass.
  4608. * 0 - Disable eLNA bypass.
  4609. * 1 - Enable eLNA bypass.
  4610. * 2 - Reset eLNA bypass configuration, the driver should
  4611. * revert to the default configuration of eLNA bypass.
  4612. */
  4613. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  4614. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4615. * to send the Beacon Report response with failure reason for the
  4616. * scenarios where STA cannot honor the Beacon report request from AP.
  4617. * 1-Enable, 0-Disable.
  4618. */
  4619. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  4620. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4621. * to send roam reason information in the reassociation request to the
  4622. * AP. 1-Enable, 0-Disable.
  4623. */
  4624. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  4625. /* 32-bit unsigned value to configure different PHY modes to the
  4626. * driver/firmware. The possible values are defined in
  4627. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  4628. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  4629. * the driver.
  4630. */
  4631. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  4632. /* 8-bit unsigned value to configure the maximum supported channel width
  4633. * for STA mode. If this value is configured when STA is in connected
  4634. * state, it should not exceed the negotiated channel width. If it is
  4635. * configured when STA is in disconnected state, the configured value
  4636. * will take effect for the next immediate connection.
  4637. * Possible values are:
  4638. * NL80211_CHAN_WIDTH_20
  4639. * NL80211_CHAN_WIDTH_40
  4640. * NL80211_CHAN_WIDTH_80
  4641. * NL80211_CHAN_WIDTH_80P80
  4642. * NL80211_CHAN_WIDTH_160
  4643. */
  4644. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  4645. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  4646. * This attribute is only applicable for STA mode. When dynamic
  4647. * bandwidth adjustment is disabled, STA will use static channel width
  4648. * the value of which is negotiated during connection.
  4649. * 1-enable (default), 0-disable
  4650. */
  4651. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  4652. /* 8-bit unsigned value to configure the maximum number of subframes of
  4653. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4654. * it is decided by hardware.
  4655. */
  4656. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  4657. /* 8-bit unsigned value to configure the maximum number of subframes of
  4658. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4659. * it is decided by hardware.
  4660. */
  4661. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  4662. /* 8-bit unsigned value. This attribute is used to dynamically
  4663. * enable/disable the LDPC capability of the device. When configured in
  4664. * the disconnected state, the updated configuration will be considered
  4665. * for the immediately following connection attempt. If this
  4666. * configuration is modified while the device is in the connected state,
  4667. * the LDPC TX will be updated with this configuration immediately,
  4668. * while the LDPC RX configuration update will take place starting from
  4669. * the subsequent association attempt.
  4670. * 1-Enable, 0-Disable.
  4671. */
  4672. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  4673. /* 8-bit unsigned value. This attribute is used to dynamically
  4674. * enable/disable the TX STBC capability of the device. When configured
  4675. * in the disconnected state, the updated configuration will be
  4676. * considered for the immediately following connection attempt. If the
  4677. * connection is formed with TX STBC enabled and if this configuration
  4678. * is disabled during that association, the TX will be impacted
  4679. * immediately. Further connection attempts will disable TX STBC.
  4680. * However, enabling the TX STBC for a connected session with disabled
  4681. * capability is not allowed and will fail.
  4682. * 1-Enable, 0-Disable.
  4683. */
  4684. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  4685. /* 8-bit unsigned value. This attribute is used to dynamically
  4686. * enable/disable the RX STBC capability of the device. When configured
  4687. * in the disconnected state, the updated configuration will be
  4688. * considered for the immediately following connection attempt. If the
  4689. * configuration is modified in the connected state, there will be no
  4690. * impact for the current association, but further connection attempts
  4691. * will use the updated configuration.
  4692. * 1-Enable, 0-Disable.
  4693. */
  4694. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  4695. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4696. * the number of spatial streams. When configured in the disconnected
  4697. * state, the updated configuration will be considered for the
  4698. * immediately following connection attempt. If the NSS is updated after
  4699. * the connection, the updated NSS value is notified to the peer using
  4700. * the Operating Mode Notification/Spatial Multiplexing Power Save
  4701. * frame. The updated NSS value after the connection shall not be
  4702. * greater than the one negotiated during the connection. Any such
  4703. * higher value configuration shall be returned with a failure.
  4704. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  4705. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  4706. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  4707. * configure the asymmetric NSS configuration (such as 1X2).
  4708. */
  4709. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  4710. /*
  4711. * 8-bit unsigned value to trigger Optimized Power Management:
  4712. * 1-Enable, 0-Disable
  4713. */
  4714. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  4715. /* 8-bit unsigned value. This attribute takes the QOS/access category
  4716. * value represented by the enum qca_wlan_ac_type and expects the driver
  4717. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  4718. * is invalid for this attribute. This will override the DSCP value
  4719. * configured in the frame with the intention to only upgrade the QOS.
  4720. * That said, it is not intended to downgrade the QOS for the frames.
  4721. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  4722. * to disable.
  4723. */
  4724. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  4725. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4726. * the number of chains to be used for transmitting data. This
  4727. * configuration is allowed only when in connected state and will be
  4728. * effective until disconnected. The driver rejects this configuration
  4729. * if the number of spatial streams being used in the current connection
  4730. * cannot be supported by this configuration.
  4731. */
  4732. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  4733. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4734. * the number of chains to be used for receiving data. This
  4735. * configuration is allowed only when in connected state and will be
  4736. * effective until disconnected. The driver rejects this configuration
  4737. * if the number of spatial streams being used in the current connection
  4738. * cannot be supported by this configuration.
  4739. */
  4740. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  4741. /* 8-bit unsigned value to configure ANI setting type.
  4742. * See &enum qca_wlan_ani_setting for possible values.
  4743. */
  4744. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  4745. /* 32-bit signed value to configure ANI level. This is used when
  4746. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  4747. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  4748. * is invalid, the driver will return a failure.
  4749. */
  4750. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  4751. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4752. * the number of spatial streams used for transmitting the data. When
  4753. * configured in the disconnected state, the configured value will
  4754. * be considered for the following connection attempt.
  4755. * If the NSS is updated after the connection, the updated NSS value
  4756. * is notified to the peer using the Operating Mode Notification/Spatial
  4757. * Multiplexing Power Save frame.
  4758. * The TX NSS value configured after the connection shall not be greater
  4759. * than the value negotiated during the connection. Any such higher
  4760. * value configuration shall be treated as invalid configuration by
  4761. * the driver. This attribute shall be configured along with
  4762. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  4763. * configuration (such as 2X2 or 1X1) or the asymmetric
  4764. * configuration (such as 1X2).
  4765. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4766. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  4767. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  4768. */
  4769. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  4770. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4771. * the number of spatial streams used for receiving the data. When
  4772. * configured in the disconnected state, the configured value will
  4773. * be considered for the following connection attempt.
  4774. * If the NSS is updated after the connection, the updated NSS value
  4775. * is notified to the peer using the Operating Mode Notification/Spatial
  4776. * Multiplexing Power Save frame.
  4777. * The RX NSS value configured after the connection shall not be greater
  4778. * than the value negotiated during the connection. Any such higher
  4779. * value configuration shall be treated as invalid configuration by
  4780. * the driver. This attribute shall be configured along with
  4781. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  4782. * configuration (such as 2X2 or 1X1) or the asymmetric
  4783. * configuration (such as 1X2).
  4784. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4785. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  4786. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  4787. */
  4788. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  4789. /*
  4790. * 8-bit unsigned value. This attribute, when set, indicates whether the
  4791. * specified interface is the primary STA interface when there are more
  4792. * than one STA interfaces concurrently active.
  4793. *
  4794. * This configuration helps the firmware/hardware to support certain
  4795. * features (e.g., roaming) on this primary interface, if the same
  4796. * cannot be supported on the concurrent STA interfaces simultaneously.
  4797. *
  4798. * This configuration is only applicable for a single STA interface on
  4799. * a device and gives the priority for it only over other concurrent STA
  4800. * interfaces.
  4801. *
  4802. * If the device is a multi wiphy/soc, this configuration applies to a
  4803. * single STA interface across the wiphys.
  4804. *
  4805. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  4806. */
  4807. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  4808. /*
  4809. * 8-bit unsigned value. This attribute can be used to configure the
  4810. * driver to enable/disable FT-over-DS feature. Possible values for
  4811. * this attribute are 1-Enable and 0-Disable.
  4812. */
  4813. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  4814. /*
  4815. * 8-bit unsigned value. This attribute can be used to configure the
  4816. * firmware to enable/disable ARP/NS offload feature. Possible values
  4817. * for this attribute are 0-Disable and 1-Enable.
  4818. *
  4819. * This attribute is only applicable for STA/P2P-Client interface,
  4820. * and is optional, default behavior is APR/NS offload Enable.
  4821. *
  4822. * This attribute can be set in disconncted and connected state, and
  4823. * will restore to default behavior if interface is closed.
  4824. */
  4825. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  4826. /*
  4827. * 8-bit unsigned value. This attribute can be used to configure the
  4828. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  4829. * for this attribute are defined in the enum qca_dbam_config.
  4830. */
  4831. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  4832. /* keep last */
  4833. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  4834. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  4835. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  4836. };
  4837. /**
  4838. * enum qca_dbam_config - Specifies DBAM config mode
  4839. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  4840. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  4841. * internal criteria are met.
  4842. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  4843. */
  4844. enum qca_dbam_config {
  4845. QCA_DBAM_DISABLE = 0,
  4846. QCA_DBAM_ENABLE = 1,
  4847. QCA_DBAM_FORCE_ENABLE = 2,
  4848. };
  4849. /**
  4850. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  4851. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  4852. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  4853. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  4854. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  4855. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  4856. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  4857. */
  4858. enum qca_wlan_vendor_attr_wifi_logger_start {
  4859. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  4860. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  4861. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  4862. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  4863. /* keep last */
  4864. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  4865. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  4866. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  4867. };
  4868. /*
  4869. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  4870. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  4871. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  4872. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  4873. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  4874. */
  4875. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  4876. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  4877. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  4878. /* keep last */
  4879. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  4880. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  4881. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  4882. };
  4883. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  4884. /**
  4885. * enum wlan_offloaded_packets_control - control commands
  4886. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  4887. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  4888. *
  4889. */
  4890. enum wlan_offloaded_packets_control {
  4891. WLAN_START_OFFLOADED_PACKETS = 1,
  4892. WLAN_STOP_OFFLOADED_PACKETS = 2
  4893. };
  4894. /**
  4895. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  4896. *
  4897. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  4898. * the offloaded data.
  4899. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  4900. * data.
  4901. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  4902. * indication.
  4903. */
  4904. enum qca_wlan_vendor_attr_data_offload_ind {
  4905. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  4906. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  4907. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  4908. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  4909. /* keep last */
  4910. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  4911. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  4912. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  4913. };
  4914. /**
  4915. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  4916. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  4917. */
  4918. enum qca_wlan_vendor_attr_offloaded_packets {
  4919. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  4920. /* Takes valid value from the enum
  4921. * qca_wlan_offloaded_packets_sending_control
  4922. * Unsigned 32-bit value
  4923. */
  4924. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  4925. /* Unsigned 32-bit value */
  4926. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  4927. /* array of u8 len: Max packet size */
  4928. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  4929. /* 6-byte MAC address used to represent source MAC address */
  4930. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  4931. /* 6-byte MAC address used to represent destination MAC address */
  4932. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  4933. /* Unsigned 32-bit value, in milli seconds */
  4934. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  4935. /* This optional unsigned 16-bit attribute is used for specifying
  4936. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  4937. */
  4938. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  4939. /* keep last */
  4940. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  4941. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  4942. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  4943. };
  4944. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  4945. /**
  4946. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  4947. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  4948. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  4949. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  4950. */
  4951. enum qca_wlan_rssi_monitoring_control {
  4952. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  4953. QCA_WLAN_RSSI_MONITORING_START,
  4954. QCA_WLAN_RSSI_MONITORING_STOP,
  4955. };
  4956. /**
  4957. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  4958. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  4959. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  4960. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  4961. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  4962. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  4963. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  4964. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  4965. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  4966. */
  4967. enum qca_wlan_vendor_attr_rssi_monitoring {
  4968. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  4969. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  4970. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  4971. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  4972. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  4973. /* attributes to be used/received in callback */
  4974. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  4975. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  4976. /* keep last */
  4977. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  4978. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  4979. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  4980. };
  4981. /**
  4982. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  4983. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  4984. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  4985. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  4986. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  4987. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
  4988. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  4989. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  4990. * address
  4991. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  4992. * created
  4993. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  4994. * NCS_SK_TYPE/PMK/SCID instead
  4995. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  4996. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  4997. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  4998. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  4999. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5000. * code: accept/reject
  5001. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5002. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5003. * driver
  5004. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5005. * driver
  5006. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5007. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5008. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5009. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5010. * PMKID
  5011. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5012. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5013. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5014. * update:
  5015. * BIT_0: NSS Update
  5016. * BIT_1: Channel list update
  5017. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5018. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5019. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5020. * 0:20 MHz,
  5021. * 1:40 MHz,
  5022. * 2:80 MHz,
  5023. * 3:160 MHz
  5024. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5025. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5026. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5027. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5028. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5029. * transport port used by NDP.
  5030. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5031. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5032. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5033. * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5034. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5035. * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5036. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5037. * A lower-case representation of the Service Name shall be used to
  5038. * calculate the Service ID.
  5039. * Array of u8: length is 6 bytes
  5040. * This attribute is used and optional for ndp indication.
  5041. */
  5042. enum qca_wlan_vendor_attr_ndp_params {
  5043. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5044. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5045. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5046. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5047. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5048. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5049. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5050. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5051. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5052. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5053. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5054. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5055. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5056. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5057. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5058. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5059. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5060. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5061. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5062. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5063. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5064. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5065. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5066. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5067. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5068. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5069. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5070. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5071. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5072. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5073. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5074. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5075. /* keep last */
  5076. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5077. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5078. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5079. };
  5080. /**
  5081. * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
  5082. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5083. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5084. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5085. * data path interface.
  5086. * This command was initially designed to both create and start a NAN
  5087. * data path interface. However, changes to Linux 5.12 no longer allow
  5088. * interface creation via vendor commands. When the driver advertises
  5089. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5090. * userspace must explicitly first create the interface using
  5091. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5092. * to start the interface.
  5093. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5094. * data path interface.
  5095. * This command was initially designed to both stop and delete a NAN
  5096. * data path interface. However, changes to Linux 5.12 no longer allow
  5097. * interface deletion via vendor commands. When the driver advertises
  5098. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5099. * userspace must explicitly delete the interface using
  5100. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5101. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5102. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5103. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5104. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5105. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5106. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5107. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5108. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5109. * being received
  5110. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5111. * update
  5112. */
  5113. enum qca_wlan_ndp_sub_cmd {
  5114. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5115. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5116. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5117. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5118. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5119. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5120. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5121. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5122. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5123. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5124. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5125. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5126. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5127. };
  5128. /**
  5129. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5130. * information. These attributes are sent as part of
  5131. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5132. * attributes correspond to a single channel.
  5133. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5134. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5135. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5136. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5137. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5138. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5139. * regulatory transmission power
  5140. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5141. * transmission power
  5142. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5143. * transmission power
  5144. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5145. * class id
  5146. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5147. * antenna gain in dbm
  5148. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5149. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5150. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5151. * segment 0 in center freq in MHz.
  5152. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5153. * segment 1 in center freq in MHz.
  5154. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5155. * flag indicating the AP power modes supported by the channel, as given by
  5156. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5157. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5158. * attributes for each power mode. It takes attr as defined in enum
  5159. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5160. *
  5161. */
  5162. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5163. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5164. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5165. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5166. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5167. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5168. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5169. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5170. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5171. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5172. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5173. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5174. /*
  5175. * A bitmask (u32) with flags specified in
  5176. * enum qca_wlan_vendor_channel_prop_flags_2.
  5177. */
  5178. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5179. /*
  5180. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5181. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5182. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5183. * along with
  5184. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5185. *
  5186. * If both the driver and user-space application supports the 6 GHz
  5187. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5188. * is deprecated and
  5189. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5190. * should be used.
  5191. *
  5192. * To maintain backward compatibility,
  5193. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5194. * is still used if either of the driver or user space application
  5195. * doesn't support the 6 GHz band.
  5196. */
  5197. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
  5198. /*
  5199. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5200. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5201. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5202. * along with
  5203. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5204. *
  5205. * If both the driver and user-space application supports the 6 GHz
  5206. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5207. * is deprecated and
  5208. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5209. * should be considered.
  5210. *
  5211. * To maintain backward compatibility,
  5212. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5213. * is still used if either of the driver or user space application
  5214. * doesn't support the 6 GHz band.
  5215. */
  5216. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
  5217. /*
  5218. * 16-bit attribute of bits indicating the AP power modes supported by
  5219. * the channel (u16).
  5220. * Note: Currently, only 3 bits are used in the attribute and each bit
  5221. * corresponds to the power mode mentioned in enum
  5222. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5223. * set if the associated mode is supported.
  5224. */
  5225. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5226. = 14,
  5227. /* Array of nested attributes for each power mode. It takes attr as
  5228. * defined in enum
  5229. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5230. */
  5231. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5232. /* keep last */
  5233. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  5234. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  5235. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  5236. };
  5237. /**
  5238. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  5239. * values that the vendor external ACS channel power attribute
  5240. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  5241. * take.
  5242. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  5243. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  5244. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  5245. */
  5246. enum qca_wlan_vendor_external_acs_chan_power_level {
  5247. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  5248. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  5249. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  5250. };
  5251. /**
  5252. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  5253. * attributes for power mode type and power values corresponding to that.
  5254. * These attributes are sent as part of
  5255. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  5256. */
  5257. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  5258. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  5259. /*
  5260. * Power mode (u8) takes the values defined in enum
  5261. * qca_wlan_vendor_external_acs_chan_power_mode
  5262. */
  5263. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  5264. = 1,
  5265. /*
  5266. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  5267. * present, it indicates a PSD value.
  5268. */
  5269. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  5270. /*
  5271. * Power value (u32) PSD/EIRP as indicated by
  5272. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  5273. * for power mode corresponding to the
  5274. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  5275. * Units for PSD - dBm/MHz
  5276. * Units for EIRP - dBm
  5277. */
  5278. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  5279. = 3,
  5280. /* keep last */
  5281. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  5282. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  5283. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  5284. };
  5285. /**
  5286. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  5287. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  5288. * driver.
  5289. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  5290. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  5291. * ACS need to be started
  5292. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  5293. * driver supports spectral scanning or not
  5294. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  5295. * offloaded to firmware.
  5296. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  5297. * provides additional channel capability as part of scan operation.
  5298. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  5299. * interface status is UP
  5300. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  5301. * interface. It takes one of nl80211_iftype values.
  5302. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  5303. * of chan width. ACS logic should try to get a channel with specified width
  5304. * if not found then look for lower values.
  5305. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  5306. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  5307. * a/b/g/n/ac.
  5308. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  5309. * among which ACS should choose best frequency.
  5310. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  5311. * driver which will have <channel(u8), weight(u8)> format as array of
  5312. * nested values.
  5313. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  5314. * for each channel. It takes attr as defined in
  5315. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  5316. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  5317. * qca_wlan_vendor_attr_external_acs_policy.
  5318. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  5319. * Operating Parameter (RROP) availability information (u16). It uses values
  5320. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  5321. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  5322. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  5323. */
  5324. enum qca_wlan_vendor_attr_external_acs_event {
  5325. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  5326. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  5327. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  5328. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  5329. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  5330. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  5331. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  5332. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  5333. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  5334. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  5335. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  5336. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  5337. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  5338. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  5339. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  5340. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  5341. /* keep last */
  5342. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  5343. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  5344. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  5345. };
  5346. enum qca_iface_type {
  5347. QCA_IFACE_TYPE_STA,
  5348. QCA_IFACE_TYPE_AP,
  5349. QCA_IFACE_TYPE_P2P_CLIENT,
  5350. QCA_IFACE_TYPE_P2P_GO,
  5351. QCA_IFACE_TYPE_IBSS,
  5352. QCA_IFACE_TYPE_TDLS,
  5353. };
  5354. /**
  5355. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  5356. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  5357. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  5358. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  5359. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  5360. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  5361. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  5362. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  5363. */
  5364. enum qca_wlan_vendor_attr_pcl_config {
  5365. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  5366. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  5367. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  5368. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  5369. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  5370. };
  5371. enum qca_set_band {
  5372. QCA_SETBAND_AUTO = 0,
  5373. QCA_SETBAND_5G = BIT(0),
  5374. QCA_SETBAND_2G = BIT(1),
  5375. QCA_SETBAND_6G = BIT(2),
  5376. };
  5377. /**
  5378. * enum set_reset_packet_filter - set packet filter control commands
  5379. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  5380. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  5381. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  5382. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  5383. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  5384. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  5385. */
  5386. enum set_reset_packet_filter {
  5387. QCA_WLAN_SET_PACKET_FILTER = 1,
  5388. QCA_WLAN_GET_PACKET_FILTER = 2,
  5389. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  5390. QCA_WLAN_READ_PACKET_FILTER = 4,
  5391. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  5392. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  5393. };
  5394. /**
  5395. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  5396. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  5397. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  5398. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  5399. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  5400. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  5401. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  5402. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  5403. * section in packet filter buffer
  5404. */
  5405. enum qca_wlan_vendor_attr_packet_filter {
  5406. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  5407. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  5408. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  5409. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  5410. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  5411. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  5412. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  5413. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  5414. /* keep last */
  5415. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  5416. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  5417. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  5418. };
  5419. /**
  5420. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  5421. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  5422. */
  5423. enum qca_wlan_vendor_attr_wake_stats {
  5424. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  5425. /* Unsigned 32-bit value indicating the total count of wake event */
  5426. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  5427. /* Array of individual wake count, each index representing wake reason
  5428. */
  5429. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  5430. /* Unsigned 32-bit value representing wake count array */
  5431. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  5432. /* Unsigned 32-bit total wake count value of driver/fw */
  5433. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  5434. /* Array of wake stats of driver/fw */
  5435. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  5436. /* Unsigned 32-bit total wake count value of driver/fw */
  5437. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  5438. /* Unsigned 32-bit total wake count value of packets received */
  5439. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  5440. /* Unsigned 32-bit wake count value unicast packets received */
  5441. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  5442. /* Unsigned 32-bit wake count value multicast packets received */
  5443. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  5444. /* Unsigned 32-bit wake count value broadcast packets received */
  5445. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  5446. /* Unsigned 32-bit wake count value of ICMP packets */
  5447. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  5448. /* Unsigned 32-bit wake count value of ICMP6 packets */
  5449. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  5450. /* Unsigned 32-bit value ICMP6 router advertisement */
  5451. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  5452. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  5453. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  5454. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  5455. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  5456. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  5457. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  5458. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  5459. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  5460. /* Unsigned 32-bit wake count value of receive side multicast */
  5461. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  5462. /* Unsigned 32-bit wake count value of a given RSSI breach */
  5463. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  5464. /* Unsigned 32-bit wake count value of low RSSI */
  5465. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  5466. /* Unsigned 32-bit value GSCAN count */
  5467. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  5468. /* Unsigned 32-bit value PNO complete count */
  5469. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  5470. /* Unsigned 32-bit value PNO match count */
  5471. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  5472. /* keep last */
  5473. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  5474. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  5475. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  5476. };
  5477. /**
  5478. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  5479. * configured by userspace to the driver/firmware. The values will be
  5480. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  5481. * The driver/firmware takes necessary actions requested by userspace
  5482. * such as throttling wifi tx etc. in order to mitigate high temperature.
  5483. *
  5484. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  5485. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  5486. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  5487. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  5488. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  5489. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  5490. */
  5491. enum qca_wlan_vendor_thermal_level {
  5492. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  5493. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  5494. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  5495. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  5496. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  5497. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  5498. };
  5499. /**
  5500. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  5501. * cmd value. Used for NL attributes for data used by
  5502. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5503. */
  5504. enum qca_wlan_vendor_attr_thermal_cmd {
  5505. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  5506. /* The value of command, driver will implement different operations
  5507. * according to this value. It uses values defined in
  5508. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  5509. * u32 attribute.
  5510. */
  5511. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  5512. /* Userspace uses this attribute to configure thermal level to the
  5513. * driver/firmware, or get thermal level from the driver/firmware.
  5514. * Used in request or response, u32 attribute,
  5515. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  5516. */
  5517. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  5518. /* Userspace uses this attribute to configure the time in which the
  5519. * driver/firmware should complete applying settings it received from
  5520. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  5521. * command type. Used in request, u32 attribute, value is in
  5522. * milliseconds. A value of zero indicates to apply the settings
  5523. * immediately. The driver/firmware can delay applying the configured
  5524. * thermal settings within the time specified in this attribute if
  5525. * there is any critical ongoing operation.
  5526. */
  5527. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  5528. /* Nested attribute, driver/firmware uses this attribute to report
  5529. * thermal stats of different thermal levels to userspace when requested
  5530. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  5531. * type. This attribute contains nested array of records of thermal
  5532. * statistics of multiple levels. The attributes used inside this nested
  5533. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  5534. */
  5535. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  5536. /* keep last */
  5537. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  5538. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  5539. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  5540. };
  5541. /**
  5542. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  5543. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  5544. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  5545. * thermal command types sent to driver.
  5546. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  5547. * get thermal shutdown configuration parameters for display. Parameters
  5548. * responded from driver are defined in
  5549. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  5550. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  5551. * get temperature. Host should respond with a temperature data. It is defined
  5552. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  5553. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  5554. * suspend action.
  5555. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  5556. * resume action.
  5557. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  5558. * the driver/firmware.
  5559. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  5560. * thermal level from the driver/firmware. The driver should respond with a
  5561. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  5562. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  5563. * current thermal stats from the driver/firmware. The driver should respond
  5564. * with stats of all thermal levels encapsulated in attribute
  5565. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  5566. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  5567. * the current thermal stats all thermal levels maintained in the
  5568. * driver/firmware and start counting from zero again.
  5569. */
  5570. enum qca_wlan_vendor_attr_thermal_cmd_type {
  5571. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  5572. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  5573. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  5574. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  5575. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  5576. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  5577. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  5578. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  5579. };
  5580. /**
  5581. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  5582. * to get chip temperature by user.
  5583. * enum values are used for NL attributes for data used by
  5584. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  5585. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5586. */
  5587. enum qca_wlan_vendor_attr_thermal_get_temperature {
  5588. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  5589. /* Temperature value (degree Celsius) from driver.
  5590. * u32 attribute.
  5591. */
  5592. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  5593. /* keep last */
  5594. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  5595. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  5596. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  5597. };
  5598. /**
  5599. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  5600. * report thermal events from driver to user space.
  5601. * enum values are used for NL attributes for data used by
  5602. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  5603. */
  5604. enum qca_wlan_vendor_attr_thermal_event {
  5605. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  5606. /* Temperature value (degree Celsius) from driver.
  5607. * u32 attribute.
  5608. */
  5609. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  5610. /* Indication of resume completion from power save mode.
  5611. * NLA_FLAG attribute.
  5612. */
  5613. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  5614. /* Thermal level from the driver.
  5615. * u32 attribute. Possible values are defined in
  5616. * enum qca_wlan_vendor_thermal_level.
  5617. */
  5618. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  5619. /* keep last */
  5620. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  5621. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  5622. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  5623. };
  5624. /**
  5625. * enum qca_vendor_element_id - QCA Vendor Specific element types
  5626. *
  5627. * These values are used to identify QCA Vendor Specific elements. The
  5628. * payload of the element starts with the three octet OUI (OUI_QCA) and
  5629. * is followed by a single octet type which is defined by this enum.
  5630. *
  5631. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  5632. * This element can be used to specify preference order for supported
  5633. * channels. The channels in this list are in preference order (the first
  5634. * one has the highest preference) and are described as a pair of
  5635. * (global) Operating Class and Channel Number (each one octet) fields.
  5636. *
  5637. * This extends the standard P2P functionality by providing option to have
  5638. * more than one preferred operating channel. When this element is present,
  5639. * it replaces the preference indicated in the Operating Channel attribute.
  5640. * For supporting other implementations, the Operating Channel attribute is
  5641. * expected to be used with the highest preference channel. Similarly, all
  5642. * the channels included in this Preferred channel list element are
  5643. * expected to be included in the Channel List attribute.
  5644. *
  5645. * This vendor element may be included in GO Negotiation Request, P2P
  5646. * Invitation Request, and Provision Discovery Request frames.
  5647. *
  5648. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  5649. * This element can be used for pre-standard publication testing of HE
  5650. * before P802.11ax draft assigns the element ID. The payload of this
  5651. * vendor specific element is defined by the latest P802.11ax draft.
  5652. * Please note that the draft is still work in progress and this element
  5653. * payload is subject to change.
  5654. *
  5655. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  5656. * This element can be used for pre-standard publication testing of HE
  5657. * before P802.11ax draft assigns the element ID. The payload of this
  5658. * vendor specific element is defined by the latest P802.11ax draft.
  5659. * Please note that the draft is still work in progress and this element
  5660. * payload is subject to change.
  5661. *
  5662. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  5663. * element).
  5664. * This element can be used for pre-standard publication testing of HE
  5665. * before P802.11ax draft assigns the element ID extension. The payload of
  5666. * this vendor specific element is defined by the latest P802.11ax draft
  5667. * (not including the Element ID Extension field). Please note that the
  5668. * draft is still work in progress and this element payload is subject to
  5669. * change.
  5670. *
  5671. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  5672. * This element can be used for pre-standard publication testing of HE
  5673. * before P802.11ax draft assigns the element ID extension. The payload of
  5674. * this vendor specific element is defined by the latest P802.11ax draft
  5675. * (not including the Element ID Extension field). Please note that the
  5676. * draft is still work in progress and this element payload is subject to
  5677. * change.
  5678. *
  5679. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  5680. * This element can be used for pre-standard publication testing of HE
  5681. * before P802.11ax draft assigns the element ID extension. The payload of
  5682. * this vendor specific element is defined by the latest P802.11ax draft
  5683. * (not including the Element ID Extension field). Please note that the
  5684. * draft is still work in progress and this element payload is subject to
  5685. * change.
  5686. */
  5687. enum qca_vendor_element_id {
  5688. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  5689. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  5690. QCA_VENDOR_ELEM_HE_OPER = 2,
  5691. QCA_VENDOR_ELEM_RAPS = 3,
  5692. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  5693. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  5694. };
  5695. /**
  5696. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  5697. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  5698. * Specify the TSF command. Possible values are defined in
  5699. * &enum qca_tsf_cmd.
  5700. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  5701. * This attribute contains TSF timer value. This attribute is only available
  5702. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  5703. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  5704. * This attribute contains SOC timer value at TSF capture. This attribute is
  5705. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  5706. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  5707. * This attribute is used to provide TSF sync interval and only applicable when
  5708. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  5709. * driver will use the default value. Time unit is in milliseconds.
  5710. */
  5711. enum qca_vendor_attr_tsf_cmd {
  5712. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  5713. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  5714. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  5715. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  5716. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  5717. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  5718. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  5719. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  5720. };
  5721. /**
  5722. * enum qca_tsf_cmd: TSF driver commands
  5723. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  5724. * @QCA_TSF_GET: Get TSF capture value
  5725. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  5726. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  5727. * will automatically send TSF report to the host. To query
  5728. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  5729. * initiated first.
  5730. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  5731. * will not automatically send TSF report to the host. If
  5732. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  5733. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  5734. * operation needs to be initiated.
  5735. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  5736. * fetches TSF and host time mapping from the firmware with interval configured
  5737. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  5738. * interval value is not provided the driver will use the default value. The
  5739. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  5740. * command.
  5741. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  5742. */
  5743. enum qca_tsf_cmd {
  5744. QCA_TSF_CAPTURE,
  5745. QCA_TSF_GET,
  5746. QCA_TSF_SYNC_GET,
  5747. QCA_TSF_AUTO_REPORT_ENABLE,
  5748. QCA_TSF_AUTO_REPORT_DISABLE,
  5749. QCA_TSF_SYNC_START,
  5750. QCA_TSF_SYNC_STOP,
  5751. };
  5752. /**
  5753. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  5754. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  5755. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  5756. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  5757. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  5758. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  5759. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  5760. */
  5761. enum qca_vendor_attr_get_preferred_freq_list {
  5762. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  5763. /* A 32-unsigned value; the interface type/mode for which the preferred
  5764. * frequency list is requested (see enum qca_iface_type for possible
  5765. * values); used in both south- and north-bound.
  5766. */
  5767. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  5768. /* An array of 32-unsigned values; values are frequency (MHz); used
  5769. * in north-bound only.
  5770. */
  5771. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  5772. /* An array of nested values as per enum
  5773. * qca_wlan_vendor_attr_pcl_config attribute.
  5774. * Each element contains frequency (MHz), weight, and flag
  5775. * bit mask indicating how the frequency should be used in P2P
  5776. * negotiation.
  5777. */
  5778. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  5779. /* keep last */
  5780. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  5781. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  5782. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  5783. };
  5784. /**
  5785. * enum qca_vendor_attr_probable_oper_channel - channel hint
  5786. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  5787. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  5788. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  5789. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  5790. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  5791. */
  5792. enum qca_vendor_attr_probable_oper_channel {
  5793. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  5794. /* 32-bit unsigned value; indicates the connection/iface type likely to
  5795. * come on this channel (see enum qca_iface_type).
  5796. */
  5797. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  5798. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  5799. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  5800. /* keep last */
  5801. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  5802. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  5803. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  5804. };
  5805. /**
  5806. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  5807. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  5808. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  5809. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  5810. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  5811. */
  5812. enum qca_wlan_vendor_attr_gw_param_config {
  5813. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  5814. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  5815. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  5816. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  5817. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  5818. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  5819. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  5820. };
  5821. /**
  5822. * enum drv_dbs_capability - DBS capability
  5823. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  5824. * @DRV_DBS_CAPABILITY_1X1: 1x1
  5825. * @DRV_DBS_CAPABILITY_2X2: 2x2
  5826. */
  5827. enum drv_dbs_capability {
  5828. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  5829. DRV_DBS_CAPABILITY_1X1,
  5830. DRV_DBS_CAPABILITY_2X2,
  5831. };
  5832. /**
  5833. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  5834. *
  5835. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  5836. */
  5837. enum qca_vendor_attr_txpower_decr_db {
  5838. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  5839. /*
  5840. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  5841. * a virtual interface.
  5842. */
  5843. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  5844. /* keep last */
  5845. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  5846. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  5847. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  5848. };
  5849. /**
  5850. * enum qca_vendor_attr_ota_test - Enable OTA test
  5851. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  5852. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  5853. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  5854. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  5855. */
  5856. enum qca_vendor_attr_ota_test {
  5857. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  5858. /* 8-bit unsigned value to indicate if OTA test is enabled */
  5859. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  5860. /* keep last */
  5861. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  5862. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  5863. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  5864. };
  5865. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  5866. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  5867. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  5868. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  5869. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  5870. */
  5871. enum qca_vendor_attr_txpower_scale {
  5872. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  5873. /* 8-bit unsigned value to indicate the scaling of tx power */
  5874. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  5875. /* keep last */
  5876. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  5877. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  5878. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  5879. };
  5880. /**
  5881. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  5882. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  5883. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  5884. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  5885. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  5886. */
  5887. enum qca_vendor_attr_txpower_scale_decr_db {
  5888. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  5889. /* 8-bit unsigned value to indicate the scaling of tx power */
  5890. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  5891. /* keep last */
  5892. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  5893. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  5894. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  5895. };
  5896. /**
  5897. * enum dfs_mode - state of DFS mode
  5898. * @DFS_MODE_NONE: DFS mode attribute is none
  5899. * @DFS_MODE_ENABLE: DFS mode is enabled
  5900. * @DFS_MODE_DISABLE: DFS mode is disabled
  5901. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  5902. */
  5903. enum dfs_mode {
  5904. DFS_MODE_NONE,
  5905. DFS_MODE_ENABLE,
  5906. DFS_MODE_DISABLE,
  5907. DFS_MODE_DEPRIORITIZE
  5908. };
  5909. /**
  5910. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  5911. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  5912. *
  5913. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  5914. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  5915. *
  5916. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  5917. * channel number hint for ACS operation, if valid channel is specified then
  5918. * ACS operation gives priority to this channel.
  5919. * Note: If both the driver and user space application supports the 6 GHz band,
  5920. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  5921. * should be used.
  5922. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  5923. * is still used if either of the driver or user space application doesn't
  5924. * support the 6 GHz band.
  5925. *
  5926. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  5927. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  5928. * frequency is specified, ACS operation gives priority to this channel.
  5929. */
  5930. enum qca_wlan_vendor_attr_acs_config {
  5931. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  5932. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  5933. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  5934. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  5935. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  5936. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  5937. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  5938. };
  5939. /**
  5940. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  5941. */
  5942. enum qca_wlan_vendor_attr_get_hw_capability {
  5943. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  5944. /*
  5945. * Antenna isolation
  5946. * An attribute used in the response.
  5947. * The content of this attribute is encoded in a byte array. Each byte
  5948. * value is an antenna isolation value. The array length is the number
  5949. * of antennas.
  5950. */
  5951. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  5952. /*
  5953. * Request HW capability
  5954. * An attribute used in the request.
  5955. * The content of this attribute is a u32 array for one or more of
  5956. * hardware capabilities (attribute IDs) that are being requested. Each
  5957. * u32 value has a value from this
  5958. * enum qca_wlan_vendor_attr_get_hw_capability
  5959. * identifying which capabilities are requested.
  5960. */
  5961. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  5962. /* keep last */
  5963. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  5964. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  5965. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  5966. };
  5967. /**
  5968. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  5969. * config params for sta roam policy
  5970. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  5971. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  5972. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  5973. * If sta should skip unsafe channels or not in scanning
  5974. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  5975. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  5976. */
  5977. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  5978. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  5979. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  5980. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  5981. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  5982. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  5983. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  5984. };
  5985. /* Attributes for FTM commands and events */
  5986. /**
  5987. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  5988. *
  5989. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  5990. * enum qca_wlan_vendor_attr_loc_capa_flags.
  5991. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  5992. * of measurement sessions that can run concurrently.
  5993. * Default is one session (no session concurrency).
  5994. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  5995. * peers that are supported in running sessions. For example,
  5996. * if the value is 8 and maximum number of sessions is 2, you can
  5997. * have one session with 8 unique peers, or 2 sessions with 4 unique
  5998. * peers each, and so on.
  5999. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6000. * of bursts per peer, as an exponent (2^value). Default is 0,
  6001. * meaning no multi-burst support.
  6002. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6003. * of measurement exchanges allowed in a single burst.
  6004. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6005. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6006. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6007. */
  6008. enum qca_wlan_vendor_attr_loc_capa {
  6009. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6010. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6011. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6012. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6013. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6014. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6015. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6016. /* keep last */
  6017. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6018. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6019. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6020. };
  6021. /**
  6022. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6023. *
  6024. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6025. * can be configured as an FTM responder (for example, an AP that
  6026. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6027. * will be supported if set.
  6028. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6029. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6030. * will be supported if set.
  6031. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6032. * supports immediate (ASAP) response.
  6033. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6034. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6035. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6036. * requesting AOA measurements as part of an FTM session.
  6037. */
  6038. enum qca_wlan_vendor_attr_loc_capa_flags {
  6039. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6040. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6041. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6042. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6043. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6044. };
  6045. /**
  6046. * enum qca_wlan_ani_setting - ANI setting type
  6047. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6048. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6049. */
  6050. enum qca_wlan_ani_setting {
  6051. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6052. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6053. };
  6054. /**
  6055. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6056. *
  6057. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6058. * Channel number on which Access Point should restart.
  6059. * Note: If both the driver and user space application supports the 6 GHz band,
  6060. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6061. * should be used.
  6062. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6063. * is still used if either of the driver or user space application doesn't
  6064. * support the 6 GHz band.
  6065. *
  6066. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6067. * Nested attribute to hold list of center frequencies on which AP is
  6068. * expected to operate. This is irrespective of ACS configuration.
  6069. * This list is a priority based one and is looked for before the AP is
  6070. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6071. * co-exist in the system.
  6072. *
  6073. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6074. * Channel center frequency (MHz) on which the access point should restart.
  6075. */
  6076. enum qca_wlan_vendor_attr_sap_config {
  6077. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6078. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6079. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6080. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6081. /* Keep last */
  6082. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6083. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6084. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6085. };
  6086. /**
  6087. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6088. * a single peer in a measurement session.
  6089. *
  6090. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6091. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6092. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6093. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6094. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6095. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6096. * list of supported attributes.
  6097. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6098. * secure measurement.
  6099. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6100. * measurement every <value> bursts. If 0 or not specified,
  6101. * AOA measurements will be disabled for this peer.
  6102. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6103. * the measurement frames are exchanged. Optional; if not
  6104. * specified, try to locate the peer in the kernel scan
  6105. * results cache and use frequency from there.
  6106. */
  6107. enum qca_wlan_vendor_attr_ftm_peer_info {
  6108. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6109. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6110. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6111. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6112. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6113. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6114. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6115. /* keep last */
  6116. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6117. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6118. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6119. };
  6120. /**
  6121. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6122. * per-peer
  6123. *
  6124. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6125. * immediate (ASAP) response from peer.
  6126. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6127. * LCI report from peer. The LCI report includes the absolute
  6128. * location of the peer in "official" coordinates (similar to GPS).
  6129. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6130. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6131. * Location civic report from peer. The LCR includes the location
  6132. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6133. * 11.24.6.7 for more information.
  6134. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6135. * request a secure measurement.
  6136. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6137. */
  6138. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6139. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6140. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6141. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6142. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6143. };
  6144. /**
  6145. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6146. *
  6147. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6148. * to perform in a single burst.
  6149. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6150. * perform, specified as an exponent (2^value).
  6151. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6152. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6153. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6154. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6155. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6156. */
  6157. enum qca_wlan_vendor_attr_ftm_meas_param {
  6158. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6159. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6160. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6161. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6162. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6163. /* keep last */
  6164. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6165. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6166. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6167. };
  6168. /**
  6169. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6170. *
  6171. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6172. * peer.
  6173. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6174. * request for this peer.
  6175. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6176. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6177. * to measurement results for this peer.
  6178. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6179. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6180. * request failed and peer requested not to send an additional request
  6181. * for this number of seconds.
  6182. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6183. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6184. * 9.4.2.22.10.
  6185. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6186. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6187. * 9.4.2.22.13.
  6188. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6189. * overridden some measurement request parameters. See
  6190. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6191. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6192. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6193. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6194. * results. Each entry is a nested attribute defined
  6195. * by enum qca_wlan_vendor_attr_ftm_meas.
  6196. */
  6197. enum qca_wlan_vendor_attr_ftm_peer_result {
  6198. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6199. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6200. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6201. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6202. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6203. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6204. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6205. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6206. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6207. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6208. /* keep last */
  6209. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  6210. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  6211. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  6212. };
  6213. /**
  6214. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  6215. *
  6216. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  6217. * will be provided. Peer may have overridden some measurement parameters,
  6218. * in which case overridden parameters will be report by
  6219. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  6220. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  6221. * of performing the measurement request. No more results will be sent
  6222. * for this peer in this session.
  6223. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  6224. * failed, and requested not to send an additional request for number
  6225. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  6226. * attribute.
  6227. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  6228. * failed. Request was not sent over the air.
  6229. */
  6230. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  6231. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  6232. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  6233. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  6234. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  6235. };
  6236. /**
  6237. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  6238. * for measurement result, per-peer
  6239. *
  6240. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  6241. * measurement completed for this peer. No more results will be reported
  6242. * for this peer in this session.
  6243. */
  6244. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  6245. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  6246. };
  6247. /**
  6248. * enum qca_vendor_attr_loc_session_status: Session completion status code
  6249. *
  6250. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  6251. * successfully.
  6252. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  6253. * by request.
  6254. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  6255. * was invalid and was not started.
  6256. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  6257. * and did not complete normally (for example out of resources).
  6258. */
  6259. enum qca_vendor_attr_loc_session_status {
  6260. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  6261. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  6262. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  6263. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  6264. };
  6265. /**
  6266. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  6267. *
  6268. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  6269. * recorded by responder, in picoseconds.
  6270. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6271. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  6272. * initiator, in picoseconds.
  6273. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6274. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  6275. * initiator, in picoseconds.
  6276. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6277. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  6278. * responder, in picoseconds.
  6279. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6280. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  6281. * during this measurement exchange. Optional and will be provided if
  6282. * the hardware can measure it.
  6283. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  6284. * responder. Not always provided.
  6285. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6286. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  6287. * responder. Not always provided.
  6288. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6289. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  6290. * initiator. Not always provided.
  6291. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6292. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  6293. * initiator. Not always provided.
  6294. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6295. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  6296. */
  6297. enum qca_wlan_vendor_attr_ftm_meas {
  6298. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  6299. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  6300. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  6301. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  6302. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  6303. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  6304. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  6305. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  6306. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  6307. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  6308. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  6309. /* keep last */
  6310. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  6311. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  6312. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  6313. };
  6314. /**
  6315. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  6316. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  6317. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  6318. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  6319. * of the social channels.
  6320. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  6321. * A 32-bit unsigned value; the P2P listen offload period (ms).
  6322. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  6323. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  6324. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  6325. * A 32-bit unsigned value; number of interval times the Firmware needs
  6326. * to run the offloaded P2P listen operation before it stops.
  6327. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  6328. * An array of unsigned 8-bit characters; vendor information elements.
  6329. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  6330. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  6331. * A 32-bit unsigned value; a control flag to indicate whether listen
  6332. * results need to be flushed to wpa_supplicant.
  6333. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  6334. * A 8-bit unsigned value; reason code for P2P listen offload stop
  6335. * event.
  6336. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  6337. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  6338. */
  6339. enum qca_wlan_vendor_attr_p2p_listen_offload {
  6340. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  6341. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  6342. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  6343. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  6344. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  6345. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  6346. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  6347. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  6348. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  6349. /* keep last */
  6350. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  6351. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  6352. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  6353. };
  6354. /**
  6355. * enum qca_wlan_vendor_drv_info - WLAN driver info
  6356. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  6357. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  6358. * between Firmware & Host.
  6359. */
  6360. enum qca_wlan_vendor_drv_info {
  6361. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  6362. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  6363. /* keep last */
  6364. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  6365. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  6366. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  6367. };
  6368. /**
  6369. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  6370. *
  6371. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  6372. * CIR (channel impulse response) path for each antenna.
  6373. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  6374. * of the strongest CIR path for each antenna.
  6375. */
  6376. enum qca_wlan_vendor_attr_aoa_type {
  6377. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  6378. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  6379. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  6380. };
  6381. /**
  6382. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  6383. * validate encryption engine
  6384. *
  6385. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  6386. * This will be included if the request is for decryption; if not included,
  6387. * the request is treated as a request for encryption by default.
  6388. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  6389. * indicating the key cipher suite. Takes same values as
  6390. * NL80211_ATTR_KEY_CIPHER.
  6391. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  6392. * Key Id to be used for encryption
  6393. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  6394. * Key (TK) to be used for encryption/decryption
  6395. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  6396. * Packet number to be specified for encryption/decryption
  6397. * 6 bytes for TKIP/CCMP/GCMP.
  6398. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  6399. * representing the 802.11 packet (header + payload + FCS) that
  6400. * needs to be encrypted/decrypted.
  6401. * Encrypted/decrypted response from the driver will also be sent
  6402. * to userspace with the same attribute.
  6403. */
  6404. enum qca_wlan_vendor_attr_encryption_test {
  6405. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  6406. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  6407. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  6408. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  6409. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  6410. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  6411. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  6412. /* keep last */
  6413. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  6414. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  6415. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  6416. };
  6417. /**
  6418. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  6419. * sector for DMG RF sector operations.
  6420. *
  6421. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  6422. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  6423. */
  6424. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  6425. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  6426. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  6427. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  6428. };
  6429. /**
  6430. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  6431. *
  6432. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  6433. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  6434. */
  6435. enum qca_wlan_vendor_attr_fw_state {
  6436. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  6437. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  6438. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  6439. };
  6440. /**
  6441. * BRP antenna limit mode
  6442. *
  6443. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  6444. * antenna limit, BRP will be performed as usual.
  6445. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  6446. * antennas limit. the hardware may use less antennas than the
  6447. * maximum limit.
  6448. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  6449. * use exactly the specified number of antennas for BRP.
  6450. */
  6451. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  6452. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  6453. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  6454. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  6455. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  6456. };
  6457. /**
  6458. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  6459. * DMG RF sector configuration for a single RF module.
  6460. * The values are defined in a compact way which closely matches
  6461. * the way it is stored in HW registers.
  6462. * The configuration provides values for 32 antennas and 8 distribution
  6463. * amplifiers, and together describes the characteristics of the RF
  6464. * sector - such as a beam in some direction with some gain.
  6465. *
  6466. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  6467. * of RF module for this configuration.
  6468. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  6469. * amplifier gain index. Unsigned 32 bit number containing
  6470. * bits for all 32 antennas.
  6471. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  6472. * amplifier gain index. Unsigned 32 bit number containing
  6473. * bits for all 32 antennas.
  6474. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  6475. * amplifier gain index. Unsigned 32 bit number containing
  6476. * bits for all 32 antennas.
  6477. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  6478. * for first 16 antennas, 2 bits per antenna.
  6479. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  6480. * for last 16 antennas, 2 bits per antenna.
  6481. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  6482. * DTYPE values (3 bits) for each distribution amplifier, followed
  6483. * by X16 switch bits for each distribution amplifier. There are
  6484. * total of 8 distribution amplifiers.
  6485. */
  6486. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  6487. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  6488. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  6489. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  6490. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  6491. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  6492. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  6493. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  6494. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  6495. /* keep last */
  6496. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  6497. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  6498. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  6499. };
  6500. /**
  6501. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  6502. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  6503. *
  6504. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  6505. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  6506. * represents the different TDLS trigger modes.
  6507. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  6508. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  6509. * of packets shall meet the criteria for implicit TDLS setup.
  6510. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  6511. * packets within a duration.
  6512. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  6513. * a TDLS setup.
  6514. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
  6515. * a TDLS Discovery to the Peer.
  6516. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  6517. * discovery attempts to know the TDLS capability of the peer. A peer is
  6518. * marked as TDLS not capable if there is no response for all the attempts.
  6519. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  6520. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  6521. * number of TX / RX frames meet the criteria for TDLS teardown.
  6522. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  6523. * (u32) of Tx/Rx packets within a duration
  6524. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  6525. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  6526. * corresponding to the RSSI of the peer below which a TDLS
  6527. * setup is triggered.
  6528. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  6529. * corresponding to the RSSI of the peer above which
  6530. * a TDLS teardown is triggered.
  6531. */
  6532. enum qca_wlan_vendor_attr_tdls_configuration {
  6533. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  6534. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  6535. /* Attributes configuring the TDLS Implicit Trigger */
  6536. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  6537. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  6538. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  6539. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  6540. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  6541. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  6542. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  6543. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  6544. /* keep last */
  6545. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  6546. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  6547. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  6548. };
  6549. /**
  6550. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  6551. * the driver.
  6552. *
  6553. * The following are the different values for
  6554. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  6555. *
  6556. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  6557. * initiate/teardown the TDLS connection to a respective peer comes
  6558. * from the user space. wpa_supplicant provides the commands
  6559. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  6560. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  6561. * setup/teardown to the eligible peer once the configured criteria
  6562. * (such as TX/RX threshold, RSSI) is met. The attributes
  6563. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  6564. * the different configuration criteria for the TDLS trigger from the
  6565. * host driver.
  6566. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  6567. * the TDLS setup / teardown through the implicit mode, only to the
  6568. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  6569. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  6570. * External mode works on top of the implicit mode, thus the host Driver
  6571. * is expected to be configured in TDLS Implicit mode too to operate in
  6572. * External mode. Configuring External mode alone without Implicit
  6573. * mode is invalid.
  6574. *
  6575. * All the above implementations work as expected only when the host driver
  6576. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  6577. * representing that the TDLS message exchange is not internal to the host
  6578. * driver, but depends on wpa_supplicant to do the message exchange.
  6579. */
  6580. enum qca_wlan_vendor_tdls_trigger_mode {
  6581. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  6582. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  6583. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  6584. };
  6585. /**
  6586. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  6587. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  6588. * that is hard-coded in the Board Data File (BDF).
  6589. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  6590. * that is hard-coded in the Board Data File (BDF).
  6591. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  6592. * that is hard-coded in the Board Data File (BDF).
  6593. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  6594. * that is hard-coded in the Board Data File (BDF).
  6595. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  6596. * that is hard-coded in the Board Data File (BDF).
  6597. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  6598. * source of SAR power limits, thereby disabling the SAR power
  6599. * limit feature.
  6600. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  6601. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6602. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  6603. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6604. *
  6605. * This enumerates the valid set of values that may be supplied for
  6606. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  6607. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  6608. * the response to an instance of the
  6609. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6610. */
  6611. enum qca_vendor_attr_sar_limits_selections {
  6612. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  6613. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  6614. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  6615. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  6616. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  6617. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  6618. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  6619. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  6620. };
  6621. /**
  6622. * enum qca_vendor_attr_sar_limits_spec_modulations -
  6623. * SAR limits specification modulation
  6624. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  6625. * CCK modulation
  6626. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  6627. * OFDM modulation
  6628. *
  6629. * This enumerates the valid set of values that may be supplied for
  6630. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  6631. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  6632. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  6633. * command or in the response to an instance of the
  6634. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6635. */
  6636. enum qca_vendor_attr_sar_limits_spec_modulations {
  6637. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  6638. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  6639. };
  6640. /**
  6641. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  6642. *
  6643. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  6644. * select which SAR power limit table should be used. Valid
  6645. * values are enumerated in enum
  6646. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  6647. * power limit selection is unchanged if this attribute is not
  6648. * present.
  6649. *
  6650. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  6651. * which specifies the number of SAR power limit specifications
  6652. * which will follow.
  6653. *
  6654. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  6655. * limit specifications. The number of specifications is
  6656. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  6657. * specification contains a set of
  6658. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  6659. * specification is uniquely identified by the attributes
  6660. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  6661. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  6662. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  6663. * contains as a payload the attribute
  6664. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  6665. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  6666. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  6667. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  6668. * needed based upon the value of
  6669. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  6670. *
  6671. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  6672. * indicate for which band this specification applies. Valid
  6673. * values are enumerated in enum %nl80211_band (although not all
  6674. * bands may be supported by a given device). If the attribute is
  6675. * not supplied then the specification will be applied to all
  6676. * supported bands.
  6677. *
  6678. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  6679. * to indicate for which antenna chain this specification
  6680. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  6681. * attribute is not supplied then the specification will be
  6682. * applied to all chains.
  6683. *
  6684. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  6685. * value to indicate for which modulation scheme this
  6686. * specification applies. Valid values are enumerated in enum
  6687. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  6688. * is not supplied then the specification will be applied to all
  6689. * modulation schemes.
  6690. *
  6691. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  6692. * value to specify the actual power limit value in units of 0.5
  6693. * dBm (i.e., a value of 11 represents 5.5 dBm).
  6694. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6695. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  6696. *
  6697. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  6698. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  6699. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6700. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  6701. *
  6702. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  6703. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  6704. */
  6705. enum qca_vendor_attr_sar_limits {
  6706. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  6707. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  6708. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  6709. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  6710. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  6711. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  6712. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  6713. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  6714. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  6715. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  6716. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  6717. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  6718. };
  6719. /**
  6720. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  6721. * offload which is an extension for LL_STATS.
  6722. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  6723. * If MAC counters do not exceed the threshold, FW will report monitored
  6724. * link layer counters periodically as this setting. The first report is
  6725. * always triggered by this timer.
  6726. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  6727. * For each MAC layer counter, FW holds two copies. One is the current value.
  6728. * The other is the last report. Once a current counter's increment is larger
  6729. * than the threshold, FW will indicate that counter to host even if the
  6730. * monitoring timer does not expire.
  6731. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  6732. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  6733. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  6734. * failure code.
  6735. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  6736. * 1: TX packet discarded
  6737. * 2: No ACK
  6738. * 3: Postpone
  6739. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  6740. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  6741. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  6742. * Threshold for all monitored parameters. If per counter dedicated threshold
  6743. * is not enabled, this threshold will take effect.
  6744. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  6745. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  6746. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  6747. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  6748. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  6749. * Bit0: TX counter unit in MSDU
  6750. * Bit1: TX counter unit in MPDU
  6751. * Bit2: TX counter unit in PPDU
  6752. * Bit3: TX counter unit in byte
  6753. * Bit4: Dropped MSDUs
  6754. * Bit5: Dropped Bytes
  6755. * Bit6: MPDU retry counter
  6756. * Bit7: MPDU failure counter
  6757. * Bit8: PPDU failure counter
  6758. * Bit9: MPDU aggregation counter
  6759. * Bit10: MCS counter for ACKed MPDUs
  6760. * Bit11: MCS counter for Failed MPDUs
  6761. * Bit12: TX Delay counter
  6762. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  6763. * Bit0: MAC RX counter unit in MPDU
  6764. * Bit1: MAC RX counter unit in byte
  6765. * Bit2: PHY RX counter unit in PPDU
  6766. * Bit3: PHY RX counter unit in byte
  6767. * Bit4: Disorder counter
  6768. * Bit5: Retry counter
  6769. * Bit6: Duplication counter
  6770. * Bit7: Discard counter
  6771. * Bit8: MPDU aggregation size counter
  6772. * Bit9: MCS counter
  6773. * Bit10: Peer STA power state change (wake to sleep) counter
  6774. * Bit11: Peer STA power save counter, total time in PS mode
  6775. * Bit12: Probe request counter
  6776. * Bit13: Other management frames counter
  6777. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  6778. * Bit0: Idle time
  6779. * Bit1: TX time
  6780. * Bit2: time RX in current bss
  6781. * Bit3: Out of current bss time
  6782. * Bit4: Wireless medium busy time
  6783. * Bit5: RX in bad condition time
  6784. * Bit6: TX in bad condition time
  6785. * Bit7: time wlan card not available
  6786. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  6787. * Bit0: Per channel SNR counter
  6788. * Bit1: Per channel noise floor counter
  6789. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  6790. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  6791. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  6792. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  6793. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  6794. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  6795. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  6796. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  6797. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  6798. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  6799. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  6800. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  6801. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  6802. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  6803. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  6804. * aggregation stats buffer length
  6805. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  6806. * buffer for ACKed MPDUs.
  6807. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  6808. * buffer for failed MPDUs.
  6809. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  6810. * length of delay stats array.
  6811. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  6812. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  6813. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  6814. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  6815. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  6816. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  6817. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  6818. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  6819. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  6820. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  6821. * flagged as retransmissions
  6822. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  6823. * flagged as duplicated
  6824. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  6825. * packets discarded
  6826. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  6827. * stats buffer.
  6828. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  6829. * stats buffer.
  6830. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  6831. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  6832. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  6833. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  6834. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  6835. * requests received
  6836. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  6837. * frames received
  6838. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  6839. * there is no TX, nor RX, nor interference.
  6840. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  6841. * transmitting packets.
  6842. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  6843. * for receiving.
  6844. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  6845. * interference detected.
  6846. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  6847. * receiving packets with errors.
  6848. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  6849. * TX no-ACK.
  6850. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  6851. * the chip is unable to work in normal conditions.
  6852. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  6853. * receiving packets in current BSS.
  6854. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  6855. * receiving packets not in current BSS.
  6856. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  6857. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  6858. * This is a container for per antenna signal stats.
  6859. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  6860. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  6861. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  6862. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  6863. */
  6864. enum qca_wlan_vendor_attr_ll_stats_ext {
  6865. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  6866. /* Attributes for configurations */
  6867. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  6868. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  6869. /* Peer STA power state change */
  6870. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  6871. /* TX failure event */
  6872. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  6873. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  6874. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  6875. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  6876. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  6877. /* MAC counters */
  6878. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  6879. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  6880. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  6881. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  6882. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  6883. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  6884. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  6885. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  6886. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  6887. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  6888. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  6889. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  6890. /* Sub-attributes for PEER_AC_TX */
  6891. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  6892. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  6893. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  6894. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  6895. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  6896. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  6897. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  6898. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  6899. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  6900. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  6901. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  6902. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  6903. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  6904. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  6905. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  6906. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  6907. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  6908. /* Sub-attributes for PEER_AC_RX */
  6909. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  6910. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  6911. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  6912. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  6913. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  6914. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  6915. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  6916. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  6917. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  6918. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  6919. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  6920. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  6921. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  6922. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  6923. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  6924. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  6925. /* Sub-attributes for CCA_BSS */
  6926. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  6927. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  6928. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  6929. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  6930. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  6931. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  6932. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  6933. /* sub-attribute for BSS_RX_TIME */
  6934. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  6935. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  6936. /* Sub-attributes for PEER_SIGNAL */
  6937. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  6938. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  6939. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  6940. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  6941. /* Sub-attributes for IFACE_BSS */
  6942. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  6943. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  6944. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  6945. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  6946. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  6947. };
  6948. /**
  6949. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  6950. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  6951. * in priority order as decided after ACS operation in userspace.
  6952. *
  6953. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  6954. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  6955. *
  6956. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  6957. * Array of nested values for each channel with following attributes:
  6958. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  6959. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  6960. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  6961. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  6962. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  6963. * Note: If both the driver and user-space application supports the 6 GHz band,
  6964. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  6965. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  6966. * To maintain backward compatibility,
  6967. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  6968. * is still used if either of the driver or user space application doesn't
  6969. * support the 6 GHz band.
  6970. *
  6971. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  6972. * Primary channel number
  6973. * Note: If both the driver and user-space application supports the 6 GHz band,
  6974. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  6975. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  6976. * To maintain backward compatibility,
  6977. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  6978. * is still used if either of the driver or user space application doesn't
  6979. * support the 6 GHz band.
  6980. *
  6981. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  6982. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  6983. * Note: If both the driver and user-space application supports the 6 GHz band,
  6984. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  6985. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  6986. * To maintain backward compatibility,
  6987. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  6988. * is still used if either of the driver or user space application
  6989. * doesn't support the 6 GHz band.
  6990. *
  6991. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  6992. * VHT seg0 channel number
  6993. * Note: If both the driver and user-space application supports the 6 GHz band,
  6994. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  6995. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  6996. * To maintain backward compatibility,
  6997. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  6998. * is still used if either of the driver or user space application
  6999. * doesn't support the 6 GHz band.
  7000. *
  7001. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7002. * VHT seg1 channel number
  7003. * Note: If both the driver and user-space application supports the 6 GHz band,
  7004. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7005. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7006. * To maintain backward compatibility,
  7007. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7008. * is still used if either of the driver or user space application
  7009. * doesn't support the 6 GHz band.
  7010. *
  7011. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7012. * Takes one of enum nl80211_chan_width values.
  7013. *
  7014. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7015. * Array of nested values for each channel with following attributes:
  7016. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7017. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7018. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7019. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7020. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7021. * Note: If user-space application has no support of the 6 GHz band, this
  7022. * attribute is optional.
  7023. *
  7024. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7025. * Primary channel frequency in MHz
  7026. * Note: If user-space application has no support of the 6 GHz band, this
  7027. * attribute is optional.
  7028. *
  7029. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7030. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7031. * Note: If user-space application has no support of the 6 GHz band, this
  7032. * attribute is optional.
  7033. *
  7034. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7035. * VHT seg0 channel frequency in MHz
  7036. * Note: If user-space application has no support of the 6GHz band, this
  7037. * attribute is optional.
  7038. *
  7039. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7040. * VHT seg1 channel frequency in MHz
  7041. * Note: If user-space application has no support of the 6 GHz band, this
  7042. * attribute is optional.
  7043. */
  7044. enum qca_wlan_vendor_attr_external_acs_channels {
  7045. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7046. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7047. */
  7048. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7049. /* Array of nested values for each channel with following attributes:
  7050. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7051. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7052. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7053. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7054. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7055. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7056. */
  7057. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7058. /* This (u8) will hold values of one of enum nl80211_bands */
  7059. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7060. /* Primary channel (u8) */
  7061. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7062. /* Secondary channel (u8) used for HT 40 MHz channels */
  7063. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7064. /* VHT seg0 channel (u8) */
  7065. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7066. /* VHT seg1 channel (u8) */
  7067. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7068. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7069. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7070. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7071. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7072. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7073. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7074. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7075. /* keep last */
  7076. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7077. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7078. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7079. };
  7080. /**
  7081. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7082. * the ACS has to be triggered. These values are used by
  7083. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7084. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7085. */
  7086. enum qca_wlan_vendor_acs_select_reason {
  7087. /* Represents the reason that the ACS triggered during the AP start */
  7088. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7089. /* Represents the reason that DFS found with the current channel */
  7090. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7091. /* Represents the reason that LTE co-exist in the current band. */
  7092. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7093. /* Represents the reason that generic, uncategorized interference has
  7094. * been found in the current channel.
  7095. */
  7096. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7097. /* Represents the reason that excessive 802.11 interference has been
  7098. * found in the current channel.
  7099. */
  7100. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7101. /* Represents the reason that generic Continuous Wave (CW) interference
  7102. * has been found in the current channel.
  7103. */
  7104. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7105. /* Represents the reason that Microwave Oven (MWO) interference has been
  7106. * found in the current channel.
  7107. */
  7108. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7109. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7110. * (FHSS) interference has been found in the current channel. This may
  7111. * include 802.11 waveforms.
  7112. */
  7113. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7114. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7115. * Spread Spectrum (FHSS) interference has been found in the current
  7116. * channel.
  7117. */
  7118. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7119. /* Represents the reason that generic Wideband (WB) interference has
  7120. * been found in the current channel. This may include 802.11 waveforms.
  7121. */
  7122. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7123. /* Represents the reason that non-802.11 generic Wideband (WB)
  7124. * interference has been found in the current channel.
  7125. */
  7126. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7127. /* Represents the reason that Jammer interference has been found in the
  7128. * current channel.
  7129. */
  7130. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7131. /* Represents the reason that ACS triggered by AFC */
  7132. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7133. };
  7134. /**
  7135. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7136. *
  7137. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7138. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7139. * to get the available value that this item can use.
  7140. *
  7141. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7142. * value to specify the gpio number.
  7143. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7144. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7145. *
  7146. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7147. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7148. * to get the available value that this item can use.
  7149. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7150. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7151. *
  7152. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7153. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7154. * to get the available value that this item can use.
  7155. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7156. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7157. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7158. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7159. * attribute is present.
  7160. *
  7161. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7162. * value to specify the gpio interrupt mode, please refer to enum
  7163. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7164. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7165. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7166. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7167. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7168. * attribute is present.
  7169. *
  7170. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7171. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7172. * to get the available value that this item can use.
  7173. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7174. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7175. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7176. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7177. * attribute is present.
  7178. *
  7179. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7180. * Value to specify the mux config. Meaning of a given value is dependent
  7181. * on the target chipset and gpio pin. Must be of the range 0-15.
  7182. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7183. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7184. *
  7185. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7186. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7187. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7188. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7189. *
  7190. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7191. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7192. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7193. * other parameters for the given GPIO will be obtained from internal
  7194. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7195. * specified to indicate the GPIO pin being configured.
  7196. */
  7197. enum qca_wlan_gpio_attr {
  7198. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7199. /* Unsigned 32-bit attribute for GPIO command */
  7200. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7201. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7202. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  7203. /* Unsigned 32-bit attribute for GPIO value to configure */
  7204. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  7205. /* Unsigned 32-bit attribute for GPIO pull type */
  7206. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  7207. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  7208. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  7209. /* Unsigned 32-bit attribute for GPIO direction to configure */
  7210. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  7211. /* Unsigned 32-bit attribute for GPIO mux config */
  7212. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  7213. /* Unsigned 32-bit attribute for GPIO drive */
  7214. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  7215. /* Flag attribute for using internal gpio configuration */
  7216. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  7217. /* keep last */
  7218. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  7219. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  7220. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  7221. };
  7222. /**
  7223. * enum gpio_cmd_type - GPIO configuration command type
  7224. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  7225. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  7226. */
  7227. enum qca_gpio_cmd_type {
  7228. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  7229. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  7230. };
  7231. /**
  7232. * enum qca_gpio_pull_type - GPIO pull type
  7233. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  7234. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  7235. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  7236. */
  7237. enum qca_gpio_pull_type {
  7238. QCA_WLAN_GPIO_PULL_NONE = 0,
  7239. QCA_WLAN_GPIO_PULL_UP = 1,
  7240. QCA_WLAN_GPIO_PULL_DOWN = 2,
  7241. QCA_WLAN_GPIO_PULL_MAX,
  7242. };
  7243. /**
  7244. * enum qca_gpio_direction - GPIO direction
  7245. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  7246. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  7247. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  7248. */
  7249. enum qca_gpio_direction {
  7250. QCA_WLAN_GPIO_INPUT = 0,
  7251. QCA_WLAN_GPIO_OUTPUT = 1,
  7252. QCA_WLAN_GPIO_DIR_MAX,
  7253. };
  7254. /**
  7255. * enum qca_gpio_value - GPIO Value
  7256. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  7257. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  7258. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  7259. */
  7260. enum qca_gpio_value {
  7261. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  7262. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  7263. QCA_WLAN_GPIO_LEVEL_MAX,
  7264. };
  7265. /**
  7266. * enum gpio_interrupt_mode - GPIO interrupt mode
  7267. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  7268. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  7269. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  7270. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  7271. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  7272. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  7273. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  7274. */
  7275. enum qca_gpio_interrupt_mode {
  7276. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  7277. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  7278. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  7279. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  7280. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  7281. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  7282. QCA_WLAN_GPIO_INTMODE_MAX,
  7283. };
  7284. /**
  7285. * enum gpio_drive - GPIO drive
  7286. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  7287. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  7288. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  7289. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  7290. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  7291. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  7292. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  7293. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  7294. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  7295. */
  7296. enum qca_gpio_drive {
  7297. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  7298. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  7299. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  7300. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  7301. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  7302. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  7303. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  7304. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  7305. QCA_WLAN_GPIO_DRIVE_MAX,
  7306. };
  7307. /**
  7308. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  7309. * MSDUQ depth threshold per peer per tid in the target
  7310. *
  7311. * Associated Vendor Command:
  7312. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  7313. */
  7314. enum qca_wlan_set_qdepth_thresh_attr {
  7315. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  7316. /* 6-byte MAC address */
  7317. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  7318. /* Unsigned 32-bit attribute for holding the TID */
  7319. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  7320. /* Unsigned 32-bit attribute for holding the update mask
  7321. * bit 0 - Update high priority msdu qdepth threshold
  7322. * bit 1 - Update low priority msdu qdepth threshold
  7323. * bit 2 - Update UDP msdu qdepth threshold
  7324. * bit 3 - Update Non UDP msdu qdepth threshold
  7325. * rest of bits are reserved
  7326. */
  7327. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  7328. /* Unsigned 32-bit attribute for holding the threshold value */
  7329. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  7330. /* keep last */
  7331. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  7332. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  7333. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  7334. };
  7335. /**
  7336. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  7337. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  7338. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  7339. * external ACS policies to select the channels w.r.t. the PCL weights.
  7340. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  7341. * their PCL weights.)
  7342. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  7343. * select a channel with non-zero PCL weight.
  7344. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  7345. * channel with non-zero PCL weight.
  7346. *
  7347. */
  7348. enum qca_wlan_vendor_attr_external_acs_policy {
  7349. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  7350. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  7351. };
  7352. /**
  7353. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  7354. */
  7355. enum qca_wlan_vendor_attr_spectral_scan {
  7356. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  7357. /*
  7358. * Number of times the chip enters spectral scan mode before
  7359. * deactivating spectral scans. When set to 0, chip will enter spectral
  7360. * scan mode continuously. u32 attribute.
  7361. */
  7362. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  7363. /*
  7364. * Spectral scan period. Period increment resolution is 256*Tclk,
  7365. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  7366. */
  7367. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  7368. /* Spectral scan priority. u32 attribute. */
  7369. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  7370. /* Number of FFT data points to compute. u32 attribute. */
  7371. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  7372. /*
  7373. * Enable targeted gain change before starting the spectral scan FFT.
  7374. * u32 attribute.
  7375. */
  7376. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  7377. /* Restart a queued spectral scan. u32 attribute. */
  7378. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  7379. /*
  7380. * Noise floor reference number for the calculation of bin power.
  7381. * u32 attribute.
  7382. */
  7383. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  7384. /*
  7385. * Disallow spectral scan triggers after TX/RX packets by setting
  7386. * this delay value to roughly SIFS time period or greater.
  7387. * u32 attribute.
  7388. */
  7389. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  7390. /*
  7391. * Number of strong bins (inclusive) per sub-channel, below
  7392. * which a signal is declared a narrow band tone. u32 attribute.
  7393. */
  7394. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  7395. /*
  7396. * Specify the threshold over which a bin is declared strong (for
  7397. * scan bandwidth analysis). u32 attribute.
  7398. */
  7399. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  7400. /* Spectral scan report mode. u32 attribute. */
  7401. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  7402. /*
  7403. * RSSI report mode, if the ADC RSSI is below
  7404. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  7405. * then FFTs will not trigger, but timestamps and summaries get
  7406. * reported. u32 attribute.
  7407. */
  7408. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  7409. /*
  7410. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  7411. * to ensure spectral scan reporting with normal error code.
  7412. * u32 attribute.
  7413. */
  7414. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  7415. /*
  7416. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  7417. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  7418. * u32 attribute.
  7419. */
  7420. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  7421. /*
  7422. * Format of FFT report to software for spectral scan triggered FFTs.
  7423. * 0: No FFT report (only spectral scan summary report)
  7424. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  7425. * report
  7426. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  7427. * bins (in-band) per FFT + spectral scan summary report
  7428. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  7429. * bins (all) per FFT + spectral scan summary report
  7430. * u32 attribute.
  7431. */
  7432. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  7433. /*
  7434. * Number of LSBs to shift out in order to scale the FFT bins.
  7435. * u32 attribute.
  7436. */
  7437. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  7438. /*
  7439. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  7440. * in dBm power. u32 attribute.
  7441. */
  7442. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  7443. /*
  7444. * Per chain enable mask to select input ADC for search FFT.
  7445. * u32 attribute.
  7446. */
  7447. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  7448. /*
  7449. * An unsigned 64-bit integer provided by host driver to identify the
  7450. * spectral scan request. This attribute is included in the scan
  7451. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  7452. * and used as an attribute in
  7453. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  7454. * specific scan to be stopped.
  7455. */
  7456. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  7457. /* Skip interval for FFT reports. u32 attribute */
  7458. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  7459. /* Set to report only one set of FFT results.
  7460. * u32 attribute.
  7461. */
  7462. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  7463. /* Debug level for spectral module in driver.
  7464. * 0 : Verbosity level 0
  7465. * 1 : Verbosity level 1
  7466. * 2 : Verbosity level 2
  7467. * 3 : Matched filterID display
  7468. * 4 : One time dump of FFT report
  7469. * u32 attribute.
  7470. */
  7471. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  7472. /* Type of spectral scan request. u32 attribute.
  7473. * It uses values defined in enum
  7474. * qca_wlan_vendor_attr_spectral_scan_request_type.
  7475. */
  7476. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  7477. /* This specifies the frequency span over which spectral
  7478. * scan would be carried out. Its value depends on the
  7479. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  7480. * the relation is as follows.
  7481. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7482. * Not applicable. Spectral scan would happen in the
  7483. * operating span.
  7484. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7485. * Center frequency (in MHz) of the span of interest or
  7486. * for convenience, center frequency (in MHz) of any channel
  7487. * in the span of interest. For 80+80 MHz agile spectral scan
  7488. * request it represents center frequency (in MHz) of the primary
  7489. * 80 MHz span or for convenience, center frequency (in MHz) of any
  7490. * channel in the primary 80 MHz span. If agile spectral scan is
  7491. * initiated without setting a valid frequency it returns the
  7492. * error code
  7493. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  7494. * u32 attribute.
  7495. */
  7496. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  7497. /* Spectral scan mode. u32 attribute.
  7498. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7499. * If this attribute is not present, it is assumed to be
  7500. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  7501. */
  7502. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  7503. /* Spectral scan error code. u32 attribute.
  7504. * It uses values defined in enum
  7505. * qca_wlan_vendor_spectral_scan_error_code.
  7506. * This attribute is included only in failure scenarios.
  7507. */
  7508. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  7509. /* 8-bit unsigned value to enable/disable debug of the
  7510. * Spectral DMA ring.
  7511. * 1-enable, 0-disable
  7512. */
  7513. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  7514. /* 8-bit unsigned value to enable/disable debug of the
  7515. * Spectral DMA buffers.
  7516. * 1-enable, 0-disable
  7517. */
  7518. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  7519. /* This specifies the frequency span over which spectral scan would be
  7520. * carried out. Its value depends on the value of
  7521. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  7522. * follows.
  7523. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7524. * Not applicable. Spectral scan would happen in the operating span.
  7525. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7526. * This attribute is applicable only for agile spectral scan
  7527. * requests in 80+80 MHz mode. It represents center frequency (in
  7528. * MHz) of the secondary 80 MHz span or for convenience, center
  7529. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  7530. * u32 attribute.
  7531. */
  7532. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  7533. /* This attribute specifies the bandwidth to be used for Spectral scan
  7534. * operation. This is an u8 attribute and uses the values in enum
  7535. * nl80211_chan_width. This is an optional attribute.
  7536. * If this attribute is not populated, the driver should configure the
  7537. * Spectral scan bandwidth to the maximum value supported by the target
  7538. * for the current operating bandwidth.
  7539. */
  7540. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  7541. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  7542. * recapture. Recapture can only be enabled for Scan period greater
  7543. * than 52us.
  7544. * If this attribute is enabled, re-triggers will be enabled in uCode
  7545. * when AGC gain changes.
  7546. */
  7547. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  7548. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  7549. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  7550. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  7551. };
  7552. /**
  7553. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  7554. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  7555. */
  7556. enum qca_wlan_vendor_attr_spectral_diag_stats {
  7557. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  7558. /* Number of spectral TLV signature mismatches.
  7559. * u64 attribute.
  7560. */
  7561. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  7562. /* Number of spectral phyerror events with insufficient length when
  7563. * parsing for secondary 80 search FFT report. u64 attribute.
  7564. */
  7565. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  7566. /* Number of spectral phyerror events without secondary 80
  7567. * search FFT report. u64 attribute.
  7568. */
  7569. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  7570. /* Number of spectral phyerror events with vht operation segment 1 id
  7571. * mismatches in search fft report. u64 attribute.
  7572. */
  7573. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  7574. /* Number of spectral phyerror events with vht operation segment 2 id
  7575. * mismatches in search fft report. u64 attribute.
  7576. */
  7577. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  7578. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  7579. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  7580. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  7581. };
  7582. /**
  7583. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  7584. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  7585. */
  7586. enum qca_wlan_vendor_attr_spectral_cap {
  7587. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  7588. /* Flag attribute to indicate phydiag capability */
  7589. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  7590. /* Flag attribute to indicate radar detection capability */
  7591. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  7592. /* Flag attribute to indicate spectral capability */
  7593. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  7594. /* Flag attribute to indicate advanced spectral capability */
  7595. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  7596. /* Spectral hardware generation. u32 attribute.
  7597. * It uses values defined in enum
  7598. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  7599. */
  7600. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  7601. /* Spectral bin scaling formula ID. u16 attribute.
  7602. * It uses values defined in enum
  7603. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  7604. */
  7605. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  7606. /* Spectral bin scaling param - low level offset.
  7607. * s16 attribute.
  7608. */
  7609. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  7610. /* Spectral bin scaling param - high level offset.
  7611. * s16 attribute.
  7612. */
  7613. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  7614. /* Spectral bin scaling param - RSSI threshold.
  7615. * s16 attribute.
  7616. */
  7617. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  7618. /* Spectral bin scaling param - default AGC max gain.
  7619. * u8 attribute.
  7620. */
  7621. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  7622. /* Flag attribute to indicate agile spectral scan capability
  7623. * for 20/40/80 MHz modes.
  7624. */
  7625. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  7626. /* Flag attribute to indicate agile spectral scan capability
  7627. * for 160 MHz mode.
  7628. */
  7629. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  7630. /* Flag attribute to indicate agile spectral scan capability
  7631. * for 80+80 MHz mode.
  7632. */
  7633. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  7634. /* Number of spectral detectors used for scan in 20 MHz.
  7635. * u32 attribute.
  7636. */
  7637. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  7638. /* Number of spectral detectors used for scan in 40 MHz.
  7639. * u32 attribute.
  7640. */
  7641. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  7642. /* Number of spectral detectors used for scan in 80 MHz.
  7643. * u32 attribute.
  7644. */
  7645. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  7646. /* Number of spectral detectors used for scan in 160 MHz.
  7647. * u32 attribute.
  7648. */
  7649. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  7650. /* Number of spectral detectors used for scan in 80+80 MHz.
  7651. * u32 attribute.
  7652. */
  7653. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  7654. /* Flag attribute to indicate agile spectral scan capability
  7655. * for 320 MHz mode.
  7656. */
  7657. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  7658. /* Number of spectral detectors used for scan in 320 MHz.
  7659. * u32 attribute.
  7660. */
  7661. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  7662. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  7663. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  7664. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  7665. };
  7666. /**
  7667. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  7668. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  7669. */
  7670. enum qca_wlan_vendor_attr_spectral_scan_status {
  7671. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  7672. /* Flag attribute to indicate whether spectral scan is enabled */
  7673. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  7674. /* Flag attribute to indicate whether spectral scan is in progress*/
  7675. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  7676. /* Spectral scan mode. u32 attribute.
  7677. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7678. * If this attribute is not present, normal mode
  7679. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  7680. * requested.
  7681. */
  7682. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  7683. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  7684. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  7685. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  7686. };
  7687. /**
  7688. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  7689. * wlan latency module.
  7690. *
  7691. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  7692. * power saving which would causing data exchange out of service, this
  7693. * would be a big impact on latency. For latency sensitive applications over
  7694. * Wi-Fi are intolerant to such operations and thus would configure them
  7695. * to meet their respective needs. It is well understood by such applications
  7696. * that altering the default behavior would degrade the Wi-Fi functionality
  7697. * w.r.t the above pointed WLAN operations.
  7698. *
  7699. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  7700. * Default WLAN operation level which throughput orientated.
  7701. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  7702. * Use XR level to benefit XR (extended reality) application to achieve
  7703. * latency and power by via constraint scan/roaming/adaptive PS.
  7704. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  7705. * Use low latency level to benifit application like concurrent
  7706. * downloading or video streaming via constraint scan/adaptive PS.
  7707. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  7708. * Use ultra low latency level to benefit for gaming/voice
  7709. * application via constraint scan/roaming/adaptive PS.
  7710. */
  7711. enum qca_wlan_vendor_attr_config_latency_level {
  7712. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  7713. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  7714. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  7715. /* legacy name */
  7716. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  7717. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  7718. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  7719. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  7720. /* keep last */
  7721. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  7722. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  7723. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  7724. };
  7725. /**
  7726. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  7727. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  7728. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  7729. * spectral scan request types.
  7730. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  7731. * set the spectral parameters and start scan.
  7732. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  7733. * only set the spectral parameters.
  7734. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  7735. * only start the spectral scan.
  7736. */
  7737. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  7738. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  7739. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  7740. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  7741. };
  7742. /**
  7743. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  7744. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  7745. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  7746. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  7747. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  7748. * spectral scan modes.
  7749. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  7750. * spectral scan in the current operating span.
  7751. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  7752. * spectral scan in the configured agile span.
  7753. */
  7754. enum qca_wlan_vendor_spectral_scan_mode {
  7755. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  7756. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  7757. };
  7758. /**
  7759. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  7760. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  7761. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  7762. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  7763. * of a parameter is not supported.
  7764. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  7765. * mode is not supported.
  7766. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  7767. * has invalid value.
  7768. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  7769. * is not initialized.
  7770. */
  7771. enum qca_wlan_vendor_spectral_scan_error_code {
  7772. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  7773. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  7774. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  7775. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  7776. };
  7777. /**
  7778. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  7779. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  7780. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  7781. * spectral hardware generation.
  7782. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  7783. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  7784. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  7785. */
  7786. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  7787. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  7788. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  7789. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  7790. };
  7791. /**
  7792. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  7793. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  7794. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  7795. * Spectral bin scaling formula ID.
  7796. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  7797. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  7798. * and RSSI threshold based formula.
  7799. */
  7800. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  7801. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  7802. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  7803. };
  7804. /**
  7805. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  7806. * RF Operating Parameter (RROP) information is available, and if so, at which
  7807. * point in the application-driver interaction sequence it can be retrieved by
  7808. * the application from the driver. This point may vary by architecture and
  7809. * other factors. This is a u16 value.
  7810. */
  7811. enum qca_wlan_vendor_attr_rropavail_info {
  7812. /* RROP information is unavailable. */
  7813. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  7814. /* RROP information is available and the application can retrieve the
  7815. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  7816. * event from the driver.
  7817. */
  7818. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  7819. /* RROP information is available only after a vendor specific scan
  7820. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  7821. * successfully completed. The application can retrieve the information
  7822. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  7823. * the driver.
  7824. */
  7825. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  7826. };
  7827. /**
  7828. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  7829. * Representative RF Operating Parameter (RROP) information. It is sent for the
  7830. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  7831. * intended for use by external Auto Channel Selection applications. It provides
  7832. * guidance values for some RF parameters that are used by the system during
  7833. * operation. These values could vary by channel, band, radio, and so on.
  7834. */
  7835. enum qca_wlan_vendor_attr_rrop_info {
  7836. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  7837. /* Representative Tx Power List (RTPL) which has an array of nested
  7838. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  7839. */
  7840. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  7841. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  7842. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  7843. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  7844. };
  7845. /**
  7846. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  7847. * entry instances in the Representative Tx Power List (RTPL). It provides
  7848. * simplified power values intended for helping external Auto channel Selection
  7849. * applications compare potential Tx power performance between channels, other
  7850. * operating conditions remaining identical. These values are not necessarily
  7851. * the actual Tx power values that will be used by the system. They are also not
  7852. * necessarily the max or average values that will be used. Instead, they are
  7853. * relative, summarized keys for algorithmic use computed by the driver or
  7854. * underlying firmware considering a number of vendor specific factors.
  7855. */
  7856. enum qca_wlan_vendor_attr_rtplinst {
  7857. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  7858. /* Primary channel number (u8).
  7859. * Note: If both the driver and user space application support the
  7860. * 6 GHz band, this attribute is deprecated and
  7861. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  7862. * maintain backward compatibility,
  7863. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  7864. * driver or user space application or both do not support the 6 GHz
  7865. * band.
  7866. */
  7867. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  7868. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  7869. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  7870. /* Representative Tx power in dBm (s32) with emphasis on range. */
  7871. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  7872. /* Primary channel center frequency (u32) in MHz */
  7873. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  7874. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  7875. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  7876. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  7877. };
  7878. /**
  7879. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  7880. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  7881. *
  7882. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  7883. * array of nested values as per attributes in
  7884. * enum qca_wlan_vendor_attr_mac_mode_info.
  7885. */
  7886. enum qca_wlan_vendor_attr_mac {
  7887. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  7888. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  7889. /* keep last */
  7890. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  7891. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  7892. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  7893. };
  7894. /**
  7895. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  7896. * WiFi netdev interface on a respective MAC. Used by the attribute
  7897. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  7898. *
  7899. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  7900. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  7901. * the connected Wi-Fi interface(u32).
  7902. */
  7903. enum qca_wlan_vendor_attr_mac_iface_info {
  7904. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  7905. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  7906. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  7907. /* keep last */
  7908. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  7909. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  7910. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  7911. };
  7912. /**
  7913. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  7914. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  7915. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  7916. *
  7917. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  7918. * MAC (u32)
  7919. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  7920. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  7921. * in enum nl80211_band.
  7922. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  7923. * interfaces associated with this MAC. Represented by enum
  7924. * qca_wlan_vendor_attr_mac_iface_info.
  7925. */
  7926. enum qca_wlan_vendor_attr_mac_info {
  7927. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  7928. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  7929. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  7930. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  7931. /* keep last */
  7932. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  7933. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  7934. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  7935. };
  7936. /**
  7937. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  7938. * to get thermal status from driver/firmware.
  7939. * enum values are used for NL attributes encapsulated inside
  7940. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  7941. *
  7942. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  7943. * of a thermal level in Celsius. u32 size.
  7944. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  7945. * of a thermal level in Celsius. u32 size.
  7946. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  7947. * thermal level in milliseconds. u32 size.
  7948. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  7949. * of times the temperature crossed into the temperature range defined by the
  7950. * thermal level from both higher and lower directions. u32 size.
  7951. */
  7952. enum qca_wlan_vendor_attr_thermal_stats {
  7953. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  7954. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  7955. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  7956. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  7957. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  7958. /* keep last */
  7959. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  7960. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  7961. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  7962. };
  7963. /**
  7964. * enum he_fragmentation_val - HE fragmentation support values
  7965. * Indicates level of dynamic fragmentation that is supported by
  7966. * a STA as a recipient.
  7967. * HE fragmentation values are defined as per 11ax spec and are used in
  7968. * HE capability IE to advertise the support. These values are validated
  7969. * in the driver to check the device capability and advertised in the HE
  7970. * capability element.
  7971. *
  7972. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  7973. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  7974. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  7975. * within an A-MPDU that is not an S-MPDU.
  7976. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  7977. * contained within an MPDU or S-MPDU and support for up to one dynamic
  7978. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  7979. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  7980. * MPDU or S-MPDU.
  7981. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  7982. * contained within an MPDU or S-MPDU and support for multiple dynamic
  7983. * fragments for each MSDU and for each A-MSDU if supported by the
  7984. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  7985. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  7986. */
  7987. enum he_fragmentation_val {
  7988. HE_FRAG_DISABLE,
  7989. HE_FRAG_LEVEL1,
  7990. HE_FRAG_LEVEL2,
  7991. HE_FRAG_LEVEL3,
  7992. };
  7993. /**
  7994. * enum he_mcs_config - HE MCS support configuration
  7995. *
  7996. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  7997. * These values are used in driver to configure the HE MCS map to advertise
  7998. * Tx/Rx MCS map in HE capability and these values are applied for all the
  7999. * streams supported by the device. To configure MCS for different bandwidths,
  8000. * vendor command needs to be sent using this attribute with appropriate value.
  8001. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8002. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8003. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8004. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8005. *
  8006. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8007. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8008. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8009. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8010. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8011. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8012. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8013. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8014. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8015. */
  8016. enum he_mcs_config {
  8017. HE_80_MCS0_7 = 0,
  8018. HE_80_MCS0_9 = 1,
  8019. HE_80_MCS0_11 = 2,
  8020. HE_160_MCS0_7 = 4,
  8021. HE_160_MCS0_9 = 5,
  8022. HE_160_MCS0_11 = 6,
  8023. HE_80p80_MCS0_7 = 8,
  8024. HE_80p80_MCS0_9 = 9,
  8025. HE_80p80_MCS0_11 = 10,
  8026. };
  8027. /**
  8028. * enum qca_wlan_ba_session_config - BA session configuration
  8029. *
  8030. * Indicates the configuration values for BA session configuration attribute.
  8031. *
  8032. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8033. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8034. */
  8035. enum qca_wlan_ba_session_config {
  8036. QCA_WLAN_ADD_BA = 1,
  8037. QCA_WLAN_DELETE_BA = 2,
  8038. };
  8039. /**
  8040. * enum qca_wlan_ac_type - access category type
  8041. *
  8042. * Indicates the access category type value.
  8043. *
  8044. * @QCA_WLAN_AC_BE: BE access category
  8045. * @QCA_WLAN_AC_BK: BK access category
  8046. * @QCA_WLAN_AC_VI: VI access category
  8047. * @QCA_WLAN_AC_VO: VO access category
  8048. * @QCA_WLAN_AC_ALL: All ACs
  8049. */
  8050. enum qca_wlan_ac_type {
  8051. QCA_WLAN_AC_BE = 0,
  8052. QCA_WLAN_AC_BK = 1,
  8053. QCA_WLAN_AC_VI = 2,
  8054. QCA_WLAN_AC_VO = 3,
  8055. QCA_WLAN_AC_ALL = 4,
  8056. };
  8057. /**
  8058. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8059. *
  8060. * Indicates the HE LTF configuration value.
  8061. *
  8062. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8063. * the mandatory HE-LTF based on the GI setting
  8064. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8065. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8066. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8067. */
  8068. enum qca_wlan_he_ltf_cfg {
  8069. QCA_WLAN_HE_LTF_AUTO = 0,
  8070. QCA_WLAN_HE_LTF_1X = 1,
  8071. QCA_WLAN_HE_LTF_2X = 2,
  8072. QCA_WLAN_HE_LTF_4X = 3,
  8073. };
  8074. /**
  8075. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8076. *
  8077. * Indicates the HE trigger frame MAC padding duration value.
  8078. *
  8079. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8080. * process the trigger frame.
  8081. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8082. * trigger frame.
  8083. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8084. * trigger frame.
  8085. */
  8086. enum qca_wlan_he_mac_padding_dur {
  8087. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8088. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8089. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8090. };
  8091. /**
  8092. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8093. *
  8094. * Indicates the HE Operating mode control channel width setting value.
  8095. *
  8096. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8097. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8098. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8099. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8100. */
  8101. enum qca_wlan_he_om_ctrl_ch_bw {
  8102. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8103. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8104. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8105. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8106. };
  8107. /**
  8108. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8109. *
  8110. * Indicates the frame types to use for keep alive data.
  8111. *
  8112. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8113. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8114. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8115. */
  8116. enum qca_wlan_keep_alive_data_type {
  8117. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8118. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8119. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8120. };
  8121. /**
  8122. * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
  8123. * HE operating mode control transmit request. These attributes are
  8124. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
  8125. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  8126. *
  8127. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  8128. * indicates the maximum number of spatial streams, NSS, that the STA
  8129. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  8130. * and is set to NSS - 1.
  8131. *
  8132. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  8133. * indicates the operating channel width supported by the STA for both
  8134. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  8135. *
  8136. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  8137. * indicates the all trigger based UL MU operations by the STA.
  8138. * 0 - UL MU operations are enabled by the STA.
  8139. * 1 - All triggered UL MU transmissions are suspended by the STA.
  8140. *
  8141. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  8142. * indicates the maximum number of space-time streams, NSTS, that
  8143. * the STA supports in transmission and is set to NSTS - 1.
  8144. *
  8145. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  8146. * combined with the UL MU Disable subfield and the recipient's setting
  8147. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  8148. * capabilities to determine which HE TB PPDUs are possible by the
  8149. * STA to transmit.
  8150. * 0 - UL MU data operations are enabled by the STA.
  8151. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  8152. * bit is not set, else UL MU Tx is suspended.
  8153. *
  8154. */
  8155. enum qca_wlan_vendor_attr_he_omi_tx {
  8156. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  8157. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  8158. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  8159. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  8160. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  8161. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  8162. /* keep last */
  8163. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
  8164. QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
  8165. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
  8166. };
  8167. /**
  8168. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  8169. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  8170. *
  8171. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  8172. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  8173. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  8174. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  8175. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  8176. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  8177. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  8178. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  8179. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  8180. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  8181. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  8182. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  8183. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  8184. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  8185. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  8186. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  8187. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  8188. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  8189. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  8190. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  8191. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  8192. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  8193. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  8194. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  8195. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  8196. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  8197. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  8198. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  8199. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  8200. */
  8201. enum qca_wlan_vendor_phy_mode {
  8202. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  8203. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  8204. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  8205. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  8206. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  8207. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  8208. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  8209. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  8210. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  8211. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  8212. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  8213. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  8214. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  8215. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  8216. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  8217. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  8218. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  8219. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  8220. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  8221. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  8222. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  8223. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  8224. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  8225. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  8226. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  8227. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  8228. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  8229. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  8230. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  8231. };
  8232. /* Attributes for data used by
  8233. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  8234. */
  8235. enum qca_wlan_vendor_attr_wifi_test_config {
  8236. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  8237. /* 8-bit unsigned value to configure the driver to enable/disable
  8238. * WMM feature. This attribute is used to configure testbed device.
  8239. * 1-enable, 0-disable
  8240. */
  8241. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  8242. /* 8-bit unsigned value to configure the driver to accept/reject
  8243. * the addba request from peer. This attribute is used to configure
  8244. * the testbed device.
  8245. * 1-accept addba, 0-reject addba
  8246. */
  8247. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  8248. /* 8-bit unsigned value to configure the driver to send or not to
  8249. * send the addba request to peer.
  8250. * This attribute is used to configure the testbed device.
  8251. * 1-send addba, 0-do not send addba
  8252. */
  8253. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  8254. /* 8-bit unsigned value to indicate the HE fragmentation support.
  8255. * Uses enum he_fragmentation_val values.
  8256. * This attribute is used to configure the testbed device to
  8257. * allow the advertised hardware capabilities to be downgraded
  8258. * for testing purposes.
  8259. */
  8260. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  8261. /* 8-bit unsigned value to indicate the HE MCS support.
  8262. * Uses enum he_mcs_config values.
  8263. * This attribute is used to configure the testbed device to
  8264. * allow the advertised hardware capabilities to be downgraded
  8265. * for testing purposes.
  8266. */
  8267. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  8268. /* 8-bit unsigned value to configure the driver to allow or not to
  8269. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  8270. * This attribute is used to configure the testbed device.
  8271. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  8272. */
  8273. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  8274. /* 8-bit unsigned value to configure the driver to add a
  8275. * new BA session or delete the existing BA session for
  8276. * given TID. ADDBA command uses the buffer size and tid
  8277. * configuration if user specifies the values else default
  8278. * value for buffer size is used for all tids if the tid
  8279. * also not specified. For DEL_BA command TID value is
  8280. * required to process the command.
  8281. * Uses enum qca_wlan_ba_session_config values.
  8282. * This attribute is used to configure the testbed device.
  8283. */
  8284. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  8285. /* 16-bit unsigned value to configure the buffer size in addba
  8286. * request and response frames.
  8287. * This attribute is used to configure the testbed device.
  8288. * The range of the value is 0 to 256.
  8289. */
  8290. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  8291. /* 8-bit unsigned value to configure the buffer size in addba
  8292. * request and response frames.
  8293. * This attribute is used to configure the testbed device.
  8294. */
  8295. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  8296. /* 8-bit unsigned value to configure the no ack policy.
  8297. * To configure no ack policy, access category value
  8298. * is required to process the command.
  8299. * This attribute is used to configure the testbed device.
  8300. * 1 - enable no ack, 0 - disable no ack
  8301. */
  8302. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  8303. /* 8-bit unsigned value to configure the AC for no ack policy
  8304. * This attribute is used to configure the testbed device.
  8305. * uses the enum qca_wlan_ac_type values
  8306. */
  8307. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  8308. /* 8-bit unsigned value to configure the HE LTF
  8309. * This attribute is used to configure the testbed device.
  8310. * Uses the enum qca_wlan_he_ltf_cfg values.
  8311. */
  8312. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  8313. /* 8-bit unsigned value to configure the tx beamformee.
  8314. * This attribute is used to configure the testbed device.
  8315. * 1 - enable, 0 - disable.
  8316. */
  8317. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  8318. /* 8-bit unsigned value to configure the tx beamformee number of
  8319. * space-time streams.
  8320. * This attribute is used to configure the testbed device.
  8321. * The range of the value is 0 to 8
  8322. */
  8323. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  8324. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  8325. * This attribute is used to configure the testbed device.
  8326. * Uses the enum qca_wlan_ac_type values.
  8327. */
  8328. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  8329. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  8330. * To configure MU EDCA AIFSN value, MU EDCA access category value
  8331. * is required to process the command.
  8332. * This attribute is used to configure the testbed device.
  8333. */
  8334. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  8335. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  8336. * given AC.
  8337. * To configure MU EDCA ECW min value, MU EDCA access category value
  8338. * is required to process the command.
  8339. * This attribute is used to configure the testbed device.
  8340. */
  8341. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  8342. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  8343. * given AC.
  8344. * To configure MU EDCA ECW max value, MU EDCA access category value
  8345. * is required to process the command.
  8346. * This attribute is used to configure the testbed device.
  8347. */
  8348. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  8349. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  8350. * To configure MU EDCA timer value, MU EDCA access category value
  8351. * is required to process the command.
  8352. * This attribute is used to configure the testbed device.
  8353. */
  8354. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  8355. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  8356. * duration.
  8357. * This attribute is used to configure the testbed device.
  8358. * Uses the enum qca_wlan_he_mac_padding_dur values.
  8359. */
  8360. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  8361. /* 8-bit unsigned value to override the MU EDCA params to defaults
  8362. * regardless of the AP beacon MU EDCA params. If it is enabled use
  8363. * the default values else use the MU EDCA params from AP beacon.
  8364. * This attribute is used to configure the testbed device.
  8365. * 1 - enable override, 0 - disable.
  8366. */
  8367. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  8368. /* 8-bit unsigned value to configure the support for receiving
  8369. * an MPDU that contains an operating mode control subfield.
  8370. * This attribute is used to configure the testbed device.
  8371. * 1-enable, 0-disable.
  8372. */
  8373. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  8374. /* Nested attribute values required to setup the TWT session.
  8375. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  8376. * information to set up the session. It contains broadcast flags,
  8377. * set_up flags, trigger value, flow type, flow ID, wake interval
  8378. * exponent, protection, target wake time, wake duration, wake interval
  8379. * mantissa. These nested attributes are used to setup a host triggered
  8380. * TWT session.
  8381. */
  8382. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  8383. /* This nested attribute is used to terminate the current TWT session.
  8384. * It does not currently carry any attributes.
  8385. */
  8386. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  8387. /* This nested attribute is used to suspend the current TWT session.
  8388. * It does not currently carry any attributes.
  8389. */
  8390. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  8391. /* Nested attribute values to indicate the request for resume.
  8392. * This attribute is used to resume the TWT session.
  8393. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  8394. * parameters required to resume the TWT session.
  8395. */
  8396. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  8397. /* 8-bit unsigned value to set the HE operating mode control
  8398. * (OM CTRL) Channel Width subfield.
  8399. * The Channel Width subfield indicates the operating channel width
  8400. * supported by the STA for both reception and transmission.
  8401. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  8402. * This setting is cleared with the
  8403. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8404. * flag attribute to reset defaults.
  8405. * This attribute is used to configure the testbed device.
  8406. */
  8407. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  8408. /* 8-bit unsigned value to configure the number of spatial
  8409. * streams in HE operating mode control field.
  8410. * This setting is cleared with the
  8411. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8412. * flag attribute to reset defaults.
  8413. * This attribute is used to configure the testbed device.
  8414. */
  8415. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  8416. /* Flag attribute to configure the UL MU disable bit in
  8417. * HE operating mode control field.
  8418. * This setting is cleared with the
  8419. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8420. * flag attribute to reset defaults.
  8421. * This attribute is used to configure the testbed device.
  8422. */
  8423. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  8424. /* Flag attribute to clear the previously set HE operating mode
  8425. * control field configuration.
  8426. * This attribute is used to configure the testbed device to reset
  8427. * defaults to clear any previously set HE operating mode control
  8428. * field configuration.
  8429. */
  8430. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  8431. /* 8-bit unsigned value to configure HE single user PPDU
  8432. * transmission. By default this setting is disabled and it
  8433. * is disabled in the reset defaults of the device configuration.
  8434. * This attribute is used to configure the testbed device.
  8435. * 1-enable, 0-disable
  8436. */
  8437. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  8438. /* 8-bit unsigned value to configure action frame transmission
  8439. * in HE trigger based PPDU transmission.
  8440. * By default this setting is disabled and it is disabled in
  8441. * the reset defaults of the device configuration.
  8442. * This attribute is used to configure the testbed device.
  8443. * 1-enable, 0-disable
  8444. */
  8445. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  8446. /* Nested attribute to indicate HE operating mode control field
  8447. * transmission. It contains operating mode control field Nss,
  8448. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  8449. * These nested attributes are used to send HE operating mode control
  8450. * with configured values.
  8451. * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
  8452. * This attribute is used to configure the testbed device.
  8453. */
  8454. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
  8455. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  8456. * support for the reception of a frame that carries an HE variant
  8457. * HT Control field.
  8458. * This attribute is used to configure the testbed device.
  8459. * 1-enable, 0-disable
  8460. */
  8461. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  8462. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  8463. * This attribute is used to configure the testbed device.
  8464. * 1-enable, 0-disable
  8465. */
  8466. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  8467. /* 8-bit unsigned value to configure HE testbed defaults.
  8468. * This attribute is used to configure the testbed device.
  8469. * 1-set the device HE capabilities to testbed defaults.
  8470. * 0-reset the device HE capabilities to supported config.
  8471. */
  8472. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  8473. /* 8-bit unsigned value to configure twt request support.
  8474. * This attribute is used to configure the testbed device.
  8475. * 1-enable, 0-disable.
  8476. */
  8477. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  8478. /* 8-bit unsigned value to configure protection for Management
  8479. * frames when PMF is enabled for the association.
  8480. * This attribute is used to configure the testbed device.
  8481. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  8482. */
  8483. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  8484. /* Flag attribute to inject Disassociation frame to the connected AP.
  8485. * This attribute is used to configure the testbed device.
  8486. */
  8487. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  8488. /* 8-bit unsigned value to configure an override for the RSNXE Used
  8489. * subfield in the MIC control field of the FTE in FT Reassociation
  8490. * Request frame.
  8491. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  8492. * This attribute is used to configure the testbed device.
  8493. * This attribute can be configured when STA is in disconnected or
  8494. * associated state and the configuration is valid until the next
  8495. * disconnection.
  8496. */
  8497. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  8498. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  8499. * Switch Announcement) when STA is in connected state.
  8500. * 0 - Default behavior, 1 - Ignore CSA.
  8501. * This attribute is used to configure the testbed device.
  8502. * This attribute can be configured when STA is in disconnected or
  8503. * associated state and the configuration is valid until the next
  8504. * disconnection.
  8505. */
  8506. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  8507. /* Nested attribute values required to configure OCI (Operating Channel
  8508. * Information). Attributes defined in enum
  8509. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  8510. * This attribute is used to configure the testbed device.
  8511. * This attribute can be configured when STA is in disconnected or
  8512. * associated state and the configuration is valid until the next
  8513. * disconnection.
  8514. */
  8515. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  8516. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  8517. * Query timeout. If this configuration is enabled STA shall not send
  8518. * Deauthentication frmae when SA Query times out (mainly, after a
  8519. * channel switch when OCV is enabled).
  8520. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  8521. * This attribute is used to configure the testbed device.
  8522. * This attribute can be configured only when STA is in associated state
  8523. * and the configuration is valid until the disconnection.
  8524. */
  8525. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  8526. /* 8-bit unsigned value to configure the driver/firmware to start or
  8527. * stop transmitting FILS discovery frames.
  8528. * 0 - Stop transmitting FILS discovery frames
  8529. * 1 - Start transmitting FILS discovery frames
  8530. * This attribute is used to configure the testbed device.
  8531. * This attribute can be configured only in AP mode and the
  8532. * configuration is valid until AP restart.
  8533. */
  8534. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  8535. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8536. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  8537. * information field.
  8538. * 0 - Disable full bandwidth UL MU-MIMO subfield
  8539. * 1 - Enable full bandwidth UL MU-MIMO subfield
  8540. * This attribute is used to configure the testbed device.
  8541. */
  8542. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  8543. /* 16-bit unsigned value to configure the driver with a specific BSS
  8544. * max idle period to advertise in the BSS Max Idle Period element
  8545. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  8546. * This attribute is used to configure the testbed device.
  8547. */
  8548. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  8549. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  8550. * for data transmission.
  8551. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  8552. * This attribute is used to configure the testbed device.
  8553. */
  8554. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  8555. /* 8-bit unsigned value to configure the driver to disable data and
  8556. * management response frame transmission to test the BSS max idle
  8557. * feature.
  8558. * 0 - Default behavior, 1 - Disable data and management response Tx.
  8559. * This attribute is used to configure the testbed device.
  8560. */
  8561. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  8562. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8563. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  8564. * information field.
  8565. * 0 - Disable Punctured Preamble Rx subfield
  8566. * 1 - Enable Punctured Preamble Rx subfield
  8567. * This attribute is used to configure the testbed device.
  8568. */
  8569. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  8570. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  8571. * requirement mismatch for 6 GHz connection.
  8572. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  8573. * This attribute is used to configure the testbed device.
  8574. */
  8575. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  8576. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  8577. * connection with all security modes.
  8578. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  8579. * modes.
  8580. * This attribute is used for testing purposes.
  8581. */
  8582. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  8583. /* 8-bit unsigned value to configure the driver to transmit data with
  8584. * ER SU PPDU type.
  8585. *
  8586. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  8587. * This attribute is used for testing purposes.
  8588. */
  8589. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  8590. /* 8-bit unsigned value to configure the driver to use Data or
  8591. * Management frame type for keep alive data.
  8592. * Uses enum qca_wlan_keep_alive_data_type values.
  8593. *
  8594. * This attribute is used for testing purposes.
  8595. */
  8596. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  8597. /* 8-bit unsigned value to configure the driver to use scan request
  8598. * BSSID value in Probe Request frame RA(A1) during the scan. The
  8599. * driver saves this configuration and applies this setting to all user
  8600. * space scan requests until the setting is cleared. If this
  8601. * configuration is set, the driver uses the BSSID value from the scan
  8602. * request to set the RA(A1) in the Probe Request frames during the
  8603. * scan.
  8604. *
  8605. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  8606. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  8607. * This attribute is used for testing purposes.
  8608. */
  8609. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  8610. /* 8-bit unsigned value to configure the driver to enable/disable the
  8611. * BSS max idle period support.
  8612. *
  8613. * 0 - Disable the BSS max idle support.
  8614. * 1 - Enable the BSS max idle support.
  8615. * This attribute is used for testing purposes.
  8616. */
  8617. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  8618. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8619. * disable Rx control frame to MultiBSS subfield in the HE MAC
  8620. * capabilities information field.
  8621. * 0 - Disable Rx control frame to MultiBSS subfield
  8622. * 1 - Enable Rx control frame to MultiBSS subfield
  8623. * This attribute is used to configure the testbed device.
  8624. */
  8625. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  8626. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8627. * disable Broadcast TWT support subfield in the HE MAC capabilities
  8628. * information field.
  8629. * 0 - Disable Broadcast TWT support subfield
  8630. * 1 - Enable Broadcast TWT support subfield
  8631. * This attribute is used to configure the testbed device.
  8632. */
  8633. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  8634. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  8635. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  8636. * and if the FW supports this capability too, then the STA host
  8637. * advertises this capability to AP over assoc request frame. This
  8638. * attribute will not have any effect on legacy devices with no 802.11be
  8639. * support.
  8640. * 0 - Default behavior
  8641. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  8642. * This attribute is used to configure the testbed device.
  8643. */
  8644. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  8645. /* keep last */
  8646. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  8647. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  8648. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  8649. };
  8650. /**
  8651. * enum qca_wlan_twt_operation - Operation of the config TWT request
  8652. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  8653. * The response for the respective operations can be either synchronous or
  8654. * asynchronous (wherever specified). If synchronous, the response to this
  8655. * operation is obtained in the corresponding vendor command reply to the user
  8656. * space. For the asynchronous case the response is obtained as an event with
  8657. * the same operation type.
  8658. *
  8659. * Drivers shall support either of these modes but not both simultaneously.
  8660. * This support for asynchronous mode is advertised through the flag
  8661. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  8662. * the driver shall support synchronous mode.
  8663. *
  8664. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  8665. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8666. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  8667. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  8668. * synchronous or asynchronous operation.
  8669. *
  8670. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  8671. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8672. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  8673. *
  8674. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  8675. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8676. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8677. * This terminate can either get triggered by the user space or can as well be
  8678. * a notification from the firmware if it initiates a terminate.
  8679. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8680. * the request from user space can either be a synchronous or asynchronous
  8681. * operation.
  8682. *
  8683. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  8684. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8685. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8686. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8687. * this is either a synchronous or asynchronous operation.
  8688. *
  8689. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  8690. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8691. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  8692. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  8693. * request.
  8694. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8695. * capability, this is either a synchronous or asynchronous operation.
  8696. *
  8697. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  8698. * combination of suspend and resume in a single request. Required parameters
  8699. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  8700. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  8701. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8702. * capability, this is either a synchronous or asynchronous operation.
  8703. *
  8704. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  8705. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  8706. * session is setup. It's a synchronous operation.
  8707. *
  8708. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  8709. * Valid only after the TWT session is setup. It's a synchronous operation.
  8710. *
  8711. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  8712. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  8713. * operation.
  8714. *
  8715. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is
  8716. * ready for a new TWT session setup after it issued a twt teardown.
  8717. *
  8718. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  8719. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  8720. * the enum qca_wlan_vendor_attr_twt_set_param.
  8721. *
  8722. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  8723. * related information for example TWT required bit in AP capabilities etc.
  8724. * The reason for the notification is sent using
  8725. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  8726. */
  8727. enum qca_wlan_twt_operation {
  8728. QCA_WLAN_TWT_SET = 0,
  8729. QCA_WLAN_TWT_GET = 1,
  8730. QCA_WLAN_TWT_TERMINATE = 2,
  8731. QCA_WLAN_TWT_SUSPEND = 3,
  8732. QCA_WLAN_TWT_RESUME = 4,
  8733. QCA_WLAN_TWT_NUDGE = 5,
  8734. QCA_WLAN_TWT_GET_STATS = 6,
  8735. QCA_WLAN_TWT_CLEAR_STATS = 7,
  8736. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  8737. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  8738. QCA_WLAN_TWT_SET_PARAM = 10,
  8739. QCA_WLAN_TWT_NOTIFY = 11,
  8740. };
  8741. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  8742. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  8743. *
  8744. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  8745. * u8 attribute. Specify the TWT operation of this request. Possible values
  8746. * are defined in enum qca_wlan_twt_operation. The parameters for the
  8747. * respective operation is specified through
  8748. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  8749. *
  8750. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  8751. * parameters configured for TWT. These parameters are represented by
  8752. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  8753. * enum qca_wlan_vendor_attr_twt_set_param or
  8754. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  8755. *
  8756. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  8757. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  8758. * The values used by this attribute are defined in
  8759. * enum qca_wlan_vendor_twt_status.
  8760. */
  8761. enum qca_wlan_vendor_attr_config_twt {
  8762. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  8763. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  8764. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  8765. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  8766. /* keep last */
  8767. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  8768. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  8769. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  8770. };
  8771. /**
  8772. * qca_wlan_twt_setup_state: Represents the TWT session states.
  8773. *
  8774. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  8775. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  8776. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  8777. */
  8778. enum qca_wlan_twt_setup_state {
  8779. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  8780. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  8781. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  8782. };
  8783. /**
  8784. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  8785. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  8786. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  8787. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  8788. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8789. *
  8790. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  8791. * Disable (flag attribute not present) - Individual TWT
  8792. * Enable (flag attribute present) - Broadcast TWT.
  8793. * Individual means the session is between the STA and the AP.
  8794. * This session is established using a separate negotiation between
  8795. * STA and AP.
  8796. * Broadcast means the session is across multiple STAs and an AP. The
  8797. * configuration parameters are announced in Beacon frames by the AP.
  8798. * This is used in
  8799. * 1. TWT SET Request and Response
  8800. * 2. TWT GET Response
  8801. *
  8802. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  8803. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  8804. * specify the TWT request type. This is used in TWT SET operation.
  8805. *
  8806. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  8807. * Enable (flag attribute present) - TWT with trigger support.
  8808. * Disable (flag attribute not present) - TWT without trigger support.
  8809. * Trigger means the AP will send the trigger frame to allow STA to send data.
  8810. * Without trigger, the STA will wait for the MU EDCA timer before
  8811. * transmitting the data.
  8812. * This is used in
  8813. * 1. TWT SET Request and Response
  8814. * 2. TWT GET Response
  8815. *
  8816. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  8817. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  8818. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  8819. * NULL frame to AP.
  8820. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  8821. * This is a required parameter for
  8822. * 1. TWT SET Request and Response
  8823. * 2. TWT GET Response
  8824. *
  8825. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  8826. * Flow ID is the unique identifier for each TWT session.
  8827. * If not provided then dialog ID will be set to zero.
  8828. * This is an optional parameter for
  8829. * 1. TWT SET Request and Response
  8830. * 2. TWT GET Request and Response
  8831. * 3. TWT TERMINATE Request and Response
  8832. * 4. TWT SUSPEND Request and Response
  8833. * Flow Id values from 0 to 254 represent a single TWT session
  8834. * Flow ID value of 255 represents all twt sessions for the following
  8835. * 1. TWT TERMINATE Request and Response
  8836. * 2. TWT SUSPEND Request and Response
  8837. * 4. TWT CLEAR STATISTICS request
  8838. * 5. TWT GET STATISTICS request and response
  8839. * If an invalid dialog id is provided, status
  8840. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  8841. *
  8842. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  8843. * This attribute (exp) is used along with the mantissa to derive the
  8844. * wake interval using the following formula:
  8845. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  8846. * Wake interval is the interval between 2 successive SP.
  8847. * This is a required parameter for
  8848. * 1. TWT SET Request and Response
  8849. * 2. TWT GET Response
  8850. *
  8851. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  8852. * Enable (flag attribute present) - Protection required.
  8853. * Disable (flag attribute not present) - Protection not required.
  8854. * If protection is enabled, then the AP will use protection
  8855. * mechanism using RTS/CTS to self to reserve the airtime.
  8856. * This is used in
  8857. * 1. TWT SET Request and Response
  8858. * 2. TWT GET Response
  8859. *
  8860. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  8861. * This attribute is used as the SP offset which is the offset from
  8862. * TSF after which the wake happens. The units are in microseconds. If
  8863. * this attribute is not provided, then the value will be set to zero.
  8864. * This is an optional parameter for
  8865. * 1. TWT SET Request and Response
  8866. * 2. TWT GET Response
  8867. *
  8868. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  8869. * This is the duration of the service period. This is specified as
  8870. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  8871. * This is a required parameter for
  8872. * 1. TWT SET Request and Response
  8873. * 2. TWT GET Response
  8874. *
  8875. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  8876. * This attribute is used to configure wake interval mantissa.
  8877. * The units are in TU.
  8878. * This is a required parameter for
  8879. * 1. TWT SET Request and Response
  8880. * 2. TWT GET Response
  8881. *
  8882. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  8883. * This field is applicable for TWT response only.
  8884. * This contains status values in enum qca_wlan_vendor_twt_status
  8885. * and is passed to the userspace. This is used in TWT SET operation.
  8886. * This is a required parameter for
  8887. * 1. TWT SET Response
  8888. * 2. TWT TERMINATE Response
  8889. * 3. TWT SUSPEND Response
  8890. * 4. TWT RESUME Response
  8891. * 5. TWT NUDGE Response
  8892. *
  8893. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  8894. * This field is applicable for TWT response only.
  8895. * This field contains response type from the TWT responder and is
  8896. * passed to the userspace. The values for this field are defined in
  8897. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  8898. * response.
  8899. *
  8900. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  8901. * In TWT setup command this field contains absolute TSF that will
  8902. * be used by TWT requester during setup.
  8903. * In TWT response this field contains absolute TSF value of the
  8904. * wake time received from the TWT responder and is passed to
  8905. * the userspace.
  8906. * This is an optional parameter for
  8907. * 1. TWT SET Request
  8908. * This is a required parameter for
  8909. * 1. TWT SET Response
  8910. * 2. TWT GET Response
  8911. *
  8912. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  8913. * Enable (flag attribute present) - Indicates that the TWT responder
  8914. * supports reception of TWT information frame from the TWT requestor.
  8915. * Disable (flag attribute not present) - Indicates that the responder
  8916. * doesn't support reception of TWT information frame from requestor.
  8917. * This is used in
  8918. * 1. TWT SET Response
  8919. * 2. TWT GET Response
  8920. *
  8921. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  8922. * Represents the MAC address of the peer for which the TWT session
  8923. * is being configured. This is used in AP mode to represent the respective
  8924. * client
  8925. * In AP mode, this is a required parameter in response for
  8926. * 1. TWT SET
  8927. * 2. TWT GET
  8928. * 3. TWT TERMINATE
  8929. * 4. TWT SUSPEND
  8930. * In STA mode, this is an optional parameter in request and response for
  8931. * the above four TWT operations.
  8932. * In AP mode, this is a required parameter in request for
  8933. * 1. TWT GET
  8934. * 2. TWT TERMINATE
  8935. *
  8936. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  8937. * Minimum tolerance limit of wake interval parameter in microseconds.
  8938. *
  8939. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  8940. * Maximum tolerance limit of wake interval parameter in microseconds.
  8941. *
  8942. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  8943. * Minimum tolerance limit of wake duration parameter in microseconds.
  8944. *
  8945. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  8946. * Maximum tolerance limit of wake duration parameter in microseconds.
  8947. *
  8948. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  8949. * TWT state for the given dialog id. The values for this are represented
  8950. * by enum qca_wlan_twt_setup_state.
  8951. * This is obtained through TWT GET operation.
  8952. *
  8953. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  8954. * This attribute is used to configure wake interval mantissa.
  8955. * The unit is microseconds. This attribute, when specified, takes
  8956. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  8957. * This parameter is used for
  8958. * 1. TWT SET Request and Response
  8959. * 2. TWT GET Response
  8960. *
  8961. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  8962. * This attribute is used to configure Broadcast TWT ID.
  8963. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  8964. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  8965. * This parameter is used for
  8966. * 1. TWT SET Request
  8967. * 2. TWT TERMINATE Request
  8968. *
  8969. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  8970. * This attribute is used to configure Broadcast TWT recommendation.
  8971. * The Broadcast TWT Recommendation subfield contains a value that indicates
  8972. * recommendations on the types of frames that are transmitted by TWT
  8973. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  8974. * The allowed values are 0 - 3.
  8975. * This parameter is used for
  8976. * 1. TWT SET Request
  8977. *
  8978. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  8979. * This attribute is used to configure Broadcast TWT Persistence.
  8980. * The Broadcast TWT Persistence subfield indicates the number of
  8981. * TBTTs during which the Broadcast TWT SPs corresponding to this
  8982. * broadcast TWT Parameter set are present. The number of beacon intervals
  8983. * during which the Broadcast TWT SPs are present is equal to the value in the
  8984. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  8985. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  8986. * This parameter is used for
  8987. * 1. TWT SET Request
  8988. *
  8989. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  8990. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  8991. * from TWT response frame.
  8992. * This parameter is used for
  8993. * 1. TWT SET Response
  8994. * 2. TWT GET Response
  8995. *
  8996. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  8997. * This attribute is used to configure the announce timeout value (in us) in
  8998. * firmware. This timeout value is only applicable for announced TWT. If
  8999. * timeout value is non-zero then firmware waits upto timeout value to use
  9000. * data frame as announcement frame. If timeout value is 0 then firmware sends
  9001. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  9002. * firmware is 0.
  9003. * This parameter is used for
  9004. * 1. TWT SET Request
  9005. */
  9006. enum qca_wlan_vendor_attr_twt_setup {
  9007. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  9008. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  9009. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  9010. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  9011. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  9012. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  9013. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  9014. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  9015. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  9016. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  9017. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  9018. /* TWT Response only attributes */
  9019. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  9020. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  9021. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  9022. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  9023. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  9024. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  9025. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  9026. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  9027. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  9028. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  9029. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  9030. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  9031. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  9032. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  9033. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  9034. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  9035. /* keep last */
  9036. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  9037. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  9038. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  9039. };
  9040. /**
  9041. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  9042. * TWT operation
  9043. *
  9044. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  9045. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  9046. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  9047. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  9048. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  9049. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  9050. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  9051. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  9052. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  9053. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  9054. * request/response frame
  9055. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  9056. * frame
  9057. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  9058. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  9059. * unknown reason
  9060. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  9061. * suspend state
  9062. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  9063. * invalid IE in the received TWT frame
  9064. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  9065. * the responder are not in the specified range
  9066. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  9067. * session due to request from the responder. Used on the TWT_TERMINATE
  9068. * notification from the firmware.
  9069. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  9070. * session due to roaming. Used on the TWT_TERMINATE notification from the
  9071. * firmware.
  9072. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  9073. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  9074. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  9075. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  9076. * request due to roaming in progress.
  9077. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  9078. * setup request due to channel switch in progress.
  9079. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  9080. * request due to scan in progress.
  9081. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  9082. * terminate an existing TWT session on power save exit request from userspace.
  9083. * Used on the TWT_TERMINATE notification from the driver/firmware.
  9084. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  9085. * required bit in its capabilities.
  9086. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  9087. * the TWT required bit(1->0) in its capabilities.
  9088. */
  9089. enum qca_wlan_vendor_twt_status {
  9090. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  9091. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  9092. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  9093. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  9094. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  9095. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  9096. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  9097. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  9098. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  9099. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  9100. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  9101. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  9102. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  9103. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  9104. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  9105. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  9106. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  9107. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  9108. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  9109. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  9110. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  9111. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  9112. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  9113. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  9114. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  9115. };
  9116. /**
  9117. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  9118. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  9119. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  9120. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9121. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9122. *
  9123. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  9124. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  9125. * These attributes are used as the SP offset which is the offset from TSF after
  9126. * which the wake happens. The units are in microseconds. Please note that
  9127. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  9128. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  9129. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  9130. * will be set to zero.
  9131. *
  9132. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  9133. * This attribute represents the next TWT subfield size.
  9134. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9135. * and 4 for 64 bits.
  9136. *
  9137. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  9138. * Flow ID is the unique identifier for each TWT session. This attribute
  9139. * represents the respective TWT session to resume.
  9140. * Flow Id values from 0 to 254 represent a single TWT session
  9141. * Flow ID value of 255 represents all TWT sessions.
  9142. * If an invalid dialog id is provided, status
  9143. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9144. *
  9145. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  9146. * Represents the MAC address of the peer to which TWT Resume is
  9147. * being sent. This is used in AP mode to represent the respective
  9148. * client and is a required parameter. In STA mode, this is an optional
  9149. * parameter
  9150. *
  9151. */
  9152. enum qca_wlan_vendor_attr_twt_resume {
  9153. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  9154. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  9155. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  9156. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  9157. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  9158. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  9159. /* keep last */
  9160. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  9161. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  9162. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  9163. };
  9164. /**
  9165. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  9166. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  9167. * and resume in a single request. These attributes are sent as part of
  9168. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9169. *
  9170. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9171. * Flow ID is the unique identifier for each TWT session. This attribute
  9172. * represents the respective TWT session to suspend and resume.
  9173. *
  9174. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9175. * Flow ID is the unique identifier for each TWT session. This attribute
  9176. * represents the respective TWT session to suspend and resume.
  9177. * Flow Id values from 0 to 254 represent a single TWT session
  9178. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  9179. * and response.
  9180. * If an invalid dialog id is provided, status
  9181. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9182. *
  9183. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  9184. * This attribute is used as the SP offset which is the offset from
  9185. * TSF after which the wake happens. The units are in microseconds.
  9186. *
  9187. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  9188. * This attribute represents the next TWT subfield size.
  9189. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9190. * and 4 for 64 bits.
  9191. *
  9192. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  9193. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  9194. * being sent. This is used in AP mode to represent the respective
  9195. * client and is a required parameter. In STA mode, this is an optional
  9196. * parameter.
  9197. *
  9198. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  9199. * This field contains absolute TSF value of the time at which twt
  9200. * sesion will be resumed.
  9201. */
  9202. enum qca_wlan_vendor_attr_twt_nudge {
  9203. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  9204. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  9205. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  9206. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  9207. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  9208. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  9209. /* keep last */
  9210. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  9211. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  9212. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  9213. };
  9214. /**
  9215. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  9216. * TWT (Target Wake Time) get statistics and clear statistics request.
  9217. * These attributes are sent as part of
  9218. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9219. *
  9220. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  9221. * Flow ID is the unique identifier for each TWT session. This attribute
  9222. * represents the respective TWT session for get and clear TWT statistics.
  9223. * Flow Id values from 0 to 254 represent a single TWT session
  9224. * Flow ID value of 255 represents all TWT sessions in
  9225. * 1) TWT GET STATISTICS request and response
  9226. * 2) TWT CLEAR STATISTICS request
  9227. *
  9228. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  9229. * Represents the MAC address of the peer for which TWT Statistics
  9230. * is required.
  9231. * In AP mode this is used to represent the respective
  9232. * client and is a required parameter for
  9233. * 1) TWT GET STATISTICS request and response
  9234. * 2) TWT CLEAR STATISTICS request and response
  9235. * In STA mode, this is an optional parameter.
  9236. *
  9237. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  9238. * This is the duration of the service period in microseconds.
  9239. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9240. *
  9241. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  9242. * Average of actual wake duration observed so far. Unit is microseconds.
  9243. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9244. *
  9245. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  9246. * Number of TWT service period elapsed so far.
  9247. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9248. *
  9249. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9250. * This is the minimum value of wake duration observed across
  9251. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9252. * microseconds.
  9253. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9254. *
  9255. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  9256. * This is the maximum value of wake duration observed across
  9257. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  9258. * microseconds.
  9259. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9260. *
  9261. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  9262. * Average number of MPDU's transmitted successfully across
  9263. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9264. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9265. *
  9266. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  9267. * Average number of MPDU's received successfully across
  9268. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9269. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9270. *
  9271. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  9272. * Average number of bytes transmitted successfully across
  9273. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9274. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9275. *
  9276. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  9277. * Average number of bytes received successfully across
  9278. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  9279. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9280. *
  9281. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  9282. * Status of the TWT GET STATISTICS request.
  9283. * This contains status values in enum qca_wlan_vendor_twt_status
  9284. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9285. */
  9286. enum qca_wlan_vendor_attr_twt_stats {
  9287. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  9288. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  9289. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  9290. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  9291. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  9292. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  9293. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  9294. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  9295. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  9296. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  9297. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  9298. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  9299. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  9300. /* keep last */
  9301. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  9302. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  9303. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  9304. };
  9305. /**
  9306. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  9307. * supported by the device and peer.
  9308. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  9309. *
  9310. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  9311. * TWT non-scheduling STA. This capability is advertised in the HE
  9312. * capability/Extended capabilities information element in the
  9313. * Association request frame by the device.
  9314. *
  9315. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  9316. * by the TWT scheduling AP. This capability is advertised in the extended
  9317. * capabilities/HE capabilities information element.
  9318. *
  9319. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  9320. * for the broadcast TWT functionality. On responder side, this indicates
  9321. * support for the role of broadcast TWT scheduling functionality. This
  9322. * capability is advertised in the HE capabilities information element.
  9323. *
  9324. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  9325. * This capability is advertised in the HE capabilities information element.
  9326. *
  9327. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  9328. * that it mandates the associated HE STAs to support TWT. This capability is
  9329. * advertised by AP in the HE Operation Parameters field of the HE operation
  9330. * information element.
  9331. */
  9332. enum qca_wlan_twt_capa {
  9333. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  9334. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  9335. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  9336. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  9337. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  9338. };
  9339. /**
  9340. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  9341. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  9342. * operation.
  9343. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  9344. * Represents the MAC address of the peer for which the TWT capabilities
  9345. * are being queried. This is used in AP mode to represent the respective
  9346. * client. In STA mode, this is an optional parameter.
  9347. *
  9348. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  9349. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  9350. * enum qca_wlan_twt_capa.
  9351. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  9352. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  9353. * enum qca_wlan_twt_capa.
  9354. */
  9355. enum qca_wlan_vendor_attr_twt_capability {
  9356. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  9357. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  9358. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  9359. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  9360. /* keep last */
  9361. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  9362. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  9363. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  9364. };
  9365. /**
  9366. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  9367. * TWT (Target Wake Time) related parameters. It is used when
  9368. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  9369. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9370. *
  9371. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  9372. * This attribute configures AC parameters to be used for all TWT
  9373. * sessions in AP mode.
  9374. * Uses the enum qca_wlan_ac_type values.
  9375. */
  9376. enum qca_wlan_vendor_attr_twt_set_param {
  9377. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  9378. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  9379. /* keep last */
  9380. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  9381. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  9382. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  9383. };
  9384. /**
  9385. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  9386. * the TWT responder
  9387. *
  9388. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  9389. * parameters that are different from TWT requesting STA suggested
  9390. * or demanded TWT parameters
  9391. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  9392. * parameters that are different from TWT requesting STA TWT suggested
  9393. * or demanded parameters
  9394. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  9395. * setup
  9396. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  9397. * setup.
  9398. */
  9399. enum qca_wlan_vendor_twt_setup_resp_type {
  9400. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  9401. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  9402. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  9403. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  9404. };
  9405. /**
  9406. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  9407. * Represents the setup type being requested for TWT.
  9408. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  9409. * parameters but relying on AP to fill the parameters during the negotiation.
  9410. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  9411. * values which the AP may accept or AP may provide alternative parameters
  9412. * which the STA may accept.
  9413. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  9414. * alternate parameters than the requested ones.
  9415. */
  9416. enum qca_wlan_vendor_twt_setup_req_type {
  9417. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  9418. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  9419. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  9420. };
  9421. /**
  9422. * enum qca_wlan_throughput_level - Current throughput level
  9423. *
  9424. * Indicates the current level of throughput calculated by driver. The driver
  9425. * may choose different thresholds to decide whether the throughput level is
  9426. * low or medium or high based on variety of parameters like physical link
  9427. * capacity of current connection, number of pakcets being dispatched per
  9428. * second etc. The throughput level events might not be consistent with the
  9429. * actual current throughput value being observed.
  9430. *
  9431. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  9432. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  9433. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  9434. */
  9435. enum qca_wlan_throughput_level {
  9436. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  9437. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  9438. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  9439. };
  9440. /**
  9441. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  9442. * report throughput changes from driver to user space. enum values are used
  9443. * for NL attributes sent with
  9444. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  9445. */
  9446. enum qca_wlan_vendor_attr_throughput_change {
  9447. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  9448. /*
  9449. * Indicates the direction of throughput in which the change is being
  9450. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  9451. */
  9452. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  9453. /*
  9454. * Indicates the newly observed throughput level.
  9455. * qca_wlan_throughput_level describes the possible range of values.
  9456. * u8 attribute.
  9457. */
  9458. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  9459. /*
  9460. * Indicates the driver's guidance on the new value to be set to
  9461. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  9462. * may optionally include this attribute.
  9463. */
  9464. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  9465. /*
  9466. * Indicates the driver's guidance on the new value to be set to
  9467. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  9468. * values are from -31 to 31. Driver may optionally include this
  9469. * attribute.
  9470. */
  9471. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  9472. /*
  9473. * Indicates the driver's guidance on the new value to be set to
  9474. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  9475. * optionally include this attribute.
  9476. */
  9477. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  9478. /* keep last */
  9479. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  9480. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  9481. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  9482. };
  9483. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  9484. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  9485. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9486. */
  9487. enum qca_wlan_nan_ext_subcmd_type {
  9488. /* Subcmd of type NAN Enable Request */
  9489. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  9490. /* Subcmd of type NAN Disable Request */
  9491. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  9492. };
  9493. /**
  9494. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  9495. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9496. */
  9497. enum qca_wlan_vendor_attr_nan_params {
  9498. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  9499. /* Carries NAN command for firmware component. Every vendor command
  9500. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  9501. * payload containing the NAN command. NLA_BINARY attribute.
  9502. */
  9503. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  9504. /* Indicates the type of NAN command sent with
  9505. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  9506. * describes the possible range of values. This attribute is mandatory
  9507. * if the command being issued is either
  9508. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  9509. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  9510. */
  9511. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  9512. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  9513. * band. This attribute is mandatory when command type is
  9514. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  9515. */
  9516. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  9517. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  9518. * band. This attribute is optional and should be included when command
  9519. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  9520. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  9521. */
  9522. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  9523. /* keep last */
  9524. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  9525. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  9526. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  9527. };
  9528. /**
  9529. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  9530. * transport modes and is used by attribute
  9531. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  9532. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9533. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  9534. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  9535. * data. The data shall be encapsulated within
  9536. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along withe vendor sub command
  9537. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  9538. */
  9539. enum qca_wlan_vendor_cfr_data_transport_modes {
  9540. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  9541. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  9542. };
  9543. /**
  9544. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  9545. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  9546. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9547. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  9548. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  9549. * with phase
  9550. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  9551. */
  9552. enum qca_wlan_vendor_cfr_method {
  9553. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  9554. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  9555. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  9556. };
  9557. /**
  9558. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  9559. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  9560. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  9561. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  9562. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  9563. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  9564. * is provided by one or more of below attributes:
  9565. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  9566. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  9567. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  9568. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  9569. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  9570. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  9571. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9572. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  9573. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  9574. */
  9575. enum qca_wlan_vendor_cfr_capture_type {
  9576. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  9577. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  9578. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  9579. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  9580. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  9581. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  9582. };
  9583. /**
  9584. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  9585. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  9586. * Channel Frequency Response capture parameters and enable periodic CFR
  9587. * capture.
  9588. *
  9589. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  9590. * MAC address of peer. This is for CFR version 1 only.
  9591. *
  9592. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  9593. * Enable peer CFR Capture. This attribute is mandatory to
  9594. * enable peer CFR capture. If this attribute is not present,
  9595. * peer CFR capture is disabled.
  9596. *
  9597. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  9598. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  9599. * Supported values: 20, 40, 80, 80+80, 160.
  9600. * Note that all targets may not support all bandwidths.
  9601. * This attribute is mandatory for version 1 if attribute
  9602. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9603. *
  9604. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  9605. * Periodicity of CFR measurement in msec.
  9606. * Periodicity should be a multiple of Base timer.
  9607. * Current Base timer value supported is 10 msecs (default).
  9608. * 0 for one shot capture.
  9609. * This attribute is mandatory for version 1 if attribute
  9610. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9611. *
  9612. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  9613. * Method used to capture Channel Frequency Response.
  9614. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  9615. * This attribute is mandatory for version 1 if attribute
  9616. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9617. *
  9618. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  9619. * Enable periodic CFR capture.
  9620. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  9621. * If this attribute is not present, periodic CFR capture is disabled.
  9622. *
  9623. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  9624. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  9625. * can't be enabled at same time. This attribute is mandatory if target
  9626. * support both versions and use one of them.
  9627. *
  9628. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  9629. * This attribute is mandatory for version 2 if
  9630. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  9631. * Bits 15:0 Bit fields indicating which group to be enabled.
  9632. * Bits 31:16 Reserved for future use.
  9633. *
  9634. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  9635. * CFR capture duration in microsecond. This attribute is mandatory for
  9636. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  9637. *
  9638. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  9639. * CFR capture interval in microsecond. This attribute is mandatory for
  9640. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  9641. *
  9642. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  9643. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  9644. * This attribute is mandatory for version 2.
  9645. *
  9646. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  9647. * Bit fields indicating which user in the current UL MU
  9648. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  9649. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  9650. * then the CFR capture will happen for user index 0 in the current
  9651. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  9652. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  9653. * This is for CFR version 2 only.
  9654. *
  9655. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  9656. * Indicates the number of consecutive Rx packets to be skipped
  9657. * before CFR capture is enabled again.
  9658. * This is for CFR version 2 only.
  9659. *
  9660. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  9661. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  9662. *
  9663. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  9664. * the following GROUP attributes:
  9665. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  9666. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  9667. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  9668. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  9669. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  9670. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  9671. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  9672. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  9673. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  9674. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9675. *
  9676. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  9677. * Target support multiple groups for some configurations. Group number could be
  9678. * any value between 0 and 15. This is for CFR version 2 only.
  9679. *
  9680. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  9681. * Transmitter address which is used to filter packets, this MAC address takes
  9682. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  9683. * This is for CFR version 2 only.
  9684. *
  9685. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  9686. * Receiver address which is used to filter packets, this MAC address takes
  9687. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  9688. * This is for CFR version 2 only.
  9689. *
  9690. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  9691. * Mask of transmitter address which is used to filter packets.
  9692. * This is for CFR version 2 only.
  9693. *
  9694. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  9695. * Mask of receiver address which is used to filter packets.
  9696. * This is for CFR version 2 only.
  9697. *
  9698. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  9699. * Indicates packets with a specific NSS will be filtered for CFR capture.
  9700. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  9701. * be done for packets matching the NSS specified within this bitmask.
  9702. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  9703. * bit 0 : NSS 1
  9704. * bit 1 : NSS 2
  9705. * ...
  9706. * bit 7 : NSS 8
  9707. *
  9708. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  9709. * Indicates packets with a specific BW will be filtered for CFR capture.
  9710. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  9711. * will be done for packets matching the bandwidths specified within this
  9712. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  9713. * numerated in enum nl80211_band (although not all bands may be supported
  9714. * by a given device).
  9715. *
  9716. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  9717. * Management packets matching the subtype filter categories will be
  9718. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9719. * represents the corresponding mgmt subtype value as per
  9720. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9721. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  9722. * This is for CFR version 2 only
  9723. *
  9724. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  9725. * Control packets matching the subtype filter categories will be
  9726. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9727. * represents the corresponding control subtype value as per
  9728. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9729. * This is for CFR version 2 only.
  9730. *
  9731. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  9732. * Data packets matching the subtype filter categories will be
  9733. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9734. * represents the corresponding data subtype value as per
  9735. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9736. * This is for CFR version 2 only.
  9737. *
  9738. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  9739. * Userspace can use this attribute to specify the driver about which transport
  9740. * mode shall be used by the driver to send CFR data to userspace. Uses values
  9741. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  9742. * not present, driver shall choose the default transport mechanism which is
  9743. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  9744. *
  9745. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  9746. * Userspace can use this attribute to specify the nl port id of the application
  9747. * which receives the CFR data and processes it further so that the drivers can
  9748. * unicast the NL events to a specific application. Optionally included when
  9749. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  9750. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  9751. * shall multicast the netlink events when this attribute is not included.
  9752. *
  9753. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  9754. * This attribute will be used by the driver to encapsulate and send CFR data
  9755. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  9756. * asynchronous event when the driver is configured to send CFR data using NL
  9757. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  9758. *
  9759. */
  9760. enum qca_wlan_vendor_peer_cfr_capture_attr {
  9761. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  9762. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  9763. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  9764. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  9765. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  9766. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  9767. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  9768. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  9769. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  9770. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  9771. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  9772. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  9773. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  9774. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  9775. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  9776. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  9777. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  9778. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  9779. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  9780. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  9781. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  9782. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  9783. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  9784. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  9785. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  9786. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  9787. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  9788. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  9789. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  9790. /* Keep last */
  9791. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  9792. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  9793. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  9794. };
  9795. /**
  9796. * enum qca_coex_config_profiles - This enum defines different types of
  9797. * traffic streams that can be prioritized one over the other during coex
  9798. * scenarios.
  9799. * The types defined in this enum are categorized in the below manner.
  9800. * 0 - 31 values corresponds to WLAN
  9801. * 32 - 63 values corresponds to BT
  9802. * 64 - 95 values corresponds to Zigbee
  9803. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  9804. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  9805. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  9806. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  9807. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  9808. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  9809. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  9810. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  9811. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  9812. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  9813. * @QCA_BT_A2DP: Prioritize BT A2DP
  9814. * @QCA_BT_BLE: Prioritize BT BLE
  9815. * @QCA_BT_SCO: Prioritize BT SCO
  9816. * @QCA_ZB_LOW: Prioritize Zigbee Low
  9817. * @QCA_ZB_HIGH: Prioritize Zigbee High
  9818. */
  9819. enum qca_coex_config_profiles {
  9820. /* 0 - 31 corresponds to WLAN */
  9821. QCA_WIFI_STA_DISCOVERY = 0,
  9822. QCA_WIFI_STA_CONNECTION = 1,
  9823. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  9824. QCA_WIFI_STA_DATA = 3,
  9825. QCA_WIFI_STA_ALL = 4,
  9826. QCA_WIFI_SAP_DISCOVERY = 5,
  9827. QCA_WIFI_SAP_CONNECTION = 6,
  9828. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  9829. QCA_WIFI_SAP_DATA = 8,
  9830. QCA_WIFI_SAP_ALL = 9,
  9831. QCA_WIFI_CASE_MAX = 31,
  9832. /* 32 - 63 corresponds to BT */
  9833. QCA_BT_A2DP = 32,
  9834. QCA_BT_BLE = 33,
  9835. QCA_BT_SCO = 34,
  9836. QCA_BT_CASE_MAX = 63,
  9837. /* 64 - 95 corresponds to Zigbee */
  9838. QCA_ZB_LOW = 64,
  9839. QCA_ZB_HIGH = 65,
  9840. QCA_ZB_CASE_MAX = 95,
  9841. /* 0xff is default value if the u8 profile value is not set. */
  9842. QCA_PROFILE_DEFAULT_VALUE = 255
  9843. };
  9844. /**
  9845. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  9846. * This enum defines the valid set of values of coex configuration types. These
  9847. * values may used by attribute
  9848. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  9849. *
  9850. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  9851. * weights to default values.
  9852. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  9853. * weights with configurability value.
  9854. */
  9855. enum qca_vendor_attr_coex_config_types {
  9856. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  9857. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  9858. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  9859. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  9860. };
  9861. /**
  9862. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  9863. * attributes
  9864. * Attributes for data used by
  9865. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  9866. *
  9867. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  9868. * Indicate config type.
  9869. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  9870. *
  9871. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  9872. * Indicate the Priority 1 profiles.
  9873. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9874. * In same priority level, maximum to 4 profiles can be set here.
  9875. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  9876. * Indicate the Priority 2 profiles.
  9877. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9878. * In same priority level, maximum to 4 profiles can be set here.
  9879. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  9880. * Indicate the Priority 3 profiles.
  9881. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9882. * In same priority level, maximum to 4 profiles can be set here.
  9883. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  9884. * Indicate the Priority 4 profiles.
  9885. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9886. * In same priority level, maximum to 4 profiles can be set here.
  9887. * NOTE:
  9888. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  9889. * arrangement:
  9890. * 1: In the same u32 attribute(priority x), the profiles enum values own
  9891. * same priority level.
  9892. * 2: 0xff is default value if the u8 profile value is not set.
  9893. * 3: max to 4 rules/profiles in same priority level.
  9894. * 4: max to 4 priority level (priority 1 - priority 4)
  9895. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  9896. * hybrid rules not support.
  9897. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  9898. * remain blank to reset all parameters.
  9899. * For example:
  9900. *
  9901. * If the attributes as follow:
  9902. * priority 1:
  9903. * ------------------------------------
  9904. * | 0xff | 0 | 1 | 2 |
  9905. * ------------------------------------
  9906. * priority 2:
  9907. * -------------------------------------
  9908. * | 0xff | 0xff | 0xff | 32 |
  9909. * -------------------------------------
  9910. * priority 3:
  9911. * -------------------------------------
  9912. * | 0xff | 0xff | 0xff | 65 |
  9913. * -------------------------------------
  9914. * then it means:
  9915. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  9916. * owns same priority level.
  9917. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  9918. * has priority over BT_A2DP and ZB_HIGH.
  9919. * 3: BT_A2DP has priority over ZB_HIGH.
  9920. */
  9921. enum qca_vendor_attr_coex_config_three_way {
  9922. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  9923. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  9924. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  9925. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  9926. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  9927. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  9928. /* Keep last */
  9929. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  9930. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  9931. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  9932. };
  9933. /**
  9934. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  9935. * This enum defines the valid set of values of peer stats cache types. These
  9936. * values are used by attribute
  9937. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  9938. *
  9939. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  9940. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  9941. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  9942. * statistics
  9943. */
  9944. enum qca_vendor_attr_peer_stats_cache_type {
  9945. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  9946. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  9947. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  9948. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  9949. };
  9950. /**
  9951. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  9952. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  9953. * Attributes are required to flush peer rate statistics from driver to
  9954. * user application.
  9955. *
  9956. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  9957. * Indicate peer stats cache type.
  9958. * The statistics types are 32-bit values from
  9959. * qca_vendor_attr_peer_stats_cache_type
  9960. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  9961. * of size 6, representing peer mac address.
  9962. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  9963. * containing buffer of statistics to send event to application layer entity.
  9964. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  9965. * representing cookie for peer unique session.
  9966. */
  9967. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  9968. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  9969. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  9970. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  9971. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  9972. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  9973. /* Keep last */
  9974. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  9975. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  9976. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  9977. };
  9978. /**
  9979. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  9980. * this enum defines all the possible state of zigbee, which can be
  9981. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  9982. *
  9983. * @ZIGBEE_IDLE: zigbee in idle state
  9984. * @ZIGBEE_FORM_NETWORK: zibee forming network
  9985. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  9986. * @ZIGBEE_JOIN: zigbee joining network
  9987. * @ZIGBEE_NETWORK_UP: zigbee network is up
  9988. * @ZIGBEE_HMI: zigbee in HMI mode
  9989. */
  9990. enum qca_mpta_helper_attr_zigbee_state {
  9991. ZIGBEE_IDLE = 0,
  9992. ZIGBEE_FORM_NETWORK = 1,
  9993. ZIGBEE_WAIT_JOIN = 2,
  9994. ZIGBEE_JOIN = 3,
  9995. ZIGBEE_NETWORK_UP = 4,
  9996. ZIGBEE_HMI = 5,
  9997. };
  9998. /**
  9999. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  10000. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  10001. */
  10002. enum qca_mpta_helper_vendor_attr {
  10003. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  10004. /* Optional attribute used to update zigbee state.
  10005. * enum qca_mpta_helper_attr_zigbee_state.
  10006. * NLA_U32 attribute.
  10007. */
  10008. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  10009. /* Optional attribute used to configure wlan duration for Shape-OCS
  10010. * during interrupt.
  10011. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  10012. * Value range 0 ~ 300 (ms).
  10013. * NLA_U32 attribute.
  10014. */
  10015. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  10016. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10017. * during interrupt.
  10018. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  10019. * Value range 0 ~ 300 (ms).
  10020. * NLA_U32 attribute.
  10021. */
  10022. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  10023. /* Optional attribute used to configure wlan duration for Shape-OCS
  10024. * monitor period.
  10025. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  10026. * Value range 0 ~ 300 (ms)
  10027. * NLA_U32 attribute
  10028. */
  10029. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  10030. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10031. * monitor period.
  10032. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  10033. * Value range 0 ~ 300 (ms)
  10034. * NLA_U32 attribute
  10035. */
  10036. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  10037. /* Optional attribute used to configure ocs interrupt duration.
  10038. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  10039. * Value range 1000 ~ 20000 (ms)
  10040. * NLA_U32 attribute
  10041. */
  10042. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  10043. /* Optional attribute used to configure ocs monitor duration.
  10044. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  10045. * Value range 1000 ~ 20000 (ms)
  10046. * NLA_U32 attribute
  10047. */
  10048. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  10049. /* Optional attribute used to notify wlan FW current zigbee channel.
  10050. * Value range 11 ~ 26
  10051. * NLA_U32 attribute
  10052. */
  10053. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  10054. /* Optional attribute used to configure wlan mute duration.
  10055. * Value range 0 ~ 400 (ms)
  10056. * NLA_U32 attribute
  10057. */
  10058. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  10059. /* keep last */
  10060. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  10061. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  10062. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  10063. };
  10064. /**
  10065. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  10066. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  10067. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  10068. *
  10069. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  10070. * to request the driver to start reporting Beacon frames.
  10071. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  10072. * to request the driver to stop reporting Beacon frames.
  10073. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  10074. * userspace to report received Beacon frames.
  10075. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  10076. * to indicate that the driver is going to pause reporting Beacon frames.
  10077. */
  10078. enum qca_wlan_vendor_beacon_reporting_op_types {
  10079. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  10080. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  10081. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  10082. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  10083. };
  10084. /**
  10085. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  10086. * types of reasons for which the driver is pausing reporting Beacon frames.
  10087. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  10088. *
  10089. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  10090. * reasons.
  10091. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  10092. * driver/firmware is starting a scan.
  10093. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  10094. * driver/firmware disconnects from the ESS and indicates the disconnection to
  10095. * userspace (non-seamless roaming case). This reason code will be used by the
  10096. * driver/firmware to indicate stopping of beacon report events. Userspace
  10097. * will need to start beacon reporting again (if desired) by sending vendor
  10098. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  10099. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  10100. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  10101. * completed.
  10102. */
  10103. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  10104. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  10105. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  10106. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  10107. };
  10108. /*
  10109. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  10110. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  10111. */
  10112. enum qca_wlan_vendor_attr_beacon_reporting_params {
  10113. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  10114. /* Specifies the type of operation that the vendor command/event is
  10115. * intended for. Possible values for this attribute are defined in
  10116. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  10117. */
  10118. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  10119. /* Optionally set by userspace to request the driver to report Beacon
  10120. * frames using asynchronous vendor events when the
  10121. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10122. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10123. * If this flag is not set, the driver will only update Beacon frames
  10124. * in cfg80211 scan cache but not send any vendor events.
  10125. */
  10126. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  10127. /* Optionally used by userspace to request the driver/firmware to
  10128. * report Beacon frames periodically when the
  10129. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10130. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  10131. * u32 attribute, indicates the period of Beacon frames to be reported
  10132. * and in the units of beacon interval.
  10133. * If this attribute is missing in the command, then the default value
  10134. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  10135. * Zero is an invalid value.
  10136. * If a valid value is received for this attribute, the driver will
  10137. * update the cfg80211 scan cache periodically as per the value
  10138. * received in this attribute in addition to updating the cfg80211 scan
  10139. * cache when there is significant change in Beacon frame IEs.
  10140. */
  10141. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  10142. /* Used by the driver to encapsulate the SSID when the
  10143. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10144. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10145. * u8 array with a maximum size of 32.
  10146. *
  10147. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  10148. * will be taken from the SSID element of the received Beacon frame.
  10149. *
  10150. * When generating beacon report from Multiple BSSID Beacon frame and
  10151. * if the BSSID of the current connected BSS matches the BSSID of the
  10152. * transmitting BSS, the SSID will be taken from the SSID element of
  10153. * the received Beacon frame.
  10154. *
  10155. * When generating beacon report from Multiple BSSID Beacon frame and
  10156. * if the BSSID of the current connected BSS matches the BSSID of one
  10157. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  10158. * field included in the nontransmitted BSS profile whose derived BSSI
  10159. * is same as the BSSID of the current connected BSS. When there is no
  10160. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  10161. * of current connected* BSS, this attribute will not be present.
  10162. */
  10163. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  10164. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  10165. * is currently connected to when the
  10166. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10167. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  10168. * fixed size of 6 bytes.
  10169. *
  10170. * When generating beacon report from a Multiple BSSID beacon and the
  10171. * current connected BSSID matches one of the nontransmitted BSSIDs in
  10172. * a Multiple BSSID set, this BSSID will be that particular
  10173. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  10174. * transmitting address of the Beacon frame).
  10175. */
  10176. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  10177. /* Used by the driver to encapsulate the frequency in MHz on which
  10178. * the Beacon frame was received when the
  10179. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  10180. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10181. * u32 attribute.
  10182. */
  10183. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  10184. /* Used by the driver to encapsulate the Beacon interval
  10185. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10186. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10187. * u16 attribute. The value will be copied from the Beacon frame and
  10188. * the units are TUs.
  10189. */
  10190. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  10191. /* Used by the driver to encapsulate the Timestamp field from the
  10192. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  10193. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10194. * u64 attribute.
  10195. */
  10196. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  10197. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  10198. * Beacon frame is received in the driver when the
  10199. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10200. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  10201. * the units of nanoseconds. This value is expected to have accuracy of
  10202. * about 10 ms.
  10203. */
  10204. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  10205. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  10206. * which this event is generated when the
  10207. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10208. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  10209. */
  10210. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  10211. /* Used by the driver to specify the reason for the driver/firmware to
  10212. * pause sending beacons to userspace when the
  10213. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10214. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  10215. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  10216. * attribute.
  10217. */
  10218. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  10219. /* Used by the driver to specify whether the driver will automatically
  10220. * resume reporting beacon events to userspace later (for example after
  10221. * the ongoing off-channel activity is completed etc.) when the
  10222. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10223. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  10224. */
  10225. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  10226. /* Optionally set by userspace to request the driver not to resume
  10227. * beacon reporting after a pause is completed, when the
  10228. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10229. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10230. * If this flag is set, the driver will not resume beacon reporting
  10231. * after any pause in beacon reporting is completed. Userspace has to
  10232. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  10233. * to initiate beacon reporting again. If this flag is set in the recent
  10234. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  10235. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  10236. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  10237. * set by the driver. Setting this flag until and unless there is a
  10238. * specific need is not recommended as there is a chance of some beacons
  10239. * received after pause command and next start command being not
  10240. * reported.
  10241. */
  10242. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  10243. /* Keep last */
  10244. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  10245. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  10246. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  10247. };
  10248. /**
  10249. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  10250. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  10251. *
  10252. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  10253. * a virtual device.
  10254. *
  10255. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  10256. * a physical device.
  10257. */
  10258. enum qca_vendor_oem_device_type {
  10259. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  10260. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  10261. };
  10262. /*
  10263. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  10264. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  10265. *
  10266. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  10267. * used to set/query the data to/from the firmware. On query, the same
  10268. * attribute is used to carry the respective data in the reply sent by the
  10269. * driver to userspace. The request to set/query the data and the format of the
  10270. * respective data from the firmware are embedded in the attribute. The
  10271. * maximum size of the attribute payload is 1024 bytes.
  10272. *
  10273. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  10274. * based on this field. This optional attribute is included to specify whether
  10275. * the device type is a virtual device or a physical device for the command.
  10276. * This attribute can be omitted for a virtual device (default) command.
  10277. * This u8 attribute is used to carry information for the device type using
  10278. * values defined by enum qca_vendor_oem_device_type.
  10279. *
  10280. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  10281. * attribute when the data is queried from the firmware.
  10282. *
  10283. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  10284. * is set when the userspace queries data from the firmware. This attribute
  10285. * should not be set when userspace sets the OEM data to the firmware.
  10286. */
  10287. enum qca_wlan_vendor_attr_oem_data_params {
  10288. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  10289. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  10290. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  10291. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  10292. /* keep last */
  10293. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  10294. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  10295. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  10296. };
  10297. /**
  10298. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  10299. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  10300. *
  10301. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  10302. * Nested attribute containing multiple ranges with following attributes:
  10303. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  10304. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  10305. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  10306. *
  10307. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  10308. * Starting center frequency in MHz.
  10309. *
  10310. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  10311. * Ending center frequency in MHz.
  10312. *
  10313. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  10314. * s32 attribute, optional. It is a per frequency range attribute.
  10315. * The maximum TX power limit from user space is to be applied on an
  10316. * unrestricted interface for corresponding frequency range. It is also
  10317. * possible that the actual TX power may be even lower than this cap due to
  10318. * other considerations such as regulatory compliance, SAR, etc. In absence of
  10319. * this attribute the driver shall follow current behavior which means
  10320. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  10321. * power derived by the driver based on regulatory/SAR during interface up.
  10322. *
  10323. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  10324. * u32 attribute, optional. Indicates all the interface types which are
  10325. * restricted for all frequency ranges provided in
  10326. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  10327. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  10328. * This attribute encapsulates bitmasks of interface types defined in
  10329. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  10330. * move to a safe channel and if no safe channel is available the driver shall
  10331. * terminate that interface functionality. In absence of this attribute,
  10332. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  10333. * TX power limit derived from either
  10334. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  10335. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  10336. * is not provided.
  10337. */
  10338. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  10339. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  10340. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  10341. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  10342. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  10343. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  10344. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  10345. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  10346. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  10347. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  10348. };
  10349. /*
  10350. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  10351. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  10352. */
  10353. enum qca_wlan_vendor_attr_add_sta_node_params {
  10354. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  10355. /* 6 byte MAC address of STA */
  10356. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  10357. /* Authentication algorithm used by the station of size u16;
  10358. * defined in enum nl80211_auth_type.
  10359. */
  10360. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  10361. /* keep last */
  10362. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  10363. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  10364. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  10365. };
  10366. /**
  10367. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  10368. * This enum defines the valid set of values of BT coex chain mode.
  10369. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  10370. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  10371. *
  10372. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
  10373. * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
  10374. */
  10375. enum qca_btc_chain_mode {
  10376. QCA_BTC_CHAIN_SHARED = 0,
  10377. QCA_BTC_CHAIN_SEPARATED = 1,
  10378. };
  10379. /**
  10380. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  10381. * chain mode.
  10382. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  10383. *
  10384. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  10385. * Indicates the BT coex chain mode, are 32-bit values from
  10386. * enum qca_btc_chain_mode. This attribute is mandatory.
  10387. *
  10388. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  10389. * If set, vdev should be restarted when BT coex chain mode is updated.
  10390. * This attribute is optional.
  10391. */
  10392. enum qca_vendor_attr_btc_chain_mode {
  10393. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  10394. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  10395. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  10396. /* Keep last */
  10397. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  10398. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  10399. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  10400. };
  10401. /**
  10402. * enum qca_vendor_wlan_sta_flags - Station feature flags
  10403. * Bits will be set to 1 if the corresponding features are enabled.
  10404. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  10405. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  10406. for the station
  10407. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  10408. for the station
  10409. */
  10410. enum qca_vendor_wlan_sta_flags {
  10411. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  10412. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  10413. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  10414. };
  10415. /**
  10416. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  10417. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  10418. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  10419. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  10420. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  10421. */
  10422. enum qca_vendor_wlan_sta_guard_interval {
  10423. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  10424. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  10425. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  10426. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  10427. };
  10428. /**
  10429. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  10430. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  10431. *
  10432. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  10433. * Required attribute in request for AP mode only, 6-byte MAC address,
  10434. * corresponding to the station's MAC address for which information is
  10435. * requested. For STA mode this is not required as the info always correspond
  10436. * to the self STA and the current/last association.
  10437. *
  10438. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  10439. * Optionally used in response, u32 attribute, contains a bitmap of different
  10440. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  10441. *
  10442. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  10443. * Optionally used in response, u32 attribute, possible values are defined in
  10444. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  10445. * Guard interval used by the station.
  10446. *
  10447. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  10448. * Optionally used in response, u32 attribute, used in AP mode only.
  10449. * Value indicates the number of data frames received from station with retry
  10450. * bit set to 1 in FC.
  10451. *
  10452. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  10453. * Optionally used in response, u32 attribute, used in AP mode only.
  10454. * Counter for number of data frames with broadcast or multicast address in
  10455. * the destination address received from the station.
  10456. *
  10457. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  10458. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  10459. * Value indicates the number of data frames successfully transmitted only
  10460. * after retrying the packets and for which the TX status has been updated
  10461. * back to host from target.
  10462. *
  10463. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  10464. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  10465. * Value indicates the number of data frames not transmitted successfully even
  10466. * after retrying the packets for the number of times equal to the total number
  10467. * of retries allowed for that packet and for which the TX status has been
  10468. * updated back to host from target.
  10469. *
  10470. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  10471. * Optionally used in response, u32 attribute, used in AP mode only.
  10472. * Counter in the target for the number of data frames successfully transmitted
  10473. * to the station.
  10474. *
  10475. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  10476. * Optionally used in response, u32 attribute, used in AP mode only.
  10477. * Value indicates the number of data frames successfully transmitted only
  10478. * after retrying the packets.
  10479. *
  10480. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  10481. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  10482. * Value indicates the number of data frames not transmitted successfully even
  10483. * after retrying the packets for the number of times equal to the total number
  10484. * of retries allowed for that packet.
  10485. *
  10486. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  10487. * the STA mode only. Represent the number of probe requests sent by the STA
  10488. * while attempting to roam on missing certain number of beacons from the
  10489. * connected AP. If queried in the disconnected state, this represents the
  10490. * count for the last connected state.
  10491. *
  10492. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  10493. * the STA mode. Represent the number of probe responses received by the station
  10494. * while attempting to roam on missing certain number of beacons from the
  10495. * connected AP. When queried in the disconnected state, this represents the
  10496. * count when in last connected state.
  10497. *
  10498. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  10499. * STA mode only. Represents the total number of frames sent out by STA
  10500. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  10501. * only for the connect session. Represents the count of last connected session,
  10502. * when queried in the disconnected state.
  10503. *
  10504. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  10505. * Total number of RTS sent out by the STA. This data is maintained per connect
  10506. * session. Represents the count of last connected session, when queried in the
  10507. * disconnected state.
  10508. *
  10509. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  10510. * STA mode.Represent the number of RTS transmission failure that reach retry
  10511. * limit. This data is maintained per connect session. Represents the count of
  10512. * last connected session, when queried in the disconnected state.
  10513. *
  10514. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  10515. * the STA mode. Represent the total number of non aggregated frames transmitted
  10516. * by the STA. This data is maintained per connect session. Represents the count
  10517. * of last connected session, when queried in the disconnected state.
  10518. *
  10519. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  10520. * STA mode. Represent the total number of aggregated frames transmitted by the
  10521. * STA. This data is maintained per connect session. Represents the count of
  10522. * last connected session, when queried in the disconnected state.
  10523. *
  10524. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  10525. * the STA mode. Represents the number of received frames with a good PLCP. This
  10526. * data is maintained per connect session. Represents the count of last
  10527. * connected session, when queried in the disconnected state.
  10528. *
  10529. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  10530. * used in the STA mode. Represents the number of occasions that no valid
  10531. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  10532. * session. Represents the count of last connected session, when queried in the
  10533. * disconnected state.
  10534. *
  10535. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  10536. * STA mode. Represents the number of frames for which CRC check failed in the
  10537. * MAC. This data is maintained per connect session. Represents the count of
  10538. * last connected session, when queried in the disconnected state.
  10539. *
  10540. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  10541. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  10542. * data is maintained per connect session. Represents the count of last
  10543. * connected session, when queried in the disconnected state.
  10544. *
  10545. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  10546. * mode. Represents the number of received Block Acks. This data is maintained
  10547. * per connect session. Represents the count of last connected session, when
  10548. * queried in the disconnected state.
  10549. *
  10550. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  10551. * mode. Represents the number of beacons received from the connected BSS. This
  10552. * data is maintained per connect session. Represents the count of last
  10553. * connected session, when queried in the disconnected state.
  10554. *
  10555. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  10556. * STA mode. Represents the number of beacons received by the other BSS when in
  10557. * connected state (through the probes done by the STA). This data is maintained
  10558. * per connect session. Represents the count of last connected session, when
  10559. * queried in the disconnected state.
  10560. *
  10561. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  10562. * the STA mode. Represents the number of received DATA frames with good FCS and
  10563. * matching Receiver Address when in connected state. This data is maintained
  10564. * per connect session. Represents the count of last connected session, when
  10565. * queried in the disconnected state.
  10566. *
  10567. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  10568. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  10569. * when in the connected state. This data is maintained per connect session.
  10570. * Represents the count of last connected session, when queried in the
  10571. * disconnected state.
  10572. *
  10573. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  10574. * STA mode. This represents the target power in dBm for the transmissions done
  10575. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  10576. * connect session. Represents the count of last connected session, when
  10577. * queried in the disconnected state.
  10578. *
  10579. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  10580. * STA mode. This represents the Target power in dBm for transmissions done to
  10581. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10582. * session. Represents the count of last connected session, when queried in the
  10583. * disconnected state.
  10584. *
  10585. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  10586. * STA mode. This represents the Target power in dBm for transmissions done to
  10587. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  10588. * Represents the count of last connected session, when queried in the
  10589. * disconnected state.
  10590. *
  10591. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  10592. * STA mode. This represents the Target power in dBm for transmissions done to
  10593. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10594. * session. Represents the count of last connected session, when queried in
  10595. * the disconnected state.
  10596. *
  10597. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  10598. * STA mode. This represents the Target power in dBm for for transmissions done
  10599. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  10600. * Represents the count of last connected session, when queried in the
  10601. * disconnected state.
  10602. *
  10603. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  10604. * in the STA mode. This represents the Nested attribute representing the
  10605. * overflow counts of each receive buffer allocated to the hardware during the
  10606. * STA's connection. The number of hw buffers might vary for each WLAN
  10607. * solution and hence this attribute represents the nested array of all such
  10608. * HW buffer count. This data is maintained per connect session. Represents
  10609. * the count of last connected session, when queried in the disconnected state.
  10610. *
  10611. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  10612. * allowed as per the regulatory requirements for the current or last connected
  10613. * session. Used in the STA mode.
  10614. *
  10615. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  10616. * (dBm) used by the station in its latest unicast frame while communicating
  10617. * to the AP in the connected state. When queried in the disconnected state,
  10618. * this represents the TX power used by the STA with last AP communication
  10619. * when in connected state.
  10620. *
  10621. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  10622. * level used to adjust the RX sensitivity. Represents the current ANI level
  10623. * when queried in the connected state. When queried in the disconnected
  10624. * state, this corresponds to the latest ANI level at the instance of
  10625. * disconnection.
  10626. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  10627. * only. This represents the number of group addressed robust management frames
  10628. * received from this station with an invalid MIC or a missing MME when PMF is
  10629. * enabled.
  10630. *
  10631. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  10632. * only. This represents the number of group addressed robust management frames
  10633. * received from this station with the packet number less than or equal to the
  10634. * last received packet number when PMF is enabled.
  10635. *
  10636. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  10637. * mode only. This represents the number of Beacon frames received from this
  10638. * station with an invalid MIC or a missing MME when beacon protection is
  10639. * enabled.
  10640. *
  10641. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  10642. * only. This represents number of Beacon frames received from this station with
  10643. * the packet number less than or equal to the last received packet number when
  10644. * beacon protection is enabled.
  10645. *
  10646. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  10647. * STA mode only. Driver uses this attribute to populate the connection failure
  10648. * reason codes and the values are defined in
  10649. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  10650. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  10651. * connection failure from driver. The driver shall not include this attribute
  10652. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  10653. * connection failure observed in the last attempted connection.
  10654. *
  10655. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  10656. * used by the station in its last TX frame while communicating to the AP in the
  10657. * connected state. When queried in the disconnected state, this represents the
  10658. * rate used by the STA in the last TX frame to the AP when it was connected.
  10659. * This attribute is used for STA mode only.
  10660. *
  10661. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  10662. * This represents the rate index used by the STA for the last TX frame to the
  10663. * AP. When queried in the disconnected state, this gives the last RIX used by
  10664. * the STA in the last TX frame to the AP when it was connected.
  10665. *
  10666. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  10667. * mode only. This represents the number of times the STA TSF goes out of sync
  10668. * from the AP after the connection. If queried in the disconnected state, this
  10669. * gives the count of TSF out of sync for the last connection.
  10670. *
  10671. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  10672. * mode only. This represents the roam trigger reason for the last roaming
  10673. * attempted by the firmware. This can be queried either in connected state or
  10674. * disconnected state. Each bit of this attribute represents the different
  10675. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  10676. *
  10677. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  10678. * only. This represents the roam fail reason for the last failed roaming
  10679. * attempt by the firmware. Different roam failure reason codes are specified
  10680. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  10681. * connected state or disconnected state.
  10682. *
  10683. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  10684. * STA mode only. This represents the roam invoke fail reason for the last
  10685. * failed roam invoke. Different roam invoke failure reason codes
  10686. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  10687. * queried either in connected state or disconnected state.
  10688. *
  10689. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  10690. * This represents the average congestion duration of uplink frames in MAC
  10691. * queue in unit of ms. This can be queried either in connected state or
  10692. * disconnected state.
  10693. */
  10694. enum qca_wlan_vendor_attr_get_sta_info {
  10695. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  10696. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  10697. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  10698. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  10699. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  10700. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  10701. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  10702. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  10703. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  10704. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  10705. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  10706. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  10707. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  10708. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  10709. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  10710. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  10711. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  10712. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  10713. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  10714. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  10715. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  10716. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  10717. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  10718. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  10719. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  10720. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  10721. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  10722. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  10723. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  10724. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  10725. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  10726. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  10727. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  10728. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  10729. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  10730. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  10731. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  10732. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  10733. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  10734. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  10735. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  10736. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  10737. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  10738. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  10739. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  10740. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  10741. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  10742. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  10743. /* keep last */
  10744. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  10745. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  10746. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  10747. };
  10748. /**
  10749. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  10750. * Used when the driver triggers the STA to disconnect from the AP.
  10751. *
  10752. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  10753. * disconnection with the AP due to unspecified reasons.
  10754. *
  10755. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  10756. * disconnection with the AP due to a roaming failure. This roaming is triggered
  10757. * internally (host driver/firmware).
  10758. *
  10759. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  10760. * the AP when the user/external triggered roaming fails.
  10761. *
  10762. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  10763. * by the host driver whenever gateway reachability failure is detected and the
  10764. * driver disconnects with AP.
  10765. *
  10766. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  10767. * the AP on a channel switch announcement from it with an unsupported channel.
  10768. *
  10769. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  10770. * with indoor channels disabled and if the STA is connected on one of these
  10771. * disabled channels, the host driver disconnected the STA with this reason
  10772. * code.
  10773. *
  10774. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  10775. * explicit request from the user to disable the current operating channel.
  10776. *
  10777. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  10778. * the internal host driver/firmware recovery.
  10779. *
  10780. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  10781. * a timeout for the key installations from the user space.
  10782. *
  10783. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  10784. * STA on a band change request from the user space to a different band from the
  10785. * current operation channel/band.
  10786. *
  10787. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  10788. * interface down trigger from the user space.
  10789. *
  10790. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  10791. * STA on getting continuous transmission failures for multiple Data frames.
  10792. *
  10793. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  10794. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  10795. * represents inactivity from AP on such transmissions.
  10796. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  10797. * disconnection when SA Query times out (AP does not respond to SA Query).
  10798. *
  10799. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  10800. * STA on missing the beacons continuously from the AP.
  10801. *
  10802. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  10803. * able to move to the channel mentioned by the AP in CSA.
  10804. *
  10805. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  10806. */
  10807. enum qca_disconnect_reason_codes {
  10808. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  10809. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  10810. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  10811. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  10812. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  10813. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  10814. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  10815. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  10816. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  10817. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  10818. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  10819. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  10820. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  10821. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  10822. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  10823. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  10824. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  10825. };
  10826. /**
  10827. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  10828. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  10829. *
  10830. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  10831. * This attribute represents the driver specific reason codes (local
  10832. * driver/firmware initiated reasons for disconnection) defined
  10833. * in enum qca_disconnect_reason_codes.
  10834. */
  10835. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  10836. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  10837. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  10838. /* keep last */
  10839. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  10840. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  10841. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  10842. };
  10843. /**
  10844. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  10845. *
  10846. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  10847. */
  10848. enum qca_wlan_tspec_operation {
  10849. QCA_WLAN_TSPEC_ADD = 0,
  10850. QCA_WLAN_TSPEC_DEL = 1,
  10851. QCA_WLAN_TSPEC_GET = 2,
  10852. };
  10853. /**
  10854. * enum qca_wlan_tspec_direction - Direction in TSPEC
  10855. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  10856. *
  10857. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  10858. */
  10859. enum qca_wlan_tspec_direction {
  10860. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  10861. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  10862. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  10863. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  10864. };
  10865. /**
  10866. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  10867. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  10868. *
  10869. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  10870. */
  10871. enum qca_wlan_tspec_ack_policy {
  10872. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  10873. QCA_WLAN_TSPEC_NO_ACK = 1,
  10874. /* Reserved */
  10875. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  10876. };
  10877. /**
  10878. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  10879. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  10880. *
  10881. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  10882. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  10883. * are defined in enum qca_wlan_tspec_operation.
  10884. * Mandatory attribute for all kinds of config TSPEC requests.
  10885. *
  10886. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  10887. * u8 attribute. TS ID. Possible values are 0-7.
  10888. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  10889. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  10890. *
  10891. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  10892. * u8 attribute. Direction of data carried by the TS. Possible values are
  10893. * defined in enum qca_wlan_tspec_direction.
  10894. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10895. *
  10896. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  10897. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  10898. * with the TS. set - enabled, not set - disabled.
  10899. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10900. *
  10901. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  10902. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  10903. * belonging to this TS. Possible values are 0-7.
  10904. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10905. *
  10906. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  10907. * u8 attribute. Indicate whether MAC acknowledgements are required for
  10908. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  10909. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  10910. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10911. *
  10912. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  10913. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  10914. * belonging to this TS.
  10915. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10916. *
  10917. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  10918. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  10919. * belonging to this TS.
  10920. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10921. *
  10922. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  10923. * u32 attribute. Specify the minimum interval in microseconds between the
  10924. * start of two successive SPs.
  10925. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10926. *
  10927. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  10928. * u32 attribute. Specify the maximum interval in microseconds between the
  10929. * start of two successive SPs.
  10930. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10931. *
  10932. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  10933. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  10934. * without arrival or transfer of an MPDU belonging to the TS before this TS
  10935. * is deleted by the MAC entity at the HC.
  10936. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10937. *
  10938. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  10939. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  10940. * without arrival or transfer of an MSDU belonging to the TS before the
  10941. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  10942. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  10943. * interval is always less than or equal to the inactivity interval.
  10944. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10945. *
  10946. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  10947. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  10948. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  10949. * bounds of this TSPEC.
  10950. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10951. *
  10952. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  10953. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  10954. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  10955. * bounds of this TSPEC.
  10956. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10957. *
  10958. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  10959. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  10960. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  10961. * the bounds of this TSPEC.
  10962. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10963. *
  10964. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  10965. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  10966. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  10967. * value of 0 indicates that there are no bursts.
  10968. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10969. *
  10970. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  10971. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  10972. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  10973. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10974. *
  10975. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  10976. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  10977. * and above the stated application rates required to transport an MSDU/A-MSDU
  10978. * belonging to the TS in this TSPEC.
  10979. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10980. */
  10981. enum qca_wlan_vendor_attr_config_tspec {
  10982. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  10983. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  10984. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  10985. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  10986. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  10987. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  10988. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  10989. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  10990. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  10991. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  10992. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  10993. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  10994. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  10995. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  10996. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  10997. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  10998. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  10999. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  11000. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  11001. /* keep last */
  11002. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  11003. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  11004. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  11005. };
  11006. /**
  11007. * enum qca_wlan_medium_assess_type - Type of medium assess request
  11008. *
  11009. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  11010. */
  11011. enum qca_wlan_medium_assess_type {
  11012. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  11013. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  11014. };
  11015. /**
  11016. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  11017. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  11018. *
  11019. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  11020. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  11021. * Specify the type of medium assess request and indicate its type in response.
  11022. * Possible values are defined in enum qca_wlan_medium_assess_type.
  11023. *
  11024. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  11025. * u32 attribute. Mandatory in CCA request.
  11026. * Specify the assessment period in terms of seconds. Assessment result will be
  11027. * sent as the response to the CCA request after the assessment period.
  11028. *
  11029. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  11030. * u32 attribute. Mandatory in response to CCA request.
  11031. * Total timer tick count of the assessment cycle.
  11032. *
  11033. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  11034. * u32 attribute. Mandatory in response to CCA request.
  11035. * Timer tick count of idle time in the assessment cycle.
  11036. *
  11037. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  11038. * u32 attribute. Mandatory in response to CCA request.
  11039. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  11040. *
  11041. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  11042. * u32 attribute. Mandatory in response to CCA request.
  11043. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  11044. *
  11045. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  11046. * s32 attribute. Mandatory in response to CCA request.
  11047. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  11048. *
  11049. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  11050. * s32 attribute. Mandatory in response to CCA request.
  11051. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  11052. *
  11053. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  11054. * u8 attribute. Mandatory in congestion report request.
  11055. * 1-enable 0-disable.
  11056. *
  11057. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  11058. * u8 attribute. Mandatory in congestion report enable request and will be
  11059. * ignored if present in congestion report disable request. Possible values are
  11060. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  11061. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  11062. * congestion percentage reaches the configured threshold.
  11063. *
  11064. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  11065. * u8 attribute. Optional in congestion report enable request and will be
  11066. * ignored if present in congestion report disable request.
  11067. * Specify the interval of congestion report event in terms of seconds. Possible
  11068. * values are 1-255. Default value 1 will be used if this attribute is omitted
  11069. * or using invalid values.
  11070. *
  11071. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  11072. * u8 attribute. Mandatory in congestion report event.
  11073. * Indicate the actual congestion percentage. Possible values are 0-100.
  11074. */
  11075. enum qca_wlan_vendor_attr_medium_assess {
  11076. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  11077. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  11078. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  11079. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  11080. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  11081. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  11082. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  11083. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  11084. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  11085. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  11086. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  11087. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  11088. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  11089. /* keep last */
  11090. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  11091. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  11092. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  11093. };
  11094. /**
  11095. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  11096. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  11097. *
  11098. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  11099. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  11100. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  11101. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  11102. *
  11103. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  11104. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  11105. *
  11106. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  11107. * u8 attribute, required. indicates group id of Tx VDEV
  11108. *
  11109. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  11110. * Nested attribute. This attribute shall be used by the driver to send
  11111. * group information. The attributes defined in enum
  11112. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  11113. * are nested in this attribute.
  11114. */
  11115. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  11116. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  11117. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  11118. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  11119. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  11120. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  11121. /* keep last */
  11122. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  11123. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  11124. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  11125. };
  11126. /**
  11127. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  11128. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  11129. *
  11130. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  11131. * u32 attribute, required. contains interface index.
  11132. *
  11133. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  11134. * u8 attribute, required. 0 - means vdev is in down state.
  11135. * 1- means vdev is in up state.
  11136. */
  11137. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  11138. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  11139. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  11140. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  11141. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  11142. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  11143. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  11144. };
  11145. /**
  11146. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  11147. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  11148. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  11149. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  11150. * frame
  11151. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  11152. * Request frame.
  11153. */
  11154. enum qca_wlan_vendor_oci_override_frame_type {
  11155. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  11156. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  11157. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  11158. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  11159. };
  11160. /**
  11161. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  11162. *
  11163. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  11164. * STA interface has to be given while selecting the connection policies
  11165. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  11166. * An interface is set as primary through the attribute
  11167. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  11168. * applicable if the primary interface has not been set earlier.
  11169. *
  11170. * The intention is not to downgrade the primary STA performance, such as:
  11171. * - Do not reduce the number of TX/RX chains of primary connection.
  11172. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  11173. * chains.
  11174. * - If using MCC, should set the MCC duty cycle of the primary connection to
  11175. * be higher than the secondary connection.
  11176. *
  11177. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  11178. * subsequent STA connection shall be chosen to balance with the existing
  11179. * concurrent STA's performance.
  11180. * Such as
  11181. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  11182. * capability.
  11183. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  11184. * to the secondary.
  11185. * - Prefer BSSID candidates which will help provide the best "overall"
  11186. * performance for all the STA connections.
  11187. */
  11188. enum qca_wlan_concurrent_sta_policy_config {
  11189. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  11190. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  11191. };
  11192. /**
  11193. * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes
  11194. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command.
  11195. *
  11196. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG:
  11197. * u8 attribute. Configures the concurrent STA policy configuration.
  11198. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  11199. */
  11200. enum qca_wlan_vendor_attr_concurrent_sta_policy {
  11201. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0,
  11202. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1,
  11203. /* keep last */
  11204. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST,
  11205. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX =
  11206. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1,
  11207. };
  11208. /**
  11209. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  11210. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  11211. * attribute.
  11212. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  11213. * for unicast probe request.
  11214. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  11215. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  11216. * ath request.
  11217. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  11218. * received from AP.
  11219. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  11220. * request.
  11221. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  11222. * assoc request.
  11223. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  11224. * received from AP.
  11225. */
  11226. enum qca_sta_connect_fail_reason_codes {
  11227. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  11228. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  11229. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  11230. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  11231. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  11232. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  11233. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  11234. };
  11235. /**
  11236. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  11237. * OCI override request. These attributes are used inside nested attribute
  11238. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  11239. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  11240. *
  11241. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  11242. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  11243. * attribute to specify the frame type in which the OCI is to be overridden.
  11244. *
  11245. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  11246. * OCI frequency (in MHz) to override in the specified frame type.
  11247. */
  11248. enum qca_wlan_vendor_attr_oci_override {
  11249. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  11250. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  11251. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  11252. /* keep last */
  11253. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  11254. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  11255. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  11256. };
  11257. /**
  11258. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  11259. * filters defined in this enum are used in attribute
  11260. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  11261. *
  11262. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  11263. * shall filter the channels which are not usable because of coexistence with
  11264. * cellular radio.
  11265. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  11266. * shall filter the channels which are not usable because of existing active
  11267. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  11268. *
  11269. */
  11270. enum qca_wlan_vendor_usable_channels_filter {
  11271. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  11272. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  11273. };
  11274. /**
  11275. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  11276. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  11277. *
  11278. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  11279. * u32 attribute, required. Indicates the center frequency of the primary
  11280. * channel in MHz.
  11281. *
  11282. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  11283. * u32 attribute. Indicates the center frequency of the primary segment of the
  11284. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  11285. * 160 MHz, and 320 MHz channels.
  11286. *
  11287. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  11288. * u32 attribute. Indicates the center frequency of the secondary segment of
  11289. * 80+80 channel in MHz. This attribute is required only when
  11290. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  11291. *
  11292. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  11293. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  11294. * values are defined in enum nl80211_chan_width.
  11295. *
  11296. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  11297. * u32 attribute, required. Indicates all the interface types for which this
  11298. * channel is usable. This attribute encapsulates bitmasks of interface types
  11299. * defined in enum nl80211_iftype.
  11300. *
  11301. */
  11302. enum qca_wlan_vendor_attr_chan_info {
  11303. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  11304. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  11305. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  11306. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  11307. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  11308. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  11309. /* keep last */
  11310. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  11311. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  11312. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  11313. };
  11314. /**
  11315. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  11316. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  11317. *
  11318. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  11319. * u32 attribute. Indicates the bands from which the channels should be reported
  11320. * in response. This attribute encapsulates bit masks of bands defined in enum
  11321. * nl80211_band. Optional attribute, if not present in the request the driver
  11322. * shall return channels from all supported bands.
  11323. *
  11324. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  11325. * u32 attribute. Indicates all the interface types for which the usable
  11326. * channels information is requested. This attribute encapsulates bitmasks of
  11327. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  11328. * present in the request the driver shall send information of all supported
  11329. * interface modes.
  11330. *
  11331. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  11332. * u32 attribute. This attribute carries information of all filters that shall
  11333. * be applied while populating usable channels information by the driver. This
  11334. * attribute carries bit masks of different filters defined in enum
  11335. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  11336. * in the request the driver shall send information of channels without applying
  11337. * any of the filters that can be configured through this attribute.
  11338. *
  11339. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  11340. * Nested attribute. This attribute shall be used by the driver to send
  11341. * usability information of each channel. The attributes defined in enum
  11342. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  11343. */
  11344. enum qca_wlan_vendor_attr_usable_channels {
  11345. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  11346. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  11347. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  11348. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  11349. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  11350. /* keep last */
  11351. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  11352. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  11353. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  11354. };
  11355. /**
  11356. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  11357. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  11358. *
  11359. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  11360. * the list of radar history entries.
  11361. * Each entry contains freq, timestamp, and radar signal detect flag.
  11362. * The driver shall add an entry when CAC has finished, or radar signal
  11363. * has been detected post AP beaconing. The driver shall maintain at least
  11364. * 8 entries in order to save CAC result for a 160 MHz channel.
  11365. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  11366. * Channel frequency in MHz.
  11367. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  11368. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  11369. * or radar detection.
  11370. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  11371. * This flag indicates radar signal has been detected.
  11372. */
  11373. enum qca_wlan_vendor_attr_radar_history {
  11374. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  11375. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  11376. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  11377. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  11378. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  11379. /* keep last */
  11380. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  11381. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  11382. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  11383. };
  11384. /**
  11385. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  11386. *
  11387. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  11388. * target exited MCC state and cleared the quota information. In the
  11389. * command it clears MCC quota setting and restores adaptive scheduling.
  11390. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  11391. * will not be changed.
  11392. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  11393. * and the target may change the quota based on the data activity.
  11394. */
  11395. enum qca_wlan_vendor_mcc_quota_type {
  11396. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  11397. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  11398. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  11399. };
  11400. /**
  11401. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  11402. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  11403. * quota information or as a command to set the required MCC quota for an
  11404. * interface.
  11405. *
  11406. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  11407. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  11408. * In a command this specifies the MCC quota type to be set for the interface.
  11409. * In an event this provides the current quota type in force.
  11410. * This is required in a command and an event.
  11411. *
  11412. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  11413. * the list of channel quota entries.
  11414. * In an event each entry contains the frequency and respective time quota for
  11415. * all the MCC interfaces.
  11416. * In a command it specifies the interface index and respective time quota.
  11417. * In a command only one entry (ifindex, quota pair) may be specified.
  11418. *
  11419. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  11420. * Channel frequency in MHz. This is present only in an event.
  11421. *
  11422. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  11423. * Channel time quota expressed as percentage.
  11424. * This is present in an event and a command.
  11425. * In an command, the user shall specify the quota to be allocated for the
  11426. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  11427. * In an event this provides the existing quota for the channel.
  11428. *
  11429. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  11430. * Specifies the interface index (netdev) for which the corresponding
  11431. * configurations are applied. This is required in a command only. Only one
  11432. * interface index may be specified. If not specified, the configuration is
  11433. * rejected.
  11434. */
  11435. enum qca_wlan_vendor_attr_mcc_quota {
  11436. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  11437. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  11438. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  11439. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  11440. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  11441. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  11442. /* keep last */
  11443. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  11444. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  11445. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  11446. };
  11447. /**
  11448. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  11449. * radio configurations present in each radio combination.
  11450. *
  11451. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  11452. * the band info in the radio configuration. Uses the enum qca_set_band values.
  11453. *
  11454. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  11455. * the number of antennas info in the radio configuration.
  11456. */
  11457. enum qca_wlan_vendor_attr_supported_radio_cfg {
  11458. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  11459. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  11460. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  11461. /* keep last */
  11462. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  11463. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  11464. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  11465. };
  11466. /**
  11467. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  11468. * radio combinations supported by the device.
  11469. *
  11470. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  11471. * provides the radio configurations present in the radio combination.
  11472. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  11473. * This attribute provides the values for radio combination matrix.
  11474. * For standalone config, the number of config values is one and the config
  11475. * carries the band and antenna information for standalone configuration. For
  11476. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  11477. * configuration the number of config values is two and the config carries the
  11478. * band and antenna information for each simultaneous radio.
  11479. */
  11480. enum qca_wlan_vendor_attr_radio_combination {
  11481. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  11482. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  11483. /* keep last */
  11484. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  11485. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  11486. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  11487. };
  11488. /**
  11489. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  11490. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  11491. *
  11492. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  11493. * provides the radio combinations supported by the device.
  11494. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  11495. * For example, in the radio combination matrix for a device which has two
  11496. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  11497. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  11498. * combinations is 5 and the radio combinations are
  11499. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  11500. * {{5 GHz 2X2}}, //Standalone 5 GHz
  11501. * {{6 GHz 2X2}}, //Standalone 6 GHz
  11502. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  11503. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  11504. * The band and antenna info together as nested data provides one radio config.
  11505. * Standalone configuration has one config with band and antenna nested data.
  11506. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  11507. * have two nested band and antenna info data.
  11508. */
  11509. enum qca_wlan_vendor_attr_radio_combination_matrix {
  11510. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  11511. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  11512. /* keep last */
  11513. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  11514. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  11515. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  11516. };
  11517. /**
  11518. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  11519. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  11520. *
  11521. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  11522. * Enable mDNS offload. This attribute is mandatory to enable
  11523. * mDNS offload feature. If this attribute is not present, mDNS offload
  11524. * is disabled.
  11525. *
  11526. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  11527. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  11528. * attribute is mandatory when enabling the feature, and not required when
  11529. * disabling the feature.
  11530. *
  11531. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  11532. * the following attributes:
  11533. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  11534. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  11535. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  11536. *
  11537. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  11538. * It consists of a hostname and ".local" as the domain name. The character
  11539. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  11540. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  11541. * supported per vdev.
  11542. * For example: myphone.local
  11543. *
  11544. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  11545. * u16 attribute. It specifies the total number of resource records present
  11546. * in the answer section of the answer payload. This attribute is needed by the
  11547. * firmware to populate the mDNS response frame for mNDS queries without having
  11548. * to parse the answer payload.
  11549. *
  11550. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  11551. * attribute sent by the mdnsResponder from userspace. It contains resource
  11552. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  11553. * payload is passed down to firmware and is transmitted in response to
  11554. * mDNS queries.
  11555. * The maximum size of the answer payload supported is 512 bytes.
  11556. */
  11557. enum qca_wlan_vendor_attr_mdns_offload {
  11558. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  11559. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  11560. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  11561. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  11562. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  11563. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  11564. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  11565. /* keep last */
  11566. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  11567. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  11568. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  11569. };
  11570. /**
  11571. * enum qca_vendor_attr_diag_event_type - Attributes used by
  11572. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  11573. *
  11574. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  11575. * driver/firmware during Connection request from Userspace. Uses the
  11576. * following attributes of enum qca_wlan_vendor_attr_diag:
  11577. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11578. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  11579. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11580. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  11581. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11582. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  11583. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  11584. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  11585. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  11586. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  11587. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  11588. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  11589. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11590. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11591. *
  11592. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  11593. * driver/firmware when a connection is failed. Uses the
  11594. * following attributes of enum qca_wlan_vendor_attr_diag:
  11595. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11596. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11597. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11598. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11599. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11600. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11601. *
  11602. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  11603. * driver/firmware during Authentication request from a device. Uses the
  11604. * following attributes of enum qca_wlan_vendor_attr_diag:
  11605. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11606. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11607. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11608. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  11609. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  11610. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11611. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  11612. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11613. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11614. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11615. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11616. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11617. *
  11618. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  11619. * driver/firmware when device receives an authentication response. Uses the
  11620. * following attributes of enum qca_wlan_vendor_attr_diag:
  11621. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11622. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11623. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  11624. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  11625. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11626. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  11627. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11628. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11629. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11630. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11631. *
  11632. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  11633. * driver/firmware when device sends an association request. Uses the
  11634. * following attributes of enum qca_wlan_vendor_attr_diag:
  11635. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11636. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11637. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11638. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11639. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11640. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11641. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11642. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11643. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11644. *
  11645. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  11646. * driver/firmware when device receives an association response. Uses the
  11647. * following attributes of enum qca_wlan_vendor_attr_diag:
  11648. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11649. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11650. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11651. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  11652. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11653. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11654. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11655. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  11656. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  11657. *
  11658. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  11659. * driver/userspace when device receives a deauthentication response. Uses the
  11660. * following attributes of enum qca_wlan_vendor_attr_diag:
  11661. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11662. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11663. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11664. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11665. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11666. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11667. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11668. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11669. *
  11670. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  11671. * driver/userspace when device sends a deauthentication request. Uses the
  11672. * following attributes of enum qca_wlan_vendor_attr_diag:
  11673. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11674. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11675. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11676. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11677. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11678. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11679. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11680. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11681. *
  11682. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  11683. * driver/firmware when device receives a disassociation response. Uses the
  11684. * following attributes of enum qca_wlan_vendor_attr_diag:
  11685. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11686. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11687. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11688. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11689. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11690. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11691. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11692. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11693. *
  11694. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  11695. * driver/firmware when device sends a disassociation request. Uses the
  11696. * following attributes of enum qca_wlan_vendor_attr_diag:
  11697. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11698. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11699. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11700. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11701. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11702. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11703. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11704. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11705. *
  11706. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  11707. * driver/firmware when device did not receive beacon packets during connection.
  11708. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  11709. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11710. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11711. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11712. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11713. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11714. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11715. *
  11716. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  11717. * driver/firmware when Roaming scan is triggered. Uses the following
  11718. * attributes of enum qca_wlan_vendor_attr_diag:
  11719. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11720. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  11721. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  11722. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11723. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11724. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  11725. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  11726. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11727. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11728. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11729. *
  11730. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  11731. * driver/firmware Roam scanning is processed. Uses the following
  11732. * attributes of enum qca_wlan_vendor_attr_diag:
  11733. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11734. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11735. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  11736. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  11737. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11738. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11739. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11740. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  11741. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  11742. *
  11743. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  11744. * driver/firmware to provide Roam information of the current AP. Uses the
  11745. * following attributes of enum qca_wlan_vendor_attr_diag:
  11746. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11747. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11748. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11749. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11750. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11751. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  11752. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11753. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11754. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11755. *
  11756. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  11757. * driver/firmware to provide Roam information of the candid AP. Uses the
  11758. * following attributes of enum qca_wlan_vendor_attr_diag:
  11759. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11760. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11761. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11762. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11763. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11764. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  11765. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  11766. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11767. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11768. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11769. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11770. *
  11771. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  11772. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  11773. * following attributes of enum qca_wlan_vendor_attr_diag:
  11774. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11775. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  11776. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11777. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11778. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11779. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11780. *
  11781. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  11782. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  11783. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11784. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11785. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11786. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11787. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11788. *
  11789. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  11790. * /firmware when STA sends a BTM request frame. Uses the following attributes
  11791. * of enum qca_wlan_vendor_attr_diag:
  11792. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11793. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11794. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  11795. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  11796. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  11797. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  11798. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11799. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11800. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11801. *
  11802. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  11803. * driver/firmware when STA queries about BTM transition. Uses the following
  11804. * attributes of enum qca_wlan_vendor_attr_diag:
  11805. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11806. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11807. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  11808. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11809. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11810. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11811. *
  11812. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  11813. * /firmware when STA receives BTM response frame. Uses the following
  11814. * attributes of enum qca_wlan_vendor_attr_diag:
  11815. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11816. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11817. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  11818. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  11819. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  11820. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11821. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11822. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11823. *
  11824. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  11825. * driver/firmware to provide BTM request candidate information. Uses the
  11826. * following attributes of enum qca_wlan_vendor_attr_diag:
  11827. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11828. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11829. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  11830. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11831. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11832. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11833. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11834. *
  11835. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  11836. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  11837. * enum qca_wlan_vendor_attr_diag:
  11838. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11839. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  11840. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11841. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  11842. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11843. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11844. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11845. *
  11846. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  11847. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  11848. * attributes of enum qca_wlan_vendor_attr_diag:
  11849. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11850. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11851. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11852. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11853. *
  11854. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  11855. * driver/firmware to indicate DHCP offering to AP. Uses the following
  11856. * attributes of enum qca_wlan_vendor_attr_diag:
  11857. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11858. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11859. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11860. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11861. *
  11862. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  11863. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  11864. * attributes of enum qca_wlan_vendor_attr_diag:
  11865. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11866. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11867. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11868. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11869. *
  11870. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  11871. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  11872. * attributes of enum qca_wlan_vendor_attr_diag:
  11873. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11874. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11875. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11876. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11877. *
  11878. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  11879. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  11880. * following attributes of enum qca_wlan_vendor_attr_diag:
  11881. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11882. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11883. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11884. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11885. *
  11886. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  11887. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  11888. * enum qca_wlan_vendor_attr_diag:
  11889. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11890. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11891. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11892. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11893. *
  11894. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  11895. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  11896. * enum qca_wlan_vendor_attr_diag:
  11897. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11898. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11899. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11900. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11901. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11902. *
  11903. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  11904. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  11905. * enum qca_wlan_vendor_attr_diag:
  11906. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11907. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11908. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11909. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11910. *
  11911. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  11912. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  11913. * enum qca_wlan_vendor_attr_diag:
  11914. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11915. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11916. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11917. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11918. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11919. *
  11920. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  11921. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  11922. * enum qca_wlan_vendor_attr_diag:
  11923. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11924. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11925. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11926. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11927. *
  11928. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  11929. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  11930. * enum qca_wlan_vendor_attr_diag:
  11931. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11932. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11933. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11934. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11935. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11936. *
  11937. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  11938. * /firmware to indicate device sent EAP request. Uses the following attributes
  11939. * of enum qca_wlan_vendor_attr_diag:
  11940. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11941. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  11942. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  11943. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11944. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11945. *
  11946. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  11947. * /firmware to indicate device received EAP response. Uses the following
  11948. * attributes of enum qca_wlan_vendor_attr_diag:
  11949. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11950. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  11951. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  11952. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11953. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11954. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11955. *
  11956. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  11957. * /firmware to indicate EAP frame transmission is success. Uses the following
  11958. * attributes of enum qca_wlan_vendor_attr_diag:
  11959. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11960. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11961. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11962. *
  11963. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  11964. * /firmware to indicate EAP frame transmission is failed. Uses the following
  11965. * attributes of enum qca_wlan_vendor_attr_diag:
  11966. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  11967. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11968. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  11969. *
  11970. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  11971. * /firmware to indicate Reassocation request. Uses the following attributes
  11972. * of enum qca_wlan_vendor_attr_diag:
  11973. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  11974. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11975. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11976. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11977. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11978. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11979. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11980. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11981. *
  11982. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  11983. * /firmware to indicate Reassocation response. Uses the following attributes
  11984. * of enum qca_wlan_vendor_attr_diag:
  11985. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  11986. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11987. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11988. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  11989. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  11990. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  11991. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  11992. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11993. */
  11994. enum qca_vendor_attr_diag_event_type {
  11995. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  11996. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  11997. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  11998. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  11999. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  12000. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  12001. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  12002. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  12003. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  12004. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  12005. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  12006. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  12007. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  12008. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  12009. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  12010. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  12011. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  12012. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  12013. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  12014. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  12015. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  12016. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  12017. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  12018. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  12019. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  12020. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  12021. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  12022. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  12023. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  12024. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  12025. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  12026. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  12027. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  12028. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  12029. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  12030. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  12031. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  12032. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  12033. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  12034. /* keep last */
  12035. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  12036. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  12037. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  12038. };
  12039. /**
  12040. * enum qca_wlan_vendor_tx_status - Used by attribute
  12041. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  12042. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  12043. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  12044. * is not received.
  12045. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  12046. * acknowledged.
  12047. */
  12048. enum qca_wlan_vendor_tx_status {
  12049. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  12050. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  12051. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  12052. };
  12053. /**
  12054. * enum qca_roam_sub_reason - Used by attribute
  12055. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  12056. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  12057. * timer expiry
  12058. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  12059. * to no candidate found during LOW RSSI trigger.
  12060. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  12061. * Imminent timeout
  12062. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  12063. * failure
  12064. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  12065. * emergency like deauth/disassoc.
  12066. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  12067. * BSS transition management request.
  12068. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  12069. * Roam scan triggered due to Low RSSI periodic timer
  12070. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  12071. * Roam trigger due to periodic timer after no candidate found during CU
  12072. * inactivity timer scan.
  12073. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  12074. * found in high CU roam trigger.
  12075. */
  12076. enum qca_roam_sub_reason {
  12077. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  12078. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  12079. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  12080. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  12081. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  12082. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  12083. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  12084. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  12085. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  12086. };
  12087. /*
  12088. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  12089. * to send diag data to the userspace. The attributes defined in this enum are
  12090. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  12091. *
  12092. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  12093. * by driver/firmware to send diag data. Each instance of this nested attribute
  12094. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  12095. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  12096. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  12097. * nested attribute can be sent with one vendor command
  12098. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  12099. *
  12100. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  12101. * attribute indicates the type of the diag event from driver/firmware. Uses
  12102. * values from enum qca_vendor_attr_diag_event_type.
  12103. *
  12104. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  12105. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  12106. * API to send time of the day in microseconds to userspace.
  12107. *
  12108. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  12109. * This attribute indicates firmware timestamp in microseconds.
  12110. *
  12111. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  12112. * indicates wlan interface index.
  12113. *
  12114. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  12115. * indicates 6-byte MAC address representing the BSSID of the AP.
  12116. *
  12117. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  12118. * indicates the 6-byte MAC address representing the BSSID hint sent in
  12119. * the connect request.
  12120. *
  12121. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  12122. * indicates the SSID in u8 array with a maximum length of 32.
  12123. *
  12124. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  12125. * indicates the frequency of AP in MHz.
  12126. *
  12127. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  12128. * indicates frequency hint given in the connect request in MHz.
  12129. *
  12130. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  12131. * This attribute indicates RSSI of the 802.11 frame in dBm.
  12132. *
  12133. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  12134. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  12135. * Table 12-10—Integrity and key wrap algorithms.
  12136. *
  12137. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  12138. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  12139. * Table 12-10—Integrity and key wrap algorithms.
  12140. *
  12141. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  12142. * attribute indicates Group management cipher suite defined in IEEE Std
  12143. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  12144. *
  12145. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  12146. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  12147. * Table 9-151—AKM suite selectors.
  12148. *
  12149. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  12150. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  12151. * Section 9.4.1.1 Authentication Algorithm Number field.
  12152. *
  12153. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  12154. * indicates bluetooth COEX is active or not.
  12155. *
  12156. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  12157. * attribute indicates SAE authentication frame type. The possible values are
  12158. * 1 - SAE commit frame
  12159. * 2 - SAE confirm frame
  12160. *
  12161. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  12162. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  12163. * Table 9-49—Reason codes.
  12164. *
  12165. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  12166. * attribute indicates sequence number of the frame defined in IEEE Std
  12167. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  12168. * field.
  12169. *
  12170. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  12171. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  12172. * 9-50—Status codes.
  12173. *
  12174. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  12175. * Uses enum qca_wlan_vendor_tx_status.
  12176. *
  12177. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  12178. * indicates if frame transmission is retried.
  12179. *
  12180. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  12181. * Uses enum qca_roam_reason.
  12182. *
  12183. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  12184. * Uses enum qca_roam_sub_reason.
  12185. *
  12186. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  12187. * indicates channel utilization in percentage.
  12188. *
  12189. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  12190. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  12191. *
  12192. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  12193. * This attribute indicates current RSSI threshold in dBm.
  12194. *
  12195. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  12196. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  12197. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  12198. *
  12199. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  12200. * This attribute indicates number of scanned candidate APs.
  12201. *
  12202. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  12203. * attribute indicates roam AP rank computed based on connection preference.
  12204. *
  12205. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  12206. * This attribute indicates expected throughput in kbps.
  12207. *
  12208. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  12209. * This attribute indicates the preference value of candidate AP / connected AP
  12210. * calculated in the firmware.
  12211. *
  12212. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  12213. * indicates connection/roaming is successful or not.
  12214. *
  12215. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  12216. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  12217. * IE present in the BTM frame.
  12218. *
  12219. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  12220. * This attribute indicates BTM WTC duration in milliseconds.
  12221. *
  12222. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  12223. * indicates dialog token value of BTM query/request/response frames.
  12224. *
  12225. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  12226. * attribute indicates the Transition Reason field indicates the reason why
  12227. * a transition attempt occurred and contains one of the values defined in IEEE
  12228. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  12229. *
  12230. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  12231. * indicates BTM mode defined in IEEE Std 802.11‐2020
  12232. * Figure 9-924—Request Mode field format.
  12233. *
  12234. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  12235. * This attribute indicates the Disassociation Timer field which is the number
  12236. * of beacon transmission times (TBTTs) until the serving AP will send a
  12237. * Disassociation frame to this STA.
  12238. *
  12239. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  12240. * This attribute indicates BTM validity interval field in TBTTs defined in
  12241. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  12242. * Action field format.
  12243. *
  12244. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  12245. * This attribute indicates BTM candidate list entries.
  12246. *
  12247. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  12248. * This attribute indicates network preference for BTM transition defined in
  12249. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  12250. *
  12251. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  12252. * This attribute indicates BTM transition status code defined in IEEE Std
  12253. * 802.11‐2020 Table 9-428—BTM status code definitions.
  12254. *
  12255. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  12256. * This attribute indicates BSS termination delay defined in IEEE Std
  12257. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  12258. *
  12259. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  12260. * This attribute indicates 6-byte MAC address representing the BSSID of the
  12261. * BSS that the non-AP STA transitions to.
  12262. *
  12263. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  12264. * indicates EAP frame type. The methods are enumerated by IANA at
  12265. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  12266. *
  12267. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  12268. * indicates EAP frame length.
  12269. *
  12270. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  12271. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  12272. * (Time from boot but not the time spent in suspend) to send in microseconds
  12273. * to userspace.
  12274. *
  12275. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  12276. * indicates the association id received in the (re)association response frame
  12277. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  12278. */
  12279. enum qca_wlan_vendor_attr_diag {
  12280. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  12281. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  12282. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  12283. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  12284. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  12285. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  12286. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  12287. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  12288. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  12289. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  12290. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  12291. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  12292. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  12293. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  12294. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  12295. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  12296. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  12297. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  12298. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  12299. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  12300. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  12301. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  12302. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  12303. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  12304. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  12305. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  12306. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  12307. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  12308. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  12309. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  12310. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  12311. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  12312. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  12313. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  12314. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  12315. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  12316. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  12317. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  12318. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  12319. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  12320. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  12321. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  12322. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  12323. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  12324. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  12325. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  12326. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  12327. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  12328. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  12329. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  12330. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  12331. /* keep last */
  12332. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  12333. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  12334. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  12335. };
  12336. /**
  12337. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  12338. * data types to be sent over the monitor interface.
  12339. */
  12340. enum qca_wlan_vendor_monitor_data_frame_type {
  12341. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  12342. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  12343. not set */
  12344. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  12345. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  12346. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  12347. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  12348. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  12349. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  12350. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  12351. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  12352. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  12353. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  12354. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  12355. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  12356. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  12357. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  12358. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  12359. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  12360. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  12361. };
  12362. /**
  12363. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  12364. * mgmt types to be sent over the monitor interface.
  12365. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  12366. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  12367. * except the Beacons. Valid only in the Connect state.
  12368. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  12369. * BSSID Beacons. Valid only in the Connect state.
  12370. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  12371. * the Beacons obtained during the scan (off channel and connected channel)
  12372. * when in connected state.
  12373. */
  12374. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  12375. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  12376. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  12377. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  12378. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  12379. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  12380. };
  12381. /**
  12382. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  12383. * ctrl types to be sent over the monitor interface.
  12384. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  12385. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  12386. */
  12387. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  12388. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  12389. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  12390. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  12391. };
  12392. /**
  12393. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  12394. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  12395. * monitor mode.
  12396. *
  12397. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  12398. * Represents the tx data packet type to be monitored (u32). These data packets
  12399. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  12400. *
  12401. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  12402. * Represents the tx data packet type to be monitored (u32). These data packets
  12403. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  12404. *
  12405. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  12406. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  12407. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  12408. *
  12409. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  12410. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  12411. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  12412. *
  12413. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  12414. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  12415. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  12416. *
  12417. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  12418. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  12419. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  12420. *
  12421. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  12422. * u32 attribute, An interval only for the connected beacon interval, which
  12423. * expects that the connected BSSID's beacons shall be sent on the monitor
  12424. * interface only on this specific interval.
  12425. */
  12426. enum qca_wlan_vendor_attr_set_monitor_mode {
  12427. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  12428. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  12429. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  12430. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  12431. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  12432. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  12433. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  12434. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  12435. /* keep last */
  12436. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  12437. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  12438. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  12439. };
  12440. /**
  12441. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  12442. * Bits will be set to 1 if the corresponding state is enabled.
  12443. *
  12444. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  12445. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  12446. */
  12447. enum qca_wlan_vendor_roam_scan_state {
  12448. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  12449. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  12450. };
  12451. /**
  12452. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  12453. * Bits will be set to 1 if the corresponding event is notified.
  12454. *
  12455. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  12456. * carries the trigger reason. When set, it is expected that the roam event
  12457. * carries the respective reason via the attribute
  12458. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  12459. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  12460. *
  12461. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  12462. * carries the roam fail reason. When set, it is expected that the roam event
  12463. * carries the respective reason via the attribute
  12464. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  12465. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  12466. *
  12467. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  12468. * event carries the roam invoke fail reason. When set, it is expected that
  12469. * the roam event carries the respective reason via the attribute
  12470. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  12471. *
  12472. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  12473. * carries the roam scan state. When set, it is expected that the roam event
  12474. * carries the respective scan state via the attribute
  12475. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  12476. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  12477. */
  12478. enum qca_wlan_vendor_roam_event_type {
  12479. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  12480. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  12481. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  12482. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  12483. };
  12484. /**
  12485. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  12486. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  12487. *
  12488. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  12489. * representing the BSSID of the AP to which the Roam is attempted.
  12490. *
  12491. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  12492. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  12493. * attempted.
  12494. *
  12495. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  12496. * on which the roam is attempted.
  12497. *
  12498. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  12499. * STA mode only. This represents the roam fail reason for the last failed
  12500. * roaming attempt by the firmware for the specific BSSID. Different roam
  12501. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12502. */
  12503. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  12504. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  12505. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  12506. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  12507. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  12508. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  12509. /* keep last */
  12510. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  12511. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  12512. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  12513. };
  12514. /**
  12515. * enum qca_wlan_vendor_attr_roam_events - Used by the
  12516. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  12517. * roam events to the driver or notify these events from the driver.
  12518. *
  12519. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  12520. * driver/firmware to enable/disable the notification of roam events. It's a
  12521. * mandatory attribute and used only in the request from the userspace to the
  12522. * host driver. 1-Enable, 0-Disable.
  12523. * If the roaming is totally offloaded to the firmware, this request when
  12524. * enabled shall mandate the firmware to notify all the relevant roam events
  12525. * represented by the below attributes. If the host is in the suspend mode,
  12526. * the behavior of the firmware to notify these events is guided by
  12527. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  12528. * these events in the suspend state, the firmware is expected to wake up the
  12529. * host before the respective events are notified. Please note that such a
  12530. * request to get the events in the suspend state will have a definite power
  12531. * implication.
  12532. *
  12533. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  12534. * that the roam events need to be notified in the suspend state too. By
  12535. * default, these roam events are notified in the resume state. With this flag,
  12536. * the roam events are notified in both resume and suspend states.
  12537. * This attribute is used in the request from the userspace to the host driver.
  12538. *
  12539. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  12540. * Represents the different roam event types, signified by the enum
  12541. * qca_wlan_vendor_roam_event_type.
  12542. * Each bit of this attribute represents the different roam even types reported
  12543. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12544. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12545. *
  12546. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  12547. * mode only. This represents the roam trigger reason for the last roaming
  12548. * attempted by the firmware. Each bit of this attribute represents the
  12549. * different roam trigger reason code which are defined in enum
  12550. * qca_vendor_roam_triggers.
  12551. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12552. *
  12553. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  12554. * STA mode only. This represents the roam invoke fail reason for the last
  12555. * failed roam invoke. Different roam invoke failure reason codes
  12556. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  12557. *
  12558. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  12559. * for which the roam is attempted. Each entry is a nested attribute defined
  12560. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  12561. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12562. *
  12563. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  12564. * the scan state on which the roam events need to be notified. The values for
  12565. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  12566. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12567. *
  12568. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  12569. * u32 values. List of frequencies in MHz considered for a roam scan.
  12570. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  12571. */
  12572. enum qca_wlan_vendor_attr_roam_events {
  12573. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  12574. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  12575. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  12576. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  12577. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  12578. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  12579. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  12580. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  12581. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  12582. /* keep last */
  12583. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  12584. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  12585. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  12586. };
  12587. /*
  12588. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  12589. *
  12590. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  12591. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  12592. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  12593. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  12594. */
  12595. enum qca_wlan_ratemask_params_type {
  12596. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  12597. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  12598. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  12599. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  12600. };
  12601. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  12602. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  12603. * This is used to set the rate mask value to be used in rate selection.
  12604. *
  12605. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  12606. * Array of nested containing attributes
  12607. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  12608. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  12609. *
  12610. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  12611. * the different phy types to which the rate mask config is to be applied.
  12612. * The values for this attribute are referred from enum
  12613. * qca_wlan_vendor_ratemask_params_type.
  12614. *
  12615. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  12616. * A bit value of 1 represents rate is enabled and a value of 0
  12617. * represents rate is disabled.
  12618. * For HE targets, 12 bits correpond to one NSS setting.
  12619. * b0-13 => NSS1, MCS 0-13
  12620. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  12621. * For VHT targets, 10 bits correspond to one NSS setting.
  12622. * b0-9 => NSS1, MCS 0-9
  12623. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  12624. * For HT targets, 8 bits correspond to one NSS setting.
  12625. * b0-7 => NSS1, MCS 0-7
  12626. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  12627. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  12628. */
  12629. enum qca_wlan_vendor_attr_ratemask_params {
  12630. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  12631. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  12632. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  12633. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  12634. /* keep last */
  12635. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  12636. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  12637. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  12638. };
  12639. /**
  12640. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  12641. * the policy to flush pending frames, configured via
  12642. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  12643. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  12644. *
  12645. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  12646. * the flush policy configured before. This command basically disables the
  12647. * flush config set by the user.
  12648. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  12649. * the flush policy to be immediate. All pending packets for the peer/TID are
  12650. * flushed when this command/policy is received.
  12651. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  12652. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  12653. * are flushed when the end of TWT SP is reached.
  12654. */
  12655. enum qca_wlan_vendor_flush_pending_policy {
  12656. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  12657. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  12658. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  12659. };
  12660. /**
  12661. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  12662. * flushing pending traffic in firmware.
  12663. *
  12664. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  12665. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  12666. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  12667. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  12668. * flush packets with access category. This is optional. See below.
  12669. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  12670. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  12671. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  12672. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  12673. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  12674. * it is an error.
  12675. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  12676. * packets corresponding to the peer/TID provided. It is a u32 value,
  12677. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  12678. * value is honored only when TID mask is provided. This is not honored when AC
  12679. * mask is provided.
  12680. */
  12681. enum qca_wlan_vendor_attr_flush_pending {
  12682. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  12683. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  12684. QCA_WLAN_VENDOR_ATTR_AC = 2,
  12685. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  12686. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  12687. /* keep last */
  12688. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  12689. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  12690. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  12691. };
  12692. /**
  12693. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  12694. * for) or drop existing PASN security association for the listed the
  12695. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  12696. * to userspace.
  12697. *
  12698. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  12699. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  12700. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  12701. * the driver to userspace to inform that the existing PASN keys of the
  12702. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  12703. * not valid anymore.
  12704. */
  12705. enum qca_wlan_vendor_pasn_action {
  12706. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  12707. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  12708. };
  12709. /**
  12710. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  12711. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  12712. *
  12713. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  12714. * event from the driver to userspace and represents the local MAC address
  12715. * to be used for PASN handshake. When this attribute is present, userspace
  12716. * shall use the source address specified in this attribute by the driver
  12717. * for PASN handshake with peer device.
  12718. * This attribute is required in a command response from userspace to the
  12719. * driver and represents the MAC address that was used in PASN handshake
  12720. * with the peer device.
  12721. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  12722. * peer device to which PASN handshake is requested in an event from the
  12723. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  12724. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  12725. * Indicates the MAC address of the peer device for which the keys are to
  12726. * be invalidated in an event from the driver to userspace when
  12727. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  12728. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  12729. * Indicates the MAC address of the peer device for which the status is
  12730. * being sent in a status report from userspace to the driver.
  12731. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  12732. * in the event from the driver to userspace. When set, userspace is
  12733. * required to derive LTF key seed from KDK and set it to the driver.
  12734. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  12735. * attribute is used in the command response from userspace to the driver.
  12736. * If present, it indicates the successful PASN handshake with the peer. If
  12737. * this flag is not present, it indicates that the PASN handshake with the
  12738. * peer device failed.
  12739. */
  12740. enum qca_wlan_vendor_attr_pasn_peer {
  12741. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  12742. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  12743. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  12744. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  12745. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  12746. /* keep last */
  12747. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  12748. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  12749. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  12750. };
  12751. /**
  12752. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  12753. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  12754. *
  12755. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  12756. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  12757. * from the driver to userspace.
  12758. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  12759. * details for each peer and used in both an event and a command response.
  12760. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  12761. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  12762. */
  12763. enum qca_wlan_vendor_attr_pasn {
  12764. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  12765. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  12766. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  12767. /* keep last */
  12768. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  12769. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  12770. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  12771. };
  12772. /**
  12773. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  12774. * the ranging security context derived from PASN for each peer. Used in
  12775. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  12776. *
  12777. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  12778. * context for the peer.
  12779. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  12780. * context for the peer.
  12781. */
  12782. enum qca_wlan_vendor_secure_ranging_ctx_action {
  12783. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  12784. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  12785. };
  12786. /**
  12787. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  12788. * used for deriving PASN keys to the driver. Used in
  12789. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  12790. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  12791. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  12792. */
  12793. enum qca_wlan_vendor_sha_type {
  12794. QCA_WLAN_VENDOR_SHA_256,
  12795. QCA_WLAN_VENDOR_SHA_384,
  12796. };
  12797. /**
  12798. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  12799. * to set security context for the PASN peer from userspace to the driver.
  12800. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  12801. *
  12802. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  12803. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  12804. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  12805. * was used during the PASN handshake.
  12806. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  12807. * the peer device for which secure ranging context is being configured.
  12808. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  12809. * hash algorithm to be used, possible values are defined in enum
  12810. * qca_wlan_vendor_sha_type.
  12811. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  12812. * the temporal key generated from the PASN handshake. The length of this
  12813. * attribute is dependent on the value of
  12814. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  12815. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  12816. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  12817. * (e.g., 0x000FAC04).
  12818. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  12819. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  12820. * The length of this attribute is dependent on the value of
  12821. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  12822. *
  12823. */
  12824. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  12825. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  12826. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  12827. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  12828. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  12829. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  12830. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  12831. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  12832. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  12833. /* keep last */
  12834. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  12835. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  12836. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  12837. };
  12838. /**
  12839. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  12840. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  12841. * nested attribute. The packets that match a filter will be replied with
  12842. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  12843. *
  12844. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  12845. * u32 attribute. Destination IPv4 address in network byte order, the
  12846. * IPv4 packets with different address will be filtered out.
  12847. * This attribute is optional.
  12848. *
  12849. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  12850. * Flag attribute. If it's present, indicates that
  12851. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  12852. * address; while if not, indicates that the address is a unicast/multicast
  12853. * address.
  12854. * This attribute is optional.
  12855. *
  12856. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  12857. * NLA_BINARY attribute, length is 16 bytes.
  12858. * Destination IPv6 address in network byte order, the IPv6 packets
  12859. * with different destination address will be filtered out.
  12860. * This attribute is optional.
  12861. *
  12862. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  12863. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  12864. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  12865. *
  12866. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  12867. * u16 attribute. Destination UDP port, the packets with different destination
  12868. * UDP port will be filtered out.
  12869. * This attribute is mandatory.
  12870. *
  12871. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  12872. * u32 attribute. Represents the offset (in UDP payload) of the data
  12873. * to be matched.
  12874. * This attribute is mandatory.
  12875. *
  12876. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  12877. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  12878. * Binary data that is compared bit-by-bit against the data (specified
  12879. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  12880. * payload, the packets don't match will be filtered out.
  12881. * This attribute is mandatory.
  12882. */
  12883. enum qca_wlan_vendor_attr_coap_offload_filter {
  12884. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  12885. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  12886. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  12887. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  12888. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  12889. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  12890. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  12891. /* keep last */
  12892. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  12893. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  12894. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  12895. };
  12896. /**
  12897. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  12898. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  12899. *
  12900. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  12901. * u32 attribute. Source address (in network byte order) for replying
  12902. * the matching broadcast/multicast IPv4 packets.
  12903. * This attribute is optional.
  12904. *
  12905. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  12906. * NLA_BINARY attribute, length is 16 bytes.
  12907. * Source address (in network byte order) for replying the matching
  12908. * multicast IPv6 packets.
  12909. * This attribute is optional.
  12910. *
  12911. * For broadcast/multicast offload reply, one of
  12912. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  12913. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  12914. * configured according to version of the IP address(es) configured in
  12915. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  12916. * while for unicast case, firmware will take the destination IP address
  12917. * in the received matching packet as the source address for replying.
  12918. *
  12919. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  12920. * Nested attribute. Filter for the received UDP packets, only the matching
  12921. * packets will be replied and cached.
  12922. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  12923. * attributes.
  12924. * This attribute is mandatory.
  12925. *
  12926. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  12927. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  12928. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  12929. * Firmware is responsible for adding any necessary protocol headers.
  12930. * This attribute is mandatory.
  12931. *
  12932. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  12933. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  12934. * A cached message will be dropped by firmware if it's expired.
  12935. * This attribute is optional. A default value of 40000 will be used in the
  12936. * absence of it.
  12937. */
  12938. enum qca_wlan_vendor_attr_coap_offload_reply {
  12939. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  12940. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  12941. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  12942. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  12943. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  12944. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  12945. /* keep last */
  12946. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  12947. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  12948. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  12949. };
  12950. /**
  12951. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  12952. * CoAP message (UDP) transmitting on IPv4.
  12953. *
  12954. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  12955. * u32 attribute. Source address (in network byte order) for transmitting
  12956. * packets on IPv4.
  12957. * This attribute is mandatory.
  12958. *
  12959. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  12960. * u16 attribute. Source UDP port.
  12961. * This attribute is optional, a random port is taken if it's not present.
  12962. *
  12963. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  12964. * u32 attribute. Destination IPv4 address (in network byte order).
  12965. * This attribute is mandatory.
  12966. *
  12967. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  12968. * Flag attribute. If it's present, indicates that
  12969. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  12970. * address; while if not, indicates that the address is unicast/multicast
  12971. * address.
  12972. * This attribute is optional.
  12973. *
  12974. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  12975. * u16 attribute. Destination UDP port.
  12976. * This attribute is mandatory.
  12977. */
  12978. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  12979. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  12980. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  12981. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  12982. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  12983. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  12984. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  12985. /* keep last */
  12986. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  12987. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  12988. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  12989. };
  12990. /**
  12991. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  12992. * CoAP message (UDP) transmitting on IPv6.
  12993. *
  12994. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  12995. * NLA_BINARY attribute, length is 16 bytes.
  12996. * Source address (in network byte order) for transmitting packets on IPv6.
  12997. * This attribute is mandatory.
  12998. *
  12999. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  13000. * u16 attribute. Source UDP port.
  13001. * This attribute is optional, a random port is taken if it's not present.
  13002. *
  13003. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  13004. * NLA_BINARY attribute, length is 16 bytes.
  13005. * Destination IPv6 address (in network byte order).
  13006. * This attribute is mandatory.
  13007. *
  13008. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  13009. * u16 attribute. Destination UDP port.
  13010. * This attribute is mandatory.
  13011. */
  13012. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  13013. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  13014. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  13015. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  13016. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  13017. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  13018. /* keep last */
  13019. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  13020. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  13021. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  13022. };
  13023. /**
  13024. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  13025. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  13026. *
  13027. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  13028. * Nested attribute. The IPv4 source/destination address/port for offload
  13029. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  13030. * of supported attributes.
  13031. * This attribute is optional.
  13032. *
  13033. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  13034. * Nested attribute. The IPv6 source/destination address/port for offload
  13035. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  13036. * of supported attributes.
  13037. * This attribute is optional.
  13038. *
  13039. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  13040. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  13041. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  13042. * configured.
  13043. *
  13044. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  13045. * u32 attribute. Period in milliseconds for the periodic transmitting.
  13046. * This attribute is mandatory.
  13047. *
  13048. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  13049. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  13050. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  13051. * is responsible for adding any necessary protocol headers.
  13052. * This attribute is mandatory.
  13053. */
  13054. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  13055. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  13056. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  13057. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  13058. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  13059. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  13060. /* keep last */
  13061. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  13062. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  13063. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  13064. };
  13065. /**
  13066. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  13067. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  13068. *
  13069. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  13070. * u64 attribute. Received time (since system booted in microseconds) of
  13071. * the cached CoAP message.
  13072. * This attribute is mandatory.
  13073. *
  13074. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  13075. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  13076. * CoAP message.
  13077. * This attribute is optional.
  13078. *
  13079. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  13080. * NLA_BINARY attribute, length is 16 bytes.
  13081. * Source IPv6 address (in network byte order) of the cached CoAP message.
  13082. * This attribute is optional.
  13083. *
  13084. * At most and at least one of
  13085. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  13086. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  13087. * an entry.
  13088. *
  13089. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  13090. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  13091. * The cached CoAP message (UDP payload). If the actual message size is
  13092. * greater than the maximum size, it will be truncated and leaving only
  13093. * the first 1152 bytes.
  13094. * This attribute is mandatory.
  13095. */
  13096. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  13097. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  13098. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  13099. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  13100. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  13101. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  13102. /* keep last */
  13103. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  13104. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  13105. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  13106. };
  13107. /**
  13108. * enum qca_wlan_vendor_coap_offload_action - Actions for
  13109. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  13110. *
  13111. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  13112. * Enable CoAP offload reply.
  13113. * If it's enabled, firmware will start offload processing on each suspend
  13114. * and stop on each resume.
  13115. *
  13116. * Offload reply on match works as follows:
  13117. * Reply the packets that match the filter with the given CoAP
  13118. * message (with necessary protocol headers), increase the CoAP message
  13119. * ID in the given CoAP message by one for the next use after each successful
  13120. * transmission, and try to store the information of the received packet,
  13121. * including the received time, source IP address, and CoAP message (UDP
  13122. * payload).
  13123. *
  13124. * Firmware has a limit to the maximum stored entries, it takes the source IP
  13125. * address as the key of an entry, and keeps at most one entry for each key.
  13126. * A packet won't be stored if no entry for the same key is present and the
  13127. * total number of the existing unexpired entries reaches the maximum value.
  13128. *
  13129. * If any configured item is changed, user space should disable offload reply
  13130. * first and then issue a new enable request.
  13131. *
  13132. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  13133. * Disable CoAP offload reply and return information of any cached CoAP
  13134. * messages.
  13135. *
  13136. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  13137. * Enable CoAP offload periodic transmitting.
  13138. * If it's enabled, firmware will start offload periodic transmitting on
  13139. * each suspend and stop on each resume.
  13140. *
  13141. * Offload periodic transmitting works as follows:
  13142. * Send the given CoAP message (with necessary protocol headers) with the given
  13143. * source/destination IP address/UDP port periodically based on the given
  13144. * period and increase the CoAP message ID in the given CoAP message by one
  13145. * for the next use after each successful transmission.
  13146. *
  13147. * If any configured item is changed, user space should disable offload
  13148. * periodic transmitting first and then issue a new enable request.
  13149. *
  13150. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  13151. * Disable CoAP offload periodic transmitting.
  13152. *
  13153. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  13154. * Get information of the CoAP messages cached during offload reply
  13155. * processing. The cache is cleared after retrieval.
  13156. */
  13157. enum qca_wlan_vendor_coap_offload_action {
  13158. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  13159. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  13160. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  13161. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  13162. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  13163. };
  13164. /**
  13165. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  13166. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  13167. * This is used to set parameters for CoAP offload processing, or get
  13168. * cached CoAP messages from firmware.
  13169. *
  13170. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  13171. * u32 attribute. Action to take in this vendor command.
  13172. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  13173. * This attribute is mandatory.
  13174. *
  13175. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  13176. * u32 attribute. Represents the Request ID for the CoAP offload
  13177. * configuration, which can help to identify the user entity starting
  13178. * the CoAP offload processing and accordingly stop the respective
  13179. * ones/get the cached CoAP messages with the matching ID.
  13180. * This attribute is mandatory.
  13181. *
  13182. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  13183. * Nested attribute. Parameters for offload reply.
  13184. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  13185. * supported attributes.
  13186. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  13187. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  13188. * otherwise.
  13189. *
  13190. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  13191. * Nested attribute. Parameters for offload periodic transmitting.
  13192. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  13193. * supported attributes.
  13194. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  13195. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  13196. * otherwise.
  13197. *
  13198. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  13199. * Array of nested attributes. Information of the cached CoAP messages,
  13200. * where each entry is taken from
  13201. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  13202. * This attribute is used for reporting the cached CoAP messages
  13203. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  13204. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  13205. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  13206. * cached item if this attribute is not present.
  13207. */
  13208. enum qca_wlan_vendor_attr_coap_offload {
  13209. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  13210. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  13211. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  13212. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  13213. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  13214. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  13215. /* keep last */
  13216. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  13217. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  13218. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  13219. };
  13220. /**
  13221. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  13222. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  13223. * Service (SCS) rule.
  13224. *
  13225. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  13226. * Represents the unique id of SCS rule to be configured.
  13227. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  13228. * Represents the request type: add, remove, or change.
  13229. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  13230. * Type definitions).
  13231. *
  13232. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  13233. * in case of add/change request type.
  13234. * Represents the output traffic identifier (TID) to be assigned to the flow
  13235. * matching the rule.
  13236. *
  13237. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  13238. * attribute in case of add/change request type.
  13239. * Represents type of classifier parameters present in SCS rule.
  13240. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  13241. * Only classifier types 4 and 10 are supported for SCS.
  13242. *
  13243. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  13244. * in case of add/change request type when classifier type is TCLAS4.
  13245. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  13246. *
  13247. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  13248. * attribute in case of add/change request type when classifier type is TCLAS4
  13249. * and version attribute is IPv4.
  13250. * Represents the source IPv4 address in the rule which is to be compared
  13251. * against the source IP address in the IPv4 header.
  13252. *
  13253. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  13254. * attribute in case of add/change request type when classifier type is TCLAS4
  13255. * and version attribute is IPv4.
  13256. * Represents the destination IPv4 address in the rule which is to be compared
  13257. * against the destination IP address in the IPv4 header.
  13258. *
  13259. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  13260. * attribute in case of add/change request type when classifier type is TCLAS4
  13261. * and version attribute is IPv6.
  13262. * Represents the source IPv6 address in the rule which is to be compared
  13263. * against the source IP address in the IPv6 header.
  13264. *
  13265. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  13266. * attribute in case of add/change request type when classifier type is TCLAS4
  13267. * and version attribute is IPv6.
  13268. * Represents the destination IPv6 address in the rule which is to be compared
  13269. * against the destination IP address in the IPv6 header.
  13270. *
  13271. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  13272. * in case of add/change request type when classifier type is TCLAS4.
  13273. * Represents the source port number in the rule which is to be compared against
  13274. * the source port number in the protocol header.
  13275. *
  13276. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  13277. * in case of add/change request type when classifier type is TCLAS4.
  13278. * Represents the destination port number in the rule which is to be compared
  13279. * against the destination port number in the protocol header.
  13280. *
  13281. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  13282. * in case of add/change request type when classifier type is TCLAS4.
  13283. * Represents the DSCP value in the rule which is to be compared against the
  13284. * DSCP field present in the IP header.
  13285. *
  13286. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  13287. * attribute in case of add/change request type when classifier type is TCLAS4.
  13288. * Represents the protocol/next header in the rule which is to be compared
  13289. * against the protocol/next header field present in the IPv4/IPv6 header.
  13290. *
  13291. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  13292. * attribute of size 3 bytes present in case of add/change request type
  13293. * when classifier type is TCLAS4 and version is IPv6.
  13294. * Represents the flow label value in the rule which is to be compared against
  13295. * the flow label field present in the IPv6 header.
  13296. *
  13297. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  13298. * attribute in case of add/change request type when classifier type is TCLAS10.
  13299. * Represents the protocol instance number in the rule.
  13300. *
  13301. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  13302. * attribute in case of add/change request type when classifier type is TCLAS10.
  13303. * Represents the protocol/next header in the rule which is to be compared
  13304. * against the protocol/next header field present in the IPv4/IPv6 header.
  13305. *
  13306. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  13307. * attribute of variable length present when request type is add/change and
  13308. * classifier type is TCLAS10.
  13309. * Represents the mask to be used for masking the header contents of the header
  13310. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  13311. * attribute.
  13312. *
  13313. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  13314. * attribute of variable length present when request type is add/change and
  13315. * classifier type is TCLAS10.
  13316. * Represents the value to be compared against after masking the header contents
  13317. * of the header specified by the
  13318. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  13319. * filter mask specified by the
  13320. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  13321. */
  13322. enum qca_wlan_vendor_attr_scs_rule_config {
  13323. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  13324. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  13325. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  13326. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  13327. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  13328. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  13329. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  13330. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  13331. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  13332. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  13333. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  13334. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  13335. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  13336. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  13337. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  13338. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  13339. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  13340. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  13341. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  13342. /* Keep last */
  13343. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  13344. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  13345. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  13346. };
  13347. #endif