qca_vendor.h 458 KB

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