qca_vendor.h 346 KB

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