qca_vendor.h 385 KB

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