qca_vendor.h 412 KB

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