nl80211.h 307 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352
  1. #ifndef __LINUX_NL80211_H
  2. #define __LINUX_NL80211_H
  3. /*
  4. * 802.11 netlink interface public header
  5. *
  6. * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net>
  7. * Copyright 2008 Michael Wu <flamingice@sourmilk.net>
  8. * Copyright 2008 Luis Carlos Cobo <luisca@cozybit.com>
  9. * Copyright 2008 Michael Buesch <m@bues.ch>
  10. * Copyright 2008, 2009 Luis R. Rodriguez <lrodriguez@atheros.com>
  11. * Copyright 2008 Jouni Malinen <jouni.malinen@atheros.com>
  12. * Copyright 2008 Colin McCabe <colin@cozybit.com>
  13. * Copyright 2015-2017 Intel Deutschland GmbH
  14. * Copyright (C) 2018-2021 Intel Corporation
  15. *
  16. * Permission to use, copy, modify, and/or distribute this software for any
  17. * purpose with or without fee is hereby granted, provided that the above
  18. * copyright notice and this permission notice appear in all copies.
  19. *
  20. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  21. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  22. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  23. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  24. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  25. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  26. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  27. *
  28. */
  29. /*
  30. * This header file defines the userspace API to the wireless stack. Please
  31. * be careful not to break things - i.e. don't move anything around or so
  32. * unless you can demonstrate that it breaks neither API nor ABI.
  33. *
  34. * Additions to the API should be accompanied by actual implementations in
  35. * an upstream driver, so that example implementations exist in case there
  36. * are ever concerns about the precise semantics of the API or changes are
  37. * needed, and to ensure that code for dead (no longer implemented) API
  38. * can actually be identified and removed.
  39. * Nonetheless, semantics should also be documented carefully in this file.
  40. */
  41. #include <linux/types.h>
  42. #define NL80211_GENL_NAME "nl80211"
  43. #define NL80211_MULTICAST_GROUP_CONFIG "config"
  44. #define NL80211_MULTICAST_GROUP_SCAN "scan"
  45. #define NL80211_MULTICAST_GROUP_REG "regulatory"
  46. #define NL80211_MULTICAST_GROUP_MLME "mlme"
  47. #define NL80211_MULTICAST_GROUP_VENDOR "vendor"
  48. #define NL80211_MULTICAST_GROUP_NAN "nan"
  49. #define NL80211_MULTICAST_GROUP_TESTMODE "testmode"
  50. #define NL80211_EDMG_BW_CONFIG_MIN 4
  51. #define NL80211_EDMG_BW_CONFIG_MAX 15
  52. #define NL80211_EDMG_CHANNELS_MIN 1
  53. #define NL80211_EDMG_CHANNELS_MAX 0x3c /* 0b00111100 */
  54. /**
  55. * DOC: Station handling
  56. *
  57. * Stations are added per interface, but a special case exists with VLAN
  58. * interfaces. When a station is bound to an AP interface, it may be moved
  59. * into a VLAN identified by a VLAN interface index (%NL80211_ATTR_STA_VLAN).
  60. * The station is still assumed to belong to the AP interface it was added
  61. * to.
  62. *
  63. * Station handling varies per interface type and depending on the driver's
  64. * capabilities.
  65. *
  66. * For drivers supporting TDLS with external setup (WIPHY_FLAG_SUPPORTS_TDLS
  67. * and WIPHY_FLAG_TDLS_EXTERNAL_SETUP), the station lifetime is as follows:
  68. * - a setup station entry is added, not yet authorized, without any rate
  69. * or capability information, this just exists to avoid race conditions
  70. * - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid
  71. * to add rate and capability information to the station and at the same
  72. * time mark it authorized.
  73. * - %NL80211_TDLS_ENABLE_LINK is then used
  74. * - after this, the only valid operation is to remove it by tearing down
  75. * the TDLS link (%NL80211_TDLS_DISABLE_LINK)
  76. *
  77. * TODO: need more info for other interface types
  78. */
  79. /**
  80. * DOC: Frame transmission/registration support
  81. *
  82. * Frame transmission and registration support exists to allow userspace
  83. * management entities such as wpa_supplicant react to management frames
  84. * that are not being handled by the kernel. This includes, for example,
  85. * certain classes of action frames that cannot be handled in the kernel
  86. * for various reasons.
  87. *
  88. * Frame registration is done on a per-interface basis and registrations
  89. * cannot be removed other than by closing the socket. It is possible to
  90. * specify a registration filter to register, for example, only for a
  91. * certain type of action frame. In particular with action frames, those
  92. * that userspace registers for will not be returned as unhandled by the
  93. * driver, so that the registered application has to take responsibility
  94. * for doing that.
  95. *
  96. * The type of frame that can be registered for is also dependent on the
  97. * driver and interface type. The frame types are advertised in wiphy
  98. * attributes so applications know what to expect.
  99. *
  100. * NOTE: When an interface changes type while registrations are active,
  101. * these registrations are ignored until the interface type is
  102. * changed again. This means that changing the interface type can
  103. * lead to a situation that couldn't otherwise be produced, but
  104. * any such registrations will be dormant in the sense that they
  105. * will not be serviced, i.e. they will not receive any frames.
  106. *
  107. * Frame transmission allows userspace to send for example the required
  108. * responses to action frames. It is subject to some sanity checking,
  109. * but many frames can be transmitted. When a frame was transmitted, its
  110. * status is indicated to the sending socket.
  111. *
  112. * For more technical details, see the corresponding command descriptions
  113. * below.
  114. */
  115. /**
  116. * DOC: Virtual interface / concurrency capabilities
  117. *
  118. * Some devices are able to operate with virtual MACs, they can have
  119. * more than one virtual interface. The capability handling for this
  120. * is a bit complex though, as there may be a number of restrictions
  121. * on the types of concurrency that are supported.
  122. *
  123. * To start with, each device supports the interface types listed in
  124. * the %NL80211_ATTR_SUPPORTED_IFTYPES attribute, but by listing the
  125. * types there no concurrency is implied.
  126. *
  127. * Once concurrency is desired, more attributes must be observed:
  128. * To start with, since some interface types are purely managed in
  129. * software, like the AP-VLAN type in mac80211 for example, there's
  130. * an additional list of these, they can be added at any time and
  131. * are only restricted by some semantic restrictions (e.g. AP-VLAN
  132. * cannot be added without a corresponding AP interface). This list
  133. * is exported in the %NL80211_ATTR_SOFTWARE_IFTYPES attribute.
  134. *
  135. * Further, the list of supported combinations is exported. This is
  136. * in the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute. Basically,
  137. * it exports a list of "groups", and at any point in time the
  138. * interfaces that are currently active must fall into any one of
  139. * the advertised groups. Within each group, there are restrictions
  140. * on the number of interfaces of different types that are supported
  141. * and also the number of different channels, along with potentially
  142. * some other restrictions. See &enum nl80211_if_combination_attrs.
  143. *
  144. * All together, these attributes define the concurrency of virtual
  145. * interfaces that a given device supports.
  146. */
  147. /**
  148. * DOC: packet coalesce support
  149. *
  150. * In most cases, host that receives IPv4 and IPv6 multicast/broadcast
  151. * packets does not do anything with these packets. Therefore the
  152. * reception of these unwanted packets causes unnecessary processing
  153. * and power consumption.
  154. *
  155. * Packet coalesce feature helps to reduce number of received interrupts
  156. * to host by buffering these packets in firmware/hardware for some
  157. * predefined time. Received interrupt will be generated when one of the
  158. * following events occur.
  159. * a) Expiration of hardware timer whose expiration time is set to maximum
  160. * coalescing delay of matching coalesce rule.
  161. * b) Coalescing buffer in hardware reaches it's limit.
  162. * c) Packet doesn't match any of the configured coalesce rules.
  163. *
  164. * User needs to configure following parameters for creating a coalesce
  165. * rule.
  166. * a) Maximum coalescing delay
  167. * b) List of packet patterns which needs to be matched
  168. * c) Condition for coalescence. pattern 'match' or 'no match'
  169. * Multiple such rules can be created.
  170. */
  171. /**
  172. * DOC: WPA/WPA2 EAPOL handshake offload
  173. *
  174. * By setting @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK flag drivers
  175. * can indicate they support offloading EAPOL handshakes for WPA/WPA2
  176. * preshared key authentication in station mode. In %NL80211_CMD_CONNECT
  177. * the preshared key should be specified using %NL80211_ATTR_PMK. Drivers
  178. * supporting this offload may reject the %NL80211_CMD_CONNECT when no
  179. * preshared key material is provided, for example when that driver does
  180. * not support setting the temporal keys through %NL80211_CMD_NEW_KEY.
  181. *
  182. * Similarly @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X flag can be
  183. * set by drivers indicating offload support of the PTK/GTK EAPOL
  184. * handshakes during 802.1X authentication in station mode. In order to
  185. * use the offload the %NL80211_CMD_CONNECT should have
  186. * %NL80211_ATTR_WANT_1X_4WAY_HS attribute flag. Drivers supporting this
  187. * offload may reject the %NL80211_CMD_CONNECT when the attribute flag is
  188. * not present.
  189. *
  190. * By setting @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK flag drivers
  191. * can indicate they support offloading EAPOL handshakes for WPA/WPA2
  192. * preshared key authentication in AP mode. In %NL80211_CMD_START_AP
  193. * the preshared key should be specified using %NL80211_ATTR_PMK. Drivers
  194. * supporting this offload may reject the %NL80211_CMD_START_AP when no
  195. * preshared key material is provided, for example when that driver does
  196. * not support setting the temporal keys through %NL80211_CMD_NEW_KEY.
  197. *
  198. * For 802.1X the PMK or PMK-R0 are set by providing %NL80211_ATTR_PMK
  199. * using %NL80211_CMD_SET_PMK. For offloaded FT support also
  200. * %NL80211_ATTR_PMKR0_NAME must be provided.
  201. */
  202. /**
  203. * DOC: FILS shared key authentication offload
  204. *
  205. * FILS shared key authentication offload can be advertized by drivers by
  206. * setting @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD flag. The drivers that support
  207. * FILS shared key authentication offload should be able to construct the
  208. * authentication and association frames for FILS shared key authentication and
  209. * eventually do a key derivation as per IEEE 802.11ai. The below additional
  210. * parameters should be given to driver in %NL80211_CMD_CONNECT and/or in
  211. * %NL80211_CMD_UPDATE_CONNECT_PARAMS.
  212. * %NL80211_ATTR_FILS_ERP_USERNAME - used to construct keyname_nai
  213. * %NL80211_ATTR_FILS_ERP_REALM - used to construct keyname_nai
  214. * %NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM - used to construct erp message
  215. * %NL80211_ATTR_FILS_ERP_RRK - used to generate the rIK and rMSK
  216. * rIK should be used to generate an authentication tag on the ERP message and
  217. * rMSK should be used to derive a PMKSA.
  218. * rIK, rMSK should be generated and keyname_nai, sequence number should be used
  219. * as specified in IETF RFC 6696.
  220. *
  221. * When FILS shared key authentication is completed, driver needs to provide the
  222. * below additional parameters to userspace, which can be either after setting
  223. * up a connection or after roaming.
  224. * %NL80211_ATTR_FILS_KEK - used for key renewal
  225. * %NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM - used in further EAP-RP exchanges
  226. * %NL80211_ATTR_PMKID - used to identify the PMKSA used/generated
  227. * %Nl80211_ATTR_PMK - used to update PMKSA cache in userspace
  228. * The PMKSA can be maintained in userspace persistently so that it can be used
  229. * later after reboots or wifi turn off/on also.
  230. *
  231. * %NL80211_ATTR_FILS_CACHE_ID is the cache identifier advertized by a FILS
  232. * capable AP supporting PMK caching. It specifies the scope within which the
  233. * PMKSAs are cached in an ESS. %NL80211_CMD_SET_PMKSA and
  234. * %NL80211_CMD_DEL_PMKSA are enhanced to allow support for PMKSA caching based
  235. * on FILS cache identifier. Additionally %NL80211_ATTR_PMK is used with
  236. * %NL80211_SET_PMKSA to specify the PMK corresponding to a PMKSA for driver to
  237. * use in a FILS shared key connection with PMKSA caching.
  238. */
  239. /**
  240. * DOC: SAE authentication offload
  241. *
  242. * By setting @NL80211_EXT_FEATURE_SAE_OFFLOAD flag drivers can indicate they
  243. * support offloading SAE authentication for WPA3-Personal networks in station
  244. * mode. Similarly @NL80211_EXT_FEATURE_SAE_OFFLOAD_AP flag can be set by
  245. * drivers indicating the offload support in AP mode.
  246. *
  247. * The password for SAE should be specified using %NL80211_ATTR_SAE_PASSWORD in
  248. * %NL80211_CMD_CONNECT and %NL80211_CMD_START_AP for station and AP mode
  249. * respectively.
  250. */
  251. /**
  252. * DOC: VLAN offload support for setting group keys and binding STAs to VLANs
  253. *
  254. * By setting @NL80211_EXT_FEATURE_VLAN_OFFLOAD flag drivers can indicate they
  255. * support offloading VLAN functionality in a manner where the driver exposes a
  256. * single netdev that uses VLAN tagged frames and separate VLAN-specific netdevs
  257. * can then be added using RTM_NEWLINK/IFLA_VLAN_ID similarly to the Ethernet
  258. * case. Frames received from stations that are not assigned to any VLAN are
  259. * delivered on the main netdev and frames to such stations can be sent through
  260. * that main netdev.
  261. *
  262. * %NL80211_CMD_NEW_KEY (for group keys), %NL80211_CMD_NEW_STATION, and
  263. * %NL80211_CMD_SET_STATION will optionally specify vlan_id using
  264. * %NL80211_ATTR_VLAN_ID.
  265. */
  266. /**
  267. * DOC: TID configuration
  268. *
  269. * TID config support can be checked in the %NL80211_ATTR_TID_CONFIG
  270. * attribute given in wiphy capabilities.
  271. *
  272. * The necessary configuration parameters are mentioned in
  273. * &enum nl80211_tid_config_attr and it will be passed to the
  274. * %NL80211_CMD_SET_TID_CONFIG command in %NL80211_ATTR_TID_CONFIG.
  275. *
  276. * If the configuration needs to be applied for specific peer then the MAC
  277. * address of the peer needs to be passed in %NL80211_ATTR_MAC, otherwise the
  278. * configuration will be applied for all the connected peers in the vif except
  279. * any peers that have peer specific configuration for the TID by default; if
  280. * the %NL80211_TID_CONFIG_ATTR_OVERRIDE flag is set, peer specific values
  281. * will be overwritten.
  282. *
  283. * All this configuration is valid only for STA's current connection
  284. * i.e. the configuration will be reset to default when the STA connects back
  285. * after disconnection/roaming, and this configuration will be cleared when
  286. * the interface goes down.
  287. */
  288. /**
  289. * enum nl80211_commands - supported nl80211 commands
  290. *
  291. * @NL80211_CMD_UNSPEC: unspecified command to catch errors
  292. *
  293. * @NL80211_CMD_GET_WIPHY: request information about a wiphy or dump request
  294. * to get a list of all present wiphys.
  295. * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or
  296. * %NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME,
  297. * %NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ,
  298. * %NL80211_ATTR_WIPHY_FREQ_OFFSET (and the attributes determining the
  299. * channel width; this is used for setting monitor mode channel),
  300. * %NL80211_ATTR_WIPHY_RETRY_SHORT, %NL80211_ATTR_WIPHY_RETRY_LONG,
  301. * %NL80211_ATTR_WIPHY_FRAG_THRESHOLD, and/or
  302. * %NL80211_ATTR_WIPHY_RTS_THRESHOLD. However, for setting the channel,
  303. * see %NL80211_CMD_SET_CHANNEL instead, the support here is for backward
  304. * compatibility only.
  305. * @NL80211_CMD_NEW_WIPHY: Newly created wiphy, response to get request
  306. * or rename notification. Has attributes %NL80211_ATTR_WIPHY and
  307. * %NL80211_ATTR_WIPHY_NAME.
  308. * @NL80211_CMD_DEL_WIPHY: Wiphy deleted. Has attributes
  309. * %NL80211_ATTR_WIPHY and %NL80211_ATTR_WIPHY_NAME.
  310. *
  311. * @NL80211_CMD_GET_INTERFACE: Request an interface's configuration;
  312. * either a dump request for all interfaces or a specific get with a
  313. * single %NL80211_ATTR_IFINDEX is supported.
  314. * @NL80211_CMD_SET_INTERFACE: Set type of a virtual interface, requires
  315. * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_IFTYPE.
  316. * @NL80211_CMD_NEW_INTERFACE: Newly created virtual interface or response
  317. * to %NL80211_CMD_GET_INTERFACE. Has %NL80211_ATTR_IFINDEX,
  318. * %NL80211_ATTR_WIPHY and %NL80211_ATTR_IFTYPE attributes. Can also
  319. * be sent from userspace to request creation of a new virtual interface,
  320. * then requires attributes %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFTYPE and
  321. * %NL80211_ATTR_IFNAME.
  322. * @NL80211_CMD_DEL_INTERFACE: Virtual interface was deleted, has attributes
  323. * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_WIPHY. Can also be sent from
  324. * userspace to request deletion of a virtual interface, then requires
  325. * attribute %NL80211_ATTR_IFINDEX.
  326. *
  327. * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified
  328. * by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC.
  329. * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT,
  330. * %NL80211_ATTR_KEY_DEFAULT_MGMT, or %NL80211_ATTR_KEY_THRESHOLD.
  331. * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA,
  332. * %NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC, %NL80211_ATTR_KEY_CIPHER,
  333. * and %NL80211_ATTR_KEY_SEQ attributes.
  334. * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX
  335. * or %NL80211_ATTR_MAC.
  336. *
  337. * @NL80211_CMD_GET_BEACON: (not used)
  338. * @NL80211_CMD_SET_BEACON: change the beacon on an access point interface
  339. * using the %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL
  340. * attributes. For drivers that generate the beacon and probe responses
  341. * internally, the following attributes must be provided: %NL80211_ATTR_IE,
  342. * %NL80211_ATTR_IE_PROBE_RESP and %NL80211_ATTR_IE_ASSOC_RESP.
  343. * @NL80211_CMD_START_AP: Start AP operation on an AP interface, parameters
  344. * are like for %NL80211_CMD_SET_BEACON, and additionally parameters that
  345. * do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL,
  346. * %NL80211_ATTR_DTIM_PERIOD, %NL80211_ATTR_SSID,
  347. * %NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHERS_PAIRWISE,
  348. * %NL80211_ATTR_CIPHER_GROUP, %NL80211_ATTR_WPA_VERSIONS,
  349. * %NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY,
  350. * %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_INACTIVITY_TIMEOUT,
  351. * %NL80211_ATTR_ACL_POLICY and %NL80211_ATTR_MAC_ADDRS.
  352. * The channel to use can be set on the interface or be given using the
  353. * %NL80211_ATTR_WIPHY_FREQ and %NL80211_ATTR_WIPHY_FREQ_OFFSET, and the
  354. * attributes determining channel width.
  355. * @NL80211_CMD_NEW_BEACON: old alias for %NL80211_CMD_START_AP
  356. * @NL80211_CMD_STOP_AP: Stop AP operation on the given interface
  357. * @NL80211_CMD_DEL_BEACON: old alias for %NL80211_CMD_STOP_AP
  358. *
  359. * @NL80211_CMD_GET_STATION: Get station attributes for station identified by
  360. * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX.
  361. * @NL80211_CMD_SET_STATION: Set station attributes for station identified by
  362. * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX.
  363. * @NL80211_CMD_NEW_STATION: Add a station with given attributes to the
  364. * interface identified by %NL80211_ATTR_IFINDEX.
  365. * @NL80211_CMD_DEL_STATION: Remove a station identified by %NL80211_ATTR_MAC
  366. * or, if no MAC address given, all stations, on the interface identified
  367. * by %NL80211_ATTR_IFINDEX. %NL80211_ATTR_MGMT_SUBTYPE and
  368. * %NL80211_ATTR_REASON_CODE can optionally be used to specify which type
  369. * of disconnection indication should be sent to the station
  370. * (Deauthentication or Disassociation frame and reason code for that
  371. * frame).
  372. *
  373. * @NL80211_CMD_GET_MPATH: Get mesh path attributes for mesh path to
  374. * destination %NL80211_ATTR_MAC on the interface identified by
  375. * %NL80211_ATTR_IFINDEX.
  376. * @NL80211_CMD_SET_MPATH: Set mesh path attributes for mesh path to
  377. * destination %NL80211_ATTR_MAC on the interface identified by
  378. * %NL80211_ATTR_IFINDEX.
  379. * @NL80211_CMD_NEW_MPATH: Create a new mesh path for the destination given by
  380. * %NL80211_ATTR_MAC via %NL80211_ATTR_MPATH_NEXT_HOP.
  381. * @NL80211_CMD_DEL_MPATH: Delete a mesh path to the destination given by
  382. * %NL80211_ATTR_MAC.
  383. * @NL80211_CMD_NEW_PATH: Add a mesh path with given attributes to the
  384. * interface identified by %NL80211_ATTR_IFINDEX.
  385. * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC
  386. * or, if no MAC address given, all mesh paths, on the interface identified
  387. * by %NL80211_ATTR_IFINDEX.
  388. * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by
  389. * %NL80211_ATTR_IFINDEX.
  390. *
  391. * @NL80211_CMD_GET_REG: ask the wireless core to send us its currently set
  392. * regulatory domain. If %NL80211_ATTR_WIPHY is specified and the device
  393. * has a private regulatory domain, it will be returned. Otherwise, the
  394. * global regdomain will be returned.
  395. * A device will have a private regulatory domain if it uses the
  396. * regulatory_hint() API. Even when a private regdomain is used the channel
  397. * information will still be mended according to further hints from
  398. * the regulatory core to help with compliance. A dump version of this API
  399. * is now available which will returns the global regdomain as well as
  400. * all private regdomains of present wiphys (for those that have it).
  401. * If a wiphy is self-managed (%NL80211_ATTR_WIPHY_SELF_MANAGED_REG), then
  402. * its private regdomain is the only valid one for it. The regulatory
  403. * core is not used to help with compliance in this case.
  404. * @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command
  405. * after being queried by the kernel. CRDA replies by sending a regulatory
  406. * domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our
  407. * current alpha2 if it found a match. It also provides
  408. * NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each
  409. * regulatory rule is a nested set of attributes given by
  410. * %NL80211_ATTR_REG_RULE_FREQ_[START|END] and
  411. * %NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by
  412. * %NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and
  413. * %NL80211_ATTR_REG_RULE_POWER_MAX_EIRP.
  414. * @NL80211_CMD_REQ_SET_REG: ask the wireless core to set the regulatory domain
  415. * to the specified ISO/IEC 3166-1 alpha2 country code. The core will
  416. * store this as a valid request and then query userspace for it.
  417. *
  418. * @NL80211_CMD_GET_MESH_CONFIG: Get mesh networking properties for the
  419. * interface identified by %NL80211_ATTR_IFINDEX
  420. *
  421. * @NL80211_CMD_SET_MESH_CONFIG: Set mesh networking properties for the
  422. * interface identified by %NL80211_ATTR_IFINDEX
  423. *
  424. * @NL80211_CMD_SET_MGMT_EXTRA_IE: Set extra IEs for management frames. The
  425. * interface is identified with %NL80211_ATTR_IFINDEX and the management
  426. * frame subtype with %NL80211_ATTR_MGMT_SUBTYPE. The extra IE data to be
  427. * added to the end of the specified management frame is specified with
  428. * %NL80211_ATTR_IE. If the command succeeds, the requested data will be
  429. * added to all specified management frames generated by
  430. * kernel/firmware/driver.
  431. * Note: This command has been removed and it is only reserved at this
  432. * point to avoid re-using existing command number. The functionality this
  433. * command was planned for has been provided with cleaner design with the
  434. * option to specify additional IEs in NL80211_CMD_TRIGGER_SCAN,
  435. * NL80211_CMD_AUTHENTICATE, NL80211_CMD_ASSOCIATE,
  436. * NL80211_CMD_DEAUTHENTICATE, and NL80211_CMD_DISASSOCIATE.
  437. *
  438. * @NL80211_CMD_GET_SCAN: get scan results
  439. * @NL80211_CMD_TRIGGER_SCAN: trigger a new scan with the given parameters
  440. * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the
  441. * probe requests at CCK rate or not. %NL80211_ATTR_BSSID can be used to
  442. * specify a BSSID to scan for; if not included, the wildcard BSSID will
  443. * be used.
  444. * @NL80211_CMD_NEW_SCAN_RESULTS: scan notification (as a reply to
  445. * NL80211_CMD_GET_SCAN and on the "scan" multicast group)
  446. * @NL80211_CMD_SCAN_ABORTED: scan was aborted, for unspecified reasons,
  447. * partial scan results may be available
  448. *
  449. * @NL80211_CMD_START_SCHED_SCAN: start a scheduled scan at certain
  450. * intervals and certain number of cycles, as specified by
  451. * %NL80211_ATTR_SCHED_SCAN_PLANS. If %NL80211_ATTR_SCHED_SCAN_PLANS is
  452. * not specified and only %NL80211_ATTR_SCHED_SCAN_INTERVAL is specified,
  453. * scheduled scan will run in an infinite loop with the specified interval.
  454. * These attributes are mutually exculsive,
  455. * i.e. NL80211_ATTR_SCHED_SCAN_INTERVAL must not be passed if
  456. * NL80211_ATTR_SCHED_SCAN_PLANS is defined.
  457. * If for some reason scheduled scan is aborted by the driver, all scan
  458. * plans are canceled (including scan plans that did not start yet).
  459. * Like with normal scans, if SSIDs (%NL80211_ATTR_SCAN_SSIDS)
  460. * are passed, they are used in the probe requests. For
  461. * broadcast, a broadcast SSID must be passed (ie. an empty
  462. * string). If no SSID is passed, no probe requests are sent and
  463. * a passive scan is performed. %NL80211_ATTR_SCAN_FREQUENCIES,
  464. * if passed, define which channels should be scanned; if not
  465. * passed, all channels allowed for the current regulatory domain
  466. * are used. Extra IEs can also be passed from the userspace by
  467. * using the %NL80211_ATTR_IE attribute. The first cycle of the
  468. * scheduled scan can be delayed by %NL80211_ATTR_SCHED_SCAN_DELAY
  469. * is supplied. If the device supports multiple concurrent scheduled
  470. * scans, it will allow such when the caller provides the flag attribute
  471. * %NL80211_ATTR_SCHED_SCAN_MULTI to indicate user-space support for it.
  472. * @NL80211_CMD_STOP_SCHED_SCAN: stop a scheduled scan. Returns -ENOENT if
  473. * scheduled scan is not running. The caller may assume that as soon
  474. * as the call returns, it is safe to start a new scheduled scan again.
  475. * @NL80211_CMD_SCHED_SCAN_RESULTS: indicates that there are scheduled scan
  476. * results available.
  477. * @NL80211_CMD_SCHED_SCAN_STOPPED: indicates that the scheduled scan has
  478. * stopped. The driver may issue this event at any time during a
  479. * scheduled scan. One reason for stopping the scan is if the hardware
  480. * does not support starting an association or a normal scan while running
  481. * a scheduled scan. This event is also sent when the
  482. * %NL80211_CMD_STOP_SCHED_SCAN command is received or when the interface
  483. * is brought down while a scheduled scan was running.
  484. *
  485. * @NL80211_CMD_GET_SURVEY: get survey resuls, e.g. channel occupation
  486. * or noise level
  487. * @NL80211_CMD_NEW_SURVEY_RESULTS: survey data notification (as a reply to
  488. * NL80211_CMD_GET_SURVEY and on the "scan" multicast group)
  489. *
  490. * @NL80211_CMD_SET_PMKSA: Add a PMKSA cache entry using %NL80211_ATTR_MAC
  491. * (for the BSSID), %NL80211_ATTR_PMKID, and optionally %NL80211_ATTR_PMK
  492. * (PMK is used for PTKSA derivation in case of FILS shared key offload) or
  493. * using %NL80211_ATTR_SSID, %NL80211_ATTR_FILS_CACHE_ID,
  494. * %NL80211_ATTR_PMKID, and %NL80211_ATTR_PMK in case of FILS
  495. * authentication where %NL80211_ATTR_FILS_CACHE_ID is the identifier
  496. * advertized by a FILS capable AP identifying the scope of PMKSA in an
  497. * ESS.
  498. * @NL80211_CMD_DEL_PMKSA: Delete a PMKSA cache entry, using %NL80211_ATTR_MAC
  499. * (for the BSSID) and %NL80211_ATTR_PMKID or using %NL80211_ATTR_SSID,
  500. * %NL80211_ATTR_FILS_CACHE_ID, and %NL80211_ATTR_PMKID in case of FILS
  501. * authentication.
  502. * @NL80211_CMD_FLUSH_PMKSA: Flush all PMKSA cache entries.
  503. *
  504. * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain
  505. * has been changed and provides details of the request information
  506. * that caused the change such as who initiated the regulatory request
  507. * (%NL80211_ATTR_REG_INITIATOR), the wiphy_idx
  508. * (%NL80211_ATTR_REG_ALPHA2) on which the request was made from if
  509. * the initiator was %NL80211_REGDOM_SET_BY_COUNTRY_IE or
  510. * %NL80211_REGDOM_SET_BY_DRIVER, the type of regulatory domain
  511. * set (%NL80211_ATTR_REG_TYPE), if the type of regulatory domain is
  512. * %NL80211_REG_TYPE_COUNTRY the alpha2 to which we have moved on
  513. * to (%NL80211_ATTR_REG_ALPHA2).
  514. * @NL80211_CMD_REG_BEACON_HINT: indicates to userspace that an AP beacon
  515. * has been found while world roaming thus enabling active scan or
  516. * any mode of operation that initiates TX (beacons) on a channel
  517. * where we would not have been able to do either before. As an example
  518. * if you are world roaming (regulatory domain set to world or if your
  519. * driver is using a custom world roaming regulatory domain) and while
  520. * doing a passive scan on the 5 GHz band you find an AP there (if not
  521. * on a DFS channel) you will now be able to actively scan for that AP
  522. * or use AP mode on your card on that same channel. Note that this will
  523. * never be used for channels 1-11 on the 2 GHz band as they are always
  524. * enabled world wide. This beacon hint is only sent if your device had
  525. * either disabled active scanning or beaconing on a channel. We send to
  526. * userspace the wiphy on which we removed a restriction from
  527. * (%NL80211_ATTR_WIPHY) and the channel on which this occurred
  528. * before (%NL80211_ATTR_FREQ_BEFORE) and after (%NL80211_ATTR_FREQ_AFTER)
  529. * the beacon hint was processed.
  530. *
  531. * @NL80211_CMD_AUTHENTICATE: authentication request and notification.
  532. * This command is used both as a command (request to authenticate) and
  533. * as an event on the "mlme" multicast group indicating completion of the
  534. * authentication process.
  535. * When used as a command, %NL80211_ATTR_IFINDEX is used to identify the
  536. * interface. %NL80211_ATTR_MAC is used to specify PeerSTAAddress (and
  537. * BSSID in case of station mode). %NL80211_ATTR_SSID is used to specify
  538. * the SSID (mainly for association, but is included in authentication
  539. * request, too, to help BSS selection. %NL80211_ATTR_WIPHY_FREQ +
  540. * %NL80211_ATTR_WIPHY_FREQ_OFFSET is used to specify the frequence of the
  541. * channel in MHz. %NL80211_ATTR_AUTH_TYPE is used to specify the
  542. * authentication type. %NL80211_ATTR_IE is used to define IEs
  543. * (VendorSpecificInfo, but also including RSN IE and FT IEs) to be added
  544. * to the frame.
  545. * When used as an event, this reports reception of an Authentication
  546. * frame in station and IBSS modes when the local MLME processed the
  547. * frame, i.e., it was for the local STA and was received in correct
  548. * state. This is similar to MLME-AUTHENTICATE.confirm primitive in the
  549. * MLME SAP interface (kernel providing MLME, userspace SME). The
  550. * included %NL80211_ATTR_FRAME attribute contains the management frame
  551. * (including both the header and frame body, but not FCS). This event is
  552. * also used to indicate if the authentication attempt timed out. In that
  553. * case the %NL80211_ATTR_FRAME attribute is replaced with a
  554. * %NL80211_ATTR_TIMED_OUT flag (and %NL80211_ATTR_MAC to indicate which
  555. * pending authentication timed out).
  556. * @NL80211_CMD_ASSOCIATE: association request and notification; like
  557. * NL80211_CMD_AUTHENTICATE but for Association and Reassociation
  558. * (similar to MLME-ASSOCIATE.request, MLME-REASSOCIATE.request,
  559. * MLME-ASSOCIATE.confirm or MLME-REASSOCIATE.confirm primitives). The
  560. * %NL80211_ATTR_PREV_BSSID attribute is used to specify whether the
  561. * request is for the initial association to an ESS (that attribute not
  562. * included) or for reassociation within the ESS (that attribute is
  563. * included).
  564. * @NL80211_CMD_DEAUTHENTICATE: deauthentication request and notification; like
  565. * NL80211_CMD_AUTHENTICATE but for Deauthentication frames (similar to
  566. * MLME-DEAUTHENTICATION.request and MLME-DEAUTHENTICATE.indication
  567. * primitives).
  568. * @NL80211_CMD_DISASSOCIATE: disassociation request and notification; like
  569. * NL80211_CMD_AUTHENTICATE but for Disassociation frames (similar to
  570. * MLME-DISASSOCIATE.request and MLME-DISASSOCIATE.indication primitives).
  571. *
  572. * @NL80211_CMD_MICHAEL_MIC_FAILURE: notification of a locally detected Michael
  573. * MIC (part of TKIP) failure; sent on the "mlme" multicast group; the
  574. * event includes %NL80211_ATTR_MAC to describe the source MAC address of
  575. * the frame with invalid MIC, %NL80211_ATTR_KEY_TYPE to show the key
  576. * type, %NL80211_ATTR_KEY_IDX to indicate the key identifier, and
  577. * %NL80211_ATTR_KEY_SEQ to indicate the TSC value of the frame; this
  578. * event matches with MLME-MICHAELMICFAILURE.indication() primitive
  579. *
  580. * @NL80211_CMD_JOIN_IBSS: Join a new IBSS -- given at least an SSID and a
  581. * FREQ attribute (for the initial frequency if no peer can be found)
  582. * and optionally a MAC (as BSSID) and FREQ_FIXED attribute if those
  583. * should be fixed rather than automatically determined. Can only be
  584. * executed on a network interface that is UP, and fixed BSSID/FREQ
  585. * may be rejected. Another optional parameter is the beacon interval,
  586. * given in the %NL80211_ATTR_BEACON_INTERVAL attribute, which if not
  587. * given defaults to 100 TU (102.4ms).
  588. * @NL80211_CMD_LEAVE_IBSS: Leave the IBSS -- no special arguments, the IBSS is
  589. * determined by the network interface.
  590. *
  591. * @NL80211_CMD_TESTMODE: testmode command, takes a wiphy (or ifindex) attribute
  592. * to identify the device, and the TESTDATA blob attribute to pass through
  593. * to the driver.
  594. *
  595. * @NL80211_CMD_CONNECT: connection request and notification; this command
  596. * requests to connect to a specified network but without separating
  597. * auth and assoc steps. For this, you need to specify the SSID in a
  598. * %NL80211_ATTR_SSID attribute, and can optionally specify the association
  599. * IEs in %NL80211_ATTR_IE, %NL80211_ATTR_AUTH_TYPE,
  600. * %NL80211_ATTR_USE_MFP, %NL80211_ATTR_MAC, %NL80211_ATTR_WIPHY_FREQ,
  601. * %NL80211_ATTR_WIPHY_FREQ_OFFSET, %NL80211_ATTR_CONTROL_PORT,
  602. * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
  603. * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT,
  604. * %NL80211_ATTR_CONTROL_PORT_OVER_NL80211, %NL80211_ATTR_MAC_HINT, and
  605. * %NL80211_ATTR_WIPHY_FREQ_HINT.
  606. * If included, %NL80211_ATTR_MAC and %NL80211_ATTR_WIPHY_FREQ are
  607. * restrictions on BSS selection, i.e., they effectively prevent roaming
  608. * within the ESS. %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT
  609. * can be included to provide a recommendation of the initial BSS while
  610. * allowing the driver to roam to other BSSes within the ESS and also to
  611. * ignore this recommendation if the indicated BSS is not ideal. Only one
  612. * set of BSSID,frequency parameters is used (i.e., either the enforcing
  613. * %NL80211_ATTR_MAC,%NL80211_ATTR_WIPHY_FREQ or the less strict
  614. * %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT).
  615. * Driver shall not modify the IEs specified through %NL80211_ATTR_IE if
  616. * %NL80211_ATTR_MAC is included. However, if %NL80211_ATTR_MAC_HINT is
  617. * included, these IEs through %NL80211_ATTR_IE are specified by the user
  618. * space based on the best possible BSS selected. Thus, if the driver ends
  619. * up selecting a different BSS, it can modify these IEs accordingly (e.g.
  620. * userspace asks the driver to perform PMKSA caching with BSS1 and the
  621. * driver ends up selecting BSS2 with different PMKSA cache entry; RSNIE
  622. * has to get updated with the apt PMKID).
  623. * %NL80211_ATTR_PREV_BSSID can be used to request a reassociation within
  624. * the ESS in case the device is already associated and an association with
  625. * a different BSS is desired.
  626. * Background scan period can optionally be
  627. * specified in %NL80211_ATTR_BG_SCAN_PERIOD,
  628. * if not specified default background scan configuration
  629. * in driver is used and if period value is 0, bg scan will be disabled.
  630. * This attribute is ignored if driver does not support roam scan.
  631. * It is also sent as an event, with the BSSID and response IEs when the
  632. * connection is established or failed to be established. This can be
  633. * determined by the %NL80211_ATTR_STATUS_CODE attribute (0 = success,
  634. * non-zero = failure). If %NL80211_ATTR_TIMED_OUT is included in the
  635. * event, the connection attempt failed due to not being able to initiate
  636. * authentication/association or not receiving a response from the AP.
  637. * Non-zero %NL80211_ATTR_STATUS_CODE value is indicated in that case as
  638. * well to remain backwards compatible.
  639. * @NL80211_CMD_ROAM: Notification indicating the card/driver roamed by itself.
  640. * When a security association was established on an 802.1X network using
  641. * fast transition, this event should be followed by an
  642. * %NL80211_CMD_PORT_AUTHORIZED event.
  643. * Following a %NL80211_CMD_ROAM event userspace can issue
  644. * %NL80211_CMD_GET_SCAN in order to obtain the scan information for the
  645. * new BSS the card/driver roamed to.
  646. * @NL80211_CMD_DISCONNECT: drop a given connection; also used to notify
  647. * userspace that a connection was dropped by the AP or due to other
  648. * reasons, for this the %NL80211_ATTR_DISCONNECTED_BY_AP and
  649. * %NL80211_ATTR_REASON_CODE attributes are used.
  650. *
  651. * @NL80211_CMD_SET_WIPHY_NETNS: Set a wiphy's netns. Note that all devices
  652. * associated with this wiphy must be down and will follow.
  653. *
  654. * @NL80211_CMD_REMAIN_ON_CHANNEL: Request to remain awake on the specified
  655. * channel for the specified amount of time. This can be used to do
  656. * off-channel operations like transmit a Public Action frame and wait for
  657. * a response while being associated to an AP on another channel.
  658. * %NL80211_ATTR_IFINDEX is used to specify which interface (and thus
  659. * radio) is used. %NL80211_ATTR_WIPHY_FREQ is used to specify the
  660. * frequency for the operation.
  661. * %NL80211_ATTR_DURATION is used to specify the duration in milliseconds
  662. * to remain on the channel. This command is also used as an event to
  663. * notify when the requested duration starts (it may take a while for the
  664. * driver to schedule this time due to other concurrent needs for the
  665. * radio).
  666. * When called, this operation returns a cookie (%NL80211_ATTR_COOKIE)
  667. * that will be included with any events pertaining to this request;
  668. * the cookie is also used to cancel the request.
  669. * @NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL: This command can be used to cancel a
  670. * pending remain-on-channel duration if the desired operation has been
  671. * completed prior to expiration of the originally requested duration.
  672. * %NL80211_ATTR_WIPHY or %NL80211_ATTR_IFINDEX is used to specify the
  673. * radio. The %NL80211_ATTR_COOKIE attribute must be given as well to
  674. * uniquely identify the request.
  675. * This command is also used as an event to notify when a requested
  676. * remain-on-channel duration has expired.
  677. *
  678. * @NL80211_CMD_SET_TX_BITRATE_MASK: Set the mask of rates to be used in TX
  679. * rate selection. %NL80211_ATTR_IFINDEX is used to specify the interface
  680. * and @NL80211_ATTR_TX_RATES the set of allowed rates.
  681. *
  682. * @NL80211_CMD_REGISTER_FRAME: Register for receiving certain mgmt frames
  683. * (via @NL80211_CMD_FRAME) for processing in userspace. This command
  684. * requires an interface index, a frame type attribute (optional for
  685. * backward compatibility reasons, if not given assumes action frames)
  686. * and a match attribute containing the first few bytes of the frame
  687. * that should match, e.g. a single byte for only a category match or
  688. * four bytes for vendor frames including the OUI. The registration
  689. * cannot be dropped, but is removed automatically when the netlink
  690. * socket is closed. Multiple registrations can be made.
  691. * The %NL80211_ATTR_RECEIVE_MULTICAST flag attribute can be given if
  692. * %NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS is available, in which
  693. * case the registration can also be modified to include/exclude the
  694. * flag, rather than requiring unregistration to change it.
  695. * @NL80211_CMD_REGISTER_ACTION: Alias for @NL80211_CMD_REGISTER_FRAME for
  696. * backward compatibility
  697. * @NL80211_CMD_FRAME: Management frame TX request and RX notification. This
  698. * command is used both as a request to transmit a management frame and
  699. * as an event indicating reception of a frame that was not processed in
  700. * kernel code, but is for us (i.e., which may need to be processed in a
  701. * user space application). %NL80211_ATTR_FRAME is used to specify the
  702. * frame contents (including header). %NL80211_ATTR_WIPHY_FREQ is used
  703. * to indicate on which channel the frame is to be transmitted or was
  704. * received. If this channel is not the current channel (remain-on-channel
  705. * or the operational channel) the device will switch to the given channel
  706. * and transmit the frame, optionally waiting for a response for the time
  707. * specified using %NL80211_ATTR_DURATION. When called, this operation
  708. * returns a cookie (%NL80211_ATTR_COOKIE) that will be included with the
  709. * TX status event pertaining to the TX request.
  710. * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the
  711. * management frames at CCK rate or not in 2GHz band.
  712. * %NL80211_ATTR_CSA_C_OFFSETS_TX is an array of offsets to CSA
  713. * counters which will be updated to the current value. This attribute
  714. * is used during CSA period.
  715. * @NL80211_CMD_FRAME_WAIT_CANCEL: When an off-channel TX was requested, this
  716. * command may be used with the corresponding cookie to cancel the wait
  717. * time if it is known that it is no longer necessary. This command is
  718. * also sent as an event whenever the driver has completed the off-channel
  719. * wait time.
  720. * @NL80211_CMD_ACTION: Alias for @NL80211_CMD_FRAME for backward compatibility.
  721. * @NL80211_CMD_FRAME_TX_STATUS: Report TX status of a management frame
  722. * transmitted with %NL80211_CMD_FRAME. %NL80211_ATTR_COOKIE identifies
  723. * the TX command and %NL80211_ATTR_FRAME includes the contents of the
  724. * frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged
  725. * the frame.
  726. * @NL80211_CMD_ACTION_TX_STATUS: Alias for @NL80211_CMD_FRAME_TX_STATUS for
  727. * backward compatibility.
  728. *
  729. * @NL80211_CMD_SET_POWER_SAVE: Set powersave, using %NL80211_ATTR_PS_STATE
  730. * @NL80211_CMD_GET_POWER_SAVE: Get powersave status in %NL80211_ATTR_PS_STATE
  731. *
  732. * @NL80211_CMD_SET_CQM: Connection quality monitor configuration. This command
  733. * is used to configure connection quality monitoring notification trigger
  734. * levels.
  735. * @NL80211_CMD_NOTIFY_CQM: Connection quality monitor notification. This
  736. * command is used as an event to indicate the that a trigger level was
  737. * reached.
  738. * @NL80211_CMD_SET_CHANNEL: Set the channel (using %NL80211_ATTR_WIPHY_FREQ
  739. * and the attributes determining channel width) the given interface
  740. * (identifed by %NL80211_ATTR_IFINDEX) shall operate on.
  741. * In case multiple channels are supported by the device, the mechanism
  742. * with which it switches channels is implementation-defined.
  743. * When a monitor interface is given, it can only switch channel while
  744. * no other interfaces are operating to avoid disturbing the operation
  745. * of any other interfaces, and other interfaces will again take
  746. * precedence when they are used.
  747. *
  748. * @NL80211_CMD_SET_WDS_PEER: Set the MAC address of the peer on a WDS interface
  749. * (no longer supported).
  750. *
  751. * @NL80211_CMD_SET_MULTICAST_TO_UNICAST: Configure if this AP should perform
  752. * multicast to unicast conversion. When enabled, all multicast packets
  753. * with ethertype ARP, IPv4 or IPv6 (possibly within an 802.1Q header)
  754. * will be sent out to each station once with the destination (multicast)
  755. * MAC address replaced by the station's MAC address. Note that this may
  756. * break certain expectations of the receiver, e.g. the ability to drop
  757. * unicast IP packets encapsulated in multicast L2 frames, or the ability
  758. * to not send destination unreachable messages in such cases.
  759. * This can only be toggled per BSS. Configure this on an interface of
  760. * type %NL80211_IFTYPE_AP. It applies to all its VLAN interfaces
  761. * (%NL80211_IFTYPE_AP_VLAN), except for those in 4addr (WDS) mode.
  762. * If %NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED is not present with this
  763. * command, the feature is disabled.
  764. *
  765. * @NL80211_CMD_JOIN_MESH: Join a mesh. The mesh ID must be given, and initial
  766. * mesh config parameters may be given.
  767. * @NL80211_CMD_LEAVE_MESH: Leave the mesh network -- no special arguments, the
  768. * network is determined by the network interface.
  769. *
  770. * @NL80211_CMD_UNPROT_DEAUTHENTICATE: Unprotected deauthentication frame
  771. * notification. This event is used to indicate that an unprotected
  772. * deauthentication frame was dropped when MFP is in use.
  773. * @NL80211_CMD_UNPROT_DISASSOCIATE: Unprotected disassociation frame
  774. * notification. This event is used to indicate that an unprotected
  775. * disassociation frame was dropped when MFP is in use.
  776. *
  777. * @NL80211_CMD_NEW_PEER_CANDIDATE: Notification on the reception of a
  778. * beacon or probe response from a compatible mesh peer. This is only
  779. * sent while no station information (sta_info) exists for the new peer
  780. * candidate and when @NL80211_MESH_SETUP_USERSPACE_AUTH,
  781. * @NL80211_MESH_SETUP_USERSPACE_AMPE, or
  782. * @NL80211_MESH_SETUP_USERSPACE_MPM is set. On reception of this
  783. * notification, userspace may decide to create a new station
  784. * (@NL80211_CMD_NEW_STATION). To stop this notification from
  785. * reoccurring, the userspace authentication daemon may want to create the
  786. * new station with the AUTHENTICATED flag unset and maybe change it later
  787. * depending on the authentication result.
  788. *
  789. * @NL80211_CMD_GET_WOWLAN: get Wake-on-Wireless-LAN (WoWLAN) settings.
  790. * @NL80211_CMD_SET_WOWLAN: set Wake-on-Wireless-LAN (WoWLAN) settings.
  791. * Since wireless is more complex than wired ethernet, it supports
  792. * various triggers. These triggers can be configured through this
  793. * command with the %NL80211_ATTR_WOWLAN_TRIGGERS attribute. For
  794. * more background information, see
  795. * https://wireless.wiki.kernel.org/en/users/Documentation/WoWLAN.
  796. * The @NL80211_CMD_SET_WOWLAN command can also be used as a notification
  797. * from the driver reporting the wakeup reason. In this case, the
  798. * @NL80211_ATTR_WOWLAN_TRIGGERS attribute will contain the reason
  799. * for the wakeup, if it was caused by wireless. If it is not present
  800. * in the wakeup notification, the wireless device didn't cause the
  801. * wakeup but reports that it was woken up.
  802. *
  803. * @NL80211_CMD_SET_REKEY_OFFLOAD: This command is used give the driver
  804. * the necessary information for supporting GTK rekey offload. This
  805. * feature is typically used during WoWLAN. The configuration data
  806. * is contained in %NL80211_ATTR_REKEY_DATA (which is nested and
  807. * contains the data in sub-attributes). After rekeying happened,
  808. * this command may also be sent by the driver as an MLME event to
  809. * inform userspace of the new replay counter.
  810. *
  811. * @NL80211_CMD_PMKSA_CANDIDATE: This is used as an event to inform userspace
  812. * of PMKSA caching dandidates.
  813. *
  814. * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup).
  815. * In addition, this can be used as an event to request userspace to take
  816. * actions on TDLS links (set up a new link or tear down an existing one).
  817. * In such events, %NL80211_ATTR_TDLS_OPERATION indicates the requested
  818. * operation, %NL80211_ATTR_MAC contains the peer MAC address, and
  819. * %NL80211_ATTR_REASON_CODE the reason code to be used (only with
  820. * %NL80211_TDLS_TEARDOWN).
  821. * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame. The
  822. * %NL80211_ATTR_TDLS_ACTION attribute determines the type of frame to be
  823. * sent. Public Action codes (802.11-2012 8.1.5.1) will be sent as
  824. * 802.11 management frames, while TDLS action codes (802.11-2012
  825. * 8.5.13.1) will be encapsulated and sent as data frames. The currently
  826. * supported Public Action code is %WLAN_PUB_ACTION_TDLS_DISCOVER_RES
  827. * and the currently supported TDLS actions codes are given in
  828. * &enum ieee80211_tdls_actioncode.
  829. *
  830. * @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP
  831. * (or GO) interface (i.e. hostapd) to ask for unexpected frames to
  832. * implement sending deauth to stations that send unexpected class 3
  833. * frames. Also used as the event sent by the kernel when such a frame
  834. * is received.
  835. * For the event, the %NL80211_ATTR_MAC attribute carries the TA and
  836. * other attributes like the interface index are present.
  837. * If used as the command it must have an interface index and you can
  838. * only unsubscribe from the event by closing the socket. Subscription
  839. * is also for %NL80211_CMD_UNEXPECTED_4ADDR_FRAME events.
  840. *
  841. * @NL80211_CMD_UNEXPECTED_4ADDR_FRAME: Sent as an event indicating that the
  842. * associated station identified by %NL80211_ATTR_MAC sent a 4addr frame
  843. * and wasn't already in a 4-addr VLAN. The event will be sent similarly
  844. * to the %NL80211_CMD_UNEXPECTED_FRAME event, to the same listener.
  845. *
  846. * @NL80211_CMD_PROBE_CLIENT: Probe an associated station on an AP interface
  847. * by sending a null data frame to it and reporting when the frame is
  848. * acknowleged. This is used to allow timing out inactive clients. Uses
  849. * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_MAC. The command returns a
  850. * direct reply with an %NL80211_ATTR_COOKIE that is later used to match
  851. * up the event with the request. The event includes the same data and
  852. * has %NL80211_ATTR_ACK set if the frame was ACKed.
  853. *
  854. * @NL80211_CMD_REGISTER_BEACONS: Register this socket to receive beacons from
  855. * other BSSes when any interfaces are in AP mode. This helps implement
  856. * OLBC handling in hostapd. Beacons are reported in %NL80211_CMD_FRAME
  857. * messages. Note that per PHY only one application may register.
  858. *
  859. * @NL80211_CMD_SET_NOACK_MAP: sets a bitmap for the individual TIDs whether
  860. * No Acknowledgement Policy should be applied.
  861. *
  862. * @NL80211_CMD_CH_SWITCH_NOTIFY: An AP or GO may decide to switch channels
  863. * independently of the userspace SME, send this event indicating
  864. * %NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ and the
  865. * attributes determining channel width. This indication may also be
  866. * sent when a remotely-initiated switch (e.g., when a STA receives a CSA
  867. * from the remote AP) is completed;
  868. *
  869. * @NL80211_CMD_CH_SWITCH_STARTED_NOTIFY: Notify that a channel switch
  870. * has been started on an interface, regardless of the initiator
  871. * (ie. whether it was requested from a remote device or
  872. * initiated on our own). It indicates that
  873. * %NL80211_ATTR_IFINDEX will be on %NL80211_ATTR_WIPHY_FREQ
  874. * after %NL80211_ATTR_CH_SWITCH_COUNT TBTT's. The userspace may
  875. * decide to react to this indication by requesting other
  876. * interfaces to change channel as well.
  877. *
  878. * @NL80211_CMD_START_P2P_DEVICE: Start the given P2P Device, identified by
  879. * its %NL80211_ATTR_WDEV identifier. It must have been created with
  880. * %NL80211_CMD_NEW_INTERFACE previously. After it has been started, the
  881. * P2P Device can be used for P2P operations, e.g. remain-on-channel and
  882. * public action frame TX.
  883. * @NL80211_CMD_STOP_P2P_DEVICE: Stop the given P2P Device, identified by
  884. * its %NL80211_ATTR_WDEV identifier.
  885. *
  886. * @NL80211_CMD_CONN_FAILED: connection request to an AP failed; used to
  887. * notify userspace that AP has rejected the connection request from a
  888. * station, due to particular reason. %NL80211_ATTR_CONN_FAILED_REASON
  889. * is used for this.
  890. *
  891. * @NL80211_CMD_SET_MCAST_RATE: Change the rate used to send multicast frames
  892. * for IBSS or MESH vif.
  893. *
  894. * @NL80211_CMD_SET_MAC_ACL: sets ACL for MAC address based access control.
  895. * This is to be used with the drivers advertising the support of MAC
  896. * address based access control. List of MAC addresses is passed in
  897. * %NL80211_ATTR_MAC_ADDRS and ACL policy is passed in
  898. * %NL80211_ATTR_ACL_POLICY. Driver will enable ACL with this list, if it
  899. * is not already done. The new list will replace any existing list. Driver
  900. * will clear its ACL when the list of MAC addresses passed is empty. This
  901. * command is used in AP/P2P GO mode. Driver has to make sure to clear its
  902. * ACL list during %NL80211_CMD_STOP_AP.
  903. *
  904. * @NL80211_CMD_RADAR_DETECT: Start a Channel availability check (CAC). Once
  905. * a radar is detected or the channel availability scan (CAC) has finished
  906. * or was aborted, or a radar was detected, usermode will be notified with
  907. * this event. This command is also used to notify userspace about radars
  908. * while operating on this channel.
  909. * %NL80211_ATTR_RADAR_EVENT is used to inform about the type of the
  910. * event.
  911. *
  912. * @NL80211_CMD_GET_PROTOCOL_FEATURES: Get global nl80211 protocol features,
  913. * i.e. features for the nl80211 protocol rather than device features.
  914. * Returns the features in the %NL80211_ATTR_PROTOCOL_FEATURES bitmap.
  915. *
  916. * @NL80211_CMD_UPDATE_FT_IES: Pass down the most up-to-date Fast Transition
  917. * Information Element to the WLAN driver
  918. *
  919. * @NL80211_CMD_FT_EVENT: Send a Fast transition event from the WLAN driver
  920. * to the supplicant. This will carry the target AP's MAC address along
  921. * with the relevant Information Elements. This event is used to report
  922. * received FT IEs (MDIE, FTIE, RSN IE, TIE, RICIE).
  923. *
  924. * @NL80211_CMD_CRIT_PROTOCOL_START: Indicates user-space will start running
  925. * a critical protocol that needs more reliability in the connection to
  926. * complete.
  927. *
  928. * @NL80211_CMD_CRIT_PROTOCOL_STOP: Indicates the connection reliability can
  929. * return back to normal.
  930. *
  931. * @NL80211_CMD_GET_COALESCE: Get currently supported coalesce rules.
  932. * @NL80211_CMD_SET_COALESCE: Configure coalesce rules or clear existing rules.
  933. *
  934. * @NL80211_CMD_CHANNEL_SWITCH: Perform a channel switch by announcing the
  935. * new channel information (Channel Switch Announcement - CSA)
  936. * in the beacon for some time (as defined in the
  937. * %NL80211_ATTR_CH_SWITCH_COUNT parameter) and then change to the
  938. * new channel. Userspace provides the new channel information (using
  939. * %NL80211_ATTR_WIPHY_FREQ and the attributes determining channel
  940. * width). %NL80211_ATTR_CH_SWITCH_BLOCK_TX may be supplied to inform
  941. * other station that transmission must be blocked until the channel
  942. * switch is complete.
  943. *
  944. * @NL80211_CMD_VENDOR: Vendor-specified command/event. The command is specified
  945. * by the %NL80211_ATTR_VENDOR_ID attribute and a sub-command in
  946. * %NL80211_ATTR_VENDOR_SUBCMD. Parameter(s) can be transported in
  947. * %NL80211_ATTR_VENDOR_DATA.
  948. * For feature advertisement, the %NL80211_ATTR_VENDOR_DATA attribute is
  949. * used in the wiphy data as a nested attribute containing descriptions
  950. * (&struct nl80211_vendor_cmd_info) of the supported vendor commands.
  951. * This may also be sent as an event with the same attributes.
  952. *
  953. * @NL80211_CMD_SET_QOS_MAP: Set Interworking QoS mapping for IP DSCP values.
  954. * The QoS mapping information is included in %NL80211_ATTR_QOS_MAP. If
  955. * that attribute is not included, QoS mapping is disabled. Since this
  956. * QoS mapping is relevant for IP packets, it is only valid during an
  957. * association. This is cleared on disassociation and AP restart.
  958. *
  959. * @NL80211_CMD_ADD_TX_TS: Ask the kernel to add a traffic stream for the given
  960. * %NL80211_ATTR_TSID and %NL80211_ATTR_MAC with %NL80211_ATTR_USER_PRIO
  961. * and %NL80211_ATTR_ADMITTED_TIME parameters.
  962. * Note that the action frame handshake with the AP shall be handled by
  963. * userspace via the normal management RX/TX framework, this only sets
  964. * up the TX TS in the driver/device.
  965. * If the admitted time attribute is not added then the request just checks
  966. * if a subsequent setup could be successful, the intent is to use this to
  967. * avoid setting up a session with the AP when local restrictions would
  968. * make that impossible. However, the subsequent "real" setup may still
  969. * fail even if the check was successful.
  970. * @NL80211_CMD_DEL_TX_TS: Remove an existing TS with the %NL80211_ATTR_TSID
  971. * and %NL80211_ATTR_MAC parameters. It isn't necessary to call this
  972. * before removing a station entry entirely, or before disassociating
  973. * or similar, cleanup will happen in the driver/device in this case.
  974. *
  975. * @NL80211_CMD_GET_MPP: Get mesh path attributes for mesh proxy path to
  976. * destination %NL80211_ATTR_MAC on the interface identified by
  977. * %NL80211_ATTR_IFINDEX.
  978. *
  979. * @NL80211_CMD_JOIN_OCB: Join the OCB network. The center frequency and
  980. * bandwidth of a channel must be given.
  981. * @NL80211_CMD_LEAVE_OCB: Leave the OCB network -- no special arguments, the
  982. * network is determined by the network interface.
  983. *
  984. * @NL80211_CMD_TDLS_CHANNEL_SWITCH: Start channel-switching with a TDLS peer,
  985. * identified by the %NL80211_ATTR_MAC parameter. A target channel is
  986. * provided via %NL80211_ATTR_WIPHY_FREQ and other attributes determining
  987. * channel width/type. The target operating class is given via
  988. * %NL80211_ATTR_OPER_CLASS.
  989. * The driver is responsible for continually initiating channel-switching
  990. * operations and returning to the base channel for communication with the
  991. * AP.
  992. * @NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH: Stop channel-switching with a TDLS
  993. * peer given by %NL80211_ATTR_MAC. Both peers must be on the base channel
  994. * when this command completes.
  995. *
  996. * @NL80211_CMD_WIPHY_REG_CHANGE: Similar to %NL80211_CMD_REG_CHANGE, but used
  997. * as an event to indicate changes for devices with wiphy-specific regdom
  998. * management.
  999. *
  1000. * @NL80211_CMD_ABORT_SCAN: Stop an ongoing scan. Returns -ENOENT if a scan is
  1001. * not running. The driver indicates the status of the scan through
  1002. * cfg80211_scan_done().
  1003. *
  1004. * @NL80211_CMD_START_NAN: Start NAN operation, identified by its
  1005. * %NL80211_ATTR_WDEV interface. This interface must have been
  1006. * previously created with %NL80211_CMD_NEW_INTERFACE. After it
  1007. * has been started, the NAN interface will create or join a
  1008. * cluster. This command must have a valid
  1009. * %NL80211_ATTR_NAN_MASTER_PREF attribute and optional
  1010. * %NL80211_ATTR_BANDS attributes. If %NL80211_ATTR_BANDS is
  1011. * omitted or set to 0, it means don't-care and the device will
  1012. * decide what to use. After this command NAN functions can be
  1013. * added.
  1014. * @NL80211_CMD_STOP_NAN: Stop the NAN operation, identified by
  1015. * its %NL80211_ATTR_WDEV interface.
  1016. * @NL80211_CMD_ADD_NAN_FUNCTION: Add a NAN function. The function is defined
  1017. * with %NL80211_ATTR_NAN_FUNC nested attribute. When called, this
  1018. * operation returns the strictly positive and unique instance id
  1019. * (%NL80211_ATTR_NAN_FUNC_INST_ID) and a cookie (%NL80211_ATTR_COOKIE)
  1020. * of the function upon success.
  1021. * Since instance ID's can be re-used, this cookie is the right
  1022. * way to identify the function. This will avoid races when a termination
  1023. * event is handled by the user space after it has already added a new
  1024. * function that got the same instance id from the kernel as the one
  1025. * which just terminated.
  1026. * This cookie may be used in NAN events even before the command
  1027. * returns, so userspace shouldn't process NAN events until it processes
  1028. * the response to this command.
  1029. * Look at %NL80211_ATTR_SOCKET_OWNER as well.
  1030. * @NL80211_CMD_DEL_NAN_FUNCTION: Delete a NAN function by cookie.
  1031. * This command is also used as a notification sent when a NAN function is
  1032. * terminated. This will contain a %NL80211_ATTR_NAN_FUNC_INST_ID
  1033. * and %NL80211_ATTR_COOKIE attributes.
  1034. * @NL80211_CMD_CHANGE_NAN_CONFIG: Change current NAN
  1035. * configuration. NAN must be operational (%NL80211_CMD_START_NAN
  1036. * was executed). It must contain at least one of the following
  1037. * attributes: %NL80211_ATTR_NAN_MASTER_PREF,
  1038. * %NL80211_ATTR_BANDS. If %NL80211_ATTR_BANDS is omitted, the
  1039. * current configuration is not changed. If it is present but
  1040. * set to zero, the configuration is changed to don't-care
  1041. * (i.e. the device can decide what to do).
  1042. * @NL80211_CMD_NAN_FUNC_MATCH: Notification sent when a match is reported.
  1043. * This will contain a %NL80211_ATTR_NAN_MATCH nested attribute and
  1044. * %NL80211_ATTR_COOKIE.
  1045. *
  1046. * @NL80211_CMD_UPDATE_CONNECT_PARAMS: Update one or more connect parameters
  1047. * for subsequent roaming cases if the driver or firmware uses internal
  1048. * BSS selection. This command can be issued only while connected and it
  1049. * does not result in a change for the current association. Currently,
  1050. * only the %NL80211_ATTR_IE data is used and updated with this command.
  1051. *
  1052. * @NL80211_CMD_SET_PMK: For offloaded 4-Way handshake, set the PMK or PMK-R0
  1053. * for the given authenticator address (specified with %NL80211_ATTR_MAC).
  1054. * When %NL80211_ATTR_PMKR0_NAME is set, %NL80211_ATTR_PMK specifies the
  1055. * PMK-R0, otherwise it specifies the PMK.
  1056. * @NL80211_CMD_DEL_PMK: For offloaded 4-Way handshake, delete the previously
  1057. * configured PMK for the authenticator address identified by
  1058. * %NL80211_ATTR_MAC.
  1059. * @NL80211_CMD_PORT_AUTHORIZED: An event that indicates an 802.1X FT roam was
  1060. * completed successfully. Drivers that support 4 way handshake offload
  1061. * should send this event after indicating 802.1X FT assocation with
  1062. * %NL80211_CMD_ROAM. If the 4 way handshake failed %NL80211_CMD_DISCONNECT
  1063. * should be indicated instead.
  1064. * @NL80211_CMD_CONTROL_PORT_FRAME: Control Port (e.g. PAE) frame TX request
  1065. * and RX notification. This command is used both as a request to transmit
  1066. * a control port frame and as a notification that a control port frame
  1067. * has been received. %NL80211_ATTR_FRAME is used to specify the
  1068. * frame contents. The frame is the raw EAPoL data, without ethernet or
  1069. * 802.11 headers.
  1070. * When used as an event indication %NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
  1071. * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT and %NL80211_ATTR_MAC are added
  1072. * indicating the protocol type of the received frame; whether the frame
  1073. * was received unencrypted and the MAC address of the peer respectively.
  1074. *
  1075. * @NL80211_CMD_RELOAD_REGDB: Request that the regdb firmware file is reloaded.
  1076. *
  1077. * @NL80211_CMD_EXTERNAL_AUTH: This interface is exclusively defined for host
  1078. * drivers that do not define separate commands for authentication and
  1079. * association, but rely on user space for the authentication to happen.
  1080. * This interface acts both as the event request (driver to user space)
  1081. * to trigger the authentication and command response (userspace to
  1082. * driver) to indicate the authentication status.
  1083. *
  1084. * User space uses the %NL80211_CMD_CONNECT command to the host driver to
  1085. * trigger a connection. The host driver selects a BSS and further uses
  1086. * this interface to offload only the authentication part to the user
  1087. * space. Authentication frames are passed between the driver and user
  1088. * space through the %NL80211_CMD_FRAME interface. Host driver proceeds
  1089. * further with the association after getting successful authentication
  1090. * status. User space indicates the authentication status through
  1091. * %NL80211_ATTR_STATUS_CODE attribute in %NL80211_CMD_EXTERNAL_AUTH
  1092. * command interface.
  1093. *
  1094. * Host driver reports this status on an authentication failure to the
  1095. * user space through the connect result as the user space would have
  1096. * initiated the connection through the connect request.
  1097. *
  1098. * @NL80211_CMD_STA_OPMODE_CHANGED: An event that notify station's
  1099. * ht opmode or vht opmode changes using any of %NL80211_ATTR_SMPS_MODE,
  1100. * %NL80211_ATTR_CHANNEL_WIDTH,%NL80211_ATTR_NSS attributes with its
  1101. * address(specified in %NL80211_ATTR_MAC).
  1102. *
  1103. * @NL80211_CMD_GET_FTM_RESPONDER_STATS: Retrieve FTM responder statistics, in
  1104. * the %NL80211_ATTR_FTM_RESPONDER_STATS attribute.
  1105. *
  1106. * @NL80211_CMD_PEER_MEASUREMENT_START: start a (set of) peer measurement(s)
  1107. * with the given parameters, which are encapsulated in the nested
  1108. * %NL80211_ATTR_PEER_MEASUREMENTS attribute. Optionally, MAC address
  1109. * randomization may be enabled and configured by specifying the
  1110. * %NL80211_ATTR_MAC and %NL80211_ATTR_MAC_MASK attributes.
  1111. * If a timeout is requested, use the %NL80211_ATTR_TIMEOUT attribute.
  1112. * A u64 cookie for further %NL80211_ATTR_COOKIE use is returned in
  1113. * the netlink extended ack message.
  1114. *
  1115. * To cancel a measurement, close the socket that requested it.
  1116. *
  1117. * Measurement results are reported to the socket that requested the
  1118. * measurement using @NL80211_CMD_PEER_MEASUREMENT_RESULT when they
  1119. * become available, so applications must ensure a large enough socket
  1120. * buffer size.
  1121. *
  1122. * Depending on driver support it may or may not be possible to start
  1123. * multiple concurrent measurements.
  1124. * @NL80211_CMD_PEER_MEASUREMENT_RESULT: This command number is used for the
  1125. * result notification from the driver to the requesting socket.
  1126. * @NL80211_CMD_PEER_MEASUREMENT_COMPLETE: Notification only, indicating that
  1127. * the measurement completed, using the measurement cookie
  1128. * (%NL80211_ATTR_COOKIE).
  1129. *
  1130. * @NL80211_CMD_NOTIFY_RADAR: Notify the kernel that a radar signal was
  1131. * detected and reported by a neighboring device on the channel
  1132. * indicated by %NL80211_ATTR_WIPHY_FREQ and other attributes
  1133. * determining the width and type.
  1134. *
  1135. * @NL80211_CMD_UPDATE_OWE_INFO: This interface allows the host driver to
  1136. * offload OWE processing to user space. This intends to support
  1137. * OWE AKM by the host drivers that implement SME but rely
  1138. * on the user space for the cryptographic/DH IE processing in AP mode.
  1139. *
  1140. * @NL80211_CMD_PROBE_MESH_LINK: The requirement for mesh link metric
  1141. * refreshing, is that from one mesh point we be able to send some data
  1142. * frames to other mesh points which are not currently selected as a
  1143. * primary traffic path, but which are only 1 hop away. The absence of
  1144. * the primary path to the chosen node makes it necessary to apply some
  1145. * form of marking on a chosen packet stream so that the packets can be
  1146. * properly steered to the selected node for testing, and not by the
  1147. * regular mesh path lookup. Further, the packets must be of type data
  1148. * so that the rate control (often embedded in firmware) is used for
  1149. * rate selection.
  1150. *
  1151. * Here attribute %NL80211_ATTR_MAC is used to specify connected mesh
  1152. * peer MAC address and %NL80211_ATTR_FRAME is used to specify the frame
  1153. * content. The frame is ethernet data.
  1154. *
  1155. * @NL80211_CMD_SET_TID_CONFIG: Data frame TID specific configuration
  1156. * is passed using %NL80211_ATTR_TID_CONFIG attribute.
  1157. *
  1158. * @NL80211_CMD_UNPROT_BEACON: Unprotected or incorrectly protected Beacon
  1159. * frame. This event is used to indicate that a received Beacon frame was
  1160. * dropped because it did not include a valid MME MIC while beacon
  1161. * protection was enabled (BIGTK configured in station mode).
  1162. *
  1163. * @NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS: Report TX status of a control
  1164. * port frame transmitted with %NL80211_CMD_CONTROL_PORT_FRAME.
  1165. * %NL80211_ATTR_COOKIE identifies the TX command and %NL80211_ATTR_FRAME
  1166. * includes the contents of the frame. %NL80211_ATTR_ACK flag is included
  1167. * if the recipient acknowledged the frame.
  1168. *
  1169. * @NL80211_CMD_SET_SAR_SPECS: SAR power limitation configuration is
  1170. * passed using %NL80211_ATTR_SAR_SPEC. %NL80211_ATTR_WIPHY is used to
  1171. * specify the wiphy index to be applied to.
  1172. *
  1173. * @NL80211_CMD_OBSS_COLOR_COLLISION: This notification is sent out whenever
  1174. * mac80211/drv detects a bss color collision.
  1175. *
  1176. * @NL80211_CMD_COLOR_CHANGE_REQUEST: This command is used to indicate that
  1177. * userspace wants to change the BSS color.
  1178. *
  1179. * @NL80211_CMD_COLOR_CHANGE_STARTED: Notify userland, that a color change has
  1180. * started
  1181. *
  1182. * @NL80211_CMD_COLOR_CHANGE_ABORTED: Notify userland, that the color change has
  1183. * been aborted
  1184. *
  1185. * @NL80211_CMD_COLOR_CHANGE_COMPLETED: Notify userland that the color change
  1186. * has completed
  1187. *
  1188. * @NL80211_CMD_MAX: highest used command number
  1189. * @__NL80211_CMD_AFTER_LAST: internal use
  1190. */
  1191. enum nl80211_commands {
  1192. /* don't change the order or add anything between, this is ABI! */
  1193. NL80211_CMD_UNSPEC,
  1194. NL80211_CMD_GET_WIPHY, /* can dump */
  1195. NL80211_CMD_SET_WIPHY,
  1196. NL80211_CMD_NEW_WIPHY,
  1197. NL80211_CMD_DEL_WIPHY,
  1198. NL80211_CMD_GET_INTERFACE, /* can dump */
  1199. NL80211_CMD_SET_INTERFACE,
  1200. NL80211_CMD_NEW_INTERFACE,
  1201. NL80211_CMD_DEL_INTERFACE,
  1202. NL80211_CMD_GET_KEY,
  1203. NL80211_CMD_SET_KEY,
  1204. NL80211_CMD_NEW_KEY,
  1205. NL80211_CMD_DEL_KEY,
  1206. NL80211_CMD_GET_BEACON,
  1207. NL80211_CMD_SET_BEACON,
  1208. NL80211_CMD_START_AP,
  1209. NL80211_CMD_NEW_BEACON = NL80211_CMD_START_AP,
  1210. NL80211_CMD_STOP_AP,
  1211. NL80211_CMD_DEL_BEACON = NL80211_CMD_STOP_AP,
  1212. NL80211_CMD_GET_STATION,
  1213. NL80211_CMD_SET_STATION,
  1214. NL80211_CMD_NEW_STATION,
  1215. NL80211_CMD_DEL_STATION,
  1216. NL80211_CMD_GET_MPATH,
  1217. NL80211_CMD_SET_MPATH,
  1218. NL80211_CMD_NEW_MPATH,
  1219. NL80211_CMD_DEL_MPATH,
  1220. NL80211_CMD_SET_BSS,
  1221. NL80211_CMD_SET_REG,
  1222. NL80211_CMD_REQ_SET_REG,
  1223. NL80211_CMD_GET_MESH_CONFIG,
  1224. NL80211_CMD_SET_MESH_CONFIG,
  1225. NL80211_CMD_SET_MGMT_EXTRA_IE /* reserved; not used */,
  1226. NL80211_CMD_GET_REG,
  1227. NL80211_CMD_GET_SCAN,
  1228. NL80211_CMD_TRIGGER_SCAN,
  1229. NL80211_CMD_NEW_SCAN_RESULTS,
  1230. NL80211_CMD_SCAN_ABORTED,
  1231. NL80211_CMD_REG_CHANGE,
  1232. NL80211_CMD_AUTHENTICATE,
  1233. NL80211_CMD_ASSOCIATE,
  1234. NL80211_CMD_DEAUTHENTICATE,
  1235. NL80211_CMD_DISASSOCIATE,
  1236. NL80211_CMD_MICHAEL_MIC_FAILURE,
  1237. NL80211_CMD_REG_BEACON_HINT,
  1238. NL80211_CMD_JOIN_IBSS,
  1239. NL80211_CMD_LEAVE_IBSS,
  1240. NL80211_CMD_TESTMODE,
  1241. NL80211_CMD_CONNECT,
  1242. NL80211_CMD_ROAM,
  1243. NL80211_CMD_DISCONNECT,
  1244. NL80211_CMD_SET_WIPHY_NETNS,
  1245. NL80211_CMD_GET_SURVEY,
  1246. NL80211_CMD_NEW_SURVEY_RESULTS,
  1247. NL80211_CMD_SET_PMKSA,
  1248. NL80211_CMD_DEL_PMKSA,
  1249. NL80211_CMD_FLUSH_PMKSA,
  1250. NL80211_CMD_REMAIN_ON_CHANNEL,
  1251. NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL,
  1252. NL80211_CMD_SET_TX_BITRATE_MASK,
  1253. NL80211_CMD_REGISTER_FRAME,
  1254. NL80211_CMD_REGISTER_ACTION = NL80211_CMD_REGISTER_FRAME,
  1255. NL80211_CMD_FRAME,
  1256. NL80211_CMD_ACTION = NL80211_CMD_FRAME,
  1257. NL80211_CMD_FRAME_TX_STATUS,
  1258. NL80211_CMD_ACTION_TX_STATUS = NL80211_CMD_FRAME_TX_STATUS,
  1259. NL80211_CMD_SET_POWER_SAVE,
  1260. NL80211_CMD_GET_POWER_SAVE,
  1261. NL80211_CMD_SET_CQM,
  1262. NL80211_CMD_NOTIFY_CQM,
  1263. NL80211_CMD_SET_CHANNEL,
  1264. NL80211_CMD_SET_WDS_PEER,
  1265. NL80211_CMD_FRAME_WAIT_CANCEL,
  1266. NL80211_CMD_JOIN_MESH,
  1267. NL80211_CMD_LEAVE_MESH,
  1268. NL80211_CMD_UNPROT_DEAUTHENTICATE,
  1269. NL80211_CMD_UNPROT_DISASSOCIATE,
  1270. NL80211_CMD_NEW_PEER_CANDIDATE,
  1271. NL80211_CMD_GET_WOWLAN,
  1272. NL80211_CMD_SET_WOWLAN,
  1273. NL80211_CMD_START_SCHED_SCAN,
  1274. NL80211_CMD_STOP_SCHED_SCAN,
  1275. NL80211_CMD_SCHED_SCAN_RESULTS,
  1276. NL80211_CMD_SCHED_SCAN_STOPPED,
  1277. NL80211_CMD_SET_REKEY_OFFLOAD,
  1278. NL80211_CMD_PMKSA_CANDIDATE,
  1279. NL80211_CMD_TDLS_OPER,
  1280. NL80211_CMD_TDLS_MGMT,
  1281. NL80211_CMD_UNEXPECTED_FRAME,
  1282. NL80211_CMD_PROBE_CLIENT,
  1283. NL80211_CMD_REGISTER_BEACONS,
  1284. NL80211_CMD_UNEXPECTED_4ADDR_FRAME,
  1285. NL80211_CMD_SET_NOACK_MAP,
  1286. NL80211_CMD_CH_SWITCH_NOTIFY,
  1287. NL80211_CMD_START_P2P_DEVICE,
  1288. NL80211_CMD_STOP_P2P_DEVICE,
  1289. NL80211_CMD_CONN_FAILED,
  1290. NL80211_CMD_SET_MCAST_RATE,
  1291. NL80211_CMD_SET_MAC_ACL,
  1292. NL80211_CMD_RADAR_DETECT,
  1293. NL80211_CMD_GET_PROTOCOL_FEATURES,
  1294. NL80211_CMD_UPDATE_FT_IES,
  1295. NL80211_CMD_FT_EVENT,
  1296. NL80211_CMD_CRIT_PROTOCOL_START,
  1297. NL80211_CMD_CRIT_PROTOCOL_STOP,
  1298. NL80211_CMD_GET_COALESCE,
  1299. NL80211_CMD_SET_COALESCE,
  1300. NL80211_CMD_CHANNEL_SWITCH,
  1301. NL80211_CMD_VENDOR,
  1302. NL80211_CMD_SET_QOS_MAP,
  1303. NL80211_CMD_ADD_TX_TS,
  1304. NL80211_CMD_DEL_TX_TS,
  1305. NL80211_CMD_GET_MPP,
  1306. NL80211_CMD_JOIN_OCB,
  1307. NL80211_CMD_LEAVE_OCB,
  1308. NL80211_CMD_CH_SWITCH_STARTED_NOTIFY,
  1309. NL80211_CMD_TDLS_CHANNEL_SWITCH,
  1310. NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH,
  1311. NL80211_CMD_WIPHY_REG_CHANGE,
  1312. NL80211_CMD_ABORT_SCAN,
  1313. NL80211_CMD_START_NAN,
  1314. NL80211_CMD_STOP_NAN,
  1315. NL80211_CMD_ADD_NAN_FUNCTION,
  1316. NL80211_CMD_DEL_NAN_FUNCTION,
  1317. NL80211_CMD_CHANGE_NAN_CONFIG,
  1318. NL80211_CMD_NAN_MATCH,
  1319. NL80211_CMD_SET_MULTICAST_TO_UNICAST,
  1320. NL80211_CMD_UPDATE_CONNECT_PARAMS,
  1321. NL80211_CMD_SET_PMK,
  1322. NL80211_CMD_DEL_PMK,
  1323. NL80211_CMD_PORT_AUTHORIZED,
  1324. NL80211_CMD_RELOAD_REGDB,
  1325. NL80211_CMD_EXTERNAL_AUTH,
  1326. NL80211_CMD_STA_OPMODE_CHANGED,
  1327. NL80211_CMD_CONTROL_PORT_FRAME,
  1328. NL80211_CMD_GET_FTM_RESPONDER_STATS,
  1329. NL80211_CMD_PEER_MEASUREMENT_START,
  1330. NL80211_CMD_PEER_MEASUREMENT_RESULT,
  1331. NL80211_CMD_PEER_MEASUREMENT_COMPLETE,
  1332. NL80211_CMD_NOTIFY_RADAR,
  1333. NL80211_CMD_UPDATE_OWE_INFO,
  1334. NL80211_CMD_PROBE_MESH_LINK,
  1335. NL80211_CMD_SET_TID_CONFIG,
  1336. NL80211_CMD_UNPROT_BEACON,
  1337. NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS,
  1338. NL80211_CMD_SET_SAR_SPECS,
  1339. NL80211_CMD_OBSS_COLOR_COLLISION,
  1340. NL80211_CMD_COLOR_CHANGE_REQUEST,
  1341. NL80211_CMD_COLOR_CHANGE_STARTED,
  1342. NL80211_CMD_COLOR_CHANGE_ABORTED,
  1343. NL80211_CMD_COLOR_CHANGE_COMPLETED,
  1344. /* add new commands above here */
  1345. /* used to define NL80211_CMD_MAX below */
  1346. __NL80211_CMD_AFTER_LAST,
  1347. NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1
  1348. };
  1349. /*
  1350. * Allow user space programs to use #ifdef on new commands by defining them
  1351. * here
  1352. */
  1353. #define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS
  1354. #define NL80211_CMD_SET_MGMT_EXTRA_IE NL80211_CMD_SET_MGMT_EXTRA_IE
  1355. #define NL80211_CMD_REG_CHANGE NL80211_CMD_REG_CHANGE
  1356. #define NL80211_CMD_AUTHENTICATE NL80211_CMD_AUTHENTICATE
  1357. #define NL80211_CMD_ASSOCIATE NL80211_CMD_ASSOCIATE
  1358. #define NL80211_CMD_DEAUTHENTICATE NL80211_CMD_DEAUTHENTICATE
  1359. #define NL80211_CMD_DISASSOCIATE NL80211_CMD_DISASSOCIATE
  1360. #define NL80211_CMD_REG_BEACON_HINT NL80211_CMD_REG_BEACON_HINT
  1361. #define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS
  1362. /* source-level API compatibility */
  1363. #define NL80211_CMD_GET_MESH_PARAMS NL80211_CMD_GET_MESH_CONFIG
  1364. #define NL80211_CMD_SET_MESH_PARAMS NL80211_CMD_SET_MESH_CONFIG
  1365. #define NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE NL80211_MESH_SETUP_IE
  1366. /**
  1367. * enum nl80211_attrs - nl80211 netlink attributes
  1368. *
  1369. * @NL80211_ATTR_UNSPEC: unspecified attribute to catch errors
  1370. *
  1371. * @NL80211_ATTR_WIPHY: index of wiphy to operate on, cf.
  1372. * /sys/class/ieee80211/<phyname>/index
  1373. * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming)
  1374. * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters
  1375. * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz,
  1376. * defines the channel together with the (deprecated)
  1377. * %NL80211_ATTR_WIPHY_CHANNEL_TYPE attribute or the attributes
  1378. * %NL80211_ATTR_CHANNEL_WIDTH and if needed %NL80211_ATTR_CENTER_FREQ1
  1379. * and %NL80211_ATTR_CENTER_FREQ2
  1380. * @NL80211_ATTR_CHANNEL_WIDTH: u32 attribute containing one of the values
  1381. * of &enum nl80211_chan_width, describing the channel width. See the
  1382. * documentation of the enum for more information.
  1383. * @NL80211_ATTR_CENTER_FREQ1: Center frequency of the first part of the
  1384. * channel, used for anything but 20 MHz bandwidth. In S1G this is the
  1385. * operating channel center frequency.
  1386. * @NL80211_ATTR_CENTER_FREQ2: Center frequency of the second part of the
  1387. * channel, used only for 80+80 MHz bandwidth
  1388. * @NL80211_ATTR_WIPHY_CHANNEL_TYPE: included with NL80211_ATTR_WIPHY_FREQ
  1389. * if HT20 or HT40 are to be used (i.e., HT disabled if not included):
  1390. * NL80211_CHAN_NO_HT = HT not allowed (i.e., same as not including
  1391. * this attribute)
  1392. * NL80211_CHAN_HT20 = HT20 only
  1393. * NL80211_CHAN_HT40MINUS = secondary channel is below the primary channel
  1394. * NL80211_CHAN_HT40PLUS = secondary channel is above the primary channel
  1395. * This attribute is now deprecated.
  1396. * @NL80211_ATTR_WIPHY_RETRY_SHORT: TX retry limit for frames whose length is
  1397. * less than or equal to the RTS threshold; allowed range: 1..255;
  1398. * dot11ShortRetryLimit; u8
  1399. * @NL80211_ATTR_WIPHY_RETRY_LONG: TX retry limit for frames whose length is
  1400. * greater than the RTS threshold; allowed range: 1..255;
  1401. * dot11ShortLongLimit; u8
  1402. * @NL80211_ATTR_WIPHY_FRAG_THRESHOLD: fragmentation threshold, i.e., maximum
  1403. * length in octets for frames; allowed range: 256..8000, disable
  1404. * fragmentation with (u32)-1; dot11FragmentationThreshold; u32
  1405. * @NL80211_ATTR_WIPHY_RTS_THRESHOLD: RTS threshold (TX frames with length
  1406. * larger than or equal to this use RTS/CTS handshake); allowed range:
  1407. * 0..65536, disable with (u32)-1; dot11RTSThreshold; u32
  1408. * @NL80211_ATTR_WIPHY_COVERAGE_CLASS: Coverage Class as defined by IEEE 802.11
  1409. * section 7.3.2.9; dot11CoverageClass; u8
  1410. *
  1411. * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on
  1412. * @NL80211_ATTR_IFNAME: network interface name
  1413. * @NL80211_ATTR_IFTYPE: type of virtual interface, see &enum nl80211_iftype
  1414. *
  1415. * @NL80211_ATTR_WDEV: wireless device identifier, used for pseudo-devices
  1416. * that don't have a netdev (u64)
  1417. *
  1418. * @NL80211_ATTR_MAC: MAC address (various uses)
  1419. *
  1420. * @NL80211_ATTR_KEY_DATA: (temporal) key data; for TKIP this consists of
  1421. * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC
  1422. * keys
  1423. * @NL80211_ATTR_KEY_IDX: key ID (u8, 0-3)
  1424. * @NL80211_ATTR_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11
  1425. * section 7.3.2.25.1, e.g. 0x000FAC04)
  1426. * @NL80211_ATTR_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and
  1427. * CCMP keys, each six bytes in little endian
  1428. * @NL80211_ATTR_KEY_DEFAULT: Flag attribute indicating the key is default key
  1429. * @NL80211_ATTR_KEY_DEFAULT_MGMT: Flag attribute indicating the key is the
  1430. * default management key
  1431. * @NL80211_ATTR_CIPHER_SUITES_PAIRWISE: For crypto settings for connect or
  1432. * other commands, indicates which pairwise cipher suites are used
  1433. * @NL80211_ATTR_CIPHER_SUITE_GROUP: For crypto settings for connect or
  1434. * other commands, indicates which group cipher suite is used
  1435. *
  1436. * @NL80211_ATTR_BEACON_INTERVAL: beacon interval in TU
  1437. * @NL80211_ATTR_DTIM_PERIOD: DTIM period for beaconing
  1438. * @NL80211_ATTR_BEACON_HEAD: portion of the beacon before the TIM IE
  1439. * @NL80211_ATTR_BEACON_TAIL: portion of the beacon after the TIM IE
  1440. *
  1441. * @NL80211_ATTR_STA_AID: Association ID for the station (u16)
  1442. * @NL80211_ATTR_STA_FLAGS: flags, nested element with NLA_FLAG attributes of
  1443. * &enum nl80211_sta_flags (deprecated, use %NL80211_ATTR_STA_FLAGS2)
  1444. * @NL80211_ATTR_STA_LISTEN_INTERVAL: listen interval as defined by
  1445. * IEEE 802.11 7.3.1.6 (u16).
  1446. * @NL80211_ATTR_STA_SUPPORTED_RATES: supported rates, array of supported
  1447. * rates as defined by IEEE 802.11 7.3.2.2 but without the length
  1448. * restriction (at most %NL80211_MAX_SUPP_RATES).
  1449. * @NL80211_ATTR_STA_VLAN: interface index of VLAN interface to move station
  1450. * to, or the AP interface the station was originally added to.
  1451. * @NL80211_ATTR_STA_INFO: information about a station, part of station info
  1452. * given for %NL80211_CMD_GET_STATION, nested attribute containing
  1453. * info as possible, see &enum nl80211_sta_info.
  1454. *
  1455. * @NL80211_ATTR_WIPHY_BANDS: Information about an operating bands,
  1456. * consisting of a nested array.
  1457. *
  1458. * @NL80211_ATTR_MESH_ID: mesh id (1-32 bytes).
  1459. * @NL80211_ATTR_STA_PLINK_ACTION: action to perform on the mesh peer link
  1460. * (see &enum nl80211_plink_action).
  1461. * @NL80211_ATTR_MPATH_NEXT_HOP: MAC address of the next hop for a mesh path.
  1462. * @NL80211_ATTR_MPATH_INFO: information about a mesh_path, part of mesh path
  1463. * info given for %NL80211_CMD_GET_MPATH, nested attribute described at
  1464. * &enum nl80211_mpath_info.
  1465. *
  1466. * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of
  1467. * &enum nl80211_mntr_flags.
  1468. *
  1469. * @NL80211_ATTR_REG_ALPHA2: an ISO-3166-alpha2 country code for which the
  1470. * current regulatory domain should be set to or is already set to.
  1471. * For example, 'CR', for Costa Rica. This attribute is used by the kernel
  1472. * to query the CRDA to retrieve one regulatory domain. This attribute can
  1473. * also be used by userspace to query the kernel for the currently set
  1474. * regulatory domain. We chose an alpha2 as that is also used by the
  1475. * IEEE-802.11 country information element to identify a country.
  1476. * Users can also simply ask the wireless core to set regulatory domain
  1477. * to a specific alpha2.
  1478. * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory
  1479. * rules.
  1480. *
  1481. * @NL80211_ATTR_BSS_CTS_PROT: whether CTS protection is enabled (u8, 0 or 1)
  1482. * @NL80211_ATTR_BSS_SHORT_PREAMBLE: whether short preamble is enabled
  1483. * (u8, 0 or 1)
  1484. * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled
  1485. * (u8, 0 or 1)
  1486. * @NL80211_ATTR_BSS_BASIC_RATES: basic rates, array of basic
  1487. * rates in format defined by IEEE 802.11 7.3.2.2 but without the length
  1488. * restriction (at most %NL80211_MAX_SUPP_RATES).
  1489. *
  1490. * @NL80211_ATTR_HT_CAPABILITY: HT Capability information element (from
  1491. * association request when used with NL80211_CMD_NEW_STATION)
  1492. *
  1493. * @NL80211_ATTR_SUPPORTED_IFTYPES: nested attribute containing all
  1494. * supported interface types, each a flag attribute with the number
  1495. * of the interface mode.
  1496. *
  1497. * @NL80211_ATTR_MGMT_SUBTYPE: Management frame subtype for
  1498. * %NL80211_CMD_SET_MGMT_EXTRA_IE.
  1499. *
  1500. * @NL80211_ATTR_IE: Information element(s) data (used, e.g., with
  1501. * %NL80211_CMD_SET_MGMT_EXTRA_IE).
  1502. *
  1503. * @NL80211_ATTR_MAX_NUM_SCAN_SSIDS: number of SSIDs you can scan with
  1504. * a single scan request, a wiphy attribute.
  1505. * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS: number of SSIDs you can
  1506. * scan with a single scheduled scan request, a wiphy attribute.
  1507. * @NL80211_ATTR_MAX_SCAN_IE_LEN: maximum length of information elements
  1508. * that can be added to a scan request
  1509. * @NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN: maximum length of information
  1510. * elements that can be added to a scheduled scan request
  1511. * @NL80211_ATTR_MAX_MATCH_SETS: maximum number of sets that can be
  1512. * used with @NL80211_ATTR_SCHED_SCAN_MATCH, a wiphy attribute.
  1513. *
  1514. * @NL80211_ATTR_SCAN_FREQUENCIES: nested attribute with frequencies (in MHz)
  1515. * @NL80211_ATTR_SCAN_SSIDS: nested attribute with SSIDs, leave out for passive
  1516. * scanning and include a zero-length SSID (wildcard) for wildcard scan
  1517. * @NL80211_ATTR_BSS: scan result BSS
  1518. *
  1519. * @NL80211_ATTR_REG_INITIATOR: indicates who requested the regulatory domain
  1520. * currently in effect. This could be any of the %NL80211_REGDOM_SET_BY_*
  1521. * @NL80211_ATTR_REG_TYPE: indicates the type of the regulatory domain currently
  1522. * set. This can be one of the nl80211_reg_type (%NL80211_REGDOM_TYPE_*)
  1523. *
  1524. * @NL80211_ATTR_SUPPORTED_COMMANDS: wiphy attribute that specifies
  1525. * an array of command numbers (i.e. a mapping index to command number)
  1526. * that the driver for the given wiphy supports.
  1527. *
  1528. * @NL80211_ATTR_FRAME: frame data (binary attribute), including frame header
  1529. * and body, but not FCS; used, e.g., with NL80211_CMD_AUTHENTICATE and
  1530. * NL80211_CMD_ASSOCIATE events
  1531. * @NL80211_ATTR_SSID: SSID (binary attribute, 0..32 octets)
  1532. * @NL80211_ATTR_AUTH_TYPE: AuthenticationType, see &enum nl80211_auth_type,
  1533. * represented as a u32
  1534. * @NL80211_ATTR_REASON_CODE: ReasonCode for %NL80211_CMD_DEAUTHENTICATE and
  1535. * %NL80211_CMD_DISASSOCIATE, u16
  1536. *
  1537. * @NL80211_ATTR_KEY_TYPE: Key Type, see &enum nl80211_key_type, represented as
  1538. * a u32
  1539. *
  1540. * @NL80211_ATTR_FREQ_BEFORE: A channel which has suffered a regulatory change
  1541. * due to considerations from a beacon hint. This attribute reflects
  1542. * the state of the channel _before_ the beacon hint processing. This
  1543. * attributes consists of a nested attribute containing
  1544. * NL80211_FREQUENCY_ATTR_*
  1545. * @NL80211_ATTR_FREQ_AFTER: A channel which has suffered a regulatory change
  1546. * due to considerations from a beacon hint. This attribute reflects
  1547. * the state of the channel _after_ the beacon hint processing. This
  1548. * attributes consists of a nested attribute containing
  1549. * NL80211_FREQUENCY_ATTR_*
  1550. *
  1551. * @NL80211_ATTR_CIPHER_SUITES: a set of u32 values indicating the supported
  1552. * cipher suites
  1553. *
  1554. * @NL80211_ATTR_FREQ_FIXED: a flag indicating the IBSS should not try to look
  1555. * for other networks on different channels
  1556. *
  1557. * @NL80211_ATTR_TIMED_OUT: a flag indicating than an operation timed out; this
  1558. * is used, e.g., with %NL80211_CMD_AUTHENTICATE event
  1559. *
  1560. * @NL80211_ATTR_USE_MFP: Whether management frame protection (IEEE 802.11w) is
  1561. * used for the association (&enum nl80211_mfp, represented as a u32);
  1562. * this attribute can be used with %NL80211_CMD_ASSOCIATE and
  1563. * %NL80211_CMD_CONNECT requests. %NL80211_MFP_OPTIONAL is not allowed for
  1564. * %NL80211_CMD_ASSOCIATE since user space SME is expected and hence, it
  1565. * must have decided whether to use management frame protection or not.
  1566. * Setting %NL80211_MFP_OPTIONAL with a %NL80211_CMD_CONNECT request will
  1567. * let the driver (or the firmware) decide whether to use MFP or not.
  1568. *
  1569. * @NL80211_ATTR_STA_FLAGS2: Attribute containing a
  1570. * &struct nl80211_sta_flag_update.
  1571. *
  1572. * @NL80211_ATTR_CONTROL_PORT: A flag indicating whether user space controls
  1573. * IEEE 802.1X port, i.e., sets/clears %NL80211_STA_FLAG_AUTHORIZED, in
  1574. * station mode. If the flag is included in %NL80211_CMD_ASSOCIATE
  1575. * request, the driver will assume that the port is unauthorized until
  1576. * authorized by user space. Otherwise, port is marked authorized by
  1577. * default in station mode.
  1578. * @NL80211_ATTR_CONTROL_PORT_ETHERTYPE: A 16-bit value indicating the
  1579. * ethertype that will be used for key negotiation. It can be
  1580. * specified with the associate and connect commands. If it is not
  1581. * specified, the value defaults to 0x888E (PAE, 802.1X). This
  1582. * attribute is also used as a flag in the wiphy information to
  1583. * indicate that protocols other than PAE are supported.
  1584. * @NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT: When included along with
  1585. * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE, indicates that the custom
  1586. * ethertype frames used for key negotiation must not be encrypted.
  1587. * @NL80211_ATTR_CONTROL_PORT_OVER_NL80211: A flag indicating whether control
  1588. * port frames (e.g. of type given in %NL80211_ATTR_CONTROL_PORT_ETHERTYPE)
  1589. * will be sent directly to the network interface or sent via the NL80211
  1590. * socket. If this attribute is missing, then legacy behavior of sending
  1591. * control port frames directly to the network interface is used. If the
  1592. * flag is included, then control port frames are sent over NL80211 instead
  1593. * using %CMD_CONTROL_PORT_FRAME. If control port routing over NL80211 is
  1594. * to be used then userspace must also use the %NL80211_ATTR_SOCKET_OWNER
  1595. * flag. When used with %NL80211_ATTR_CONTROL_PORT_NO_PREAUTH, pre-auth
  1596. * frames are not forwared over the control port.
  1597. *
  1598. * @NL80211_ATTR_TESTDATA: Testmode data blob, passed through to the driver.
  1599. * We recommend using nested, driver-specific attributes within this.
  1600. *
  1601. * @NL80211_ATTR_DISCONNECTED_BY_AP: A flag indicating that the DISCONNECT
  1602. * event was due to the AP disconnecting the station, and not due to
  1603. * a local disconnect request.
  1604. * @NL80211_ATTR_STATUS_CODE: StatusCode for the %NL80211_CMD_CONNECT
  1605. * event (u16)
  1606. * @NL80211_ATTR_PRIVACY: Flag attribute, used with connect(), indicating
  1607. * that protected APs should be used. This is also used with NEW_BEACON to
  1608. * indicate that the BSS is to use protection.
  1609. *
  1610. * @NL80211_ATTR_CIPHERS_PAIRWISE: Used with CONNECT, ASSOCIATE, and NEW_BEACON
  1611. * to indicate which unicast key ciphers will be used with the connection
  1612. * (an array of u32).
  1613. * @NL80211_ATTR_CIPHER_GROUP: Used with CONNECT, ASSOCIATE, and NEW_BEACON to
  1614. * indicate which group key cipher will be used with the connection (a
  1615. * u32).
  1616. * @NL80211_ATTR_WPA_VERSIONS: Used with CONNECT, ASSOCIATE, and NEW_BEACON to
  1617. * indicate which WPA version(s) the AP we want to associate with is using
  1618. * (a u32 with flags from &enum nl80211_wpa_versions).
  1619. * @NL80211_ATTR_AKM_SUITES: Used with CONNECT, ASSOCIATE, and NEW_BEACON to
  1620. * indicate which key management algorithm(s) to use (an array of u32).
  1621. * This attribute is also sent in response to @NL80211_CMD_GET_WIPHY,
  1622. * indicating the supported AKM suites, intended for specific drivers which
  1623. * implement SME and have constraints on which AKMs are supported and also
  1624. * the cases where an AKM support is offloaded to the driver/firmware.
  1625. * If there is no such notification from the driver, user space should
  1626. * assume the driver supports all the AKM suites.
  1627. *
  1628. * @NL80211_ATTR_REQ_IE: (Re)association request information elements as
  1629. * sent out by the card, for ROAM and successful CONNECT events.
  1630. * @NL80211_ATTR_RESP_IE: (Re)association response information elements as
  1631. * sent by peer, for ROAM and successful CONNECT events.
  1632. *
  1633. * @NL80211_ATTR_PREV_BSSID: previous BSSID, to be used in ASSOCIATE and CONNECT
  1634. * commands to specify a request to reassociate within an ESS, i.e., to use
  1635. * Reassociate Request frame (with the value of this attribute in the
  1636. * Current AP address field) instead of Association Request frame which is
  1637. * used for the initial association to an ESS.
  1638. *
  1639. * @NL80211_ATTR_KEY: key information in a nested attribute with
  1640. * %NL80211_KEY_* sub-attributes
  1641. * @NL80211_ATTR_KEYS: array of keys for static WEP keys for connect()
  1642. * and join_ibss(), key information is in a nested attribute each
  1643. * with %NL80211_KEY_* sub-attributes
  1644. *
  1645. * @NL80211_ATTR_PID: Process ID of a network namespace.
  1646. *
  1647. * @NL80211_ATTR_GENERATION: Used to indicate consistent snapshots for
  1648. * dumps. This number increases whenever the object list being
  1649. * dumped changes, and as such userspace can verify that it has
  1650. * obtained a complete and consistent snapshot by verifying that
  1651. * all dump messages contain the same generation number. If it
  1652. * changed then the list changed and the dump should be repeated
  1653. * completely from scratch.
  1654. *
  1655. * @NL80211_ATTR_4ADDR: Use 4-address frames on a virtual interface
  1656. *
  1657. * @NL80211_ATTR_SURVEY_INFO: survey information about a channel, part of
  1658. * the survey response for %NL80211_CMD_GET_SURVEY, nested attribute
  1659. * containing info as possible, see &enum survey_info.
  1660. *
  1661. * @NL80211_ATTR_PMKID: PMK material for PMKSA caching.
  1662. * @NL80211_ATTR_MAX_NUM_PMKIDS: maximum number of PMKIDs a firmware can
  1663. * cache, a wiphy attribute.
  1664. *
  1665. * @NL80211_ATTR_DURATION: Duration of an operation in milliseconds, u32.
  1666. * @NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION: Device attribute that
  1667. * specifies the maximum duration that can be requested with the
  1668. * remain-on-channel operation, in milliseconds, u32.
  1669. *
  1670. * @NL80211_ATTR_COOKIE: Generic 64-bit cookie to identify objects.
  1671. *
  1672. * @NL80211_ATTR_TX_RATES: Nested set of attributes
  1673. * (enum nl80211_tx_rate_attributes) describing TX rates per band. The
  1674. * enum nl80211_band value is used as the index (nla_type() of the nested
  1675. * data. If a band is not included, it will be configured to allow all
  1676. * rates based on negotiated supported rates information. This attribute
  1677. * is used with %NL80211_CMD_SET_TX_BITRATE_MASK and with starting AP,
  1678. * and joining mesh networks (not IBSS yet). In the later case, it must
  1679. * specify just a single bitrate, which is to be used for the beacon.
  1680. * The driver must also specify support for this with the extended
  1681. * features NL80211_EXT_FEATURE_BEACON_RATE_LEGACY,
  1682. * NL80211_EXT_FEATURE_BEACON_RATE_HT,
  1683. * NL80211_EXT_FEATURE_BEACON_RATE_VHT and
  1684. * NL80211_EXT_FEATURE_BEACON_RATE_HE.
  1685. *
  1686. * @NL80211_ATTR_FRAME_MATCH: A binary attribute which typically must contain
  1687. * at least one byte, currently used with @NL80211_CMD_REGISTER_FRAME.
  1688. * @NL80211_ATTR_FRAME_TYPE: A u16 indicating the frame type/subtype for the
  1689. * @NL80211_CMD_REGISTER_FRAME command.
  1690. * @NL80211_ATTR_TX_FRAME_TYPES: wiphy capability attribute, which is a
  1691. * nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing
  1692. * information about which frame types can be transmitted with
  1693. * %NL80211_CMD_FRAME.
  1694. * @NL80211_ATTR_RX_FRAME_TYPES: wiphy capability attribute, which is a
  1695. * nested attribute of %NL80211_ATTR_FRAME_TYPE attributes, containing
  1696. * information about which frame types can be registered for RX.
  1697. *
  1698. * @NL80211_ATTR_ACK: Flag attribute indicating that the frame was
  1699. * acknowledged by the recipient.
  1700. *
  1701. * @NL80211_ATTR_PS_STATE: powersave state, using &enum nl80211_ps_state values.
  1702. *
  1703. * @NL80211_ATTR_CQM: connection quality monitor configuration in a
  1704. * nested attribute with %NL80211_ATTR_CQM_* sub-attributes.
  1705. *
  1706. * @NL80211_ATTR_LOCAL_STATE_CHANGE: Flag attribute to indicate that a command
  1707. * is requesting a local authentication/association state change without
  1708. * invoking actual management frame exchange. This can be used with
  1709. * NL80211_CMD_AUTHENTICATE, NL80211_CMD_DEAUTHENTICATE,
  1710. * NL80211_CMD_DISASSOCIATE.
  1711. *
  1712. * @NL80211_ATTR_AP_ISOLATE: (AP mode) Do not forward traffic between stations
  1713. * connected to this BSS.
  1714. *
  1715. * @NL80211_ATTR_WIPHY_TX_POWER_SETTING: Transmit power setting type. See
  1716. * &enum nl80211_tx_power_setting for possible values.
  1717. * @NL80211_ATTR_WIPHY_TX_POWER_LEVEL: Transmit power level in signed mBm units.
  1718. * This is used in association with @NL80211_ATTR_WIPHY_TX_POWER_SETTING
  1719. * for non-automatic settings.
  1720. *
  1721. * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly
  1722. * means support for per-station GTKs.
  1723. *
  1724. * @NL80211_ATTR_WIPHY_ANTENNA_TX: Bitmap of allowed antennas for transmitting.
  1725. * This can be used to mask out antennas which are not attached or should
  1726. * not be used for transmitting. If an antenna is not selected in this
  1727. * bitmap the hardware is not allowed to transmit on this antenna.
  1728. *
  1729. * Each bit represents one antenna, starting with antenna 1 at the first
  1730. * bit. Depending on which antennas are selected in the bitmap, 802.11n
  1731. * drivers can derive which chainmasks to use (if all antennas belonging to
  1732. * a particular chain are disabled this chain should be disabled) and if
  1733. * a chain has diversity antennas wether diversity should be used or not.
  1734. * HT capabilities (STBC, TX Beamforming, Antenna selection) can be
  1735. * derived from the available chains after applying the antenna mask.
  1736. * Non-802.11n drivers can derive wether to use diversity or not.
  1737. * Drivers may reject configurations or RX/TX mask combinations they cannot
  1738. * support by returning -EINVAL.
  1739. *
  1740. * @NL80211_ATTR_WIPHY_ANTENNA_RX: Bitmap of allowed antennas for receiving.
  1741. * This can be used to mask out antennas which are not attached or should
  1742. * not be used for receiving. If an antenna is not selected in this bitmap
  1743. * the hardware should not be configured to receive on this antenna.
  1744. * For a more detailed description see @NL80211_ATTR_WIPHY_ANTENNA_TX.
  1745. *
  1746. * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX: Bitmap of antennas which are available
  1747. * for configuration as TX antennas via the above parameters.
  1748. *
  1749. * @NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX: Bitmap of antennas which are available
  1750. * for configuration as RX antennas via the above parameters.
  1751. *
  1752. * @NL80211_ATTR_MCAST_RATE: Multicast tx rate (in 100 kbps) for IBSS
  1753. *
  1754. * @NL80211_ATTR_OFFCHANNEL_TX_OK: For management frame TX, the frame may be
  1755. * transmitted on another channel when the channel given doesn't match
  1756. * the current channel. If the current channel doesn't match and this
  1757. * flag isn't set, the frame will be rejected. This is also used as an
  1758. * nl80211 capability flag.
  1759. *
  1760. * @NL80211_ATTR_BSS_HT_OPMODE: HT operation mode (u16)
  1761. *
  1762. * @NL80211_ATTR_KEY_DEFAULT_TYPES: A nested attribute containing flags
  1763. * attributes, specifying what a key should be set as default as.
  1764. * See &enum nl80211_key_default_types.
  1765. *
  1766. * @NL80211_ATTR_MESH_SETUP: Optional mesh setup parameters. These cannot be
  1767. * changed once the mesh is active.
  1768. * @NL80211_ATTR_MESH_CONFIG: Mesh configuration parameters, a nested attribute
  1769. * containing attributes from &enum nl80211_meshconf_params.
  1770. * @NL80211_ATTR_SUPPORT_MESH_AUTH: Currently, this means the underlying driver
  1771. * allows auth frames in a mesh to be passed to userspace for processing via
  1772. * the @NL80211_MESH_SETUP_USERSPACE_AUTH flag.
  1773. * @NL80211_ATTR_STA_PLINK_STATE: The state of a mesh peer link as defined in
  1774. * &enum nl80211_plink_state. Used when userspace is driving the peer link
  1775. * management state machine. @NL80211_MESH_SETUP_USERSPACE_AMPE or
  1776. * @NL80211_MESH_SETUP_USERSPACE_MPM must be enabled.
  1777. *
  1778. * @NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED: indicates, as part of the wiphy
  1779. * capabilities, the supported WoWLAN triggers
  1780. * @NL80211_ATTR_WOWLAN_TRIGGERS: used by %NL80211_CMD_SET_WOWLAN to
  1781. * indicate which WoW triggers should be enabled. This is also
  1782. * used by %NL80211_CMD_GET_WOWLAN to get the currently enabled WoWLAN
  1783. * triggers.
  1784. *
  1785. * @NL80211_ATTR_SCHED_SCAN_INTERVAL: Interval between scheduled scan
  1786. * cycles, in msecs.
  1787. *
  1788. * @NL80211_ATTR_SCHED_SCAN_MATCH: Nested attribute with one or more
  1789. * sets of attributes to match during scheduled scans. Only BSSs
  1790. * that match any of the sets will be reported. These are
  1791. * pass-thru filter rules.
  1792. * For a match to succeed, the BSS must match all attributes of a
  1793. * set. Since not every hardware supports matching all types of
  1794. * attributes, there is no guarantee that the reported BSSs are
  1795. * fully complying with the match sets and userspace needs to be
  1796. * able to ignore them by itself.
  1797. * Thus, the implementation is somewhat hardware-dependent, but
  1798. * this is only an optimization and the userspace application
  1799. * needs to handle all the non-filtered results anyway.
  1800. * If the match attributes don't make sense when combined with
  1801. * the values passed in @NL80211_ATTR_SCAN_SSIDS (eg. if an SSID
  1802. * is included in the probe request, but the match attributes
  1803. * will never let it go through), -EINVAL may be returned.
  1804. * If omitted, no filtering is done.
  1805. *
  1806. * @NL80211_ATTR_INTERFACE_COMBINATIONS: Nested attribute listing the supported
  1807. * interface combinations. In each nested item, it contains attributes
  1808. * defined in &enum nl80211_if_combination_attrs.
  1809. * @NL80211_ATTR_SOFTWARE_IFTYPES: Nested attribute (just like
  1810. * %NL80211_ATTR_SUPPORTED_IFTYPES) containing the interface types that
  1811. * are managed in software: interfaces of these types aren't subject to
  1812. * any restrictions in their number or combinations.
  1813. *
  1814. * @NL80211_ATTR_REKEY_DATA: nested attribute containing the information
  1815. * necessary for GTK rekeying in the device, see &enum nl80211_rekey_data.
  1816. *
  1817. * @NL80211_ATTR_SCAN_SUPP_RATES: rates per to be advertised as supported in scan,
  1818. * nested array attribute containing an entry for each band, with the entry
  1819. * being a list of supported rates as defined by IEEE 802.11 7.3.2.2 but
  1820. * without the length restriction (at most %NL80211_MAX_SUPP_RATES).
  1821. *
  1822. * @NL80211_ATTR_HIDDEN_SSID: indicates whether SSID is to be hidden from Beacon
  1823. * and Probe Response (when response to wildcard Probe Request); see
  1824. * &enum nl80211_hidden_ssid, represented as a u32
  1825. *
  1826. * @NL80211_ATTR_IE_PROBE_RESP: Information element(s) for Probe Response frame.
  1827. * This is used with %NL80211_CMD_NEW_BEACON and %NL80211_CMD_SET_BEACON to
  1828. * provide extra IEs (e.g., WPS/P2P IE) into Probe Response frames when the
  1829. * driver (or firmware) replies to Probe Request frames.
  1830. * @NL80211_ATTR_IE_ASSOC_RESP: Information element(s) for (Re)Association
  1831. * Response frames. This is used with %NL80211_CMD_NEW_BEACON and
  1832. * %NL80211_CMD_SET_BEACON to provide extra IEs (e.g., WPS/P2P IE) into
  1833. * (Re)Association Response frames when the driver (or firmware) replies to
  1834. * (Re)Association Request frames.
  1835. *
  1836. * @NL80211_ATTR_STA_WME: Nested attribute containing the wme configuration
  1837. * of the station, see &enum nl80211_sta_wme_attr.
  1838. * @NL80211_ATTR_SUPPORT_AP_UAPSD: the device supports uapsd when working
  1839. * as AP.
  1840. *
  1841. * @NL80211_ATTR_ROAM_SUPPORT: Indicates whether the firmware is capable of
  1842. * roaming to another AP in the same ESS if the signal lever is low.
  1843. *
  1844. * @NL80211_ATTR_PMKSA_CANDIDATE: Nested attribute containing the PMKSA caching
  1845. * candidate information, see &enum nl80211_pmksa_candidate_attr.
  1846. *
  1847. * @NL80211_ATTR_TX_NO_CCK_RATE: Indicates whether to use CCK rate or not
  1848. * for management frames transmission. In order to avoid p2p probe/action
  1849. * frames are being transmitted at CCK rate in 2GHz band, the user space
  1850. * applications use this attribute.
  1851. * This attribute is used with %NL80211_CMD_TRIGGER_SCAN and
  1852. * %NL80211_CMD_FRAME commands.
  1853. *
  1854. * @NL80211_ATTR_TDLS_ACTION: Low level TDLS action code (e.g. link setup
  1855. * request, link setup confirm, link teardown, etc.). Values are
  1856. * described in the TDLS (802.11z) specification.
  1857. * @NL80211_ATTR_TDLS_DIALOG_TOKEN: Non-zero token for uniquely identifying a
  1858. * TDLS conversation between two devices.
  1859. * @NL80211_ATTR_TDLS_OPERATION: High level TDLS operation; see
  1860. * &enum nl80211_tdls_operation, represented as a u8.
  1861. * @NL80211_ATTR_TDLS_SUPPORT: A flag indicating the device can operate
  1862. * as a TDLS peer sta.
  1863. * @NL80211_ATTR_TDLS_EXTERNAL_SETUP: The TDLS discovery/setup and teardown
  1864. * procedures should be performed by sending TDLS packets via
  1865. * %NL80211_CMD_TDLS_MGMT. Otherwise %NL80211_CMD_TDLS_OPER should be
  1866. * used for asking the driver to perform a TDLS operation.
  1867. *
  1868. * @NL80211_ATTR_DEVICE_AP_SME: This u32 attribute may be listed for devices
  1869. * that have AP support to indicate that they have the AP SME integrated
  1870. * with support for the features listed in this attribute, see
  1871. * &enum nl80211_ap_sme_features.
  1872. *
  1873. * @NL80211_ATTR_DONT_WAIT_FOR_ACK: Used with %NL80211_CMD_FRAME, this tells
  1874. * the driver to not wait for an acknowledgement. Note that due to this,
  1875. * it will also not give a status callback nor return a cookie. This is
  1876. * mostly useful for probe responses to save airtime.
  1877. *
  1878. * @NL80211_ATTR_FEATURE_FLAGS: This u32 attribute contains flags from
  1879. * &enum nl80211_feature_flags and is advertised in wiphy information.
  1880. * @NL80211_ATTR_PROBE_RESP_OFFLOAD: Indicates that the HW responds to probe
  1881. * requests while operating in AP-mode.
  1882. * This attribute holds a bitmap of the supported protocols for
  1883. * offloading (see &enum nl80211_probe_resp_offload_support_attr).
  1884. *
  1885. * @NL80211_ATTR_PROBE_RESP: Probe Response template data. Contains the entire
  1886. * probe-response frame. The DA field in the 802.11 header is zero-ed out,
  1887. * to be filled by the FW.
  1888. * @NL80211_ATTR_DISABLE_HT: Force HT capable interfaces to disable
  1889. * this feature during association. This is a flag attribute.
  1890. * Currently only supported in mac80211 drivers.
  1891. * @NL80211_ATTR_DISABLE_VHT: Force VHT capable interfaces to disable
  1892. * this feature during association. This is a flag attribute.
  1893. * Currently only supported in mac80211 drivers.
  1894. * @NL80211_ATTR_DISABLE_HE: Force HE capable interfaces to disable
  1895. * this feature during association. This is a flag attribute.
  1896. * Currently only supported in mac80211 drivers.
  1897. * @NL80211_ATTR_HT_CAPABILITY_MASK: Specify which bits of the
  1898. * ATTR_HT_CAPABILITY to which attention should be paid.
  1899. * Currently, only mac80211 NICs support this feature.
  1900. * The values that may be configured are:
  1901. * MCS rates, MAX-AMSDU, HT-20-40 and HT_CAP_SGI_40
  1902. * AMPDU density and AMPDU factor.
  1903. * All values are treated as suggestions and may be ignored
  1904. * by the driver as required. The actual values may be seen in
  1905. * the station debugfs ht_caps file.
  1906. *
  1907. * @NL80211_ATTR_DFS_REGION: region for regulatory rules which this country
  1908. * abides to when initiating radiation on DFS channels. A country maps
  1909. * to one DFS region.
  1910. *
  1911. * @NL80211_ATTR_NOACK_MAP: This u16 bitmap contains the No Ack Policy of
  1912. * up to 16 TIDs.
  1913. *
  1914. * @NL80211_ATTR_INACTIVITY_TIMEOUT: timeout value in seconds, this can be
  1915. * used by the drivers which has MLME in firmware and does not have support
  1916. * to report per station tx/rx activity to free up the station entry from
  1917. * the list. This needs to be used when the driver advertises the
  1918. * capability to timeout the stations.
  1919. *
  1920. * @NL80211_ATTR_RX_SIGNAL_DBM: signal strength in dBm (as a 32-bit int);
  1921. * this attribute is (depending on the driver capabilities) added to
  1922. * received frames indicated with %NL80211_CMD_FRAME.
  1923. *
  1924. * @NL80211_ATTR_BG_SCAN_PERIOD: Background scan period in seconds
  1925. * or 0 to disable background scan.
  1926. *
  1927. * @NL80211_ATTR_USER_REG_HINT_TYPE: type of regulatory hint passed from
  1928. * userspace. If unset it is assumed the hint comes directly from
  1929. * a user. If set code could specify exactly what type of source
  1930. * was used to provide the hint. For the different types of
  1931. * allowed user regulatory hints see nl80211_user_reg_hint_type.
  1932. *
  1933. * @NL80211_ATTR_CONN_FAILED_REASON: The reason for which AP has rejected
  1934. * the connection request from a station. nl80211_connect_failed_reason
  1935. * enum has different reasons of connection failure.
  1936. *
  1937. * @NL80211_ATTR_AUTH_DATA: Fields and elements in Authentication frames.
  1938. * This contains the authentication frame body (non-IE and IE data),
  1939. * excluding the Authentication algorithm number, i.e., starting at the
  1940. * Authentication transaction sequence number field. It is used with
  1941. * authentication algorithms that need special fields to be added into
  1942. * the frames (SAE and FILS). Currently, only the SAE cases use the
  1943. * initial two fields (Authentication transaction sequence number and
  1944. * Status code). However, those fields are included in the attribute data
  1945. * for all authentication algorithms to keep the attribute definition
  1946. * consistent.
  1947. *
  1948. * @NL80211_ATTR_VHT_CAPABILITY: VHT Capability information element (from
  1949. * association request when used with NL80211_CMD_NEW_STATION)
  1950. *
  1951. * @NL80211_ATTR_SCAN_FLAGS: scan request control flags (u32)
  1952. *
  1953. * @NL80211_ATTR_P2P_CTWINDOW: P2P GO Client Traffic Window (u8), used with
  1954. * the START_AP and SET_BSS commands
  1955. * @NL80211_ATTR_P2P_OPPPS: P2P GO opportunistic PS (u8), used with the
  1956. * START_AP and SET_BSS commands. This can have the values 0 or 1;
  1957. * if not given in START_AP 0 is assumed, if not given in SET_BSS
  1958. * no change is made.
  1959. *
  1960. * @NL80211_ATTR_LOCAL_MESH_POWER_MODE: local mesh STA link-specific power mode
  1961. * defined in &enum nl80211_mesh_power_mode.
  1962. *
  1963. * @NL80211_ATTR_ACL_POLICY: ACL policy, see &enum nl80211_acl_policy,
  1964. * carried in a u32 attribute
  1965. *
  1966. * @NL80211_ATTR_MAC_ADDRS: Array of nested MAC addresses, used for
  1967. * MAC ACL.
  1968. *
  1969. * @NL80211_ATTR_MAC_ACL_MAX: u32 attribute to advertise the maximum
  1970. * number of MAC addresses that a device can support for MAC
  1971. * ACL.
  1972. *
  1973. * @NL80211_ATTR_RADAR_EVENT: Type of radar event for notification to userspace,
  1974. * contains a value of enum nl80211_radar_event (u32).
  1975. *
  1976. * @NL80211_ATTR_EXT_CAPA: 802.11 extended capabilities that the kernel driver
  1977. * has and handles. The format is the same as the IE contents. See
  1978. * 802.11-2012 8.4.2.29 for more information.
  1979. * @NL80211_ATTR_EXT_CAPA_MASK: Extended capabilities that the kernel driver
  1980. * has set in the %NL80211_ATTR_EXT_CAPA value, for multibit fields.
  1981. *
  1982. * @NL80211_ATTR_STA_CAPABILITY: Station capabilities (u16) are advertised to
  1983. * the driver, e.g., to enable TDLS power save (PU-APSD).
  1984. *
  1985. * @NL80211_ATTR_STA_EXT_CAPABILITY: Station extended capabilities are
  1986. * advertised to the driver, e.g., to enable TDLS off channel operations
  1987. * and PU-APSD.
  1988. *
  1989. * @NL80211_ATTR_PROTOCOL_FEATURES: global nl80211 feature flags, see
  1990. * &enum nl80211_protocol_features, the attribute is a u32.
  1991. *
  1992. * @NL80211_ATTR_SPLIT_WIPHY_DUMP: flag attribute, userspace supports
  1993. * receiving the data for a single wiphy split across multiple
  1994. * messages, given with wiphy dump message
  1995. *
  1996. * @NL80211_ATTR_MDID: Mobility Domain Identifier
  1997. *
  1998. * @NL80211_ATTR_IE_RIC: Resource Information Container Information
  1999. * Element
  2000. *
  2001. * @NL80211_ATTR_CRIT_PROT_ID: critical protocol identifier requiring increased
  2002. * reliability, see &enum nl80211_crit_proto_id (u16).
  2003. * @NL80211_ATTR_MAX_CRIT_PROT_DURATION: duration in milliseconds in which
  2004. * the connection should have increased reliability (u16).
  2005. *
  2006. * @NL80211_ATTR_PEER_AID: Association ID for the peer TDLS station (u16).
  2007. * This is similar to @NL80211_ATTR_STA_AID but with a difference of being
  2008. * allowed to be used with the first @NL80211_CMD_SET_STATION command to
  2009. * update a TDLS peer STA entry.
  2010. *
  2011. * @NL80211_ATTR_COALESCE_RULE: Coalesce rule information.
  2012. *
  2013. * @NL80211_ATTR_CH_SWITCH_COUNT: u32 attribute specifying the number of TBTT's
  2014. * until the channel switch event.
  2015. * @NL80211_ATTR_CH_SWITCH_BLOCK_TX: flag attribute specifying that transmission
  2016. * must be blocked on the current channel (before the channel switch
  2017. * operation). Also included in the channel switch started event if quiet
  2018. * was requested by the AP.
  2019. * @NL80211_ATTR_CSA_IES: Nested set of attributes containing the IE information
  2020. * for the time while performing a channel switch.
  2021. * @NL80211_ATTR_CNTDWN_OFFS_BEACON: An array of offsets (u16) to the channel
  2022. * switch or color change counters in the beacons tail (%NL80211_ATTR_BEACON_TAIL).
  2023. * @NL80211_ATTR_CNTDWN_OFFS_PRESP: An array of offsets (u16) to the channel
  2024. * switch or color change counters in the probe response (%NL80211_ATTR_PROBE_RESP).
  2025. *
  2026. * @NL80211_ATTR_RXMGMT_FLAGS: flags for nl80211_send_mgmt(), u32.
  2027. * As specified in the &enum nl80211_rxmgmt_flags.
  2028. *
  2029. * @NL80211_ATTR_STA_SUPPORTED_CHANNELS: array of supported channels.
  2030. *
  2031. * @NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES: array of supported
  2032. * operating classes.
  2033. *
  2034. * @NL80211_ATTR_HANDLE_DFS: A flag indicating whether user space
  2035. * controls DFS operation in IBSS mode. If the flag is included in
  2036. * %NL80211_CMD_JOIN_IBSS request, the driver will allow use of DFS
  2037. * channels and reports radar events to userspace. Userspace is required
  2038. * to react to radar events, e.g. initiate a channel switch or leave the
  2039. * IBSS network.
  2040. *
  2041. * @NL80211_ATTR_SUPPORT_5_MHZ: A flag indicating that the device supports
  2042. * 5 MHz channel bandwidth.
  2043. * @NL80211_ATTR_SUPPORT_10_MHZ: A flag indicating that the device supports
  2044. * 10 MHz channel bandwidth.
  2045. *
  2046. * @NL80211_ATTR_OPMODE_NOTIF: Operating mode field from Operating Mode
  2047. * Notification Element based on association request when used with
  2048. * %NL80211_CMD_NEW_STATION or %NL80211_CMD_SET_STATION (only when
  2049. * %NL80211_FEATURE_FULL_AP_CLIENT_STATE is supported, or with TDLS);
  2050. * u8 attribute.
  2051. *
  2052. * @NL80211_ATTR_VENDOR_ID: The vendor ID, either a 24-bit OUI or, if
  2053. * %NL80211_VENDOR_ID_IS_LINUX is set, a special Linux ID (not used yet)
  2054. * @NL80211_ATTR_VENDOR_SUBCMD: vendor sub-command
  2055. * @NL80211_ATTR_VENDOR_DATA: data for the vendor command, if any; this
  2056. * attribute is also used for vendor command feature advertisement
  2057. * @NL80211_ATTR_VENDOR_EVENTS: used for event list advertising in the wiphy
  2058. * info, containing a nested array of possible events
  2059. *
  2060. * @NL80211_ATTR_QOS_MAP: IP DSCP mapping for Interworking QoS mapping. This
  2061. * data is in the format defined for the payload of the QoS Map Set element
  2062. * in IEEE Std 802.11-2012, 8.4.2.97.
  2063. *
  2064. * @NL80211_ATTR_MAC_HINT: MAC address recommendation as initial BSS
  2065. * @NL80211_ATTR_WIPHY_FREQ_HINT: frequency of the recommended initial BSS
  2066. *
  2067. * @NL80211_ATTR_MAX_AP_ASSOC_STA: Device attribute that indicates how many
  2068. * associated stations are supported in AP mode (including P2P GO); u32.
  2069. * Since drivers may not have a fixed limit on the maximum number (e.g.,
  2070. * other concurrent operations may affect this), drivers are allowed to
  2071. * advertise values that cannot always be met. In such cases, an attempt
  2072. * to add a new station entry with @NL80211_CMD_NEW_STATION may fail.
  2073. *
  2074. * @NL80211_ATTR_CSA_C_OFFSETS_TX: An array of csa counter offsets (u16) which
  2075. * should be updated when the frame is transmitted.
  2076. * @NL80211_ATTR_MAX_CSA_COUNTERS: U8 attribute used to advertise the maximum
  2077. * supported number of csa counters.
  2078. *
  2079. * @NL80211_ATTR_TDLS_PEER_CAPABILITY: flags for TDLS peer capabilities, u32.
  2080. * As specified in the &enum nl80211_tdls_peer_capability.
  2081. *
  2082. * @NL80211_ATTR_SOCKET_OWNER: Flag attribute, if set during interface
  2083. * creation then the new interface will be owned by the netlink socket
  2084. * that created it and will be destroyed when the socket is closed.
  2085. * If set during scheduled scan start then the new scan req will be
  2086. * owned by the netlink socket that created it and the scheduled scan will
  2087. * be stopped when the socket is closed.
  2088. * If set during configuration of regulatory indoor operation then the
  2089. * regulatory indoor configuration would be owned by the netlink socket
  2090. * that configured the indoor setting, and the indoor operation would be
  2091. * cleared when the socket is closed.
  2092. * If set during NAN interface creation, the interface will be destroyed
  2093. * if the socket is closed just like any other interface. Moreover, NAN
  2094. * notifications will be sent in unicast to that socket. Without this
  2095. * attribute, the notifications will be sent to the %NL80211_MCGRP_NAN
  2096. * multicast group.
  2097. * If set during %NL80211_CMD_ASSOCIATE or %NL80211_CMD_CONNECT the
  2098. * station will deauthenticate when the socket is closed.
  2099. * If set during %NL80211_CMD_JOIN_IBSS the IBSS will be automatically
  2100. * torn down when the socket is closed.
  2101. * If set during %NL80211_CMD_JOIN_MESH the mesh setup will be
  2102. * automatically torn down when the socket is closed.
  2103. * If set during %NL80211_CMD_START_AP the AP will be automatically
  2104. * disabled when the socket is closed.
  2105. *
  2106. * @NL80211_ATTR_TDLS_INITIATOR: flag attribute indicating the current end is
  2107. * the TDLS link initiator.
  2108. *
  2109. * @NL80211_ATTR_USE_RRM: flag for indicating whether the current connection
  2110. * shall support Radio Resource Measurements (11k). This attribute can be
  2111. * used with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests.
  2112. * User space applications are expected to use this flag only if the
  2113. * underlying device supports these minimal RRM features:
  2114. * %NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES,
  2115. * %NL80211_FEATURE_QUIET,
  2116. * Or, if global RRM is supported, see:
  2117. * %NL80211_EXT_FEATURE_RRM
  2118. * If this flag is used, driver must add the Power Capabilities IE to the
  2119. * association request. In addition, it must also set the RRM capability
  2120. * flag in the association request's Capability Info field.
  2121. *
  2122. * @NL80211_ATTR_WIPHY_DYN_ACK: flag attribute used to enable ACK timeout
  2123. * estimation algorithm (dynack). In order to activate dynack
  2124. * %NL80211_FEATURE_ACKTO_ESTIMATION feature flag must be set by lower
  2125. * drivers to indicate dynack capability. Dynack is automatically disabled
  2126. * setting valid value for coverage class.
  2127. *
  2128. * @NL80211_ATTR_TSID: a TSID value (u8 attribute)
  2129. * @NL80211_ATTR_USER_PRIO: user priority value (u8 attribute)
  2130. * @NL80211_ATTR_ADMITTED_TIME: admitted time in units of 32 microseconds
  2131. * (per second) (u16 attribute)
  2132. *
  2133. * @NL80211_ATTR_SMPS_MODE: SMPS mode to use (ap mode). see
  2134. * &enum nl80211_smps_mode.
  2135. *
  2136. * @NL80211_ATTR_OPER_CLASS: operating class
  2137. *
  2138. * @NL80211_ATTR_MAC_MASK: MAC address mask
  2139. *
  2140. * @NL80211_ATTR_WIPHY_SELF_MANAGED_REG: flag attribute indicating this device
  2141. * is self-managing its regulatory information and any regulatory domain
  2142. * obtained from it is coming from the device's wiphy and not the global
  2143. * cfg80211 regdomain.
  2144. *
  2145. * @NL80211_ATTR_EXT_FEATURES: extended feature flags contained in a byte
  2146. * array. The feature flags are identified by their bit index (see &enum
  2147. * nl80211_ext_feature_index). The bit index is ordered starting at the
  2148. * least-significant bit of the first byte in the array, ie. bit index 0
  2149. * is located at bit 0 of byte 0. bit index 25 would be located at bit 1
  2150. * of byte 3 (u8 array).
  2151. *
  2152. * @NL80211_ATTR_SURVEY_RADIO_STATS: Request overall radio statistics to be
  2153. * returned along with other survey data. If set, @NL80211_CMD_GET_SURVEY
  2154. * may return a survey entry without a channel indicating global radio
  2155. * statistics (only some values are valid and make sense.)
  2156. * For devices that don't return such an entry even then, the information
  2157. * should be contained in the result as the sum of the respective counters
  2158. * over all channels.
  2159. *
  2160. * @NL80211_ATTR_SCHED_SCAN_DELAY: delay before the first cycle of a
  2161. * scheduled scan is started. Or the delay before a WoWLAN
  2162. * net-detect scan is started, counting from the moment the
  2163. * system is suspended. This value is a u32, in seconds.
  2164. * @NL80211_ATTR_REG_INDOOR: flag attribute, if set indicates that the device
  2165. * is operating in an indoor environment.
  2166. *
  2167. * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS: maximum number of scan plans for
  2168. * scheduled scan supported by the device (u32), a wiphy attribute.
  2169. * @NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL: maximum interval (in seconds) for
  2170. * a scan plan (u32), a wiphy attribute.
  2171. * @NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS: maximum number of iterations in
  2172. * a scan plan (u32), a wiphy attribute.
  2173. * @NL80211_ATTR_SCHED_SCAN_PLANS: a list of scan plans for scheduled scan.
  2174. * Each scan plan defines the number of scan iterations and the interval
  2175. * between scans. The last scan plan will always run infinitely,
  2176. * thus it must not specify the number of iterations, only the interval
  2177. * between scans. The scan plans are executed sequentially.
  2178. * Each scan plan is a nested attribute of &enum nl80211_sched_scan_plan.
  2179. * @NL80211_ATTR_PBSS: flag attribute. If set it means operate
  2180. * in a PBSS. Specified in %NL80211_CMD_CONNECT to request
  2181. * connecting to a PCP, and in %NL80211_CMD_START_AP to start
  2182. * a PCP instead of AP. Relevant for DMG networks only.
  2183. * @NL80211_ATTR_BSS_SELECT: nested attribute for driver supporting the
  2184. * BSS selection feature. When used with %NL80211_CMD_GET_WIPHY it contains
  2185. * attributes according &enum nl80211_bss_select_attr to indicate what
  2186. * BSS selection behaviours are supported. When used with %NL80211_CMD_CONNECT
  2187. * it contains the behaviour-specific attribute containing the parameters for
  2188. * BSS selection to be done by driver and/or firmware.
  2189. *
  2190. * @NL80211_ATTR_STA_SUPPORT_P2P_PS: whether P2P PS mechanism supported
  2191. * or not. u8, one of the values of &enum nl80211_sta_p2p_ps_status
  2192. *
  2193. * @NL80211_ATTR_PAD: attribute used for padding for 64-bit alignment
  2194. *
  2195. * @NL80211_ATTR_IFTYPE_EXT_CAPA: Nested attribute of the following attributes:
  2196. * %NL80211_ATTR_IFTYPE, %NL80211_ATTR_EXT_CAPA,
  2197. * %NL80211_ATTR_EXT_CAPA_MASK, to specify the extended capabilities per
  2198. * interface type.
  2199. *
  2200. * @NL80211_ATTR_MU_MIMO_GROUP_DATA: array of 24 bytes that defines a MU-MIMO
  2201. * groupID for monitor mode.
  2202. * The first 8 bytes are a mask that defines the membership in each
  2203. * group (there are 64 groups, group 0 and 63 are reserved),
  2204. * each bit represents a group and set to 1 for being a member in
  2205. * that group and 0 for not being a member.
  2206. * The remaining 16 bytes define the position in each group: 2 bits for
  2207. * each group.
  2208. * (smaller group numbers represented on most significant bits and bigger
  2209. * group numbers on least significant bits.)
  2210. * This attribute is used only if all interfaces are in monitor mode.
  2211. * Set this attribute in order to monitor packets using the given MU-MIMO
  2212. * groupID data.
  2213. * to turn off that feature set all the bits of the groupID to zero.
  2214. * @NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR: mac address for the sniffer to follow
  2215. * when using MU-MIMO air sniffer.
  2216. * to turn that feature off set an invalid mac address
  2217. * (e.g. FF:FF:FF:FF:FF:FF)
  2218. *
  2219. * @NL80211_ATTR_SCAN_START_TIME_TSF: The time at which the scan was actually
  2220. * started (u64). The time is the TSF of the BSS the interface that
  2221. * requested the scan is connected to (if available, otherwise this
  2222. * attribute must not be included).
  2223. * @NL80211_ATTR_SCAN_START_TIME_TSF_BSSID: The BSS according to which
  2224. * %NL80211_ATTR_SCAN_START_TIME_TSF is set.
  2225. * @NL80211_ATTR_MEASUREMENT_DURATION: measurement duration in TUs (u16). If
  2226. * %NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY is not set, this is the
  2227. * maximum measurement duration allowed. This attribute is used with
  2228. * measurement requests. It can also be used with %NL80211_CMD_TRIGGER_SCAN
  2229. * if the scan is used for beacon report radio measurement.
  2230. * @NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY: flag attribute that indicates
  2231. * that the duration specified with %NL80211_ATTR_MEASUREMENT_DURATION is
  2232. * mandatory. If this flag is not set, the duration is the maximum duration
  2233. * and the actual measurement duration may be shorter.
  2234. *
  2235. * @NL80211_ATTR_MESH_PEER_AID: Association ID for the mesh peer (u16). This is
  2236. * used to pull the stored data for mesh peer in power save state.
  2237. *
  2238. * @NL80211_ATTR_NAN_MASTER_PREF: the master preference to be used by
  2239. * %NL80211_CMD_START_NAN and optionally with
  2240. * %NL80211_CMD_CHANGE_NAN_CONFIG. Its type is u8 and it can't be 0.
  2241. * Also, values 1 and 255 are reserved for certification purposes and
  2242. * should not be used during a normal device operation.
  2243. * @NL80211_ATTR_BANDS: operating bands configuration. This is a u32
  2244. * bitmask of BIT(NL80211_BAND_*) as described in %enum
  2245. * nl80211_band. For instance, for NL80211_BAND_2GHZ, bit 0
  2246. * would be set. This attribute is used with
  2247. * %NL80211_CMD_START_NAN and %NL80211_CMD_CHANGE_NAN_CONFIG, and
  2248. * it is optional. If no bands are set, it means don't-care and
  2249. * the device will decide what to use.
  2250. * @NL80211_ATTR_NAN_FUNC: a function that can be added to NAN. See
  2251. * &enum nl80211_nan_func_attributes for description of this nested
  2252. * attribute.
  2253. * @NL80211_ATTR_NAN_MATCH: used to report a match. This is a nested attribute.
  2254. * See &enum nl80211_nan_match_attributes.
  2255. * @NL80211_ATTR_FILS_KEK: KEK for FILS (Re)Association Request/Response frame
  2256. * protection.
  2257. * @NL80211_ATTR_FILS_NONCES: Nonces (part of AAD) for FILS (Re)Association
  2258. * Request/Response frame protection. This attribute contains the 16 octet
  2259. * STA Nonce followed by 16 octets of AP Nonce.
  2260. *
  2261. * @NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED: Indicates whether or not multicast
  2262. * packets should be send out as unicast to all stations (flag attribute).
  2263. *
  2264. * @NL80211_ATTR_BSSID: The BSSID of the AP. Note that %NL80211_ATTR_MAC is also
  2265. * used in various commands/events for specifying the BSSID.
  2266. *
  2267. * @NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI: Relative RSSI threshold by which
  2268. * other BSSs has to be better or slightly worse than the current
  2269. * connected BSS so that they get reported to user space.
  2270. * This will give an opportunity to userspace to consider connecting to
  2271. * other matching BSSs which have better or slightly worse RSSI than
  2272. * the current connected BSS by using an offloaded operation to avoid
  2273. * unnecessary wakeups.
  2274. *
  2275. * @NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST: When present the RSSI level for BSSs in
  2276. * the specified band is to be adjusted before doing
  2277. * %NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI based comparison to figure out
  2278. * better BSSs. The attribute value is a packed structure
  2279. * value as specified by &struct nl80211_bss_select_rssi_adjust.
  2280. *
  2281. * @NL80211_ATTR_TIMEOUT_REASON: The reason for which an operation timed out.
  2282. * u32 attribute with an &enum nl80211_timeout_reason value. This is used,
  2283. * e.g., with %NL80211_CMD_CONNECT event.
  2284. *
  2285. * @NL80211_ATTR_FILS_ERP_USERNAME: EAP Re-authentication Protocol (ERP)
  2286. * username part of NAI used to refer keys rRK and rIK. This is used with
  2287. * %NL80211_CMD_CONNECT.
  2288. *
  2289. * @NL80211_ATTR_FILS_ERP_REALM: EAP Re-authentication Protocol (ERP) realm part
  2290. * of NAI specifying the domain name of the ER server. This is used with
  2291. * %NL80211_CMD_CONNECT.
  2292. *
  2293. * @NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM: Unsigned 16-bit ERP next sequence number
  2294. * to use in ERP messages. This is used in generating the FILS wrapped data
  2295. * for FILS authentication and is used with %NL80211_CMD_CONNECT.
  2296. *
  2297. * @NL80211_ATTR_FILS_ERP_RRK: ERP re-authentication Root Key (rRK) for the
  2298. * NAI specified by %NL80211_ATTR_FILS_ERP_USERNAME and
  2299. * %NL80211_ATTR_FILS_ERP_REALM. This is used for generating rIK and rMSK
  2300. * from successful FILS authentication and is used with
  2301. * %NL80211_CMD_CONNECT.
  2302. *
  2303. * @NL80211_ATTR_FILS_CACHE_ID: A 2-octet identifier advertized by a FILS AP
  2304. * identifying the scope of PMKSAs. This is used with
  2305. * @NL80211_CMD_SET_PMKSA and @NL80211_CMD_DEL_PMKSA.
  2306. *
  2307. * @NL80211_ATTR_PMK: attribute for passing PMK key material. Used with
  2308. * %NL80211_CMD_SET_PMKSA for the PMKSA identified by %NL80211_ATTR_PMKID.
  2309. * For %NL80211_CMD_CONNECT and %NL80211_CMD_START_AP it is used to provide
  2310. * PSK for offloading 4-way handshake for WPA/WPA2-PSK networks. For 802.1X
  2311. * authentication it is used with %NL80211_CMD_SET_PMK. For offloaded FT
  2312. * support this attribute specifies the PMK-R0 if NL80211_ATTR_PMKR0_NAME
  2313. * is included as well.
  2314. *
  2315. * @NL80211_ATTR_SCHED_SCAN_MULTI: flag attribute which user-space shall use to
  2316. * indicate that it supports multiple active scheduled scan requests.
  2317. * @NL80211_ATTR_SCHED_SCAN_MAX_REQS: indicates maximum number of scheduled
  2318. * scan request that may be active for the device (u32).
  2319. *
  2320. * @NL80211_ATTR_WANT_1X_4WAY_HS: flag attribute which user-space can include
  2321. * in %NL80211_CMD_CONNECT to indicate that for 802.1X authentication it
  2322. * wants to use the supported offload of the 4-way handshake.
  2323. * @NL80211_ATTR_PMKR0_NAME: PMK-R0 Name for offloaded FT.
  2324. * @NL80211_ATTR_PORT_AUTHORIZED: (reserved)
  2325. *
  2326. * @NL80211_ATTR_EXTERNAL_AUTH_ACTION: Identify the requested external
  2327. * authentication operation (u32 attribute with an
  2328. * &enum nl80211_external_auth_action value). This is used with the
  2329. * %NL80211_CMD_EXTERNAL_AUTH request event.
  2330. * @NL80211_ATTR_EXTERNAL_AUTH_SUPPORT: Flag attribute indicating that the user
  2331. * space supports external authentication. This attribute shall be used
  2332. * with %NL80211_CMD_CONNECT and %NL80211_CMD_START_AP request. The driver
  2333. * may offload authentication processing to user space if this capability
  2334. * is indicated in the respective requests from the user space.
  2335. *
  2336. * @NL80211_ATTR_NSS: Station's New/updated RX_NSS value notified using this
  2337. * u8 attribute. This is used with %NL80211_CMD_STA_OPMODE_CHANGED.
  2338. *
  2339. * @NL80211_ATTR_TXQ_STATS: TXQ statistics (nested attribute, see &enum
  2340. * nl80211_txq_stats)
  2341. * @NL80211_ATTR_TXQ_LIMIT: Total packet limit for the TXQ queues for this phy.
  2342. * The smaller of this and the memory limit is enforced.
  2343. * @NL80211_ATTR_TXQ_MEMORY_LIMIT: Total memory limit (in bytes) for the
  2344. * TXQ queues for this phy. The smaller of this and the packet limit is
  2345. * enforced.
  2346. * @NL80211_ATTR_TXQ_QUANTUM: TXQ scheduler quantum (bytes). Number of bytes
  2347. * a flow is assigned on each round of the DRR scheduler.
  2348. * @NL80211_ATTR_HE_CAPABILITY: HE Capability information element (from
  2349. * association request when used with NL80211_CMD_NEW_STATION). Can be set
  2350. * only if %NL80211_STA_FLAG_WME is set.
  2351. *
  2352. * @NL80211_ATTR_FTM_RESPONDER: nested attribute which user-space can include
  2353. * in %NL80211_CMD_START_AP or %NL80211_CMD_SET_BEACON for fine timing
  2354. * measurement (FTM) responder functionality and containing parameters as
  2355. * possible, see &enum nl80211_ftm_responder_attr
  2356. *
  2357. * @NL80211_ATTR_FTM_RESPONDER_STATS: Nested attribute with FTM responder
  2358. * statistics, see &enum nl80211_ftm_responder_stats.
  2359. *
  2360. * @NL80211_ATTR_TIMEOUT: Timeout for the given operation in milliseconds (u32),
  2361. * if the attribute is not given no timeout is requested. Note that 0 is an
  2362. * invalid value.
  2363. *
  2364. * @NL80211_ATTR_PEER_MEASUREMENTS: peer measurements request (and result)
  2365. * data, uses nested attributes specified in
  2366. * &enum nl80211_peer_measurement_attrs.
  2367. * This is also used for capability advertisement in the wiphy information,
  2368. * with the appropriate sub-attributes.
  2369. *
  2370. * @NL80211_ATTR_AIRTIME_WEIGHT: Station's weight when scheduled by the airtime
  2371. * scheduler.
  2372. *
  2373. * @NL80211_ATTR_STA_TX_POWER_SETTING: Transmit power setting type (u8) for
  2374. * station associated with the AP. See &enum nl80211_tx_power_setting for
  2375. * possible values.
  2376. * @NL80211_ATTR_STA_TX_POWER: Transmit power level (s16) in dBm units. This
  2377. * allows to set Tx power for a station. If this attribute is not included,
  2378. * the default per-interface tx power setting will be overriding. Driver
  2379. * should be picking up the lowest tx power, either tx power per-interface
  2380. * or per-station.
  2381. *
  2382. * @NL80211_ATTR_SAE_PASSWORD: attribute for passing SAE password material. It
  2383. * is used with %NL80211_CMD_CONNECT to provide password for offloading
  2384. * SAE authentication for WPA3-Personal networks.
  2385. *
  2386. * @NL80211_ATTR_TWT_RESPONDER: Enable target wait time responder support.
  2387. *
  2388. * @NL80211_ATTR_HE_OBSS_PD: nested attribute for OBSS Packet Detection
  2389. * functionality.
  2390. *
  2391. * @NL80211_ATTR_WIPHY_EDMG_CHANNELS: bitmap that indicates the 2.16 GHz
  2392. * channel(s) that are allowed to be used for EDMG transmissions.
  2393. * Defined by IEEE P802.11ay/D4.0 section 9.4.2.251. (u8 attribute)
  2394. * @NL80211_ATTR_WIPHY_EDMG_BW_CONFIG: Channel BW Configuration subfield encodes
  2395. * the allowed channel bandwidth configurations. (u8 attribute)
  2396. * Defined by IEEE P802.11ay/D4.0 section 9.4.2.251, Table 13.
  2397. *
  2398. * @NL80211_ATTR_VLAN_ID: VLAN ID (1..4094) for the station and VLAN group key
  2399. * (u16).
  2400. *
  2401. * @NL80211_ATTR_HE_BSS_COLOR: nested attribute for BSS Color Settings.
  2402. *
  2403. * @NL80211_ATTR_IFTYPE_AKM_SUITES: nested array attribute, with each entry
  2404. * using attributes from &enum nl80211_iftype_akm_attributes. This
  2405. * attribute is sent in a response to %NL80211_CMD_GET_WIPHY indicating
  2406. * supported AKM suites capability per interface. AKMs advertised in
  2407. * %NL80211_ATTR_AKM_SUITES are default capabilities if AKM suites not
  2408. * advertised for a specific interface type.
  2409. *
  2410. * @NL80211_ATTR_TID_CONFIG: TID specific configuration in a
  2411. * nested attribute with &enum nl80211_tid_config_attr sub-attributes;
  2412. * on output (in wiphy attributes) it contains only the feature sub-
  2413. * attributes.
  2414. *
  2415. * @NL80211_ATTR_CONTROL_PORT_NO_PREAUTH: disable preauth frame rx on control
  2416. * port in order to forward/receive them as ordinary data frames.
  2417. *
  2418. * @NL80211_ATTR_PMK_LIFETIME: Maximum lifetime for PMKSA in seconds (u32,
  2419. * dot11RSNAConfigPMKReauthThreshold; 0 is not a valid value).
  2420. * An optional parameter configured through %NL80211_CMD_SET_PMKSA.
  2421. * Drivers that trigger roaming need to know the lifetime of the
  2422. * configured PMKSA for triggering the full vs. PMKSA caching based
  2423. * authentication. This timeout helps authentication methods like SAE,
  2424. * where PMK gets updated only by going through a full (new SAE)
  2425. * authentication instead of getting updated during an association for EAP
  2426. * authentication. No new full authentication within the PMK expiry shall
  2427. * result in a disassociation at the end of the lifetime.
  2428. *
  2429. * @NL80211_ATTR_PMK_REAUTH_THRESHOLD: Reauthentication threshold time, in
  2430. * terms of percentage of %NL80211_ATTR_PMK_LIFETIME
  2431. * (u8, dot11RSNAConfigPMKReauthThreshold, 1..100). This is an optional
  2432. * parameter configured through %NL80211_CMD_SET_PMKSA. Requests the
  2433. * driver to trigger a full authentication roam (without PMKSA caching)
  2434. * after the reauthentication threshold time, but before the PMK lifetime
  2435. * has expired.
  2436. *
  2437. * Authentication methods like SAE need to be able to generate a new PMKSA
  2438. * entry without having to force a disconnection after the PMK timeout. If
  2439. * no roaming occurs between the reauth threshold and PMK expiration,
  2440. * disassociation is still forced.
  2441. * @NL80211_ATTR_RECEIVE_MULTICAST: multicast flag for the
  2442. * %NL80211_CMD_REGISTER_FRAME command, see the description there.
  2443. * @NL80211_ATTR_WIPHY_FREQ_OFFSET: offset of the associated
  2444. * %NL80211_ATTR_WIPHY_FREQ in positive KHz. Only valid when supplied with
  2445. * an %NL80211_ATTR_WIPHY_FREQ_OFFSET.
  2446. * @NL80211_ATTR_CENTER_FREQ1_OFFSET: Center frequency offset in KHz for the
  2447. * first channel segment specified in %NL80211_ATTR_CENTER_FREQ1.
  2448. * @NL80211_ATTR_SCAN_FREQ_KHZ: nested attribute with KHz frequencies
  2449. *
  2450. * @NL80211_ATTR_HE_6GHZ_CAPABILITY: HE 6 GHz Band Capability element (from
  2451. * association request when used with NL80211_CMD_NEW_STATION).
  2452. *
  2453. * @NL80211_ATTR_FILS_DISCOVERY: Optional parameter to configure FILS
  2454. * discovery. It is a nested attribute, see
  2455. * &enum nl80211_fils_discovery_attributes.
  2456. *
  2457. * @NL80211_ATTR_UNSOL_BCAST_PROBE_RESP: Optional parameter to configure
  2458. * unsolicited broadcast probe response. It is a nested attribute, see
  2459. * &enum nl80211_unsol_bcast_probe_resp_attributes.
  2460. *
  2461. * @NL80211_ATTR_S1G_CAPABILITY: S1G Capability information element (from
  2462. * association request when used with NL80211_CMD_NEW_STATION)
  2463. * @NL80211_ATTR_S1G_CAPABILITY_MASK: S1G Capability Information element
  2464. * override mask. Used with NL80211_ATTR_S1G_CAPABILITY in
  2465. * NL80211_CMD_ASSOCIATE or NL80211_CMD_CONNECT.
  2466. *
  2467. * @NL80211_ATTR_SAE_PWE: Indicates the mechanism(s) allowed for SAE PWE
  2468. * derivation in WPA3-Personal networks which are using SAE authentication.
  2469. * This is a u8 attribute that encapsulates one of the values from
  2470. * &enum nl80211_sae_pwe_mechanism.
  2471. *
  2472. * @NL80211_ATTR_SAR_SPEC: SAR power limitation specification when
  2473. * used with %NL80211_CMD_SET_SAR_SPECS. The message contains fields
  2474. * of %nl80211_sar_attrs which specifies the sar type and related
  2475. * sar specs. Sar specs contains array of %nl80211_sar_specs_attrs.
  2476. *
  2477. * @NL80211_ATTR_RECONNECT_REQUESTED: flag attribute, used with deauth and
  2478. * disassoc events to indicate that an immediate reconnect to the AP
  2479. * is desired.
  2480. *
  2481. * @NL80211_ATTR_OBSS_COLOR_BITMAP: bitmap of the u64 BSS colors for the
  2482. * %NL80211_CMD_OBSS_COLOR_COLLISION event.
  2483. *
  2484. * @NL80211_ATTR_COLOR_CHANGE_COUNT: u8 attribute specifying the number of TBTT's
  2485. * until the color switch event.
  2486. * @NL80211_ATTR_COLOR_CHANGE_COLOR: u8 attribute specifying the color that we are
  2487. * switching to
  2488. * @NL80211_ATTR_COLOR_CHANGE_ELEMS: Nested set of attributes containing the IE
  2489. * information for the time while performing a color switch.
  2490. *
  2491. * @NUM_NL80211_ATTR: total number of nl80211_attrs available
  2492. * @NL80211_ATTR_MAX: highest attribute number currently defined
  2493. * @__NL80211_ATTR_AFTER_LAST: internal use
  2494. */
  2495. enum nl80211_attrs {
  2496. /* don't change the order or add anything between, this is ABI! */
  2497. NL80211_ATTR_UNSPEC,
  2498. NL80211_ATTR_WIPHY,
  2499. NL80211_ATTR_WIPHY_NAME,
  2500. NL80211_ATTR_IFINDEX,
  2501. NL80211_ATTR_IFNAME,
  2502. NL80211_ATTR_IFTYPE,
  2503. NL80211_ATTR_MAC,
  2504. NL80211_ATTR_KEY_DATA,
  2505. NL80211_ATTR_KEY_IDX,
  2506. NL80211_ATTR_KEY_CIPHER,
  2507. NL80211_ATTR_KEY_SEQ,
  2508. NL80211_ATTR_KEY_DEFAULT,
  2509. NL80211_ATTR_BEACON_INTERVAL,
  2510. NL80211_ATTR_DTIM_PERIOD,
  2511. NL80211_ATTR_BEACON_HEAD,
  2512. NL80211_ATTR_BEACON_TAIL,
  2513. NL80211_ATTR_STA_AID,
  2514. NL80211_ATTR_STA_FLAGS,
  2515. NL80211_ATTR_STA_LISTEN_INTERVAL,
  2516. NL80211_ATTR_STA_SUPPORTED_RATES,
  2517. NL80211_ATTR_STA_VLAN,
  2518. NL80211_ATTR_STA_INFO,
  2519. NL80211_ATTR_WIPHY_BANDS,
  2520. NL80211_ATTR_MNTR_FLAGS,
  2521. NL80211_ATTR_MESH_ID,
  2522. NL80211_ATTR_STA_PLINK_ACTION,
  2523. NL80211_ATTR_MPATH_NEXT_HOP,
  2524. NL80211_ATTR_MPATH_INFO,
  2525. NL80211_ATTR_BSS_CTS_PROT,
  2526. NL80211_ATTR_BSS_SHORT_PREAMBLE,
  2527. NL80211_ATTR_BSS_SHORT_SLOT_TIME,
  2528. NL80211_ATTR_HT_CAPABILITY,
  2529. NL80211_ATTR_SUPPORTED_IFTYPES,
  2530. NL80211_ATTR_REG_ALPHA2,
  2531. NL80211_ATTR_REG_RULES,
  2532. NL80211_ATTR_MESH_CONFIG,
  2533. NL80211_ATTR_BSS_BASIC_RATES,
  2534. NL80211_ATTR_WIPHY_TXQ_PARAMS,
  2535. NL80211_ATTR_WIPHY_FREQ,
  2536. NL80211_ATTR_WIPHY_CHANNEL_TYPE,
  2537. NL80211_ATTR_KEY_DEFAULT_MGMT,
  2538. NL80211_ATTR_MGMT_SUBTYPE,
  2539. NL80211_ATTR_IE,
  2540. NL80211_ATTR_MAX_NUM_SCAN_SSIDS,
  2541. NL80211_ATTR_SCAN_FREQUENCIES,
  2542. NL80211_ATTR_SCAN_SSIDS,
  2543. NL80211_ATTR_GENERATION, /* replaces old SCAN_GENERATION */
  2544. NL80211_ATTR_BSS,
  2545. NL80211_ATTR_REG_INITIATOR,
  2546. NL80211_ATTR_REG_TYPE,
  2547. NL80211_ATTR_SUPPORTED_COMMANDS,
  2548. NL80211_ATTR_FRAME,
  2549. NL80211_ATTR_SSID,
  2550. NL80211_ATTR_AUTH_TYPE,
  2551. NL80211_ATTR_REASON_CODE,
  2552. NL80211_ATTR_KEY_TYPE,
  2553. NL80211_ATTR_MAX_SCAN_IE_LEN,
  2554. NL80211_ATTR_CIPHER_SUITES,
  2555. NL80211_ATTR_FREQ_BEFORE,
  2556. NL80211_ATTR_FREQ_AFTER,
  2557. NL80211_ATTR_FREQ_FIXED,
  2558. NL80211_ATTR_WIPHY_RETRY_SHORT,
  2559. NL80211_ATTR_WIPHY_RETRY_LONG,
  2560. NL80211_ATTR_WIPHY_FRAG_THRESHOLD,
  2561. NL80211_ATTR_WIPHY_RTS_THRESHOLD,
  2562. NL80211_ATTR_TIMED_OUT,
  2563. NL80211_ATTR_USE_MFP,
  2564. NL80211_ATTR_STA_FLAGS2,
  2565. NL80211_ATTR_CONTROL_PORT,
  2566. NL80211_ATTR_TESTDATA,
  2567. NL80211_ATTR_PRIVACY,
  2568. NL80211_ATTR_DISCONNECTED_BY_AP,
  2569. NL80211_ATTR_STATUS_CODE,
  2570. NL80211_ATTR_CIPHER_SUITES_PAIRWISE,
  2571. NL80211_ATTR_CIPHER_SUITE_GROUP,
  2572. NL80211_ATTR_WPA_VERSIONS,
  2573. NL80211_ATTR_AKM_SUITES,
  2574. NL80211_ATTR_REQ_IE,
  2575. NL80211_ATTR_RESP_IE,
  2576. NL80211_ATTR_PREV_BSSID,
  2577. NL80211_ATTR_KEY,
  2578. NL80211_ATTR_KEYS,
  2579. NL80211_ATTR_PID,
  2580. NL80211_ATTR_4ADDR,
  2581. NL80211_ATTR_SURVEY_INFO,
  2582. NL80211_ATTR_PMKID,
  2583. NL80211_ATTR_MAX_NUM_PMKIDS,
  2584. NL80211_ATTR_DURATION,
  2585. NL80211_ATTR_COOKIE,
  2586. NL80211_ATTR_WIPHY_COVERAGE_CLASS,
  2587. NL80211_ATTR_TX_RATES,
  2588. NL80211_ATTR_FRAME_MATCH,
  2589. NL80211_ATTR_ACK,
  2590. NL80211_ATTR_PS_STATE,
  2591. NL80211_ATTR_CQM,
  2592. NL80211_ATTR_LOCAL_STATE_CHANGE,
  2593. NL80211_ATTR_AP_ISOLATE,
  2594. NL80211_ATTR_WIPHY_TX_POWER_SETTING,
  2595. NL80211_ATTR_WIPHY_TX_POWER_LEVEL,
  2596. NL80211_ATTR_TX_FRAME_TYPES,
  2597. NL80211_ATTR_RX_FRAME_TYPES,
  2598. NL80211_ATTR_FRAME_TYPE,
  2599. NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
  2600. NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT,
  2601. NL80211_ATTR_SUPPORT_IBSS_RSN,
  2602. NL80211_ATTR_WIPHY_ANTENNA_TX,
  2603. NL80211_ATTR_WIPHY_ANTENNA_RX,
  2604. NL80211_ATTR_MCAST_RATE,
  2605. NL80211_ATTR_OFFCHANNEL_TX_OK,
  2606. NL80211_ATTR_BSS_HT_OPMODE,
  2607. NL80211_ATTR_KEY_DEFAULT_TYPES,
  2608. NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION,
  2609. NL80211_ATTR_MESH_SETUP,
  2610. NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX,
  2611. NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX,
  2612. NL80211_ATTR_SUPPORT_MESH_AUTH,
  2613. NL80211_ATTR_STA_PLINK_STATE,
  2614. NL80211_ATTR_WOWLAN_TRIGGERS,
  2615. NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED,
  2616. NL80211_ATTR_SCHED_SCAN_INTERVAL,
  2617. NL80211_ATTR_INTERFACE_COMBINATIONS,
  2618. NL80211_ATTR_SOFTWARE_IFTYPES,
  2619. NL80211_ATTR_REKEY_DATA,
  2620. NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS,
  2621. NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN,
  2622. NL80211_ATTR_SCAN_SUPP_RATES,
  2623. NL80211_ATTR_HIDDEN_SSID,
  2624. NL80211_ATTR_IE_PROBE_RESP,
  2625. NL80211_ATTR_IE_ASSOC_RESP,
  2626. NL80211_ATTR_STA_WME,
  2627. NL80211_ATTR_SUPPORT_AP_UAPSD,
  2628. NL80211_ATTR_ROAM_SUPPORT,
  2629. NL80211_ATTR_SCHED_SCAN_MATCH,
  2630. NL80211_ATTR_MAX_MATCH_SETS,
  2631. NL80211_ATTR_PMKSA_CANDIDATE,
  2632. NL80211_ATTR_TX_NO_CCK_RATE,
  2633. NL80211_ATTR_TDLS_ACTION,
  2634. NL80211_ATTR_TDLS_DIALOG_TOKEN,
  2635. NL80211_ATTR_TDLS_OPERATION,
  2636. NL80211_ATTR_TDLS_SUPPORT,
  2637. NL80211_ATTR_TDLS_EXTERNAL_SETUP,
  2638. NL80211_ATTR_DEVICE_AP_SME,
  2639. NL80211_ATTR_DONT_WAIT_FOR_ACK,
  2640. NL80211_ATTR_FEATURE_FLAGS,
  2641. NL80211_ATTR_PROBE_RESP_OFFLOAD,
  2642. NL80211_ATTR_PROBE_RESP,
  2643. NL80211_ATTR_DFS_REGION,
  2644. NL80211_ATTR_DISABLE_HT,
  2645. NL80211_ATTR_HT_CAPABILITY_MASK,
  2646. NL80211_ATTR_NOACK_MAP,
  2647. NL80211_ATTR_INACTIVITY_TIMEOUT,
  2648. NL80211_ATTR_RX_SIGNAL_DBM,
  2649. NL80211_ATTR_BG_SCAN_PERIOD,
  2650. NL80211_ATTR_WDEV,
  2651. NL80211_ATTR_USER_REG_HINT_TYPE,
  2652. NL80211_ATTR_CONN_FAILED_REASON,
  2653. NL80211_ATTR_AUTH_DATA,
  2654. NL80211_ATTR_VHT_CAPABILITY,
  2655. NL80211_ATTR_SCAN_FLAGS,
  2656. NL80211_ATTR_CHANNEL_WIDTH,
  2657. NL80211_ATTR_CENTER_FREQ1,
  2658. NL80211_ATTR_CENTER_FREQ2,
  2659. NL80211_ATTR_P2P_CTWINDOW,
  2660. NL80211_ATTR_P2P_OPPPS,
  2661. NL80211_ATTR_LOCAL_MESH_POWER_MODE,
  2662. NL80211_ATTR_ACL_POLICY,
  2663. NL80211_ATTR_MAC_ADDRS,
  2664. NL80211_ATTR_MAC_ACL_MAX,
  2665. NL80211_ATTR_RADAR_EVENT,
  2666. NL80211_ATTR_EXT_CAPA,
  2667. NL80211_ATTR_EXT_CAPA_MASK,
  2668. NL80211_ATTR_STA_CAPABILITY,
  2669. NL80211_ATTR_STA_EXT_CAPABILITY,
  2670. NL80211_ATTR_PROTOCOL_FEATURES,
  2671. NL80211_ATTR_SPLIT_WIPHY_DUMP,
  2672. NL80211_ATTR_DISABLE_VHT,
  2673. NL80211_ATTR_VHT_CAPABILITY_MASK,
  2674. NL80211_ATTR_MDID,
  2675. NL80211_ATTR_IE_RIC,
  2676. NL80211_ATTR_CRIT_PROT_ID,
  2677. NL80211_ATTR_MAX_CRIT_PROT_DURATION,
  2678. NL80211_ATTR_PEER_AID,
  2679. NL80211_ATTR_COALESCE_RULE,
  2680. NL80211_ATTR_CH_SWITCH_COUNT,
  2681. NL80211_ATTR_CH_SWITCH_BLOCK_TX,
  2682. NL80211_ATTR_CSA_IES,
  2683. NL80211_ATTR_CNTDWN_OFFS_BEACON,
  2684. NL80211_ATTR_CNTDWN_OFFS_PRESP,
  2685. NL80211_ATTR_RXMGMT_FLAGS,
  2686. NL80211_ATTR_STA_SUPPORTED_CHANNELS,
  2687. NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES,
  2688. NL80211_ATTR_HANDLE_DFS,
  2689. NL80211_ATTR_SUPPORT_5_MHZ,
  2690. NL80211_ATTR_SUPPORT_10_MHZ,
  2691. NL80211_ATTR_OPMODE_NOTIF,
  2692. NL80211_ATTR_VENDOR_ID,
  2693. NL80211_ATTR_VENDOR_SUBCMD,
  2694. NL80211_ATTR_VENDOR_DATA,
  2695. NL80211_ATTR_VENDOR_EVENTS,
  2696. NL80211_ATTR_QOS_MAP,
  2697. NL80211_ATTR_MAC_HINT,
  2698. NL80211_ATTR_WIPHY_FREQ_HINT,
  2699. NL80211_ATTR_MAX_AP_ASSOC_STA,
  2700. NL80211_ATTR_TDLS_PEER_CAPABILITY,
  2701. NL80211_ATTR_SOCKET_OWNER,
  2702. NL80211_ATTR_CSA_C_OFFSETS_TX,
  2703. NL80211_ATTR_MAX_CSA_COUNTERS,
  2704. NL80211_ATTR_TDLS_INITIATOR,
  2705. NL80211_ATTR_USE_RRM,
  2706. NL80211_ATTR_WIPHY_DYN_ACK,
  2707. NL80211_ATTR_TSID,
  2708. NL80211_ATTR_USER_PRIO,
  2709. NL80211_ATTR_ADMITTED_TIME,
  2710. NL80211_ATTR_SMPS_MODE,
  2711. NL80211_ATTR_OPER_CLASS,
  2712. NL80211_ATTR_MAC_MASK,
  2713. NL80211_ATTR_WIPHY_SELF_MANAGED_REG,
  2714. NL80211_ATTR_EXT_FEATURES,
  2715. NL80211_ATTR_SURVEY_RADIO_STATS,
  2716. NL80211_ATTR_NETNS_FD,
  2717. NL80211_ATTR_SCHED_SCAN_DELAY,
  2718. NL80211_ATTR_REG_INDOOR,
  2719. NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS,
  2720. NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL,
  2721. NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS,
  2722. NL80211_ATTR_SCHED_SCAN_PLANS,
  2723. NL80211_ATTR_PBSS,
  2724. NL80211_ATTR_BSS_SELECT,
  2725. NL80211_ATTR_STA_SUPPORT_P2P_PS,
  2726. NL80211_ATTR_PAD,
  2727. NL80211_ATTR_IFTYPE_EXT_CAPA,
  2728. NL80211_ATTR_MU_MIMO_GROUP_DATA,
  2729. NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR,
  2730. NL80211_ATTR_SCAN_START_TIME_TSF,
  2731. NL80211_ATTR_SCAN_START_TIME_TSF_BSSID,
  2732. NL80211_ATTR_MEASUREMENT_DURATION,
  2733. NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY,
  2734. NL80211_ATTR_MESH_PEER_AID,
  2735. NL80211_ATTR_NAN_MASTER_PREF,
  2736. NL80211_ATTR_BANDS,
  2737. NL80211_ATTR_NAN_FUNC,
  2738. NL80211_ATTR_NAN_MATCH,
  2739. NL80211_ATTR_FILS_KEK,
  2740. NL80211_ATTR_FILS_NONCES,
  2741. NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED,
  2742. NL80211_ATTR_BSSID,
  2743. NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI,
  2744. NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST,
  2745. NL80211_ATTR_TIMEOUT_REASON,
  2746. NL80211_ATTR_FILS_ERP_USERNAME,
  2747. NL80211_ATTR_FILS_ERP_REALM,
  2748. NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM,
  2749. NL80211_ATTR_FILS_ERP_RRK,
  2750. NL80211_ATTR_FILS_CACHE_ID,
  2751. NL80211_ATTR_PMK,
  2752. NL80211_ATTR_SCHED_SCAN_MULTI,
  2753. NL80211_ATTR_SCHED_SCAN_MAX_REQS,
  2754. NL80211_ATTR_WANT_1X_4WAY_HS,
  2755. NL80211_ATTR_PMKR0_NAME,
  2756. NL80211_ATTR_PORT_AUTHORIZED,
  2757. NL80211_ATTR_EXTERNAL_AUTH_ACTION,
  2758. NL80211_ATTR_EXTERNAL_AUTH_SUPPORT,
  2759. NL80211_ATTR_NSS,
  2760. NL80211_ATTR_ACK_SIGNAL,
  2761. NL80211_ATTR_CONTROL_PORT_OVER_NL80211,
  2762. NL80211_ATTR_TXQ_STATS,
  2763. NL80211_ATTR_TXQ_LIMIT,
  2764. NL80211_ATTR_TXQ_MEMORY_LIMIT,
  2765. NL80211_ATTR_TXQ_QUANTUM,
  2766. NL80211_ATTR_HE_CAPABILITY,
  2767. NL80211_ATTR_FTM_RESPONDER,
  2768. NL80211_ATTR_FTM_RESPONDER_STATS,
  2769. NL80211_ATTR_TIMEOUT,
  2770. NL80211_ATTR_PEER_MEASUREMENTS,
  2771. NL80211_ATTR_AIRTIME_WEIGHT,
  2772. NL80211_ATTR_STA_TX_POWER_SETTING,
  2773. NL80211_ATTR_STA_TX_POWER,
  2774. NL80211_ATTR_SAE_PASSWORD,
  2775. NL80211_ATTR_TWT_RESPONDER,
  2776. NL80211_ATTR_HE_OBSS_PD,
  2777. NL80211_ATTR_WIPHY_EDMG_CHANNELS,
  2778. NL80211_ATTR_WIPHY_EDMG_BW_CONFIG,
  2779. NL80211_ATTR_VLAN_ID,
  2780. NL80211_ATTR_HE_BSS_COLOR,
  2781. NL80211_ATTR_IFTYPE_AKM_SUITES,
  2782. NL80211_ATTR_TID_CONFIG,
  2783. NL80211_ATTR_CONTROL_PORT_NO_PREAUTH,
  2784. NL80211_ATTR_PMK_LIFETIME,
  2785. NL80211_ATTR_PMK_REAUTH_THRESHOLD,
  2786. NL80211_ATTR_RECEIVE_MULTICAST,
  2787. NL80211_ATTR_WIPHY_FREQ_OFFSET,
  2788. NL80211_ATTR_CENTER_FREQ1_OFFSET,
  2789. NL80211_ATTR_SCAN_FREQ_KHZ,
  2790. NL80211_ATTR_HE_6GHZ_CAPABILITY,
  2791. NL80211_ATTR_FILS_DISCOVERY,
  2792. NL80211_ATTR_UNSOL_BCAST_PROBE_RESP,
  2793. NL80211_ATTR_S1G_CAPABILITY,
  2794. NL80211_ATTR_S1G_CAPABILITY_MASK,
  2795. NL80211_ATTR_SAE_PWE,
  2796. NL80211_ATTR_RECONNECT_REQUESTED,
  2797. NL80211_ATTR_SAR_SPEC,
  2798. NL80211_ATTR_DISABLE_HE,
  2799. NL80211_ATTR_OBSS_COLOR_BITMAP,
  2800. NL80211_ATTR_COLOR_CHANGE_COUNT,
  2801. NL80211_ATTR_COLOR_CHANGE_COLOR,
  2802. NL80211_ATTR_COLOR_CHANGE_ELEMS,
  2803. /* add attributes here, update the policy in nl80211.c */
  2804. __NL80211_ATTR_AFTER_LAST,
  2805. NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST,
  2806. NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1
  2807. };
  2808. /* source-level API compatibility */
  2809. #define NL80211_ATTR_SCAN_GENERATION NL80211_ATTR_GENERATION
  2810. #define NL80211_ATTR_MESH_PARAMS NL80211_ATTR_MESH_CONFIG
  2811. #define NL80211_ATTR_IFACE_SOCKET_OWNER NL80211_ATTR_SOCKET_OWNER
  2812. #define NL80211_ATTR_SAE_DATA NL80211_ATTR_AUTH_DATA
  2813. #define NL80211_ATTR_CSA_C_OFF_BEACON NL80211_ATTR_CNTDWN_OFFS_BEACON
  2814. #define NL80211_ATTR_CSA_C_OFF_PRESP NL80211_ATTR_CNTDWN_OFFS_PRESP
  2815. /*
  2816. * Allow user space programs to use #ifdef on new attributes by defining them
  2817. * here
  2818. */
  2819. #define NL80211_CMD_CONNECT NL80211_CMD_CONNECT
  2820. #define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY
  2821. #define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES
  2822. #define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS
  2823. #define NL80211_ATTR_WIPHY_FREQ NL80211_ATTR_WIPHY_FREQ
  2824. #define NL80211_ATTR_WIPHY_CHANNEL_TYPE NL80211_ATTR_WIPHY_CHANNEL_TYPE
  2825. #define NL80211_ATTR_MGMT_SUBTYPE NL80211_ATTR_MGMT_SUBTYPE
  2826. #define NL80211_ATTR_IE NL80211_ATTR_IE
  2827. #define NL80211_ATTR_REG_INITIATOR NL80211_ATTR_REG_INITIATOR
  2828. #define NL80211_ATTR_REG_TYPE NL80211_ATTR_REG_TYPE
  2829. #define NL80211_ATTR_FRAME NL80211_ATTR_FRAME
  2830. #define NL80211_ATTR_SSID NL80211_ATTR_SSID
  2831. #define NL80211_ATTR_AUTH_TYPE NL80211_ATTR_AUTH_TYPE
  2832. #define NL80211_ATTR_REASON_CODE NL80211_ATTR_REASON_CODE
  2833. #define NL80211_ATTR_CIPHER_SUITES_PAIRWISE NL80211_ATTR_CIPHER_SUITES_PAIRWISE
  2834. #define NL80211_ATTR_CIPHER_SUITE_GROUP NL80211_ATTR_CIPHER_SUITE_GROUP
  2835. #define NL80211_ATTR_WPA_VERSIONS NL80211_ATTR_WPA_VERSIONS
  2836. #define NL80211_ATTR_AKM_SUITES NL80211_ATTR_AKM_SUITES
  2837. #define NL80211_ATTR_KEY NL80211_ATTR_KEY
  2838. #define NL80211_ATTR_KEYS NL80211_ATTR_KEYS
  2839. #define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS
  2840. #define NL80211_WIPHY_NAME_MAXLEN 64
  2841. #define NL80211_MAX_SUPP_RATES 32
  2842. #define NL80211_MAX_SUPP_HT_RATES 77
  2843. #define NL80211_MAX_SUPP_REG_RULES 128
  2844. #define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0
  2845. #define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY 16
  2846. #define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY 24
  2847. #define NL80211_HT_CAPABILITY_LEN 26
  2848. #define NL80211_VHT_CAPABILITY_LEN 12
  2849. #define NL80211_HE_MIN_CAPABILITY_LEN 16
  2850. #define NL80211_HE_MAX_CAPABILITY_LEN 54
  2851. #define NL80211_MAX_NR_CIPHER_SUITES 5
  2852. #define NL80211_MAX_NR_AKM_SUITES 2
  2853. #define NL80211_MIN_REMAIN_ON_CHANNEL_TIME 10
  2854. /* default RSSI threshold for scan results if none specified. */
  2855. #define NL80211_SCAN_RSSI_THOLD_OFF -300
  2856. #define NL80211_CQM_TXE_MAX_INTVL 1800
  2857. /**
  2858. * enum nl80211_iftype - (virtual) interface types
  2859. *
  2860. * @NL80211_IFTYPE_UNSPECIFIED: unspecified type, driver decides
  2861. * @NL80211_IFTYPE_ADHOC: independent BSS member
  2862. * @NL80211_IFTYPE_STATION: managed BSS member
  2863. * @NL80211_IFTYPE_AP: access point
  2864. * @NL80211_IFTYPE_AP_VLAN: VLAN interface for access points; VLAN interfaces
  2865. * are a bit special in that they must always be tied to a pre-existing
  2866. * AP type interface.
  2867. * @NL80211_IFTYPE_WDS: wireless distribution interface
  2868. * @NL80211_IFTYPE_MONITOR: monitor interface receiving all frames
  2869. * @NL80211_IFTYPE_MESH_POINT: mesh point
  2870. * @NL80211_IFTYPE_P2P_CLIENT: P2P client
  2871. * @NL80211_IFTYPE_P2P_GO: P2P group owner
  2872. * @NL80211_IFTYPE_P2P_DEVICE: P2P device interface type, this is not a netdev
  2873. * and therefore can't be created in the normal ways, use the
  2874. * %NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE
  2875. * commands to create and destroy one
  2876. * @NL80211_IF_TYPE_OCB: Outside Context of a BSS
  2877. * This mode corresponds to the MIB variable dot11OCBActivated=true
  2878. * @NL80211_IFTYPE_NAN: NAN device interface type (not a netdev)
  2879. * @NL80211_IFTYPE_MAX: highest interface type number currently defined
  2880. * @NUM_NL80211_IFTYPES: number of defined interface types
  2881. *
  2882. * These values are used with the %NL80211_ATTR_IFTYPE
  2883. * to set the type of an interface.
  2884. *
  2885. */
  2886. enum nl80211_iftype {
  2887. NL80211_IFTYPE_UNSPECIFIED,
  2888. NL80211_IFTYPE_ADHOC,
  2889. NL80211_IFTYPE_STATION,
  2890. NL80211_IFTYPE_AP,
  2891. NL80211_IFTYPE_AP_VLAN,
  2892. NL80211_IFTYPE_WDS,
  2893. NL80211_IFTYPE_MONITOR,
  2894. NL80211_IFTYPE_MESH_POINT,
  2895. NL80211_IFTYPE_P2P_CLIENT,
  2896. NL80211_IFTYPE_P2P_GO,
  2897. NL80211_IFTYPE_P2P_DEVICE,
  2898. NL80211_IFTYPE_OCB,
  2899. NL80211_IFTYPE_NAN,
  2900. /* keep last */
  2901. NUM_NL80211_IFTYPES,
  2902. NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1
  2903. };
  2904. /**
  2905. * enum nl80211_sta_flags - station flags
  2906. *
  2907. * Station flags. When a station is added to an AP interface, it is
  2908. * assumed to be already associated (and hence authenticated.)
  2909. *
  2910. * @__NL80211_STA_FLAG_INVALID: attribute number 0 is reserved
  2911. * @NL80211_STA_FLAG_AUTHORIZED: station is authorized (802.1X)
  2912. * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames
  2913. * with short barker preamble
  2914. * @NL80211_STA_FLAG_WME: station is WME/QoS capable
  2915. * @NL80211_STA_FLAG_MFP: station uses management frame protection
  2916. * @NL80211_STA_FLAG_AUTHENTICATED: station is authenticated
  2917. * @NL80211_STA_FLAG_TDLS_PEER: station is a TDLS peer -- this flag should
  2918. * only be used in managed mode (even in the flags mask). Note that the
  2919. * flag can't be changed, it is only valid while adding a station, and
  2920. * attempts to change it will silently be ignored (rather than rejected
  2921. * as errors.)
  2922. * @NL80211_STA_FLAG_ASSOCIATED: station is associated; used with drivers
  2923. * that support %NL80211_FEATURE_FULL_AP_CLIENT_STATE to transition a
  2924. * previously added station into associated state
  2925. * @NL80211_STA_FLAG_MAX: highest station flag number currently defined
  2926. * @__NL80211_STA_FLAG_AFTER_LAST: internal use
  2927. */
  2928. enum nl80211_sta_flags {
  2929. __NL80211_STA_FLAG_INVALID,
  2930. NL80211_STA_FLAG_AUTHORIZED,
  2931. NL80211_STA_FLAG_SHORT_PREAMBLE,
  2932. NL80211_STA_FLAG_WME,
  2933. NL80211_STA_FLAG_MFP,
  2934. NL80211_STA_FLAG_AUTHENTICATED,
  2935. NL80211_STA_FLAG_TDLS_PEER,
  2936. NL80211_STA_FLAG_ASSOCIATED,
  2937. /* keep last */
  2938. __NL80211_STA_FLAG_AFTER_LAST,
  2939. NL80211_STA_FLAG_MAX = __NL80211_STA_FLAG_AFTER_LAST - 1
  2940. };
  2941. /**
  2942. * enum nl80211_sta_p2p_ps_status - station support of P2P PS
  2943. *
  2944. * @NL80211_P2P_PS_UNSUPPORTED: station doesn't support P2P PS mechanism
  2945. * @@NL80211_P2P_PS_SUPPORTED: station supports P2P PS mechanism
  2946. * @NUM_NL80211_P2P_PS_STATUS: number of values
  2947. */
  2948. enum nl80211_sta_p2p_ps_status {
  2949. NL80211_P2P_PS_UNSUPPORTED = 0,
  2950. NL80211_P2P_PS_SUPPORTED,
  2951. NUM_NL80211_P2P_PS_STATUS,
  2952. };
  2953. #define NL80211_STA_FLAG_MAX_OLD_API NL80211_STA_FLAG_TDLS_PEER
  2954. /**
  2955. * struct nl80211_sta_flag_update - station flags mask/set
  2956. * @mask: mask of station flags to set
  2957. * @set: which values to set them to
  2958. *
  2959. * Both mask and set contain bits as per &enum nl80211_sta_flags.
  2960. */
  2961. struct nl80211_sta_flag_update {
  2962. __u32 mask;
  2963. __u32 set;
  2964. } __attribute__((packed));
  2965. /**
  2966. * enum nl80211_he_gi - HE guard interval
  2967. * @NL80211_RATE_INFO_HE_GI_0_8: 0.8 usec
  2968. * @NL80211_RATE_INFO_HE_GI_1_6: 1.6 usec
  2969. * @NL80211_RATE_INFO_HE_GI_3_2: 3.2 usec
  2970. */
  2971. enum nl80211_he_gi {
  2972. NL80211_RATE_INFO_HE_GI_0_8,
  2973. NL80211_RATE_INFO_HE_GI_1_6,
  2974. NL80211_RATE_INFO_HE_GI_3_2,
  2975. };
  2976. /**
  2977. * enum nl80211_he_ltf - HE long training field
  2978. * @NL80211_RATE_INFO_HE_1xLTF: 3.2 usec
  2979. * @NL80211_RATE_INFO_HE_2xLTF: 6.4 usec
  2980. * @NL80211_RATE_INFO_HE_4xLTF: 12.8 usec
  2981. */
  2982. enum nl80211_he_ltf {
  2983. NL80211_RATE_INFO_HE_1XLTF,
  2984. NL80211_RATE_INFO_HE_2XLTF,
  2985. NL80211_RATE_INFO_HE_4XLTF,
  2986. };
  2987. /**
  2988. * enum nl80211_he_ru_alloc - HE RU allocation values
  2989. * @NL80211_RATE_INFO_HE_RU_ALLOC_26: 26-tone RU allocation
  2990. * @NL80211_RATE_INFO_HE_RU_ALLOC_52: 52-tone RU allocation
  2991. * @NL80211_RATE_INFO_HE_RU_ALLOC_106: 106-tone RU allocation
  2992. * @NL80211_RATE_INFO_HE_RU_ALLOC_242: 242-tone RU allocation
  2993. * @NL80211_RATE_INFO_HE_RU_ALLOC_484: 484-tone RU allocation
  2994. * @NL80211_RATE_INFO_HE_RU_ALLOC_996: 996-tone RU allocation
  2995. * @NL80211_RATE_INFO_HE_RU_ALLOC_2x996: 2x996-tone RU allocation
  2996. */
  2997. enum nl80211_he_ru_alloc {
  2998. NL80211_RATE_INFO_HE_RU_ALLOC_26,
  2999. NL80211_RATE_INFO_HE_RU_ALLOC_52,
  3000. NL80211_RATE_INFO_HE_RU_ALLOC_106,
  3001. NL80211_RATE_INFO_HE_RU_ALLOC_242,
  3002. NL80211_RATE_INFO_HE_RU_ALLOC_484,
  3003. NL80211_RATE_INFO_HE_RU_ALLOC_996,
  3004. NL80211_RATE_INFO_HE_RU_ALLOC_2x996,
  3005. };
  3006. /**
  3007. * enum nl80211_rate_info - bitrate information
  3008. *
  3009. * These attribute types are used with %NL80211_STA_INFO_TXRATE
  3010. * when getting information about the bitrate of a station.
  3011. * There are 2 attributes for bitrate, a legacy one that represents
  3012. * a 16-bit value, and new one that represents a 32-bit value.
  3013. * If the rate value fits into 16 bit, both attributes are reported
  3014. * with the same value. If the rate is too high to fit into 16 bits
  3015. * (>6.5535Gbps) only 32-bit attribute is included.
  3016. * User space tools encouraged to use the 32-bit attribute and fall
  3017. * back to the 16-bit one for compatibility with older kernels.
  3018. *
  3019. * @__NL80211_RATE_INFO_INVALID: attribute number 0 is reserved
  3020. * @NL80211_RATE_INFO_BITRATE: total bitrate (u16, 100kbit/s)
  3021. * @NL80211_RATE_INFO_MCS: mcs index for 802.11n (u8)
  3022. * @NL80211_RATE_INFO_40_MHZ_WIDTH: 40 MHz dualchannel bitrate
  3023. * @NL80211_RATE_INFO_SHORT_GI: 400ns guard interval
  3024. * @NL80211_RATE_INFO_BITRATE32: total bitrate (u32, 100kbit/s)
  3025. * @NL80211_RATE_INFO_MAX: highest rate_info number currently defined
  3026. * @NL80211_RATE_INFO_VHT_MCS: MCS index for VHT (u8)
  3027. * @NL80211_RATE_INFO_VHT_NSS: number of streams in VHT (u8)
  3028. * @NL80211_RATE_INFO_80_MHZ_WIDTH: 80 MHz VHT rate
  3029. * @NL80211_RATE_INFO_80P80_MHZ_WIDTH: unused - 80+80 is treated the
  3030. * same as 160 for purposes of the bitrates
  3031. * @NL80211_RATE_INFO_160_MHZ_WIDTH: 160 MHz VHT rate
  3032. * @NL80211_RATE_INFO_10_MHZ_WIDTH: 10 MHz width - note that this is
  3033. * a legacy rate and will be reported as the actual bitrate, i.e.
  3034. * half the base (20 MHz) rate
  3035. * @NL80211_RATE_INFO_5_MHZ_WIDTH: 5 MHz width - note that this is
  3036. * a legacy rate and will be reported as the actual bitrate, i.e.
  3037. * a quarter of the base (20 MHz) rate
  3038. * @NL80211_RATE_INFO_HE_MCS: HE MCS index (u8, 0-11)
  3039. * @NL80211_RATE_INFO_HE_NSS: HE NSS value (u8, 1-8)
  3040. * @NL80211_RATE_INFO_HE_GI: HE guard interval identifier
  3041. * (u8, see &enum nl80211_he_gi)
  3042. * @NL80211_RATE_INFO_HE_DCM: HE DCM value (u8, 0/1)
  3043. * @NL80211_RATE_INFO_RU_ALLOC: HE RU allocation, if not present then
  3044. * non-OFDMA was used (u8, see &enum nl80211_he_ru_alloc)
  3045. * @__NL80211_RATE_INFO_AFTER_LAST: internal use
  3046. */
  3047. enum nl80211_rate_info {
  3048. __NL80211_RATE_INFO_INVALID,
  3049. NL80211_RATE_INFO_BITRATE,
  3050. NL80211_RATE_INFO_MCS,
  3051. NL80211_RATE_INFO_40_MHZ_WIDTH,
  3052. NL80211_RATE_INFO_SHORT_GI,
  3053. NL80211_RATE_INFO_BITRATE32,
  3054. NL80211_RATE_INFO_VHT_MCS,
  3055. NL80211_RATE_INFO_VHT_NSS,
  3056. NL80211_RATE_INFO_80_MHZ_WIDTH,
  3057. NL80211_RATE_INFO_80P80_MHZ_WIDTH,
  3058. NL80211_RATE_INFO_160_MHZ_WIDTH,
  3059. NL80211_RATE_INFO_10_MHZ_WIDTH,
  3060. NL80211_RATE_INFO_5_MHZ_WIDTH,
  3061. NL80211_RATE_INFO_HE_MCS,
  3062. NL80211_RATE_INFO_HE_NSS,
  3063. NL80211_RATE_INFO_HE_GI,
  3064. NL80211_RATE_INFO_HE_DCM,
  3065. NL80211_RATE_INFO_HE_RU_ALLOC,
  3066. /* keep last */
  3067. __NL80211_RATE_INFO_AFTER_LAST,
  3068. NL80211_RATE_INFO_MAX = __NL80211_RATE_INFO_AFTER_LAST - 1
  3069. };
  3070. /**
  3071. * enum nl80211_sta_bss_param - BSS information collected by STA
  3072. *
  3073. * These attribute types are used with %NL80211_STA_INFO_BSS_PARAM
  3074. * when getting information about the bitrate of a station.
  3075. *
  3076. * @__NL80211_STA_BSS_PARAM_INVALID: attribute number 0 is reserved
  3077. * @NL80211_STA_BSS_PARAM_CTS_PROT: whether CTS protection is enabled (flag)
  3078. * @NL80211_STA_BSS_PARAM_SHORT_PREAMBLE: whether short preamble is enabled
  3079. * (flag)
  3080. * @NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME: whether short slot time is enabled
  3081. * (flag)
  3082. * @NL80211_STA_BSS_PARAM_DTIM_PERIOD: DTIM period for beaconing (u8)
  3083. * @NL80211_STA_BSS_PARAM_BEACON_INTERVAL: Beacon interval (u16)
  3084. * @NL80211_STA_BSS_PARAM_MAX: highest sta_bss_param number currently defined
  3085. * @__NL80211_STA_BSS_PARAM_AFTER_LAST: internal use
  3086. */
  3087. enum nl80211_sta_bss_param {
  3088. __NL80211_STA_BSS_PARAM_INVALID,
  3089. NL80211_STA_BSS_PARAM_CTS_PROT,
  3090. NL80211_STA_BSS_PARAM_SHORT_PREAMBLE,
  3091. NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME,
  3092. NL80211_STA_BSS_PARAM_DTIM_PERIOD,
  3093. NL80211_STA_BSS_PARAM_BEACON_INTERVAL,
  3094. /* keep last */
  3095. __NL80211_STA_BSS_PARAM_AFTER_LAST,
  3096. NL80211_STA_BSS_PARAM_MAX = __NL80211_STA_BSS_PARAM_AFTER_LAST - 1
  3097. };
  3098. /**
  3099. * enum nl80211_sta_info - station information
  3100. *
  3101. * These attribute types are used with %NL80211_ATTR_STA_INFO
  3102. * when getting information about a station.
  3103. *
  3104. * @__NL80211_STA_INFO_INVALID: attribute number 0 is reserved
  3105. * @NL80211_STA_INFO_INACTIVE_TIME: time since last activity (u32, msecs)
  3106. * @NL80211_STA_INFO_RX_BYTES: total received bytes (MPDU length)
  3107. * (u32, from this station)
  3108. * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (MPDU length)
  3109. * (u32, to this station)
  3110. * @NL80211_STA_INFO_RX_BYTES64: total received bytes (MPDU length)
  3111. * (u64, from this station)
  3112. * @NL80211_STA_INFO_TX_BYTES64: total transmitted bytes (MPDU length)
  3113. * (u64, to this station)
  3114. * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm)
  3115. * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute
  3116. * containing info as possible, see &enum nl80211_rate_info
  3117. * @NL80211_STA_INFO_RX_PACKETS: total received packet (MSDUs and MMPDUs)
  3118. * (u32, from this station)
  3119. * @NL80211_STA_INFO_TX_PACKETS: total transmitted packets (MSDUs and MMPDUs)
  3120. * (u32, to this station)
  3121. * @NL80211_STA_INFO_TX_RETRIES: total retries (MPDUs) (u32, to this station)
  3122. * @NL80211_STA_INFO_TX_FAILED: total failed packets (MPDUs)
  3123. * (u32, to this station)
  3124. * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm)
  3125. * @NL80211_STA_INFO_LLID: the station's mesh LLID
  3126. * @NL80211_STA_INFO_PLID: the station's mesh PLID
  3127. * @NL80211_STA_INFO_PLINK_STATE: peer link state for the station
  3128. * (see %enum nl80211_plink_state)
  3129. * @NL80211_STA_INFO_RX_BITRATE: last unicast data frame rx rate, nested
  3130. * attribute, like NL80211_STA_INFO_TX_BITRATE.
  3131. * @NL80211_STA_INFO_BSS_PARAM: current station's view of BSS, nested attribute
  3132. * containing info as possible, see &enum nl80211_sta_bss_param
  3133. * @NL80211_STA_INFO_CONNECTED_TIME: time since the station is last connected
  3134. * @NL80211_STA_INFO_STA_FLAGS: Contains a struct nl80211_sta_flag_update.
  3135. * @NL80211_STA_INFO_BEACON_LOSS: count of times beacon loss was detected (u32)
  3136. * @NL80211_STA_INFO_T_OFFSET: timing offset with respect to this STA (s64)
  3137. * @NL80211_STA_INFO_LOCAL_PM: local mesh STA link-specific power mode
  3138. * @NL80211_STA_INFO_PEER_PM: peer mesh STA link-specific power mode
  3139. * @NL80211_STA_INFO_NONPEER_PM: neighbor mesh STA power save mode towards
  3140. * non-peer STA
  3141. * @NL80211_STA_INFO_CHAIN_SIGNAL: per-chain signal strength of last PPDU
  3142. * Contains a nested array of signal strength attributes (u8, dBm)
  3143. * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average
  3144. * Same format as NL80211_STA_INFO_CHAIN_SIGNAL.
  3145. * @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the
  3146. * 802.11 header (u32, kbps)
  3147. * @NL80211_STA_INFO_RX_DROP_MISC: RX packets dropped for unspecified reasons
  3148. * (u64)
  3149. * @NL80211_STA_INFO_BEACON_RX: number of beacons received from this peer (u64)
  3150. * @NL80211_STA_INFO_BEACON_SIGNAL_AVG: signal strength average
  3151. * for beacons only (u8, dBm)
  3152. * @NL80211_STA_INFO_TID_STATS: per-TID statistics (see &enum nl80211_tid_stats)
  3153. * This is a nested attribute where each the inner attribute number is the
  3154. * TID+1 and the special TID 16 (i.e. value 17) is used for non-QoS frames;
  3155. * each one of those is again nested with &enum nl80211_tid_stats
  3156. * attributes carrying the actual values.
  3157. * @NL80211_STA_INFO_RX_DURATION: aggregate PPDU duration for all frames
  3158. * received from the station (u64, usec)
  3159. * @NL80211_STA_INFO_PAD: attribute used for padding for 64-bit alignment
  3160. * @NL80211_STA_INFO_ACK_SIGNAL: signal strength of the last ACK frame(u8, dBm)
  3161. * @NL80211_STA_INFO_ACK_SIGNAL_AVG: avg signal strength of ACK frames (s8, dBm)
  3162. * @NL80211_STA_INFO_RX_MPDUS: total number of received packets (MPDUs)
  3163. * (u32, from this station)
  3164. * @NL80211_STA_INFO_FCS_ERROR_COUNT: total number of packets (MPDUs) received
  3165. * with an FCS error (u32, from this station). This count may not include
  3166. * some packets with an FCS error due to TA corruption. Hence this counter
  3167. * might not be fully accurate.
  3168. * @NL80211_STA_INFO_CONNECTED_TO_GATE: set to true if STA has a path to a
  3169. * mesh gate (u8, 0 or 1)
  3170. * @NL80211_STA_INFO_TX_DURATION: aggregate PPDU duration for all frames
  3171. * sent to the station (u64, usec)
  3172. * @NL80211_STA_INFO_AIRTIME_WEIGHT: current airtime weight for station (u16)
  3173. * @NL80211_STA_INFO_AIRTIME_LINK_METRIC: airtime link metric for mesh station
  3174. * @NL80211_STA_INFO_ASSOC_AT_BOOTTIME: Timestamp (CLOCK_BOOTTIME, nanoseconds)
  3175. * of STA's association
  3176. * @NL80211_STA_INFO_CONNECTED_TO_AS: set to true if STA has a path to a
  3177. * authentication server (u8, 0 or 1)
  3178. * @__NL80211_STA_INFO_AFTER_LAST: internal
  3179. * @NL80211_STA_INFO_MAX: highest possible station info attribute
  3180. */
  3181. enum nl80211_sta_info {
  3182. __NL80211_STA_INFO_INVALID,
  3183. NL80211_STA_INFO_INACTIVE_TIME,
  3184. NL80211_STA_INFO_RX_BYTES,
  3185. NL80211_STA_INFO_TX_BYTES,
  3186. NL80211_STA_INFO_LLID,
  3187. NL80211_STA_INFO_PLID,
  3188. NL80211_STA_INFO_PLINK_STATE,
  3189. NL80211_STA_INFO_SIGNAL,
  3190. NL80211_STA_INFO_TX_BITRATE,
  3191. NL80211_STA_INFO_RX_PACKETS,
  3192. NL80211_STA_INFO_TX_PACKETS,
  3193. NL80211_STA_INFO_TX_RETRIES,
  3194. NL80211_STA_INFO_TX_FAILED,
  3195. NL80211_STA_INFO_SIGNAL_AVG,
  3196. NL80211_STA_INFO_RX_BITRATE,
  3197. NL80211_STA_INFO_BSS_PARAM,
  3198. NL80211_STA_INFO_CONNECTED_TIME,
  3199. NL80211_STA_INFO_STA_FLAGS,
  3200. NL80211_STA_INFO_BEACON_LOSS,
  3201. NL80211_STA_INFO_T_OFFSET,
  3202. NL80211_STA_INFO_LOCAL_PM,
  3203. NL80211_STA_INFO_PEER_PM,
  3204. NL80211_STA_INFO_NONPEER_PM,
  3205. NL80211_STA_INFO_RX_BYTES64,
  3206. NL80211_STA_INFO_TX_BYTES64,
  3207. NL80211_STA_INFO_CHAIN_SIGNAL,
  3208. NL80211_STA_INFO_CHAIN_SIGNAL_AVG,
  3209. NL80211_STA_INFO_EXPECTED_THROUGHPUT,
  3210. NL80211_STA_INFO_RX_DROP_MISC,
  3211. NL80211_STA_INFO_BEACON_RX,
  3212. NL80211_STA_INFO_BEACON_SIGNAL_AVG,
  3213. NL80211_STA_INFO_TID_STATS,
  3214. NL80211_STA_INFO_RX_DURATION,
  3215. NL80211_STA_INFO_PAD,
  3216. NL80211_STA_INFO_ACK_SIGNAL,
  3217. NL80211_STA_INFO_ACK_SIGNAL_AVG,
  3218. NL80211_STA_INFO_RX_MPDUS,
  3219. NL80211_STA_INFO_FCS_ERROR_COUNT,
  3220. NL80211_STA_INFO_CONNECTED_TO_GATE,
  3221. NL80211_STA_INFO_TX_DURATION,
  3222. NL80211_STA_INFO_AIRTIME_WEIGHT,
  3223. NL80211_STA_INFO_AIRTIME_LINK_METRIC,
  3224. NL80211_STA_INFO_ASSOC_AT_BOOTTIME,
  3225. NL80211_STA_INFO_CONNECTED_TO_AS,
  3226. /* keep last */
  3227. __NL80211_STA_INFO_AFTER_LAST,
  3228. NL80211_STA_INFO_MAX = __NL80211_STA_INFO_AFTER_LAST - 1
  3229. };
  3230. /* we renamed this - stay compatible */
  3231. #define NL80211_STA_INFO_DATA_ACK_SIGNAL_AVG NL80211_STA_INFO_ACK_SIGNAL_AVG
  3232. /**
  3233. * enum nl80211_tid_stats - per TID statistics attributes
  3234. * @__NL80211_TID_STATS_INVALID: attribute number 0 is reserved
  3235. * @NL80211_TID_STATS_RX_MSDU: number of MSDUs received (u64)
  3236. * @NL80211_TID_STATS_TX_MSDU: number of MSDUs transmitted (or
  3237. * attempted to transmit; u64)
  3238. * @NL80211_TID_STATS_TX_MSDU_RETRIES: number of retries for
  3239. * transmitted MSDUs (not counting the first attempt; u64)
  3240. * @NL80211_TID_STATS_TX_MSDU_FAILED: number of failed transmitted
  3241. * MSDUs (u64)
  3242. * @NL80211_TID_STATS_PAD: attribute used for padding for 64-bit alignment
  3243. * @NL80211_TID_STATS_TXQ_STATS: TXQ stats (nested attribute)
  3244. * @NUM_NL80211_TID_STATS: number of attributes here
  3245. * @NL80211_TID_STATS_MAX: highest numbered attribute here
  3246. */
  3247. enum nl80211_tid_stats {
  3248. __NL80211_TID_STATS_INVALID,
  3249. NL80211_TID_STATS_RX_MSDU,
  3250. NL80211_TID_STATS_TX_MSDU,
  3251. NL80211_TID_STATS_TX_MSDU_RETRIES,
  3252. NL80211_TID_STATS_TX_MSDU_FAILED,
  3253. NL80211_TID_STATS_PAD,
  3254. NL80211_TID_STATS_TXQ_STATS,
  3255. /* keep last */
  3256. NUM_NL80211_TID_STATS,
  3257. NL80211_TID_STATS_MAX = NUM_NL80211_TID_STATS - 1
  3258. };
  3259. /**
  3260. * enum nl80211_txq_stats - per TXQ statistics attributes
  3261. * @__NL80211_TXQ_STATS_INVALID: attribute number 0 is reserved
  3262. * @NUM_NL80211_TXQ_STATS: number of attributes here
  3263. * @NL80211_TXQ_STATS_BACKLOG_BYTES: number of bytes currently backlogged
  3264. * @NL80211_TXQ_STATS_BACKLOG_PACKETS: number of packets currently
  3265. * backlogged
  3266. * @NL80211_TXQ_STATS_FLOWS: total number of new flows seen
  3267. * @NL80211_TXQ_STATS_DROPS: total number of packet drops
  3268. * @NL80211_TXQ_STATS_ECN_MARKS: total number of packet ECN marks
  3269. * @NL80211_TXQ_STATS_OVERLIMIT: number of drops due to queue space overflow
  3270. * @NL80211_TXQ_STATS_OVERMEMORY: number of drops due to memory limit overflow
  3271. * (only for per-phy stats)
  3272. * @NL80211_TXQ_STATS_COLLISIONS: number of hash collisions
  3273. * @NL80211_TXQ_STATS_TX_BYTES: total number of bytes dequeued from TXQ
  3274. * @NL80211_TXQ_STATS_TX_PACKETS: total number of packets dequeued from TXQ
  3275. * @NL80211_TXQ_STATS_MAX_FLOWS: number of flow buckets for PHY
  3276. * @NL80211_TXQ_STATS_MAX: highest numbered attribute here
  3277. */
  3278. enum nl80211_txq_stats {
  3279. __NL80211_TXQ_STATS_INVALID,
  3280. NL80211_TXQ_STATS_BACKLOG_BYTES,
  3281. NL80211_TXQ_STATS_BACKLOG_PACKETS,
  3282. NL80211_TXQ_STATS_FLOWS,
  3283. NL80211_TXQ_STATS_DROPS,
  3284. NL80211_TXQ_STATS_ECN_MARKS,
  3285. NL80211_TXQ_STATS_OVERLIMIT,
  3286. NL80211_TXQ_STATS_OVERMEMORY,
  3287. NL80211_TXQ_STATS_COLLISIONS,
  3288. NL80211_TXQ_STATS_TX_BYTES,
  3289. NL80211_TXQ_STATS_TX_PACKETS,
  3290. NL80211_TXQ_STATS_MAX_FLOWS,
  3291. /* keep last */
  3292. NUM_NL80211_TXQ_STATS,
  3293. NL80211_TXQ_STATS_MAX = NUM_NL80211_TXQ_STATS - 1
  3294. };
  3295. /**
  3296. * enum nl80211_mpath_flags - nl80211 mesh path flags
  3297. *
  3298. * @NL80211_MPATH_FLAG_ACTIVE: the mesh path is active
  3299. * @NL80211_MPATH_FLAG_RESOLVING: the mesh path discovery process is running
  3300. * @NL80211_MPATH_FLAG_SN_VALID: the mesh path contains a valid SN
  3301. * @NL80211_MPATH_FLAG_FIXED: the mesh path has been manually set
  3302. * @NL80211_MPATH_FLAG_RESOLVED: the mesh path discovery process succeeded
  3303. */
  3304. enum nl80211_mpath_flags {
  3305. NL80211_MPATH_FLAG_ACTIVE = 1<<0,
  3306. NL80211_MPATH_FLAG_RESOLVING = 1<<1,
  3307. NL80211_MPATH_FLAG_SN_VALID = 1<<2,
  3308. NL80211_MPATH_FLAG_FIXED = 1<<3,
  3309. NL80211_MPATH_FLAG_RESOLVED = 1<<4,
  3310. };
  3311. /**
  3312. * enum nl80211_mpath_info - mesh path information
  3313. *
  3314. * These attribute types are used with %NL80211_ATTR_MPATH_INFO when getting
  3315. * information about a mesh path.
  3316. *
  3317. * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved
  3318. * @NL80211_MPATH_INFO_FRAME_QLEN: number of queued frames for this destination
  3319. * @NL80211_MPATH_INFO_SN: destination sequence number
  3320. * @NL80211_MPATH_INFO_METRIC: metric (cost) of this mesh path
  3321. * @NL80211_MPATH_INFO_EXPTIME: expiration time for the path, in msec from now
  3322. * @NL80211_MPATH_INFO_FLAGS: mesh path flags, enumerated in
  3323. * &enum nl80211_mpath_flags;
  3324. * @NL80211_MPATH_INFO_DISCOVERY_TIMEOUT: total path discovery timeout, in msec
  3325. * @NL80211_MPATH_INFO_DISCOVERY_RETRIES: mesh path discovery retries
  3326. * @NL80211_MPATH_INFO_HOP_COUNT: hop count to destination
  3327. * @NL80211_MPATH_INFO_PATH_CHANGE: total number of path changes to destination
  3328. * @NL80211_MPATH_INFO_MAX: highest mesh path information attribute number
  3329. * currently defined
  3330. * @__NL80211_MPATH_INFO_AFTER_LAST: internal use
  3331. */
  3332. enum nl80211_mpath_info {
  3333. __NL80211_MPATH_INFO_INVALID,
  3334. NL80211_MPATH_INFO_FRAME_QLEN,
  3335. NL80211_MPATH_INFO_SN,
  3336. NL80211_MPATH_INFO_METRIC,
  3337. NL80211_MPATH_INFO_EXPTIME,
  3338. NL80211_MPATH_INFO_FLAGS,
  3339. NL80211_MPATH_INFO_DISCOVERY_TIMEOUT,
  3340. NL80211_MPATH_INFO_DISCOVERY_RETRIES,
  3341. NL80211_MPATH_INFO_HOP_COUNT,
  3342. NL80211_MPATH_INFO_PATH_CHANGE,
  3343. /* keep last */
  3344. __NL80211_MPATH_INFO_AFTER_LAST,
  3345. NL80211_MPATH_INFO_MAX = __NL80211_MPATH_INFO_AFTER_LAST - 1
  3346. };
  3347. /**
  3348. * enum nl80211_band_iftype_attr - Interface type data attributes
  3349. *
  3350. * @__NL80211_BAND_IFTYPE_ATTR_INVALID: attribute number 0 is reserved
  3351. * @NL80211_BAND_IFTYPE_ATTR_IFTYPES: nested attribute containing a flag attribute
  3352. * for each interface type that supports the band data
  3353. * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC: HE MAC capabilities as in HE
  3354. * capabilities IE
  3355. * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY: HE PHY capabilities as in HE
  3356. * capabilities IE
  3357. * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET: HE supported NSS/MCS as in HE
  3358. * capabilities IE
  3359. * @NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE: HE PPE thresholds information as
  3360. * defined in HE capabilities IE
  3361. * @NL80211_BAND_IFTYPE_ATTR_MAX: highest band HE capability attribute currently
  3362. * defined
  3363. * @NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA: HE 6GHz band capabilities (__le16),
  3364. * given for all 6 GHz band channels
  3365. * @NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS: vendor element capabilities that are
  3366. * advertised on this band/for this iftype (binary)
  3367. * @__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST: internal use
  3368. */
  3369. enum nl80211_band_iftype_attr {
  3370. __NL80211_BAND_IFTYPE_ATTR_INVALID,
  3371. NL80211_BAND_IFTYPE_ATTR_IFTYPES,
  3372. NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC,
  3373. NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY,
  3374. NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET,
  3375. NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE,
  3376. NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA,
  3377. NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS,
  3378. /* keep last */
  3379. __NL80211_BAND_IFTYPE_ATTR_AFTER_LAST,
  3380. NL80211_BAND_IFTYPE_ATTR_MAX = __NL80211_BAND_IFTYPE_ATTR_AFTER_LAST - 1
  3381. };
  3382. /**
  3383. * enum nl80211_band_attr - band attributes
  3384. * @__NL80211_BAND_ATTR_INVALID: attribute number 0 is reserved
  3385. * @NL80211_BAND_ATTR_FREQS: supported frequencies in this band,
  3386. * an array of nested frequency attributes
  3387. * @NL80211_BAND_ATTR_RATES: supported bitrates in this band,
  3388. * an array of nested bitrate attributes
  3389. * @NL80211_BAND_ATTR_HT_MCS_SET: 16-byte attribute containing the MCS set as
  3390. * defined in 802.11n
  3391. * @NL80211_BAND_ATTR_HT_CAPA: HT capabilities, as in the HT information IE
  3392. * @NL80211_BAND_ATTR_HT_AMPDU_FACTOR: A-MPDU factor, as in 11n
  3393. * @NL80211_BAND_ATTR_HT_AMPDU_DENSITY: A-MPDU density, as in 11n
  3394. * @NL80211_BAND_ATTR_VHT_MCS_SET: 32-byte attribute containing the MCS set as
  3395. * defined in 802.11ac
  3396. * @NL80211_BAND_ATTR_VHT_CAPA: VHT capabilities, as in the HT information IE
  3397. * @NL80211_BAND_ATTR_IFTYPE_DATA: nested array attribute, with each entry using
  3398. * attributes from &enum nl80211_band_iftype_attr
  3399. * @NL80211_BAND_ATTR_EDMG_CHANNELS: bitmap that indicates the 2.16 GHz
  3400. * channel(s) that are allowed to be used for EDMG transmissions.
  3401. * Defined by IEEE P802.11ay/D4.0 section 9.4.2.251.
  3402. * @NL80211_BAND_ATTR_EDMG_BW_CONFIG: Channel BW Configuration subfield encodes
  3403. * the allowed channel bandwidth configurations.
  3404. * Defined by IEEE P802.11ay/D4.0 section 9.4.2.251, Table 13.
  3405. * @NL80211_BAND_ATTR_MAX: highest band attribute currently defined
  3406. * @__NL80211_BAND_ATTR_AFTER_LAST: internal use
  3407. */
  3408. enum nl80211_band_attr {
  3409. __NL80211_BAND_ATTR_INVALID,
  3410. NL80211_BAND_ATTR_FREQS,
  3411. NL80211_BAND_ATTR_RATES,
  3412. NL80211_BAND_ATTR_HT_MCS_SET,
  3413. NL80211_BAND_ATTR_HT_CAPA,
  3414. NL80211_BAND_ATTR_HT_AMPDU_FACTOR,
  3415. NL80211_BAND_ATTR_HT_AMPDU_DENSITY,
  3416. NL80211_BAND_ATTR_VHT_MCS_SET,
  3417. NL80211_BAND_ATTR_VHT_CAPA,
  3418. NL80211_BAND_ATTR_IFTYPE_DATA,
  3419. NL80211_BAND_ATTR_EDMG_CHANNELS,
  3420. NL80211_BAND_ATTR_EDMG_BW_CONFIG,
  3421. /* keep last */
  3422. __NL80211_BAND_ATTR_AFTER_LAST,
  3423. NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1
  3424. };
  3425. #define NL80211_BAND_ATTR_HT_CAPA NL80211_BAND_ATTR_HT_CAPA
  3426. /**
  3427. * enum nl80211_wmm_rule - regulatory wmm rule
  3428. *
  3429. * @__NL80211_WMMR_INVALID: attribute number 0 is reserved
  3430. * @NL80211_WMMR_CW_MIN: Minimum contention window slot.
  3431. * @NL80211_WMMR_CW_MAX: Maximum contention window slot.
  3432. * @NL80211_WMMR_AIFSN: Arbitration Inter Frame Space.
  3433. * @NL80211_WMMR_TXOP: Maximum allowed tx operation time.
  3434. * @nl80211_WMMR_MAX: highest possible wmm rule.
  3435. * @__NL80211_WMMR_LAST: Internal use.
  3436. */
  3437. enum nl80211_wmm_rule {
  3438. __NL80211_WMMR_INVALID,
  3439. NL80211_WMMR_CW_MIN,
  3440. NL80211_WMMR_CW_MAX,
  3441. NL80211_WMMR_AIFSN,
  3442. NL80211_WMMR_TXOP,
  3443. /* keep last */
  3444. __NL80211_WMMR_LAST,
  3445. NL80211_WMMR_MAX = __NL80211_WMMR_LAST - 1
  3446. };
  3447. /**
  3448. * enum nl80211_frequency_attr - frequency attributes
  3449. * @__NL80211_FREQUENCY_ATTR_INVALID: attribute number 0 is reserved
  3450. * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz
  3451. * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current
  3452. * regulatory domain.
  3453. * @NL80211_FREQUENCY_ATTR_NO_IR: no mechanisms that initiate radiation
  3454. * are permitted on this channel, this includes sending probe
  3455. * requests, or modes of operation that require beaconing.
  3456. * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory
  3457. * on this channel in current regulatory domain.
  3458. * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm
  3459. * (100 * dBm).
  3460. * @NL80211_FREQUENCY_ATTR_DFS_STATE: current state for DFS
  3461. * (enum nl80211_dfs_state)
  3462. * @NL80211_FREQUENCY_ATTR_DFS_TIME: time in miliseconds for how long
  3463. * this channel is in this DFS state.
  3464. * @NL80211_FREQUENCY_ATTR_NO_HT40_MINUS: HT40- isn't possible with this
  3465. * channel as the control channel
  3466. * @NL80211_FREQUENCY_ATTR_NO_HT40_PLUS: HT40+ isn't possible with this
  3467. * channel as the control channel
  3468. * @NL80211_FREQUENCY_ATTR_NO_80MHZ: any 80 MHz channel using this channel
  3469. * as the primary or any of the secondary channels isn't possible,
  3470. * this includes 80+80 channels
  3471. * @NL80211_FREQUENCY_ATTR_NO_160MHZ: any 160 MHz (but not 80+80) channel
  3472. * using this channel as the primary or any of the secondary channels
  3473. * isn't possible
  3474. * @NL80211_FREQUENCY_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds.
  3475. * @NL80211_FREQUENCY_ATTR_INDOOR_ONLY: Only indoor use is permitted on this
  3476. * channel. A channel that has the INDOOR_ONLY attribute can only be
  3477. * used when there is a clear assessment that the device is operating in
  3478. * an indoor surroundings, i.e., it is connected to AC power (and not
  3479. * through portable DC inverters) or is under the control of a master
  3480. * that is acting as an AP and is connected to AC power.
  3481. * @NL80211_FREQUENCY_ATTR_IR_CONCURRENT: IR operation is allowed on this
  3482. * channel if it's connected concurrently to a BSS on the same channel on
  3483. * the 2 GHz band or to a channel in the same UNII band (on the 5 GHz
  3484. * band), and IEEE80211_CHAN_RADAR is not set. Instantiating a GO or TDLS
  3485. * off-channel on a channel that has the IR_CONCURRENT attribute set can be
  3486. * done when there is a clear assessment that the device is operating under
  3487. * the guidance of an authorized master, i.e., setting up a GO or TDLS
  3488. * off-channel while the device is also connected to an AP with DFS and
  3489. * radar detection on the UNII band (it is up to user-space, i.e.,
  3490. * wpa_supplicant to perform the required verifications). Using this
  3491. * attribute for IR is disallowed for master interfaces (IBSS, AP).
  3492. * @NL80211_FREQUENCY_ATTR_NO_20MHZ: 20 MHz operation is not allowed
  3493. * on this channel in current regulatory domain.
  3494. * @NL80211_FREQUENCY_ATTR_NO_10MHZ: 10 MHz operation is not allowed
  3495. * on this channel in current regulatory domain.
  3496. * @NL80211_FREQUENCY_ATTR_WMM: this channel has wmm limitations.
  3497. * This is a nested attribute that contains the wmm limitation per AC.
  3498. * (see &enum nl80211_wmm_rule)
  3499. * @NL80211_FREQUENCY_ATTR_NO_HE: HE operation is not allowed on this channel
  3500. * in current regulatory domain.
  3501. * @NL80211_FREQUENCY_ATTR_OFFSET: frequency offset in KHz
  3502. * @NL80211_FREQUENCY_ATTR_1MHZ: 1 MHz operation is allowed
  3503. * on this channel in current regulatory domain.
  3504. * @NL80211_FREQUENCY_ATTR_2MHZ: 2 MHz operation is allowed
  3505. * on this channel in current regulatory domain.
  3506. * @NL80211_FREQUENCY_ATTR_4MHZ: 4 MHz operation is allowed
  3507. * on this channel in current regulatory domain.
  3508. * @NL80211_FREQUENCY_ATTR_8MHZ: 8 MHz operation is allowed
  3509. * on this channel in current regulatory domain.
  3510. * @NL80211_FREQUENCY_ATTR_16MHZ: 16 MHz operation is allowed
  3511. * on this channel in current regulatory domain.
  3512. * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number
  3513. * currently defined
  3514. * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
  3515. *
  3516. * See https://apps.fcc.gov/eas/comments/GetPublishedDocument.html?id=327&tn=528122
  3517. * for more information on the FCC description of the relaxations allowed
  3518. * by NL80211_FREQUENCY_ATTR_INDOOR_ONLY and
  3519. * NL80211_FREQUENCY_ATTR_IR_CONCURRENT.
  3520. */
  3521. enum nl80211_frequency_attr {
  3522. __NL80211_FREQUENCY_ATTR_INVALID,
  3523. NL80211_FREQUENCY_ATTR_FREQ,
  3524. NL80211_FREQUENCY_ATTR_DISABLED,
  3525. NL80211_FREQUENCY_ATTR_NO_IR,
  3526. __NL80211_FREQUENCY_ATTR_NO_IBSS,
  3527. NL80211_FREQUENCY_ATTR_RADAR,
  3528. NL80211_FREQUENCY_ATTR_MAX_TX_POWER,
  3529. NL80211_FREQUENCY_ATTR_DFS_STATE,
  3530. NL80211_FREQUENCY_ATTR_DFS_TIME,
  3531. NL80211_FREQUENCY_ATTR_NO_HT40_MINUS,
  3532. NL80211_FREQUENCY_ATTR_NO_HT40_PLUS,
  3533. NL80211_FREQUENCY_ATTR_NO_80MHZ,
  3534. NL80211_FREQUENCY_ATTR_NO_160MHZ,
  3535. NL80211_FREQUENCY_ATTR_DFS_CAC_TIME,
  3536. NL80211_FREQUENCY_ATTR_INDOOR_ONLY,
  3537. NL80211_FREQUENCY_ATTR_IR_CONCURRENT,
  3538. NL80211_FREQUENCY_ATTR_NO_20MHZ,
  3539. NL80211_FREQUENCY_ATTR_NO_10MHZ,
  3540. NL80211_FREQUENCY_ATTR_WMM,
  3541. NL80211_FREQUENCY_ATTR_NO_HE,
  3542. NL80211_FREQUENCY_ATTR_OFFSET,
  3543. NL80211_FREQUENCY_ATTR_1MHZ,
  3544. NL80211_FREQUENCY_ATTR_2MHZ,
  3545. NL80211_FREQUENCY_ATTR_4MHZ,
  3546. NL80211_FREQUENCY_ATTR_8MHZ,
  3547. NL80211_FREQUENCY_ATTR_16MHZ,
  3548. /* keep last */
  3549. __NL80211_FREQUENCY_ATTR_AFTER_LAST,
  3550. NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1
  3551. };
  3552. #define NL80211_FREQUENCY_ATTR_MAX_TX_POWER NL80211_FREQUENCY_ATTR_MAX_TX_POWER
  3553. #define NL80211_FREQUENCY_ATTR_PASSIVE_SCAN NL80211_FREQUENCY_ATTR_NO_IR
  3554. #define NL80211_FREQUENCY_ATTR_NO_IBSS NL80211_FREQUENCY_ATTR_NO_IR
  3555. #define NL80211_FREQUENCY_ATTR_NO_IR NL80211_FREQUENCY_ATTR_NO_IR
  3556. #define NL80211_FREQUENCY_ATTR_GO_CONCURRENT \
  3557. NL80211_FREQUENCY_ATTR_IR_CONCURRENT
  3558. /**
  3559. * enum nl80211_bitrate_attr - bitrate attributes
  3560. * @__NL80211_BITRATE_ATTR_INVALID: attribute number 0 is reserved
  3561. * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps
  3562. * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported
  3563. * in 2.4 GHz band.
  3564. * @NL80211_BITRATE_ATTR_MAX: highest bitrate attribute number
  3565. * currently defined
  3566. * @__NL80211_BITRATE_ATTR_AFTER_LAST: internal use
  3567. */
  3568. enum nl80211_bitrate_attr {
  3569. __NL80211_BITRATE_ATTR_INVALID,
  3570. NL80211_BITRATE_ATTR_RATE,
  3571. NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE,
  3572. /* keep last */
  3573. __NL80211_BITRATE_ATTR_AFTER_LAST,
  3574. NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1
  3575. };
  3576. /**
  3577. * enum nl80211_initiator - Indicates the initiator of a reg domain request
  3578. * @NL80211_REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world
  3579. * regulatory domain.
  3580. * @NL80211_REGDOM_SET_BY_USER: User asked the wireless core to set the
  3581. * regulatory domain.
  3582. * @NL80211_REGDOM_SET_BY_DRIVER: a wireless drivers has hinted to the
  3583. * wireless core it thinks its knows the regulatory domain we should be in.
  3584. * @NL80211_REGDOM_SET_BY_COUNTRY_IE: the wireless core has received an
  3585. * 802.11 country information element with regulatory information it
  3586. * thinks we should consider. cfg80211 only processes the country
  3587. * code from the IE, and relies on the regulatory domain information
  3588. * structure passed by userspace (CRDA) from our wireless-regdb.
  3589. * If a channel is enabled but the country code indicates it should
  3590. * be disabled we disable the channel and re-enable it upon disassociation.
  3591. */
  3592. enum nl80211_reg_initiator {
  3593. NL80211_REGDOM_SET_BY_CORE,
  3594. NL80211_REGDOM_SET_BY_USER,
  3595. NL80211_REGDOM_SET_BY_DRIVER,
  3596. NL80211_REGDOM_SET_BY_COUNTRY_IE,
  3597. };
  3598. /**
  3599. * enum nl80211_reg_type - specifies the type of regulatory domain
  3600. * @NL80211_REGDOM_TYPE_COUNTRY: the regulatory domain set is one that pertains
  3601. * to a specific country. When this is set you can count on the
  3602. * ISO / IEC 3166 alpha2 country code being valid.
  3603. * @NL80211_REGDOM_TYPE_WORLD: the regulatory set domain is the world regulatory
  3604. * domain.
  3605. * @NL80211_REGDOM_TYPE_CUSTOM_WORLD: the regulatory domain set is a custom
  3606. * driver specific world regulatory domain. These do not apply system-wide
  3607. * and are only applicable to the individual devices which have requested
  3608. * them to be applied.
  3609. * @NL80211_REGDOM_TYPE_INTERSECTION: the regulatory domain set is the product
  3610. * of an intersection between two regulatory domains -- the previously
  3611. * set regulatory domain on the system and the last accepted regulatory
  3612. * domain request to be processed.
  3613. */
  3614. enum nl80211_reg_type {
  3615. NL80211_REGDOM_TYPE_COUNTRY,
  3616. NL80211_REGDOM_TYPE_WORLD,
  3617. NL80211_REGDOM_TYPE_CUSTOM_WORLD,
  3618. NL80211_REGDOM_TYPE_INTERSECTION,
  3619. };
  3620. /**
  3621. * enum nl80211_reg_rule_attr - regulatory rule attributes
  3622. * @__NL80211_REG_RULE_ATTR_INVALID: attribute number 0 is reserved
  3623. * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional
  3624. * considerations for a given frequency range. These are the
  3625. * &enum nl80211_reg_rule_flags.
  3626. * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory
  3627. * rule in KHz. This is not a center of frequency but an actual regulatory
  3628. * band edge.
  3629. * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule
  3630. * in KHz. This is not a center a frequency but an actual regulatory
  3631. * band edge.
  3632. * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this
  3633. * frequency range, in KHz.
  3634. * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain
  3635. * for a given frequency range. The value is in mBi (100 * dBi).
  3636. * If you don't have one then don't send this.
  3637. * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for
  3638. * a given frequency range. The value is in mBm (100 * dBm).
  3639. * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds.
  3640. * If not present or 0 default CAC time will be used.
  3641. * @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number
  3642. * currently defined
  3643. * @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use
  3644. */
  3645. enum nl80211_reg_rule_attr {
  3646. __NL80211_REG_RULE_ATTR_INVALID,
  3647. NL80211_ATTR_REG_RULE_FLAGS,
  3648. NL80211_ATTR_FREQ_RANGE_START,
  3649. NL80211_ATTR_FREQ_RANGE_END,
  3650. NL80211_ATTR_FREQ_RANGE_MAX_BW,
  3651. NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN,
  3652. NL80211_ATTR_POWER_RULE_MAX_EIRP,
  3653. NL80211_ATTR_DFS_CAC_TIME,
  3654. /* keep last */
  3655. __NL80211_REG_RULE_ATTR_AFTER_LAST,
  3656. NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1
  3657. };
  3658. /**
  3659. * enum nl80211_sched_scan_match_attr - scheduled scan match attributes
  3660. * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved
  3661. * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching,
  3662. * only report BSS with matching SSID.
  3663. * (This cannot be used together with BSSID.)
  3664. * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a
  3665. * BSS in scan results. Filtering is turned off if not specified. Note that
  3666. * if this attribute is in a match set of its own, then it is treated as
  3667. * the default value for all matchsets with an SSID, rather than being a
  3668. * matchset of its own without an RSSI filter. This is due to problems with
  3669. * how this API was implemented in the past. Also, due to the same problem,
  3670. * the only way to create a matchset with only an RSSI filter (with this
  3671. * attribute) is if there's only a single matchset with the RSSI attribute.
  3672. * @NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI: Flag indicating whether
  3673. * %NL80211_SCHED_SCAN_MATCH_ATTR_RSSI to be used as absolute RSSI or
  3674. * relative to current bss's RSSI.
  3675. * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST: When present the RSSI level for
  3676. * BSS-es in the specified band is to be adjusted before doing
  3677. * RSSI-based BSS selection. The attribute value is a packed structure
  3678. * value as specified by &struct nl80211_bss_select_rssi_adjust.
  3679. * @NL80211_SCHED_SCAN_MATCH_ATTR_BSSID: BSSID to be used for matching
  3680. * (this cannot be used together with SSID).
  3681. * @NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI: Nested attribute that carries the
  3682. * band specific minimum rssi thresholds for the bands defined in
  3683. * enum nl80211_band. The minimum rssi threshold value(s32) specific to a
  3684. * band shall be encapsulated in attribute with type value equals to one
  3685. * of the NL80211_BAND_* defined in enum nl80211_band. For example, the
  3686. * minimum rssi threshold value for 2.4GHZ band shall be encapsulated
  3687. * within an attribute of type NL80211_BAND_2GHZ. And one or more of such
  3688. * attributes will be nested within this attribute.
  3689. * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter
  3690. * attribute number currently defined
  3691. * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use
  3692. */
  3693. enum nl80211_sched_scan_match_attr {
  3694. __NL80211_SCHED_SCAN_MATCH_ATTR_INVALID,
  3695. NL80211_SCHED_SCAN_MATCH_ATTR_SSID,
  3696. NL80211_SCHED_SCAN_MATCH_ATTR_RSSI,
  3697. NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI,
  3698. NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST,
  3699. NL80211_SCHED_SCAN_MATCH_ATTR_BSSID,
  3700. NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI,
  3701. /* keep last */
  3702. __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST,
  3703. NL80211_SCHED_SCAN_MATCH_ATTR_MAX =
  3704. __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST - 1
  3705. };
  3706. /* only for backward compatibility */
  3707. #define NL80211_ATTR_SCHED_SCAN_MATCH_SSID NL80211_SCHED_SCAN_MATCH_ATTR_SSID
  3708. /**
  3709. * enum nl80211_reg_rule_flags - regulatory rule flags
  3710. *
  3711. * @NL80211_RRF_NO_OFDM: OFDM modulation not allowed
  3712. * @NL80211_RRF_NO_CCK: CCK modulation not allowed
  3713. * @NL80211_RRF_NO_INDOOR: indoor operation not allowed
  3714. * @NL80211_RRF_NO_OUTDOOR: outdoor operation not allowed
  3715. * @NL80211_RRF_DFS: DFS support is required to be used
  3716. * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links
  3717. * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links
  3718. * @NL80211_RRF_NO_IR: no mechanisms that initiate radiation are allowed,
  3719. * this includes probe requests or modes of operation that require
  3720. * beaconing.
  3721. * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated
  3722. * base on contiguous rules and wider channels will be allowed to cross
  3723. * multiple contiguous/overlapping frequency ranges.
  3724. * @NL80211_RRF_IR_CONCURRENT: See %NL80211_FREQUENCY_ATTR_IR_CONCURRENT
  3725. * @NL80211_RRF_NO_HT40MINUS: channels can't be used in HT40- operation
  3726. * @NL80211_RRF_NO_HT40PLUS: channels can't be used in HT40+ operation
  3727. * @NL80211_RRF_NO_80MHZ: 80MHz operation not allowed
  3728. * @NL80211_RRF_NO_160MHZ: 160MHz operation not allowed
  3729. * @NL80211_RRF_NO_HE: HE operation not allowed
  3730. */
  3731. enum nl80211_reg_rule_flags {
  3732. NL80211_RRF_NO_OFDM = 1<<0,
  3733. NL80211_RRF_NO_CCK = 1<<1,
  3734. NL80211_RRF_NO_INDOOR = 1<<2,
  3735. NL80211_RRF_NO_OUTDOOR = 1<<3,
  3736. NL80211_RRF_DFS = 1<<4,
  3737. NL80211_RRF_PTP_ONLY = 1<<5,
  3738. NL80211_RRF_PTMP_ONLY = 1<<6,
  3739. NL80211_RRF_NO_IR = 1<<7,
  3740. __NL80211_RRF_NO_IBSS = 1<<8,
  3741. NL80211_RRF_AUTO_BW = 1<<11,
  3742. NL80211_RRF_IR_CONCURRENT = 1<<12,
  3743. NL80211_RRF_NO_HT40MINUS = 1<<13,
  3744. NL80211_RRF_NO_HT40PLUS = 1<<14,
  3745. NL80211_RRF_NO_80MHZ = 1<<15,
  3746. NL80211_RRF_NO_160MHZ = 1<<16,
  3747. NL80211_RRF_NO_HE = 1<<17,
  3748. };
  3749. #define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR
  3750. #define NL80211_RRF_NO_IBSS NL80211_RRF_NO_IR
  3751. #define NL80211_RRF_NO_IR NL80211_RRF_NO_IR
  3752. #define NL80211_RRF_NO_HT40 (NL80211_RRF_NO_HT40MINUS |\
  3753. NL80211_RRF_NO_HT40PLUS)
  3754. #define NL80211_RRF_GO_CONCURRENT NL80211_RRF_IR_CONCURRENT
  3755. /* For backport compatibility with older userspace */
  3756. #define NL80211_RRF_NO_IR_ALL (NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS)
  3757. /**
  3758. * enum nl80211_dfs_regions - regulatory DFS regions
  3759. *
  3760. * @NL80211_DFS_UNSET: Country has no DFS master region specified
  3761. * @NL80211_DFS_FCC: Country follows DFS master rules from FCC
  3762. * @NL80211_DFS_ETSI: Country follows DFS master rules from ETSI
  3763. * @NL80211_DFS_JP: Country follows DFS master rules from JP/MKK/Telec
  3764. */
  3765. enum nl80211_dfs_regions {
  3766. NL80211_DFS_UNSET = 0,
  3767. NL80211_DFS_FCC = 1,
  3768. NL80211_DFS_ETSI = 2,
  3769. NL80211_DFS_JP = 3,
  3770. };
  3771. /**
  3772. * enum nl80211_user_reg_hint_type - type of user regulatory hint
  3773. *
  3774. * @NL80211_USER_REG_HINT_USER: a user sent the hint. This is always
  3775. * assumed if the attribute is not set.
  3776. * @NL80211_USER_REG_HINT_CELL_BASE: the hint comes from a cellular
  3777. * base station. Device drivers that have been tested to work
  3778. * properly to support this type of hint can enable these hints
  3779. * by setting the NL80211_FEATURE_CELL_BASE_REG_HINTS feature
  3780. * capability on the struct wiphy. The wireless core will
  3781. * ignore all cell base station hints until at least one device
  3782. * present has been registered with the wireless core that
  3783. * has listed NL80211_FEATURE_CELL_BASE_REG_HINTS as a
  3784. * supported feature.
  3785. * @NL80211_USER_REG_HINT_INDOOR: a user sent an hint indicating that the
  3786. * platform is operating in an indoor environment.
  3787. */
  3788. enum nl80211_user_reg_hint_type {
  3789. NL80211_USER_REG_HINT_USER = 0,
  3790. NL80211_USER_REG_HINT_CELL_BASE = 1,
  3791. NL80211_USER_REG_HINT_INDOOR = 2,
  3792. };
  3793. /**
  3794. * enum nl80211_survey_info - survey information
  3795. *
  3796. * These attribute types are used with %NL80211_ATTR_SURVEY_INFO
  3797. * when getting information about a survey.
  3798. *
  3799. * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved
  3800. * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel
  3801. * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm)
  3802. * @NL80211_SURVEY_INFO_IN_USE: channel is currently being used
  3803. * @NL80211_SURVEY_INFO_TIME: amount of time (in ms) that the radio
  3804. * was turned on (on channel or globally)
  3805. * @NL80211_SURVEY_INFO_TIME_BUSY: amount of the time the primary
  3806. * channel was sensed busy (either due to activity or energy detect)
  3807. * @NL80211_SURVEY_INFO_TIME_EXT_BUSY: amount of time the extension
  3808. * channel was sensed busy
  3809. * @NL80211_SURVEY_INFO_TIME_RX: amount of time the radio spent
  3810. * receiving data (on channel or globally)
  3811. * @NL80211_SURVEY_INFO_TIME_TX: amount of time the radio spent
  3812. * transmitting data (on channel or globally)
  3813. * @NL80211_SURVEY_INFO_TIME_SCAN: time the radio spent for scan
  3814. * (on this channel or globally)
  3815. * @NL80211_SURVEY_INFO_PAD: attribute used for padding for 64-bit alignment
  3816. * @NL80211_SURVEY_INFO_TIME_BSS_RX: amount of time the radio spent
  3817. * receiving frames destined to the local BSS
  3818. * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number
  3819. * currently defined
  3820. * @NL80211_SURVEY_INFO_FREQUENCY_OFFSET: center frequency offset in KHz
  3821. * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use
  3822. */
  3823. enum nl80211_survey_info {
  3824. __NL80211_SURVEY_INFO_INVALID,
  3825. NL80211_SURVEY_INFO_FREQUENCY,
  3826. NL80211_SURVEY_INFO_NOISE,
  3827. NL80211_SURVEY_INFO_IN_USE,
  3828. NL80211_SURVEY_INFO_TIME,
  3829. NL80211_SURVEY_INFO_TIME_BUSY,
  3830. NL80211_SURVEY_INFO_TIME_EXT_BUSY,
  3831. NL80211_SURVEY_INFO_TIME_RX,
  3832. NL80211_SURVEY_INFO_TIME_TX,
  3833. NL80211_SURVEY_INFO_TIME_SCAN,
  3834. NL80211_SURVEY_INFO_PAD,
  3835. NL80211_SURVEY_INFO_TIME_BSS_RX,
  3836. NL80211_SURVEY_INFO_FREQUENCY_OFFSET,
  3837. /* keep last */
  3838. __NL80211_SURVEY_INFO_AFTER_LAST,
  3839. NL80211_SURVEY_INFO_MAX = __NL80211_SURVEY_INFO_AFTER_LAST - 1
  3840. };
  3841. /* keep old names for compatibility */
  3842. #define NL80211_SURVEY_INFO_CHANNEL_TIME NL80211_SURVEY_INFO_TIME
  3843. #define NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY NL80211_SURVEY_INFO_TIME_BUSY
  3844. #define NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY NL80211_SURVEY_INFO_TIME_EXT_BUSY
  3845. #define NL80211_SURVEY_INFO_CHANNEL_TIME_RX NL80211_SURVEY_INFO_TIME_RX
  3846. #define NL80211_SURVEY_INFO_CHANNEL_TIME_TX NL80211_SURVEY_INFO_TIME_TX
  3847. /**
  3848. * enum nl80211_mntr_flags - monitor configuration flags
  3849. *
  3850. * Monitor configuration flags.
  3851. *
  3852. * @__NL80211_MNTR_FLAG_INVALID: reserved
  3853. *
  3854. * @NL80211_MNTR_FLAG_FCSFAIL: pass frames with bad FCS
  3855. * @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP
  3856. * @NL80211_MNTR_FLAG_CONTROL: pass control frames
  3857. * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering
  3858. * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing.
  3859. * overrides all other flags.
  3860. * @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address
  3861. * and ACK incoming unicast packets.
  3862. *
  3863. * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use
  3864. * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag
  3865. */
  3866. enum nl80211_mntr_flags {
  3867. __NL80211_MNTR_FLAG_INVALID,
  3868. NL80211_MNTR_FLAG_FCSFAIL,
  3869. NL80211_MNTR_FLAG_PLCPFAIL,
  3870. NL80211_MNTR_FLAG_CONTROL,
  3871. NL80211_MNTR_FLAG_OTHER_BSS,
  3872. NL80211_MNTR_FLAG_COOK_FRAMES,
  3873. NL80211_MNTR_FLAG_ACTIVE,
  3874. /* keep last */
  3875. __NL80211_MNTR_FLAG_AFTER_LAST,
  3876. NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1
  3877. };
  3878. /**
  3879. * enum nl80211_mesh_power_mode - mesh power save modes
  3880. *
  3881. * @NL80211_MESH_POWER_UNKNOWN: The mesh power mode of the mesh STA is
  3882. * not known or has not been set yet.
  3883. * @NL80211_MESH_POWER_ACTIVE: Active mesh power mode. The mesh STA is
  3884. * in Awake state all the time.
  3885. * @NL80211_MESH_POWER_LIGHT_SLEEP: Light sleep mode. The mesh STA will
  3886. * alternate between Active and Doze states, but will wake up for
  3887. * neighbor's beacons.
  3888. * @NL80211_MESH_POWER_DEEP_SLEEP: Deep sleep mode. The mesh STA will
  3889. * alternate between Active and Doze states, but may not wake up
  3890. * for neighbor's beacons.
  3891. *
  3892. * @__NL80211_MESH_POWER_AFTER_LAST - internal use
  3893. * @NL80211_MESH_POWER_MAX - highest possible power save level
  3894. */
  3895. enum nl80211_mesh_power_mode {
  3896. NL80211_MESH_POWER_UNKNOWN,
  3897. NL80211_MESH_POWER_ACTIVE,
  3898. NL80211_MESH_POWER_LIGHT_SLEEP,
  3899. NL80211_MESH_POWER_DEEP_SLEEP,
  3900. __NL80211_MESH_POWER_AFTER_LAST,
  3901. NL80211_MESH_POWER_MAX = __NL80211_MESH_POWER_AFTER_LAST - 1
  3902. };
  3903. /**
  3904. * enum nl80211_meshconf_params - mesh configuration parameters
  3905. *
  3906. * Mesh configuration parameters. These can be changed while the mesh is
  3907. * active.
  3908. *
  3909. * @__NL80211_MESHCONF_INVALID: internal use
  3910. *
  3911. * @NL80211_MESHCONF_RETRY_TIMEOUT: specifies the initial retry timeout in
  3912. * millisecond units, used by the Peer Link Open message
  3913. *
  3914. * @NL80211_MESHCONF_CONFIRM_TIMEOUT: specifies the initial confirm timeout, in
  3915. * millisecond units, used by the peer link management to close a peer link
  3916. *
  3917. * @NL80211_MESHCONF_HOLDING_TIMEOUT: specifies the holding timeout, in
  3918. * millisecond units
  3919. *
  3920. * @NL80211_MESHCONF_MAX_PEER_LINKS: maximum number of peer links allowed
  3921. * on this mesh interface
  3922. *
  3923. * @NL80211_MESHCONF_MAX_RETRIES: specifies the maximum number of peer link
  3924. * open retries that can be sent to establish a new peer link instance in a
  3925. * mesh
  3926. *
  3927. * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh
  3928. * point.
  3929. *
  3930. * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically open
  3931. * peer links when we detect compatible mesh peers. Disabled if
  3932. * @NL80211_MESH_SETUP_USERSPACE_MPM or @NL80211_MESH_SETUP_USERSPACE_AMPE are
  3933. * set.
  3934. *
  3935. * @NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES: the number of action frames
  3936. * containing a PREQ that an MP can send to a particular destination (path
  3937. * target)
  3938. *
  3939. * @NL80211_MESHCONF_PATH_REFRESH_TIME: how frequently to refresh mesh paths
  3940. * (in milliseconds)
  3941. *
  3942. * @NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT: minimum length of time to wait
  3943. * until giving up on a path discovery (in milliseconds)
  3944. *
  3945. * @NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT: The time (in TUs) for which mesh
  3946. * points receiving a PREQ shall consider the forwarding information from
  3947. * the root to be valid. (TU = time unit)
  3948. *
  3949. * @NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL: The minimum interval of time (in
  3950. * TUs) during which an MP can send only one action frame containing a PREQ
  3951. * reference element
  3952. *
  3953. * @NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: The interval of time (in TUs)
  3954. * that it takes for an HWMP information element to propagate across the
  3955. * mesh
  3956. *
  3957. * @NL80211_MESHCONF_HWMP_ROOTMODE: whether root mode is enabled or not
  3958. *
  3959. * @NL80211_MESHCONF_ELEMENT_TTL: specifies the value of TTL field set at a
  3960. * source mesh point for path selection elements.
  3961. *
  3962. * @NL80211_MESHCONF_HWMP_RANN_INTERVAL: The interval of time (in TUs) between
  3963. * root announcements are transmitted.
  3964. *
  3965. * @NL80211_MESHCONF_GATE_ANNOUNCEMENTS: Advertise that this mesh station has
  3966. * access to a broader network beyond the MBSS. This is done via Root
  3967. * Announcement frames.
  3968. *
  3969. * @NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL: The minimum interval of time (in
  3970. * TUs) during which a mesh STA can send only one Action frame containing a
  3971. * PERR element.
  3972. *
  3973. * @NL80211_MESHCONF_FORWARDING: set Mesh STA as forwarding or non-forwarding
  3974. * or forwarding entity (default is TRUE - forwarding entity)
  3975. *
  3976. * @NL80211_MESHCONF_RSSI_THRESHOLD: RSSI threshold in dBm. This specifies the
  3977. * threshold for average signal strength of candidate station to establish
  3978. * a peer link.
  3979. *
  3980. * @NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR: maximum number of neighbors
  3981. * to synchronize to for 11s default synchronization method
  3982. * (see 11C.12.2.2)
  3983. *
  3984. * @NL80211_MESHCONF_HT_OPMODE: set mesh HT protection mode.
  3985. *
  3986. * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute
  3987. *
  3988. * @NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT: The time (in TUs) for
  3989. * which mesh STAs receiving a proactive PREQ shall consider the forwarding
  3990. * information to the root mesh STA to be valid.
  3991. *
  3992. * @NL80211_MESHCONF_HWMP_ROOT_INTERVAL: The interval of time (in TUs) between
  3993. * proactive PREQs are transmitted.
  3994. *
  3995. * @NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL: The minimum interval of time
  3996. * (in TUs) during which a mesh STA can send only one Action frame
  3997. * containing a PREQ element for root path confirmation.
  3998. *
  3999. * @NL80211_MESHCONF_POWER_MODE: Default mesh power mode for new peer links.
  4000. * type &enum nl80211_mesh_power_mode (u32)
  4001. *
  4002. * @NL80211_MESHCONF_AWAKE_WINDOW: awake window duration (in TUs)
  4003. *
  4004. * @NL80211_MESHCONF_PLINK_TIMEOUT: If no tx activity is seen from a STA we've
  4005. * established peering with for longer than this time (in seconds), then
  4006. * remove it from the STA's list of peers. You may set this to 0 to disable
  4007. * the removal of the STA. Default is 30 minutes.
  4008. *
  4009. * @NL80211_MESHCONF_CONNECTED_TO_GATE: If set to true then this mesh STA
  4010. * will advertise that it is connected to a gate in the mesh formation
  4011. * field. If left unset then the mesh formation field will only
  4012. * advertise such if there is an active root mesh path.
  4013. *
  4014. * @NL80211_MESHCONF_NOLEARN: Try to avoid multi-hop path discovery (e.g.
  4015. * PREQ/PREP for HWMP) if the destination is a direct neighbor. Note that
  4016. * this might not be the optimal decision as a multi-hop route might be
  4017. * better. So if using this setting you will likely also want to disable
  4018. * dot11MeshForwarding and use another mesh routing protocol on top.
  4019. *
  4020. * @NL80211_MESHCONF_CONNECTED_TO_AS: If set to true then this mesh STA
  4021. * will advertise that it is connected to a authentication server
  4022. * in the mesh formation field.
  4023. *
  4024. * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use
  4025. */
  4026. enum nl80211_meshconf_params {
  4027. __NL80211_MESHCONF_INVALID,
  4028. NL80211_MESHCONF_RETRY_TIMEOUT,
  4029. NL80211_MESHCONF_CONFIRM_TIMEOUT,
  4030. NL80211_MESHCONF_HOLDING_TIMEOUT,
  4031. NL80211_MESHCONF_MAX_PEER_LINKS,
  4032. NL80211_MESHCONF_MAX_RETRIES,
  4033. NL80211_MESHCONF_TTL,
  4034. NL80211_MESHCONF_AUTO_OPEN_PLINKS,
  4035. NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES,
  4036. NL80211_MESHCONF_PATH_REFRESH_TIME,
  4037. NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT,
  4038. NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT,
  4039. NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL,
  4040. NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME,
  4041. NL80211_MESHCONF_HWMP_ROOTMODE,
  4042. NL80211_MESHCONF_ELEMENT_TTL,
  4043. NL80211_MESHCONF_HWMP_RANN_INTERVAL,
  4044. NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
  4045. NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL,
  4046. NL80211_MESHCONF_FORWARDING,
  4047. NL80211_MESHCONF_RSSI_THRESHOLD,
  4048. NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR,
  4049. NL80211_MESHCONF_HT_OPMODE,
  4050. NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT,
  4051. NL80211_MESHCONF_HWMP_ROOT_INTERVAL,
  4052. NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL,
  4053. NL80211_MESHCONF_POWER_MODE,
  4054. NL80211_MESHCONF_AWAKE_WINDOW,
  4055. NL80211_MESHCONF_PLINK_TIMEOUT,
  4056. NL80211_MESHCONF_CONNECTED_TO_GATE,
  4057. NL80211_MESHCONF_NOLEARN,
  4058. NL80211_MESHCONF_CONNECTED_TO_AS,
  4059. /* keep last */
  4060. __NL80211_MESHCONF_ATTR_AFTER_LAST,
  4061. NL80211_MESHCONF_ATTR_MAX = __NL80211_MESHCONF_ATTR_AFTER_LAST - 1
  4062. };
  4063. /**
  4064. * enum nl80211_mesh_setup_params - mesh setup parameters
  4065. *
  4066. * Mesh setup parameters. These are used to start/join a mesh and cannot be
  4067. * changed while the mesh is active.
  4068. *
  4069. * @__NL80211_MESH_SETUP_INVALID: Internal use
  4070. *
  4071. * @NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL: Enable this option to use a
  4072. * vendor specific path selection algorithm or disable it to use the
  4073. * default HWMP.
  4074. *
  4075. * @NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC: Enable this option to use a
  4076. * vendor specific path metric or disable it to use the default Airtime
  4077. * metric.
  4078. *
  4079. * @NL80211_MESH_SETUP_IE: Information elements for this mesh, for instance, a
  4080. * robust security network ie, or a vendor specific information element
  4081. * that vendors will use to identify the path selection methods and
  4082. * metrics in use.
  4083. *
  4084. * @NL80211_MESH_SETUP_USERSPACE_AUTH: Enable this option if an authentication
  4085. * daemon will be authenticating mesh candidates.
  4086. *
  4087. * @NL80211_MESH_SETUP_USERSPACE_AMPE: Enable this option if an authentication
  4088. * daemon will be securing peer link frames. AMPE is a secured version of
  4089. * Mesh Peering Management (MPM) and is implemented with the assistance of
  4090. * a userspace daemon. When this flag is set, the kernel will send peer
  4091. * management frames to a userspace daemon that will implement AMPE
  4092. * functionality (security capabilities selection, key confirmation, and
  4093. * key management). When the flag is unset (default), the kernel can
  4094. * autonomously complete (unsecured) mesh peering without the need of a
  4095. * userspace daemon.
  4096. *
  4097. * @NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC: Enable this option to use a
  4098. * vendor specific synchronization method or disable it to use the default
  4099. * neighbor offset synchronization
  4100. *
  4101. * @NL80211_MESH_SETUP_USERSPACE_MPM: Enable this option if userspace will
  4102. * implement an MPM which handles peer allocation and state.
  4103. *
  4104. * @NL80211_MESH_SETUP_AUTH_PROTOCOL: Inform the kernel of the authentication
  4105. * method (u8, as defined in IEEE 8.4.2.100.6, e.g. 0x1 for SAE).
  4106. * Default is no authentication method required.
  4107. *
  4108. * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number
  4109. *
  4110. * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use
  4111. */
  4112. enum nl80211_mesh_setup_params {
  4113. __NL80211_MESH_SETUP_INVALID,
  4114. NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL,
  4115. NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC,
  4116. NL80211_MESH_SETUP_IE,
  4117. NL80211_MESH_SETUP_USERSPACE_AUTH,
  4118. NL80211_MESH_SETUP_USERSPACE_AMPE,
  4119. NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC,
  4120. NL80211_MESH_SETUP_USERSPACE_MPM,
  4121. NL80211_MESH_SETUP_AUTH_PROTOCOL,
  4122. /* keep last */
  4123. __NL80211_MESH_SETUP_ATTR_AFTER_LAST,
  4124. NL80211_MESH_SETUP_ATTR_MAX = __NL80211_MESH_SETUP_ATTR_AFTER_LAST - 1
  4125. };
  4126. /**
  4127. * enum nl80211_txq_attr - TX queue parameter attributes
  4128. * @__NL80211_TXQ_ATTR_INVALID: Attribute number 0 is reserved
  4129. * @NL80211_TXQ_ATTR_AC: AC identifier (NL80211_AC_*)
  4130. * @NL80211_TXQ_ATTR_TXOP: Maximum burst time in units of 32 usecs, 0 meaning
  4131. * disabled
  4132. * @NL80211_TXQ_ATTR_CWMIN: Minimum contention window [a value of the form
  4133. * 2^n-1 in the range 1..32767]
  4134. * @NL80211_TXQ_ATTR_CWMAX: Maximum contention window [a value of the form
  4135. * 2^n-1 in the range 1..32767]
  4136. * @NL80211_TXQ_ATTR_AIFS: Arbitration interframe space [0..255]
  4137. * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal
  4138. * @NL80211_TXQ_ATTR_MAX: Maximum TXQ attribute number
  4139. */
  4140. enum nl80211_txq_attr {
  4141. __NL80211_TXQ_ATTR_INVALID,
  4142. NL80211_TXQ_ATTR_AC,
  4143. NL80211_TXQ_ATTR_TXOP,
  4144. NL80211_TXQ_ATTR_CWMIN,
  4145. NL80211_TXQ_ATTR_CWMAX,
  4146. NL80211_TXQ_ATTR_AIFS,
  4147. /* keep last */
  4148. __NL80211_TXQ_ATTR_AFTER_LAST,
  4149. NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1
  4150. };
  4151. enum nl80211_ac {
  4152. NL80211_AC_VO,
  4153. NL80211_AC_VI,
  4154. NL80211_AC_BE,
  4155. NL80211_AC_BK,
  4156. NL80211_NUM_ACS
  4157. };
  4158. /* backward compat */
  4159. #define NL80211_TXQ_ATTR_QUEUE NL80211_TXQ_ATTR_AC
  4160. #define NL80211_TXQ_Q_VO NL80211_AC_VO
  4161. #define NL80211_TXQ_Q_VI NL80211_AC_VI
  4162. #define NL80211_TXQ_Q_BE NL80211_AC_BE
  4163. #define NL80211_TXQ_Q_BK NL80211_AC_BK
  4164. /**
  4165. * enum nl80211_channel_type - channel type
  4166. * @NL80211_CHAN_NO_HT: 20 MHz, non-HT channel
  4167. * @NL80211_CHAN_HT20: 20 MHz HT channel
  4168. * @NL80211_CHAN_HT40MINUS: HT40 channel, secondary channel
  4169. * below the control channel
  4170. * @NL80211_CHAN_HT40PLUS: HT40 channel, secondary channel
  4171. * above the control channel
  4172. */
  4173. enum nl80211_channel_type {
  4174. NL80211_CHAN_NO_HT,
  4175. NL80211_CHAN_HT20,
  4176. NL80211_CHAN_HT40MINUS,
  4177. NL80211_CHAN_HT40PLUS
  4178. };
  4179. /**
  4180. * enum nl80211_key_mode - Key mode
  4181. *
  4182. * @NL80211_KEY_RX_TX: (Default)
  4183. * Key can be used for Rx and Tx immediately
  4184. *
  4185. * The following modes can only be selected for unicast keys and when the
  4186. * driver supports @NL80211_EXT_FEATURE_EXT_KEY_ID:
  4187. *
  4188. * @NL80211_KEY_NO_TX: Only allowed in combination with @NL80211_CMD_NEW_KEY:
  4189. * Unicast key can only be used for Rx, Tx not allowed, yet
  4190. * @NL80211_KEY_SET_TX: Only allowed in combination with @NL80211_CMD_SET_KEY:
  4191. * The unicast key identified by idx and mac is cleared for Tx and becomes
  4192. * the preferred Tx key for the station.
  4193. */
  4194. enum nl80211_key_mode {
  4195. NL80211_KEY_RX_TX,
  4196. NL80211_KEY_NO_TX,
  4197. NL80211_KEY_SET_TX
  4198. };
  4199. /**
  4200. * enum nl80211_chan_width - channel width definitions
  4201. *
  4202. * These values are used with the %NL80211_ATTR_CHANNEL_WIDTH
  4203. * attribute.
  4204. *
  4205. * @NL80211_CHAN_WIDTH_20_NOHT: 20 MHz, non-HT channel
  4206. * @NL80211_CHAN_WIDTH_20: 20 MHz HT channel
  4207. * @NL80211_CHAN_WIDTH_40: 40 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
  4208. * attribute must be provided as well
  4209. * @NL80211_CHAN_WIDTH_80: 80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
  4210. * attribute must be provided as well
  4211. * @NL80211_CHAN_WIDTH_80P80: 80+80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
  4212. * and %NL80211_ATTR_CENTER_FREQ2 attributes must be provided as well
  4213. * @NL80211_CHAN_WIDTH_160: 160 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
  4214. * attribute must be provided as well
  4215. * @NL80211_CHAN_WIDTH_5: 5 MHz OFDM channel
  4216. * @NL80211_CHAN_WIDTH_10: 10 MHz OFDM channel
  4217. * @NL80211_CHAN_WIDTH_1: 1 MHz OFDM channel
  4218. * @NL80211_CHAN_WIDTH_2: 2 MHz OFDM channel
  4219. * @NL80211_CHAN_WIDTH_4: 4 MHz OFDM channel
  4220. * @NL80211_CHAN_WIDTH_8: 8 MHz OFDM channel
  4221. * @NL80211_CHAN_WIDTH_16: 16 MHz OFDM channel
  4222. */
  4223. enum nl80211_chan_width {
  4224. NL80211_CHAN_WIDTH_20_NOHT,
  4225. NL80211_CHAN_WIDTH_20,
  4226. NL80211_CHAN_WIDTH_40,
  4227. NL80211_CHAN_WIDTH_80,
  4228. NL80211_CHAN_WIDTH_80P80,
  4229. NL80211_CHAN_WIDTH_160,
  4230. NL80211_CHAN_WIDTH_5,
  4231. NL80211_CHAN_WIDTH_10,
  4232. NL80211_CHAN_WIDTH_1,
  4233. NL80211_CHAN_WIDTH_2,
  4234. NL80211_CHAN_WIDTH_4,
  4235. NL80211_CHAN_WIDTH_8,
  4236. NL80211_CHAN_WIDTH_16,
  4237. };
  4238. /**
  4239. * enum nl80211_bss_scan_width - control channel width for a BSS
  4240. *
  4241. * These values are used with the %NL80211_BSS_CHAN_WIDTH attribute.
  4242. *
  4243. * @NL80211_BSS_CHAN_WIDTH_20: control channel is 20 MHz wide or compatible
  4244. * @NL80211_BSS_CHAN_WIDTH_10: control channel is 10 MHz wide
  4245. * @NL80211_BSS_CHAN_WIDTH_5: control channel is 5 MHz wide
  4246. * @NL80211_BSS_CHAN_WIDTH_1: control channel is 1 MHz wide
  4247. * @NL80211_BSS_CHAN_WIDTH_2: control channel is 2 MHz wide
  4248. */
  4249. enum nl80211_bss_scan_width {
  4250. NL80211_BSS_CHAN_WIDTH_20,
  4251. NL80211_BSS_CHAN_WIDTH_10,
  4252. NL80211_BSS_CHAN_WIDTH_5,
  4253. NL80211_BSS_CHAN_WIDTH_1,
  4254. NL80211_BSS_CHAN_WIDTH_2,
  4255. };
  4256. /**
  4257. * enum nl80211_bss - netlink attributes for a BSS
  4258. *
  4259. * @__NL80211_BSS_INVALID: invalid
  4260. * @NL80211_BSS_BSSID: BSSID of the BSS (6 octets)
  4261. * @NL80211_BSS_FREQUENCY: frequency in MHz (u32)
  4262. * @NL80211_BSS_TSF: TSF of the received probe response/beacon (u64)
  4263. * (if @NL80211_BSS_PRESP_DATA is present then this is known to be
  4264. * from a probe response, otherwise it may be from the same beacon
  4265. * that the NL80211_BSS_BEACON_TSF will be from)
  4266. * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16)
  4267. * @NL80211_BSS_CAPABILITY: capability field (CPU order, u16)
  4268. * @NL80211_BSS_INFORMATION_ELEMENTS: binary attribute containing the
  4269. * raw information elements from the probe response/beacon (bin);
  4270. * if the %NL80211_BSS_BEACON_IES attribute is present and the data is
  4271. * different then the IEs here are from a Probe Response frame; otherwise
  4272. * they are from a Beacon frame.
  4273. * However, if the driver does not indicate the source of the IEs, these
  4274. * IEs may be from either frame subtype.
  4275. * If present, the @NL80211_BSS_PRESP_DATA attribute indicates that the
  4276. * data here is known to be from a probe response, without any heuristics.
  4277. * @NL80211_BSS_SIGNAL_MBM: signal strength of probe response/beacon
  4278. * in mBm (100 * dBm) (s32)
  4279. * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon
  4280. * in unspecified units, scaled to 0..100 (u8)
  4281. * @NL80211_BSS_STATUS: status, if this BSS is "used"
  4282. * @NL80211_BSS_SEEN_MS_AGO: age of this BSS entry in ms
  4283. * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information
  4284. * elements from a Beacon frame (bin); not present if no Beacon frame has
  4285. * yet been received
  4286. * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel
  4287. * (u32, enum nl80211_bss_scan_width)
  4288. * @NL80211_BSS_BEACON_TSF: TSF of the last received beacon (u64)
  4289. * (not present if no beacon frame has been received yet)
  4290. * @NL80211_BSS_PRESP_DATA: the data in @NL80211_BSS_INFORMATION_ELEMENTS and
  4291. * @NL80211_BSS_TSF is known to be from a probe response (flag attribute)
  4292. * @NL80211_BSS_LAST_SEEN_BOOTTIME: CLOCK_BOOTTIME timestamp when this entry
  4293. * was last updated by a received frame. The value is expected to be
  4294. * accurate to about 10ms. (u64, nanoseconds)
  4295. * @NL80211_BSS_PAD: attribute used for padding for 64-bit alignment
  4296. * @NL80211_BSS_PARENT_TSF: the time at the start of reception of the first
  4297. * octet of the timestamp field of the last beacon/probe received for
  4298. * this BSS. The time is the TSF of the BSS specified by
  4299. * @NL80211_BSS_PARENT_BSSID. (u64).
  4300. * @NL80211_BSS_PARENT_BSSID: the BSS according to which @NL80211_BSS_PARENT_TSF
  4301. * is set.
  4302. * @NL80211_BSS_CHAIN_SIGNAL: per-chain signal strength of last BSS update.
  4303. * Contains a nested array of signal strength attributes (u8, dBm),
  4304. * using the nesting index as the antenna number.
  4305. * @NL80211_BSS_FREQUENCY_OFFSET: frequency offset in KHz
  4306. * @__NL80211_BSS_AFTER_LAST: internal
  4307. * @NL80211_BSS_MAX: highest BSS attribute
  4308. */
  4309. enum nl80211_bss {
  4310. __NL80211_BSS_INVALID,
  4311. NL80211_BSS_BSSID,
  4312. NL80211_BSS_FREQUENCY,
  4313. NL80211_BSS_TSF,
  4314. NL80211_BSS_BEACON_INTERVAL,
  4315. NL80211_BSS_CAPABILITY,
  4316. NL80211_BSS_INFORMATION_ELEMENTS,
  4317. NL80211_BSS_SIGNAL_MBM,
  4318. NL80211_BSS_SIGNAL_UNSPEC,
  4319. NL80211_BSS_STATUS,
  4320. NL80211_BSS_SEEN_MS_AGO,
  4321. NL80211_BSS_BEACON_IES,
  4322. NL80211_BSS_CHAN_WIDTH,
  4323. NL80211_BSS_BEACON_TSF,
  4324. NL80211_BSS_PRESP_DATA,
  4325. NL80211_BSS_LAST_SEEN_BOOTTIME,
  4326. NL80211_BSS_PAD,
  4327. NL80211_BSS_PARENT_TSF,
  4328. NL80211_BSS_PARENT_BSSID,
  4329. NL80211_BSS_CHAIN_SIGNAL,
  4330. NL80211_BSS_FREQUENCY_OFFSET,
  4331. /* keep last */
  4332. __NL80211_BSS_AFTER_LAST,
  4333. NL80211_BSS_MAX = __NL80211_BSS_AFTER_LAST - 1
  4334. };
  4335. /**
  4336. * enum nl80211_bss_status - BSS "status"
  4337. * @NL80211_BSS_STATUS_AUTHENTICATED: Authenticated with this BSS.
  4338. * Note that this is no longer used since cfg80211 no longer
  4339. * keeps track of whether or not authentication was done with
  4340. * a given BSS.
  4341. * @NL80211_BSS_STATUS_ASSOCIATED: Associated with this BSS.
  4342. * @NL80211_BSS_STATUS_IBSS_JOINED: Joined to this IBSS.
  4343. *
  4344. * The BSS status is a BSS attribute in scan dumps, which
  4345. * indicates the status the interface has wrt. this BSS.
  4346. */
  4347. enum nl80211_bss_status {
  4348. NL80211_BSS_STATUS_AUTHENTICATED,
  4349. NL80211_BSS_STATUS_ASSOCIATED,
  4350. NL80211_BSS_STATUS_IBSS_JOINED,
  4351. };
  4352. /**
  4353. * enum nl80211_auth_type - AuthenticationType
  4354. *
  4355. * @NL80211_AUTHTYPE_OPEN_SYSTEM: Open System authentication
  4356. * @NL80211_AUTHTYPE_SHARED_KEY: Shared Key authentication (WEP only)
  4357. * @NL80211_AUTHTYPE_FT: Fast BSS Transition (IEEE 802.11r)
  4358. * @NL80211_AUTHTYPE_NETWORK_EAP: Network EAP (some Cisco APs and mainly LEAP)
  4359. * @NL80211_AUTHTYPE_SAE: Simultaneous authentication of equals
  4360. * @NL80211_AUTHTYPE_FILS_SK: Fast Initial Link Setup shared key
  4361. * @NL80211_AUTHTYPE_FILS_SK_PFS: Fast Initial Link Setup shared key with PFS
  4362. * @NL80211_AUTHTYPE_FILS_PK: Fast Initial Link Setup public key
  4363. * @__NL80211_AUTHTYPE_NUM: internal
  4364. * @NL80211_AUTHTYPE_MAX: maximum valid auth algorithm
  4365. * @NL80211_AUTHTYPE_AUTOMATIC: determine automatically (if necessary by
  4366. * trying multiple times); this is invalid in netlink -- leave out
  4367. * the attribute for this on CONNECT commands.
  4368. */
  4369. enum nl80211_auth_type {
  4370. NL80211_AUTHTYPE_OPEN_SYSTEM,
  4371. NL80211_AUTHTYPE_SHARED_KEY,
  4372. NL80211_AUTHTYPE_FT,
  4373. NL80211_AUTHTYPE_NETWORK_EAP,
  4374. NL80211_AUTHTYPE_SAE,
  4375. NL80211_AUTHTYPE_FILS_SK,
  4376. NL80211_AUTHTYPE_FILS_SK_PFS,
  4377. NL80211_AUTHTYPE_FILS_PK,
  4378. /* keep last */
  4379. __NL80211_AUTHTYPE_NUM,
  4380. NL80211_AUTHTYPE_MAX = __NL80211_AUTHTYPE_NUM - 1,
  4381. NL80211_AUTHTYPE_AUTOMATIC
  4382. };
  4383. /**
  4384. * enum nl80211_key_type - Key Type
  4385. * @NL80211_KEYTYPE_GROUP: Group (broadcast/multicast) key
  4386. * @NL80211_KEYTYPE_PAIRWISE: Pairwise (unicast/individual) key
  4387. * @NL80211_KEYTYPE_PEERKEY: PeerKey (DLS)
  4388. * @NUM_NL80211_KEYTYPES: number of defined key types
  4389. */
  4390. enum nl80211_key_type {
  4391. NL80211_KEYTYPE_GROUP,
  4392. NL80211_KEYTYPE_PAIRWISE,
  4393. NL80211_KEYTYPE_PEERKEY,
  4394. NUM_NL80211_KEYTYPES
  4395. };
  4396. /**
  4397. * enum nl80211_mfp - Management frame protection state
  4398. * @NL80211_MFP_NO: Management frame protection not used
  4399. * @NL80211_MFP_REQUIRED: Management frame protection required
  4400. * @NL80211_MFP_OPTIONAL: Management frame protection is optional
  4401. */
  4402. enum nl80211_mfp {
  4403. NL80211_MFP_NO,
  4404. NL80211_MFP_REQUIRED,
  4405. NL80211_MFP_OPTIONAL,
  4406. };
  4407. enum nl80211_wpa_versions {
  4408. NL80211_WPA_VERSION_1 = 1 << 0,
  4409. NL80211_WPA_VERSION_2 = 1 << 1,
  4410. NL80211_WPA_VERSION_3 = 1 << 2,
  4411. };
  4412. /**
  4413. * enum nl80211_key_default_types - key default types
  4414. * @__NL80211_KEY_DEFAULT_TYPE_INVALID: invalid
  4415. * @NL80211_KEY_DEFAULT_TYPE_UNICAST: key should be used as default
  4416. * unicast key
  4417. * @NL80211_KEY_DEFAULT_TYPE_MULTICAST: key should be used as default
  4418. * multicast key
  4419. * @NUM_NL80211_KEY_DEFAULT_TYPES: number of default types
  4420. */
  4421. enum nl80211_key_default_types {
  4422. __NL80211_KEY_DEFAULT_TYPE_INVALID,
  4423. NL80211_KEY_DEFAULT_TYPE_UNICAST,
  4424. NL80211_KEY_DEFAULT_TYPE_MULTICAST,
  4425. NUM_NL80211_KEY_DEFAULT_TYPES
  4426. };
  4427. /**
  4428. * enum nl80211_key_attributes - key attributes
  4429. * @__NL80211_KEY_INVALID: invalid
  4430. * @NL80211_KEY_DATA: (temporal) key data; for TKIP this consists of
  4431. * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC
  4432. * keys
  4433. * @NL80211_KEY_IDX: key ID (u8, 0-3)
  4434. * @NL80211_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11
  4435. * section 7.3.2.25.1, e.g. 0x000FAC04)
  4436. * @NL80211_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and
  4437. * CCMP keys, each six bytes in little endian
  4438. * @NL80211_KEY_DEFAULT: flag indicating default key
  4439. * @NL80211_KEY_DEFAULT_MGMT: flag indicating default management key
  4440. * @NL80211_KEY_TYPE: the key type from enum nl80211_key_type, if not
  4441. * specified the default depends on whether a MAC address was
  4442. * given with the command using the key or not (u32)
  4443. * @NL80211_KEY_DEFAULT_TYPES: A nested attribute containing flags
  4444. * attributes, specifying what a key should be set as default as.
  4445. * See &enum nl80211_key_default_types.
  4446. * @NL80211_KEY_MODE: the mode from enum nl80211_key_mode.
  4447. * Defaults to @NL80211_KEY_RX_TX.
  4448. * @NL80211_KEY_DEFAULT_BEACON: flag indicating default Beacon frame key
  4449. *
  4450. * @__NL80211_KEY_AFTER_LAST: internal
  4451. * @NL80211_KEY_MAX: highest key attribute
  4452. */
  4453. enum nl80211_key_attributes {
  4454. __NL80211_KEY_INVALID,
  4455. NL80211_KEY_DATA,
  4456. NL80211_KEY_IDX,
  4457. NL80211_KEY_CIPHER,
  4458. NL80211_KEY_SEQ,
  4459. NL80211_KEY_DEFAULT,
  4460. NL80211_KEY_DEFAULT_MGMT,
  4461. NL80211_KEY_TYPE,
  4462. NL80211_KEY_DEFAULT_TYPES,
  4463. NL80211_KEY_MODE,
  4464. NL80211_KEY_DEFAULT_BEACON,
  4465. /* keep last */
  4466. __NL80211_KEY_AFTER_LAST,
  4467. NL80211_KEY_MAX = __NL80211_KEY_AFTER_LAST - 1
  4468. };
  4469. /**
  4470. * enum nl80211_tx_rate_attributes - TX rate set attributes
  4471. * @__NL80211_TXRATE_INVALID: invalid
  4472. * @NL80211_TXRATE_LEGACY: Legacy (non-MCS) rates allowed for TX rate selection
  4473. * in an array of rates as defined in IEEE 802.11 7.3.2.2 (u8 values with
  4474. * 1 = 500 kbps) but without the IE length restriction (at most
  4475. * %NL80211_MAX_SUPP_RATES in a single array).
  4476. * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection
  4477. * in an array of MCS numbers.
  4478. * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection,
  4479. * see &struct nl80211_txrate_vht
  4480. * @NL80211_TXRATE_GI: configure GI, see &enum nl80211_txrate_gi
  4481. * @NL80211_TXRATE_HE: HE rates allowed for TX rate selection,
  4482. * see &struct nl80211_txrate_he
  4483. * @NL80211_TXRATE_HE_GI: configure HE GI, 0.8us, 1.6us and 3.2us.
  4484. * @NL80211_TXRATE_HE_LTF: configure HE LTF, 1XLTF, 2XLTF and 4XLTF.
  4485. * @__NL80211_TXRATE_AFTER_LAST: internal
  4486. * @NL80211_TXRATE_MAX: highest TX rate attribute
  4487. */
  4488. enum nl80211_tx_rate_attributes {
  4489. __NL80211_TXRATE_INVALID,
  4490. NL80211_TXRATE_LEGACY,
  4491. NL80211_TXRATE_HT,
  4492. NL80211_TXRATE_VHT,
  4493. NL80211_TXRATE_GI,
  4494. NL80211_TXRATE_HE,
  4495. NL80211_TXRATE_HE_GI,
  4496. NL80211_TXRATE_HE_LTF,
  4497. /* keep last */
  4498. __NL80211_TXRATE_AFTER_LAST,
  4499. NL80211_TXRATE_MAX = __NL80211_TXRATE_AFTER_LAST - 1
  4500. };
  4501. #define NL80211_TXRATE_MCS NL80211_TXRATE_HT
  4502. #define NL80211_VHT_NSS_MAX 8
  4503. /**
  4504. * struct nl80211_txrate_vht - VHT MCS/NSS txrate bitmap
  4505. * @mcs: MCS bitmap table for each NSS (array index 0 for 1 stream, etc.)
  4506. */
  4507. struct nl80211_txrate_vht {
  4508. __u16 mcs[NL80211_VHT_NSS_MAX];
  4509. };
  4510. #define NL80211_HE_NSS_MAX 8
  4511. /**
  4512. * struct nl80211_txrate_he - HE MCS/NSS txrate bitmap
  4513. * @mcs: MCS bitmap table for each NSS (array index 0 for 1 stream, etc.)
  4514. */
  4515. struct nl80211_txrate_he {
  4516. __u16 mcs[NL80211_HE_NSS_MAX];
  4517. };
  4518. enum nl80211_txrate_gi {
  4519. NL80211_TXRATE_DEFAULT_GI,
  4520. NL80211_TXRATE_FORCE_SGI,
  4521. NL80211_TXRATE_FORCE_LGI,
  4522. };
  4523. /**
  4524. * enum nl80211_band - Frequency band
  4525. * @NL80211_BAND_2GHZ: 2.4 GHz ISM band
  4526. * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz)
  4527. * @NL80211_BAND_60GHZ: around 60 GHz band (58.32 - 69.12 GHz)
  4528. * @NL80211_BAND_6GHZ: around 6 GHz band (5.9 - 7.2 GHz)
  4529. * @NL80211_BAND_S1GHZ: around 900MHz, supported by S1G PHYs
  4530. * @NUM_NL80211_BANDS: number of bands, avoid using this in userspace
  4531. * since newer kernel versions may support more bands
  4532. */
  4533. enum nl80211_band {
  4534. NL80211_BAND_2GHZ,
  4535. NL80211_BAND_5GHZ,
  4536. NL80211_BAND_60GHZ,
  4537. NL80211_BAND_6GHZ,
  4538. NL80211_BAND_S1GHZ,
  4539. NUM_NL80211_BANDS,
  4540. };
  4541. /**
  4542. * enum nl80211_ps_state - powersave state
  4543. * @NL80211_PS_DISABLED: powersave is disabled
  4544. * @NL80211_PS_ENABLED: powersave is enabled
  4545. */
  4546. enum nl80211_ps_state {
  4547. NL80211_PS_DISABLED,
  4548. NL80211_PS_ENABLED,
  4549. };
  4550. /**
  4551. * enum nl80211_attr_cqm - connection quality monitor attributes
  4552. * @__NL80211_ATTR_CQM_INVALID: invalid
  4553. * @NL80211_ATTR_CQM_RSSI_THOLD: RSSI threshold in dBm. This value specifies
  4554. * the threshold for the RSSI level at which an event will be sent. Zero
  4555. * to disable. Alternatively, if %NL80211_EXT_FEATURE_CQM_RSSI_LIST is
  4556. * set, multiple values can be supplied as a low-to-high sorted array of
  4557. * threshold values in dBm. Events will be sent when the RSSI value
  4558. * crosses any of the thresholds.
  4559. * @NL80211_ATTR_CQM_RSSI_HYST: RSSI hysteresis in dBm. This value specifies
  4560. * the minimum amount the RSSI level must change after an event before a
  4561. * new event may be issued (to reduce effects of RSSI oscillation).
  4562. * @NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT: RSSI threshold event
  4563. * @NL80211_ATTR_CQM_PKT_LOSS_EVENT: a u32 value indicating that this many
  4564. * consecutive packets were not acknowledged by the peer
  4565. * @NL80211_ATTR_CQM_TXE_RATE: TX error rate in %. Minimum % of TX failures
  4566. * during the given %NL80211_ATTR_CQM_TXE_INTVL before an
  4567. * %NL80211_CMD_NOTIFY_CQM with reported %NL80211_ATTR_CQM_TXE_RATE and
  4568. * %NL80211_ATTR_CQM_TXE_PKTS is generated.
  4569. * @NL80211_ATTR_CQM_TXE_PKTS: number of attempted packets in a given
  4570. * %NL80211_ATTR_CQM_TXE_INTVL before %NL80211_ATTR_CQM_TXE_RATE is
  4571. * checked.
  4572. * @NL80211_ATTR_CQM_TXE_INTVL: interval in seconds. Specifies the periodic
  4573. * interval in which %NL80211_ATTR_CQM_TXE_PKTS and
  4574. * %NL80211_ATTR_CQM_TXE_RATE must be satisfied before generating an
  4575. * %NL80211_CMD_NOTIFY_CQM. Set to 0 to turn off TX error reporting.
  4576. * @NL80211_ATTR_CQM_BEACON_LOSS_EVENT: flag attribute that's set in a beacon
  4577. * loss event
  4578. * @NL80211_ATTR_CQM_RSSI_LEVEL: the RSSI value in dBm that triggered the
  4579. * RSSI threshold event.
  4580. * @__NL80211_ATTR_CQM_AFTER_LAST: internal
  4581. * @NL80211_ATTR_CQM_MAX: highest key attribute
  4582. */
  4583. enum nl80211_attr_cqm {
  4584. __NL80211_ATTR_CQM_INVALID,
  4585. NL80211_ATTR_CQM_RSSI_THOLD,
  4586. NL80211_ATTR_CQM_RSSI_HYST,
  4587. NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT,
  4588. NL80211_ATTR_CQM_PKT_LOSS_EVENT,
  4589. NL80211_ATTR_CQM_TXE_RATE,
  4590. NL80211_ATTR_CQM_TXE_PKTS,
  4591. NL80211_ATTR_CQM_TXE_INTVL,
  4592. NL80211_ATTR_CQM_BEACON_LOSS_EVENT,
  4593. NL80211_ATTR_CQM_RSSI_LEVEL,
  4594. /* keep last */
  4595. __NL80211_ATTR_CQM_AFTER_LAST,
  4596. NL80211_ATTR_CQM_MAX = __NL80211_ATTR_CQM_AFTER_LAST - 1
  4597. };
  4598. /**
  4599. * enum nl80211_cqm_rssi_threshold_event - RSSI threshold event
  4600. * @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW: The RSSI level is lower than the
  4601. * configured threshold
  4602. * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH: The RSSI is higher than the
  4603. * configured threshold
  4604. * @NL80211_CQM_RSSI_BEACON_LOSS_EVENT: (reserved, never sent)
  4605. */
  4606. enum nl80211_cqm_rssi_threshold_event {
  4607. NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW,
  4608. NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH,
  4609. NL80211_CQM_RSSI_BEACON_LOSS_EVENT,
  4610. };
  4611. /**
  4612. * enum nl80211_tx_power_setting - TX power adjustment
  4613. * @NL80211_TX_POWER_AUTOMATIC: automatically determine transmit power
  4614. * @NL80211_TX_POWER_LIMITED: limit TX power by the mBm parameter
  4615. * @NL80211_TX_POWER_FIXED: fix TX power to the mBm parameter
  4616. */
  4617. enum nl80211_tx_power_setting {
  4618. NL80211_TX_POWER_AUTOMATIC,
  4619. NL80211_TX_POWER_LIMITED,
  4620. NL80211_TX_POWER_FIXED,
  4621. };
  4622. /**
  4623. * enum nl80211_tid_config - TID config state
  4624. * @NL80211_TID_CONFIG_ENABLE: Enable config for the TID
  4625. * @NL80211_TID_CONFIG_DISABLE: Disable config for the TID
  4626. */
  4627. enum nl80211_tid_config {
  4628. NL80211_TID_CONFIG_ENABLE,
  4629. NL80211_TID_CONFIG_DISABLE,
  4630. };
  4631. /* enum nl80211_tx_rate_setting - TX rate configuration type
  4632. * @NL80211_TX_RATE_AUTOMATIC: automatically determine TX rate
  4633. * @NL80211_TX_RATE_LIMITED: limit the TX rate by the TX rate parameter
  4634. * @NL80211_TX_RATE_FIXED: fix TX rate to the TX rate parameter
  4635. */
  4636. enum nl80211_tx_rate_setting {
  4637. NL80211_TX_RATE_AUTOMATIC,
  4638. NL80211_TX_RATE_LIMITED,
  4639. NL80211_TX_RATE_FIXED,
  4640. };
  4641. /* enum nl80211_tid_config_attr - TID specific configuration.
  4642. * @NL80211_TID_CONFIG_ATTR_PAD: pad attribute for 64-bit values
  4643. * @NL80211_TID_CONFIG_ATTR_VIF_SUPP: a bitmap (u64) of attributes supported
  4644. * for per-vif configuration; doesn't list the ones that are generic
  4645. * (%NL80211_TID_CONFIG_ATTR_TIDS, %NL80211_TID_CONFIG_ATTR_OVERRIDE).
  4646. * @NL80211_TID_CONFIG_ATTR_PEER_SUPP: same as the previous per-vif one, but
  4647. * per peer instead.
  4648. * @NL80211_TID_CONFIG_ATTR_OVERRIDE: flag attribue, if set indicates
  4649. * that the new configuration overrides all previous peer
  4650. * configurations, otherwise previous peer specific configurations
  4651. * should be left untouched.
  4652. * @NL80211_TID_CONFIG_ATTR_TIDS: a bitmask value of TIDs (bit 0 to 7)
  4653. * Its type is u16.
  4654. * @NL80211_TID_CONFIG_ATTR_NOACK: Configure ack policy for the TID.
  4655. * specified in %NL80211_TID_CONFIG_ATTR_TID. see %enum nl80211_tid_config.
  4656. * Its type is u8.
  4657. * @NL80211_TID_CONFIG_ATTR_RETRY_SHORT: Number of retries used with data frame
  4658. * transmission, user-space sets this configuration in
  4659. * &NL80211_CMD_SET_TID_CONFIG. It is u8 type, min value is 1 and
  4660. * the max value is advertised by the driver in this attribute on
  4661. * output in wiphy capabilities.
  4662. * @NL80211_TID_CONFIG_ATTR_RETRY_LONG: Number of retries used with data frame
  4663. * transmission, user-space sets this configuration in
  4664. * &NL80211_CMD_SET_TID_CONFIG. Its type is u8, min value is 1 and
  4665. * the max value is advertised by the driver in this attribute on
  4666. * output in wiphy capabilities.
  4667. * @NL80211_TID_CONFIG_ATTR_AMPDU_CTRL: Enable/Disable MPDU aggregation
  4668. * for the TIDs specified in %NL80211_TID_CONFIG_ATTR_TIDS.
  4669. * Its type is u8, using the values from &nl80211_tid_config.
  4670. * @NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL: Enable/Disable RTS_CTS for the TIDs
  4671. * specified in %NL80211_TID_CONFIG_ATTR_TIDS. It is u8 type, using
  4672. * the values from &nl80211_tid_config.
  4673. * @NL80211_TID_CONFIG_ATTR_AMSDU_CTRL: Enable/Disable MSDU aggregation
  4674. * for the TIDs specified in %NL80211_TID_CONFIG_ATTR_TIDS.
  4675. * Its type is u8, using the values from &nl80211_tid_config.
  4676. * @NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE: This attribute will be useful
  4677. * to notfiy the driver that what type of txrate should be used
  4678. * for the TIDs specified in %NL80211_TID_CONFIG_ATTR_TIDS. using
  4679. * the values form &nl80211_tx_rate_setting.
  4680. * @NL80211_TID_CONFIG_ATTR_TX_RATE: Data frame TX rate mask should be applied
  4681. * with the parameters passed through %NL80211_ATTR_TX_RATES.
  4682. * configuration is applied to the data frame for the tid to that connected
  4683. * station.
  4684. */
  4685. enum nl80211_tid_config_attr {
  4686. __NL80211_TID_CONFIG_ATTR_INVALID,
  4687. NL80211_TID_CONFIG_ATTR_PAD,
  4688. NL80211_TID_CONFIG_ATTR_VIF_SUPP,
  4689. NL80211_TID_CONFIG_ATTR_PEER_SUPP,
  4690. NL80211_TID_CONFIG_ATTR_OVERRIDE,
  4691. NL80211_TID_CONFIG_ATTR_TIDS,
  4692. NL80211_TID_CONFIG_ATTR_NOACK,
  4693. NL80211_TID_CONFIG_ATTR_RETRY_SHORT,
  4694. NL80211_TID_CONFIG_ATTR_RETRY_LONG,
  4695. NL80211_TID_CONFIG_ATTR_AMPDU_CTRL,
  4696. NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL,
  4697. NL80211_TID_CONFIG_ATTR_AMSDU_CTRL,
  4698. NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE,
  4699. NL80211_TID_CONFIG_ATTR_TX_RATE,
  4700. /* keep last */
  4701. __NL80211_TID_CONFIG_ATTR_AFTER_LAST,
  4702. NL80211_TID_CONFIG_ATTR_MAX = __NL80211_TID_CONFIG_ATTR_AFTER_LAST - 1
  4703. };
  4704. /**
  4705. * enum nl80211_packet_pattern_attr - packet pattern attribute
  4706. * @__NL80211_PKTPAT_INVALID: invalid number for nested attribute
  4707. * @NL80211_PKTPAT_PATTERN: the pattern, values where the mask has
  4708. * a zero bit are ignored
  4709. * @NL80211_PKTPAT_MASK: pattern mask, must be long enough to have
  4710. * a bit for each byte in the pattern. The lowest-order bit corresponds
  4711. * to the first byte of the pattern, but the bytes of the pattern are
  4712. * in a little-endian-like format, i.e. the 9th byte of the pattern
  4713. * corresponds to the lowest-order bit in the second byte of the mask.
  4714. * For example: The match 00:xx:00:00:xx:00:00:00:00:xx:xx:xx (where
  4715. * xx indicates "don't care") would be represented by a pattern of
  4716. * twelve zero bytes, and a mask of "0xed,0x01".
  4717. * Note that the pattern matching is done as though frames were not
  4718. * 802.11 frames but 802.3 frames, i.e. the frame is fully unpacked
  4719. * first (including SNAP header unpacking) and then matched.
  4720. * @NL80211_PKTPAT_OFFSET: packet offset, pattern is matched after
  4721. * these fixed number of bytes of received packet
  4722. * @NUM_NL80211_PKTPAT: number of attributes
  4723. * @MAX_NL80211_PKTPAT: max attribute number
  4724. */
  4725. enum nl80211_packet_pattern_attr {
  4726. __NL80211_PKTPAT_INVALID,
  4727. NL80211_PKTPAT_MASK,
  4728. NL80211_PKTPAT_PATTERN,
  4729. NL80211_PKTPAT_OFFSET,
  4730. NUM_NL80211_PKTPAT,
  4731. MAX_NL80211_PKTPAT = NUM_NL80211_PKTPAT - 1,
  4732. };
  4733. /**
  4734. * struct nl80211_pattern_support - packet pattern support information
  4735. * @max_patterns: maximum number of patterns supported
  4736. * @min_pattern_len: minimum length of each pattern
  4737. * @max_pattern_len: maximum length of each pattern
  4738. * @max_pkt_offset: maximum Rx packet offset
  4739. *
  4740. * This struct is carried in %NL80211_WOWLAN_TRIG_PKT_PATTERN when
  4741. * that is part of %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED or in
  4742. * %NL80211_ATTR_COALESCE_RULE_PKT_PATTERN when that is part of
  4743. * %NL80211_ATTR_COALESCE_RULE in the capability information given
  4744. * by the kernel to userspace.
  4745. */
  4746. struct nl80211_pattern_support {
  4747. __u32 max_patterns;
  4748. __u32 min_pattern_len;
  4749. __u32 max_pattern_len;
  4750. __u32 max_pkt_offset;
  4751. } __attribute__((packed));
  4752. /* only for backward compatibility */
  4753. #define __NL80211_WOWLAN_PKTPAT_INVALID __NL80211_PKTPAT_INVALID
  4754. #define NL80211_WOWLAN_PKTPAT_MASK NL80211_PKTPAT_MASK
  4755. #define NL80211_WOWLAN_PKTPAT_PATTERN NL80211_PKTPAT_PATTERN
  4756. #define NL80211_WOWLAN_PKTPAT_OFFSET NL80211_PKTPAT_OFFSET
  4757. #define NUM_NL80211_WOWLAN_PKTPAT NUM_NL80211_PKTPAT
  4758. #define MAX_NL80211_WOWLAN_PKTPAT MAX_NL80211_PKTPAT
  4759. #define nl80211_wowlan_pattern_support nl80211_pattern_support
  4760. /**
  4761. * enum nl80211_wowlan_triggers - WoWLAN trigger definitions
  4762. * @__NL80211_WOWLAN_TRIG_INVALID: invalid number for nested attributes
  4763. * @NL80211_WOWLAN_TRIG_ANY: wake up on any activity, do not really put
  4764. * the chip into a special state -- works best with chips that have
  4765. * support for low-power operation already (flag)
  4766. * Note that this mode is incompatible with all of the others, if
  4767. * any others are even supported by the device.
  4768. * @NL80211_WOWLAN_TRIG_DISCONNECT: wake up on disconnect, the way disconnect
  4769. * is detected is implementation-specific (flag)
  4770. * @NL80211_WOWLAN_TRIG_MAGIC_PKT: wake up on magic packet (6x 0xff, followed
  4771. * by 16 repetitions of MAC addr, anywhere in payload) (flag)
  4772. * @NL80211_WOWLAN_TRIG_PKT_PATTERN: wake up on the specified packet patterns
  4773. * which are passed in an array of nested attributes, each nested attribute
  4774. * defining a with attributes from &struct nl80211_wowlan_trig_pkt_pattern.
  4775. * Each pattern defines a wakeup packet. Packet offset is associated with
  4776. * each pattern which is used while matching the pattern. The matching is
  4777. * done on the MSDU, i.e. as though the packet was an 802.3 packet, so the
  4778. * pattern matching is done after the packet is converted to the MSDU.
  4779. *
  4780. * In %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, it is a binary attribute
  4781. * carrying a &struct nl80211_pattern_support.
  4782. *
  4783. * When reporting wakeup. it is a u32 attribute containing the 0-based
  4784. * index of the pattern that caused the wakeup, in the patterns passed
  4785. * to the kernel when configuring.
  4786. * @NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED: Not a real trigger, and cannot be
  4787. * used when setting, used only to indicate that GTK rekeying is supported
  4788. * by the device (flag)
  4789. * @NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE: wake up on GTK rekey failure (if
  4790. * done by the device) (flag)
  4791. * @NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST: wake up on EAP Identity Request
  4792. * packet (flag)
  4793. * @NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE: wake up on 4-way handshake (flag)
  4794. * @NL80211_WOWLAN_TRIG_RFKILL_RELEASE: wake up when rfkill is released
  4795. * (on devices that have rfkill in the device) (flag)
  4796. * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211: For wakeup reporting only, contains
  4797. * the 802.11 packet that caused the wakeup, e.g. a deauth frame. The frame
  4798. * may be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN
  4799. * attribute contains the original length.
  4800. * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN: Original length of the 802.11
  4801. * packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211
  4802. * attribute if the packet was truncated somewhere.
  4803. * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023: For wakeup reporting only, contains the
  4804. * 802.11 packet that caused the wakeup, e.g. a magic packet. The frame may
  4805. * be truncated, the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN attribute
  4806. * contains the original length.
  4807. * @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN: Original length of the 802.3
  4808. * packet, may be bigger than the @NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023
  4809. * attribute if the packet was truncated somewhere.
  4810. * @NL80211_WOWLAN_TRIG_TCP_CONNECTION: TCP connection wake, see DOC section
  4811. * "TCP connection wakeup" for more details. This is a nested attribute
  4812. * containing the exact information for establishing and keeping alive
  4813. * the TCP connection.
  4814. * @NL80211_WOWLAN_TRIG_TCP_WAKEUP_MATCH: For wakeup reporting only, the
  4815. * wakeup packet was received on the TCP connection
  4816. * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST: For wakeup reporting only, the
  4817. * TCP connection was lost or failed to be established
  4818. * @NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS: For wakeup reporting only,
  4819. * the TCP connection ran out of tokens to use for data to send to the
  4820. * service
  4821. * @NL80211_WOWLAN_TRIG_NET_DETECT: wake up when a configured network
  4822. * is detected. This is a nested attribute that contains the
  4823. * same attributes used with @NL80211_CMD_START_SCHED_SCAN. It
  4824. * specifies how the scan is performed (e.g. the interval, the
  4825. * channels to scan and the initial delay) as well as the scan
  4826. * results that will trigger a wake (i.e. the matchsets). This
  4827. * attribute is also sent in a response to
  4828. * @NL80211_CMD_GET_WIPHY, indicating the number of match sets
  4829. * supported by the driver (u32).
  4830. * @NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS: nested attribute
  4831. * containing an array with information about what triggered the
  4832. * wake up. If no elements are present in the array, it means
  4833. * that the information is not available. If more than one
  4834. * element is present, it means that more than one match
  4835. * occurred.
  4836. * Each element in the array is a nested attribute that contains
  4837. * one optional %NL80211_ATTR_SSID attribute and one optional
  4838. * %NL80211_ATTR_SCAN_FREQUENCIES attribute. At least one of
  4839. * these attributes must be present. If
  4840. * %NL80211_ATTR_SCAN_FREQUENCIES contains more than one
  4841. * frequency, it means that the match occurred in more than one
  4842. * channel.
  4843. * @NUM_NL80211_WOWLAN_TRIG: number of wake on wireless triggers
  4844. * @MAX_NL80211_WOWLAN_TRIG: highest wowlan trigger attribute number
  4845. *
  4846. * These nested attributes are used to configure the wakeup triggers and
  4847. * to report the wakeup reason(s).
  4848. */
  4849. enum nl80211_wowlan_triggers {
  4850. __NL80211_WOWLAN_TRIG_INVALID,
  4851. NL80211_WOWLAN_TRIG_ANY,
  4852. NL80211_WOWLAN_TRIG_DISCONNECT,
  4853. NL80211_WOWLAN_TRIG_MAGIC_PKT,
  4854. NL80211_WOWLAN_TRIG_PKT_PATTERN,
  4855. NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED,
  4856. NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE,
  4857. NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST,
  4858. NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE,
  4859. NL80211_WOWLAN_TRIG_RFKILL_RELEASE,
  4860. NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211,
  4861. NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN,
  4862. NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023,
  4863. NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN,
  4864. NL80211_WOWLAN_TRIG_TCP_CONNECTION,
  4865. NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH,
  4866. NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST,
  4867. NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS,
  4868. NL80211_WOWLAN_TRIG_NET_DETECT,
  4869. NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS,
  4870. /* keep last */
  4871. NUM_NL80211_WOWLAN_TRIG,
  4872. MAX_NL80211_WOWLAN_TRIG = NUM_NL80211_WOWLAN_TRIG - 1
  4873. };
  4874. /**
  4875. * DOC: TCP connection wakeup
  4876. *
  4877. * Some devices can establish a TCP connection in order to be woken up by a
  4878. * packet coming in from outside their network segment, or behind NAT. If
  4879. * configured, the device will establish a TCP connection to the given
  4880. * service, and periodically send data to that service. The first data
  4881. * packet is usually transmitted after SYN/ACK, also ACKing the SYN/ACK.
  4882. * The data packets can optionally include a (little endian) sequence
  4883. * number (in the TCP payload!) that is generated by the device, and, also
  4884. * optionally, a token from a list of tokens. This serves as a keep-alive
  4885. * with the service, and for NATed connections, etc.
  4886. *
  4887. * During this keep-alive period, the server doesn't send any data to the
  4888. * client. When receiving data, it is compared against the wakeup pattern
  4889. * (and mask) and if it matches, the host is woken up. Similarly, if the
  4890. * connection breaks or cannot be established to start with, the host is
  4891. * also woken up.
  4892. *
  4893. * Developer's note: ARP offload is required for this, otherwise TCP
  4894. * response packets might not go through correctly.
  4895. */
  4896. /**
  4897. * struct nl80211_wowlan_tcp_data_seq - WoWLAN TCP data sequence
  4898. * @start: starting value
  4899. * @offset: offset of sequence number in packet
  4900. * @len: length of the sequence value to write, 1 through 4
  4901. *
  4902. * Note: don't confuse with the TCP sequence number(s), this is for the
  4903. * keepalive packet payload. The actual value is written into the packet
  4904. * in little endian.
  4905. */
  4906. struct nl80211_wowlan_tcp_data_seq {
  4907. __u32 start, offset, len;
  4908. };
  4909. /**
  4910. * struct nl80211_wowlan_tcp_data_token - WoWLAN TCP data token config
  4911. * @offset: offset of token in packet
  4912. * @len: length of each token
  4913. * @token_stream: stream of data to be used for the tokens, the length must
  4914. * be a multiple of @len for this to make sense
  4915. */
  4916. struct nl80211_wowlan_tcp_data_token {
  4917. __u32 offset, len;
  4918. __u8 token_stream[];
  4919. };
  4920. /**
  4921. * struct nl80211_wowlan_tcp_data_token_feature - data token features
  4922. * @min_len: minimum token length
  4923. * @max_len: maximum token length
  4924. * @bufsize: total available token buffer size (max size of @token_stream)
  4925. */
  4926. struct nl80211_wowlan_tcp_data_token_feature {
  4927. __u32 min_len, max_len, bufsize;
  4928. };
  4929. /**
  4930. * enum nl80211_wowlan_tcp_attrs - WoWLAN TCP connection parameters
  4931. * @__NL80211_WOWLAN_TCP_INVALID: invalid number for nested attributes
  4932. * @NL80211_WOWLAN_TCP_SRC_IPV4: source IPv4 address (in network byte order)
  4933. * @NL80211_WOWLAN_TCP_DST_IPV4: destination IPv4 address
  4934. * (in network byte order)
  4935. * @NL80211_WOWLAN_TCP_DST_MAC: destination MAC address, this is given because
  4936. * route lookup when configured might be invalid by the time we suspend,
  4937. * and doing a route lookup when suspending is no longer possible as it
  4938. * might require ARP querying.
  4939. * @NL80211_WOWLAN_TCP_SRC_PORT: source port (u16); optional, if not given a
  4940. * socket and port will be allocated
  4941. * @NL80211_WOWLAN_TCP_DST_PORT: destination port (u16)
  4942. * @NL80211_WOWLAN_TCP_DATA_PAYLOAD: data packet payload, at least one byte.
  4943. * For feature advertising, a u32 attribute holding the maximum length
  4944. * of the data payload.
  4945. * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ: data packet sequence configuration
  4946. * (if desired), a &struct nl80211_wowlan_tcp_data_seq. For feature
  4947. * advertising it is just a flag
  4948. * @NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN: data packet token configuration,
  4949. * see &struct nl80211_wowlan_tcp_data_token and for advertising see
  4950. * &struct nl80211_wowlan_tcp_data_token_feature.
  4951. * @NL80211_WOWLAN_TCP_DATA_INTERVAL: data interval in seconds, maximum
  4952. * interval in feature advertising (u32)
  4953. * @NL80211_WOWLAN_TCP_WAKE_PAYLOAD: wake packet payload, for advertising a
  4954. * u32 attribute holding the maximum length
  4955. * @NL80211_WOWLAN_TCP_WAKE_MASK: Wake packet payload mask, not used for
  4956. * feature advertising. The mask works like @NL80211_PKTPAT_MASK
  4957. * but on the TCP payload only.
  4958. * @NUM_NL80211_WOWLAN_TCP: number of TCP attributes
  4959. * @MAX_NL80211_WOWLAN_TCP: highest attribute number
  4960. */
  4961. enum nl80211_wowlan_tcp_attrs {
  4962. __NL80211_WOWLAN_TCP_INVALID,
  4963. NL80211_WOWLAN_TCP_SRC_IPV4,
  4964. NL80211_WOWLAN_TCP_DST_IPV4,
  4965. NL80211_WOWLAN_TCP_DST_MAC,
  4966. NL80211_WOWLAN_TCP_SRC_PORT,
  4967. NL80211_WOWLAN_TCP_DST_PORT,
  4968. NL80211_WOWLAN_TCP_DATA_PAYLOAD,
  4969. NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ,
  4970. NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN,
  4971. NL80211_WOWLAN_TCP_DATA_INTERVAL,
  4972. NL80211_WOWLAN_TCP_WAKE_PAYLOAD,
  4973. NL80211_WOWLAN_TCP_WAKE_MASK,
  4974. /* keep last */
  4975. NUM_NL80211_WOWLAN_TCP,
  4976. MAX_NL80211_WOWLAN_TCP = NUM_NL80211_WOWLAN_TCP - 1
  4977. };
  4978. /**
  4979. * struct nl80211_coalesce_rule_support - coalesce rule support information
  4980. * @max_rules: maximum number of rules supported
  4981. * @pat: packet pattern support information
  4982. * @max_delay: maximum supported coalescing delay in msecs
  4983. *
  4984. * This struct is carried in %NL80211_ATTR_COALESCE_RULE in the
  4985. * capability information given by the kernel to userspace.
  4986. */
  4987. struct nl80211_coalesce_rule_support {
  4988. __u32 max_rules;
  4989. struct nl80211_pattern_support pat;
  4990. __u32 max_delay;
  4991. } __attribute__((packed));
  4992. /**
  4993. * enum nl80211_attr_coalesce_rule - coalesce rule attribute
  4994. * @__NL80211_COALESCE_RULE_INVALID: invalid number for nested attribute
  4995. * @NL80211_ATTR_COALESCE_RULE_DELAY: delay in msecs used for packet coalescing
  4996. * @NL80211_ATTR_COALESCE_RULE_CONDITION: condition for packet coalescence,
  4997. * see &enum nl80211_coalesce_condition.
  4998. * @NL80211_ATTR_COALESCE_RULE_PKT_PATTERN: packet offset, pattern is matched
  4999. * after these fixed number of bytes of received packet
  5000. * @NUM_NL80211_ATTR_COALESCE_RULE: number of attributes
  5001. * @NL80211_ATTR_COALESCE_RULE_MAX: max attribute number
  5002. */
  5003. enum nl80211_attr_coalesce_rule {
  5004. __NL80211_COALESCE_RULE_INVALID,
  5005. NL80211_ATTR_COALESCE_RULE_DELAY,
  5006. NL80211_ATTR_COALESCE_RULE_CONDITION,
  5007. NL80211_ATTR_COALESCE_RULE_PKT_PATTERN,
  5008. /* keep last */
  5009. NUM_NL80211_ATTR_COALESCE_RULE,
  5010. NL80211_ATTR_COALESCE_RULE_MAX = NUM_NL80211_ATTR_COALESCE_RULE - 1
  5011. };
  5012. /**
  5013. * enum nl80211_coalesce_condition - coalesce rule conditions
  5014. * @NL80211_COALESCE_CONDITION_MATCH: coalaesce Rx packets when patterns
  5015. * in a rule are matched.
  5016. * @NL80211_COALESCE_CONDITION_NO_MATCH: coalesce Rx packets when patterns
  5017. * in a rule are not matched.
  5018. */
  5019. enum nl80211_coalesce_condition {
  5020. NL80211_COALESCE_CONDITION_MATCH,
  5021. NL80211_COALESCE_CONDITION_NO_MATCH
  5022. };
  5023. /**
  5024. * enum nl80211_iface_limit_attrs - limit attributes
  5025. * @NL80211_IFACE_LIMIT_UNSPEC: (reserved)
  5026. * @NL80211_IFACE_LIMIT_MAX: maximum number of interfaces that
  5027. * can be chosen from this set of interface types (u32)
  5028. * @NL80211_IFACE_LIMIT_TYPES: nested attribute containing a
  5029. * flag attribute for each interface type in this set
  5030. * @NUM_NL80211_IFACE_LIMIT: number of attributes
  5031. * @MAX_NL80211_IFACE_LIMIT: highest attribute number
  5032. */
  5033. enum nl80211_iface_limit_attrs {
  5034. NL80211_IFACE_LIMIT_UNSPEC,
  5035. NL80211_IFACE_LIMIT_MAX,
  5036. NL80211_IFACE_LIMIT_TYPES,
  5037. /* keep last */
  5038. NUM_NL80211_IFACE_LIMIT,
  5039. MAX_NL80211_IFACE_LIMIT = NUM_NL80211_IFACE_LIMIT - 1
  5040. };
  5041. /**
  5042. * enum nl80211_if_combination_attrs -- interface combination attributes
  5043. *
  5044. * @NL80211_IFACE_COMB_UNSPEC: (reserved)
  5045. * @NL80211_IFACE_COMB_LIMITS: Nested attributes containing the limits
  5046. * for given interface types, see &enum nl80211_iface_limit_attrs.
  5047. * @NL80211_IFACE_COMB_MAXNUM: u32 attribute giving the total number of
  5048. * interfaces that can be created in this group. This number doesn't
  5049. * apply to interfaces purely managed in software, which are listed
  5050. * in a separate attribute %NL80211_ATTR_INTERFACES_SOFTWARE.
  5051. * @NL80211_IFACE_COMB_STA_AP_BI_MATCH: flag attribute specifying that
  5052. * beacon intervals within this group must be all the same even for
  5053. * infrastructure and AP/GO combinations, i.e. the GO(s) must adopt
  5054. * the infrastructure network's beacon interval.
  5055. * @NL80211_IFACE_COMB_NUM_CHANNELS: u32 attribute specifying how many
  5056. * different channels may be used within this group.
  5057. * @NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS: u32 attribute containing the bitmap
  5058. * of supported channel widths for radar detection.
  5059. * @NL80211_IFACE_COMB_RADAR_DETECT_REGIONS: u32 attribute containing the bitmap
  5060. * of supported regulatory regions for radar detection.
  5061. * @NL80211_IFACE_COMB_BI_MIN_GCD: u32 attribute specifying the minimum GCD of
  5062. * different beacon intervals supported by all the interface combinations
  5063. * in this group (if not present, all beacon intervals be identical).
  5064. * @NUM_NL80211_IFACE_COMB: number of attributes
  5065. * @MAX_NL80211_IFACE_COMB: highest attribute number
  5066. *
  5067. * Examples:
  5068. * limits = [ #{STA} <= 1, #{AP} <= 1 ], matching BI, channels = 1, max = 2
  5069. * => allows an AP and a STA that must match BIs
  5070. *
  5071. * numbers = [ #{AP, P2P-GO} <= 8 ], BI min gcd, channels = 1, max = 8,
  5072. * => allows 8 of AP/GO that can have BI gcd >= min gcd
  5073. *
  5074. * numbers = [ #{STA} <= 2 ], channels = 2, max = 2
  5075. * => allows two STAs on different channels
  5076. *
  5077. * numbers = [ #{STA} <= 1, #{P2P-client,P2P-GO} <= 3 ], max = 4
  5078. * => allows a STA plus three P2P interfaces
  5079. *
  5080. * The list of these four possibilities could completely be contained
  5081. * within the %NL80211_ATTR_INTERFACE_COMBINATIONS attribute to indicate
  5082. * that any of these groups must match.
  5083. *
  5084. * "Combinations" of just a single interface will not be listed here,
  5085. * a single interface of any valid interface type is assumed to always
  5086. * be possible by itself. This means that implicitly, for each valid
  5087. * interface type, the following group always exists:
  5088. * numbers = [ #{<type>} <= 1 ], channels = 1, max = 1
  5089. */
  5090. enum nl80211_if_combination_attrs {
  5091. NL80211_IFACE_COMB_UNSPEC,
  5092. NL80211_IFACE_COMB_LIMITS,
  5093. NL80211_IFACE_COMB_MAXNUM,
  5094. NL80211_IFACE_COMB_STA_AP_BI_MATCH,
  5095. NL80211_IFACE_COMB_NUM_CHANNELS,
  5096. NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS,
  5097. NL80211_IFACE_COMB_RADAR_DETECT_REGIONS,
  5098. NL80211_IFACE_COMB_BI_MIN_GCD,
  5099. /* keep last */
  5100. NUM_NL80211_IFACE_COMB,
  5101. MAX_NL80211_IFACE_COMB = NUM_NL80211_IFACE_COMB - 1
  5102. };
  5103. /**
  5104. * enum nl80211_plink_state - state of a mesh peer link finite state machine
  5105. *
  5106. * @NL80211_PLINK_LISTEN: initial state, considered the implicit
  5107. * state of non existent mesh peer links
  5108. * @NL80211_PLINK_OPN_SNT: mesh plink open frame has been sent to
  5109. * this mesh peer
  5110. * @NL80211_PLINK_OPN_RCVD: mesh plink open frame has been received
  5111. * from this mesh peer
  5112. * @NL80211_PLINK_CNF_RCVD: mesh plink confirm frame has been
  5113. * received from this mesh peer
  5114. * @NL80211_PLINK_ESTAB: mesh peer link is established
  5115. * @NL80211_PLINK_HOLDING: mesh peer link is being closed or cancelled
  5116. * @NL80211_PLINK_BLOCKED: all frames transmitted from this mesh
  5117. * plink are discarded
  5118. * @NUM_NL80211_PLINK_STATES: number of peer link states
  5119. * @MAX_NL80211_PLINK_STATES: highest numerical value of plink states
  5120. */
  5121. enum nl80211_plink_state {
  5122. NL80211_PLINK_LISTEN,
  5123. NL80211_PLINK_OPN_SNT,
  5124. NL80211_PLINK_OPN_RCVD,
  5125. NL80211_PLINK_CNF_RCVD,
  5126. NL80211_PLINK_ESTAB,
  5127. NL80211_PLINK_HOLDING,
  5128. NL80211_PLINK_BLOCKED,
  5129. /* keep last */
  5130. NUM_NL80211_PLINK_STATES,
  5131. MAX_NL80211_PLINK_STATES = NUM_NL80211_PLINK_STATES - 1
  5132. };
  5133. /**
  5134. * enum nl80211_plink_action - actions to perform in mesh peers
  5135. *
  5136. * @NL80211_PLINK_ACTION_NO_ACTION: perform no action
  5137. * @NL80211_PLINK_ACTION_OPEN: start mesh peer link establishment
  5138. * @NL80211_PLINK_ACTION_BLOCK: block traffic from this mesh peer
  5139. * @NUM_NL80211_PLINK_ACTIONS: number of possible actions
  5140. */
  5141. enum plink_actions {
  5142. NL80211_PLINK_ACTION_NO_ACTION,
  5143. NL80211_PLINK_ACTION_OPEN,
  5144. NL80211_PLINK_ACTION_BLOCK,
  5145. NUM_NL80211_PLINK_ACTIONS,
  5146. };
  5147. #define NL80211_KCK_LEN 16
  5148. #define NL80211_KEK_LEN 16
  5149. #define NL80211_KCK_EXT_LEN 24
  5150. #define NL80211_KEK_EXT_LEN 32
  5151. #define NL80211_REPLAY_CTR_LEN 8
  5152. /**
  5153. * enum nl80211_rekey_data - attributes for GTK rekey offload
  5154. * @__NL80211_REKEY_DATA_INVALID: invalid number for nested attributes
  5155. * @NL80211_REKEY_DATA_KEK: key encryption key (binary)
  5156. * @NL80211_REKEY_DATA_KCK: key confirmation key (binary)
  5157. * @NL80211_REKEY_DATA_REPLAY_CTR: replay counter (binary)
  5158. * @NL80211_REKEY_DATA_AKM: AKM data (OUI, suite type)
  5159. * @NUM_NL80211_REKEY_DATA: number of rekey attributes (internal)
  5160. * @MAX_NL80211_REKEY_DATA: highest rekey attribute (internal)
  5161. */
  5162. enum nl80211_rekey_data {
  5163. __NL80211_REKEY_DATA_INVALID,
  5164. NL80211_REKEY_DATA_KEK,
  5165. NL80211_REKEY_DATA_KCK,
  5166. NL80211_REKEY_DATA_REPLAY_CTR,
  5167. NL80211_REKEY_DATA_AKM,
  5168. /* keep last */
  5169. NUM_NL80211_REKEY_DATA,
  5170. MAX_NL80211_REKEY_DATA = NUM_NL80211_REKEY_DATA - 1
  5171. };
  5172. /**
  5173. * enum nl80211_hidden_ssid - values for %NL80211_ATTR_HIDDEN_SSID
  5174. * @NL80211_HIDDEN_SSID_NOT_IN_USE: do not hide SSID (i.e., broadcast it in
  5175. * Beacon frames)
  5176. * @NL80211_HIDDEN_SSID_ZERO_LEN: hide SSID by using zero-length SSID element
  5177. * in Beacon frames
  5178. * @NL80211_HIDDEN_SSID_ZERO_CONTENTS: hide SSID by using correct length of SSID
  5179. * element in Beacon frames but zero out each byte in the SSID
  5180. */
  5181. enum nl80211_hidden_ssid {
  5182. NL80211_HIDDEN_SSID_NOT_IN_USE,
  5183. NL80211_HIDDEN_SSID_ZERO_LEN,
  5184. NL80211_HIDDEN_SSID_ZERO_CONTENTS
  5185. };
  5186. /**
  5187. * enum nl80211_sta_wme_attr - station WME attributes
  5188. * @__NL80211_STA_WME_INVALID: invalid number for nested attribute
  5189. * @NL80211_STA_WME_UAPSD_QUEUES: bitmap of uapsd queues. the format
  5190. * is the same as the AC bitmap in the QoS info field.
  5191. * @NL80211_STA_WME_MAX_SP: max service period. the format is the same
  5192. * as the MAX_SP field in the QoS info field (but already shifted down).
  5193. * @__NL80211_STA_WME_AFTER_LAST: internal
  5194. * @NL80211_STA_WME_MAX: highest station WME attribute
  5195. */
  5196. enum nl80211_sta_wme_attr {
  5197. __NL80211_STA_WME_INVALID,
  5198. NL80211_STA_WME_UAPSD_QUEUES,
  5199. NL80211_STA_WME_MAX_SP,
  5200. /* keep last */
  5201. __NL80211_STA_WME_AFTER_LAST,
  5202. NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1
  5203. };
  5204. /**
  5205. * enum nl80211_pmksa_candidate_attr - attributes for PMKSA caching candidates
  5206. * @__NL80211_PMKSA_CANDIDATE_INVALID: invalid number for nested attributes
  5207. * @NL80211_PMKSA_CANDIDATE_INDEX: candidate index (u32; the smaller, the higher
  5208. * priority)
  5209. * @NL80211_PMKSA_CANDIDATE_BSSID: candidate BSSID (6 octets)
  5210. * @NL80211_PMKSA_CANDIDATE_PREAUTH: RSN pre-authentication supported (flag)
  5211. * @NUM_NL80211_PMKSA_CANDIDATE: number of PMKSA caching candidate attributes
  5212. * (internal)
  5213. * @MAX_NL80211_PMKSA_CANDIDATE: highest PMKSA caching candidate attribute
  5214. * (internal)
  5215. */
  5216. enum nl80211_pmksa_candidate_attr {
  5217. __NL80211_PMKSA_CANDIDATE_INVALID,
  5218. NL80211_PMKSA_CANDIDATE_INDEX,
  5219. NL80211_PMKSA_CANDIDATE_BSSID,
  5220. NL80211_PMKSA_CANDIDATE_PREAUTH,
  5221. /* keep last */
  5222. NUM_NL80211_PMKSA_CANDIDATE,
  5223. MAX_NL80211_PMKSA_CANDIDATE = NUM_NL80211_PMKSA_CANDIDATE - 1
  5224. };
  5225. /**
  5226. * enum nl80211_tdls_operation - values for %NL80211_ATTR_TDLS_OPERATION
  5227. * @NL80211_TDLS_DISCOVERY_REQ: Send a TDLS discovery request
  5228. * @NL80211_TDLS_SETUP: Setup TDLS link
  5229. * @NL80211_TDLS_TEARDOWN: Teardown a TDLS link which is already established
  5230. * @NL80211_TDLS_ENABLE_LINK: Enable TDLS link
  5231. * @NL80211_TDLS_DISABLE_LINK: Disable TDLS link
  5232. */
  5233. enum nl80211_tdls_operation {
  5234. NL80211_TDLS_DISCOVERY_REQ,
  5235. NL80211_TDLS_SETUP,
  5236. NL80211_TDLS_TEARDOWN,
  5237. NL80211_TDLS_ENABLE_LINK,
  5238. NL80211_TDLS_DISABLE_LINK,
  5239. };
  5240. /*
  5241. * enum nl80211_ap_sme_features - device-integrated AP features
  5242. * Reserved for future use, no bits are defined in
  5243. * NL80211_ATTR_DEVICE_AP_SME yet.
  5244. enum nl80211_ap_sme_features {
  5245. };
  5246. */
  5247. /**
  5248. * enum nl80211_feature_flags - device/driver features
  5249. * @NL80211_FEATURE_SK_TX_STATUS: This driver supports reflecting back
  5250. * TX status to the socket error queue when requested with the
  5251. * socket option.
  5252. * @NL80211_FEATURE_HT_IBSS: This driver supports IBSS with HT datarates.
  5253. * @NL80211_FEATURE_INACTIVITY_TIMER: This driver takes care of freeing up
  5254. * the connected inactive stations in AP mode.
  5255. * @NL80211_FEATURE_CELL_BASE_REG_HINTS: This driver has been tested
  5256. * to work properly to suppport receiving regulatory hints from
  5257. * cellular base stations.
  5258. * @NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL: (no longer available, only
  5259. * here to reserve the value for API/ABI compatibility)
  5260. * @NL80211_FEATURE_SAE: This driver supports simultaneous authentication of
  5261. * equals (SAE) with user space SME (NL80211_CMD_AUTHENTICATE) in station
  5262. * mode
  5263. * @NL80211_FEATURE_LOW_PRIORITY_SCAN: This driver supports low priority scan
  5264. * @NL80211_FEATURE_SCAN_FLUSH: Scan flush is supported
  5265. * @NL80211_FEATURE_AP_SCAN: Support scanning using an AP vif
  5266. * @NL80211_FEATURE_VIF_TXPOWER: The driver supports per-vif TX power setting
  5267. * @NL80211_FEATURE_NEED_OBSS_SCAN: The driver expects userspace to perform
  5268. * OBSS scans and generate 20/40 BSS coex reports. This flag is used only
  5269. * for drivers implementing the CONNECT API, for AUTH/ASSOC it is implied.
  5270. * @NL80211_FEATURE_P2P_GO_CTWIN: P2P GO implementation supports CT Window
  5271. * setting
  5272. * @NL80211_FEATURE_P2P_GO_OPPPS: P2P GO implementation supports opportunistic
  5273. * powersave
  5274. * @NL80211_FEATURE_FULL_AP_CLIENT_STATE: The driver supports full state
  5275. * transitions for AP clients. Without this flag (and if the driver
  5276. * doesn't have the AP SME in the device) the driver supports adding
  5277. * stations only when they're associated and adds them in associated
  5278. * state (to later be transitioned into authorized), with this flag
  5279. * they should be added before even sending the authentication reply
  5280. * and then transitioned into authenticated, associated and authorized
  5281. * states using station flags.
  5282. * Note that even for drivers that support this, the default is to add
  5283. * stations in authenticated/associated state, so to add unauthenticated
  5284. * stations the authenticated/associated bits have to be set in the mask.
  5285. * @NL80211_FEATURE_ADVERTISE_CHAN_LIMITS: cfg80211 advertises channel limits
  5286. * (HT40, VHT 80/160 MHz) if this flag is set
  5287. * @NL80211_FEATURE_USERSPACE_MPM: This driver supports a userspace Mesh
  5288. * Peering Management entity which may be implemented by registering for
  5289. * beacons or NL80211_CMD_NEW_PEER_CANDIDATE events. The mesh beacon is
  5290. * still generated by the driver.
  5291. * @NL80211_FEATURE_ACTIVE_MONITOR: This driver supports an active monitor
  5292. * interface. An active monitor interface behaves like a normal monitor
  5293. * interface, but gets added to the driver. It ensures that incoming
  5294. * unicast packets directed at the configured interface address get ACKed.
  5295. * @NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE: This driver supports dynamic
  5296. * channel bandwidth change (e.g., HT 20 <-> 40 MHz channel) during the
  5297. * lifetime of a BSS.
  5298. * @NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES: This device adds a DS Parameter
  5299. * Set IE to probe requests.
  5300. * @NL80211_FEATURE_WFA_TPC_IE_IN_PROBES: This device adds a WFA TPC Report IE
  5301. * to probe requests.
  5302. * @NL80211_FEATURE_QUIET: This device, in client mode, supports Quiet Period
  5303. * requests sent to it by an AP.
  5304. * @NL80211_FEATURE_TX_POWER_INSERTION: This device is capable of inserting the
  5305. * current tx power value into the TPC Report IE in the spectrum
  5306. * management TPC Report action frame, and in the Radio Measurement Link
  5307. * Measurement Report action frame.
  5308. * @NL80211_FEATURE_ACKTO_ESTIMATION: This driver supports dynamic ACK timeout
  5309. * estimation (dynack). %NL80211_ATTR_WIPHY_DYN_ACK flag attribute is used
  5310. * to enable dynack.
  5311. * @NL80211_FEATURE_STATIC_SMPS: Device supports static spatial
  5312. * multiplexing powersave, ie. can turn off all but one chain
  5313. * even on HT connections that should be using more chains.
  5314. * @NL80211_FEATURE_DYNAMIC_SMPS: Device supports dynamic spatial
  5315. * multiplexing powersave, ie. can turn off all but one chain
  5316. * and then wake the rest up as required after, for example,
  5317. * rts/cts handshake.
  5318. * @NL80211_FEATURE_SUPPORTS_WMM_ADMISSION: the device supports setting up WMM
  5319. * TSPEC sessions (TID aka TSID 0-7) with the %NL80211_CMD_ADD_TX_TS
  5320. * command. Standard IEEE 802.11 TSPEC setup is not yet supported, it
  5321. * needs to be able to handle Block-Ack agreements and other things.
  5322. * @NL80211_FEATURE_MAC_ON_CREATE: Device supports configuring
  5323. * the vif's MAC address upon creation.
  5324. * See 'macaddr' field in the vif_params (cfg80211.h).
  5325. * @NL80211_FEATURE_TDLS_CHANNEL_SWITCH: Driver supports channel switching when
  5326. * operating as a TDLS peer.
  5327. * @NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR: This device/driver supports using a
  5328. * random MAC address during scan (if the device is unassociated); the
  5329. * %NL80211_SCAN_FLAG_RANDOM_ADDR flag may be set for scans and the MAC
  5330. * address mask/value will be used.
  5331. * @NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR: This device/driver supports
  5332. * using a random MAC address for every scan iteration during scheduled
  5333. * scan (while not associated), the %NL80211_SCAN_FLAG_RANDOM_ADDR may
  5334. * be set for scheduled scan and the MAC address mask/value will be used.
  5335. * @NL80211_FEATURE_ND_RANDOM_MAC_ADDR: This device/driver supports using a
  5336. * random MAC address for every scan iteration during "net detect", i.e.
  5337. * scan in unassociated WoWLAN, the %NL80211_SCAN_FLAG_RANDOM_ADDR may
  5338. * be set for scheduled scan and the MAC address mask/value will be used.
  5339. */
  5340. enum nl80211_feature_flags {
  5341. NL80211_FEATURE_SK_TX_STATUS = 1 << 0,
  5342. NL80211_FEATURE_HT_IBSS = 1 << 1,
  5343. NL80211_FEATURE_INACTIVITY_TIMER = 1 << 2,
  5344. NL80211_FEATURE_CELL_BASE_REG_HINTS = 1 << 3,
  5345. NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 1 << 4,
  5346. NL80211_FEATURE_SAE = 1 << 5,
  5347. NL80211_FEATURE_LOW_PRIORITY_SCAN = 1 << 6,
  5348. NL80211_FEATURE_SCAN_FLUSH = 1 << 7,
  5349. NL80211_FEATURE_AP_SCAN = 1 << 8,
  5350. NL80211_FEATURE_VIF_TXPOWER = 1 << 9,
  5351. NL80211_FEATURE_NEED_OBSS_SCAN = 1 << 10,
  5352. NL80211_FEATURE_P2P_GO_CTWIN = 1 << 11,
  5353. NL80211_FEATURE_P2P_GO_OPPPS = 1 << 12,
  5354. /* bit 13 is reserved */
  5355. NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 1 << 14,
  5356. NL80211_FEATURE_FULL_AP_CLIENT_STATE = 1 << 15,
  5357. NL80211_FEATURE_USERSPACE_MPM = 1 << 16,
  5358. NL80211_FEATURE_ACTIVE_MONITOR = 1 << 17,
  5359. NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 1 << 18,
  5360. NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 1 << 19,
  5361. NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1 << 20,
  5362. NL80211_FEATURE_QUIET = 1 << 21,
  5363. NL80211_FEATURE_TX_POWER_INSERTION = 1 << 22,
  5364. NL80211_FEATURE_ACKTO_ESTIMATION = 1 << 23,
  5365. NL80211_FEATURE_STATIC_SMPS = 1 << 24,
  5366. NL80211_FEATURE_DYNAMIC_SMPS = 1 << 25,
  5367. NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 1 << 26,
  5368. NL80211_FEATURE_MAC_ON_CREATE = 1 << 27,
  5369. NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 1 << 28,
  5370. NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 1 << 29,
  5371. NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 1 << 30,
  5372. NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 1U << 31,
  5373. };
  5374. /**
  5375. * enum nl80211_ext_feature_index - bit index of extended features.
  5376. * @NL80211_EXT_FEATURE_VHT_IBSS: This driver supports IBSS with VHT datarates.
  5377. * @NL80211_EXT_FEATURE_RRM: This driver supports RRM. When featured, user can
  5378. * request to use RRM (see %NL80211_ATTR_USE_RRM) with
  5379. * %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests, which will set
  5380. * the ASSOC_REQ_USE_RRM flag in the association request even if
  5381. * NL80211_FEATURE_QUIET is not advertized.
  5382. * @NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER: This device supports MU-MIMO air
  5383. * sniffer which means that it can be configured to hear packets from
  5384. * certain groups which can be configured by the
  5385. * %NL80211_ATTR_MU_MIMO_GROUP_DATA attribute,
  5386. * or can be configured to follow a station by configuring the
  5387. * %NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR attribute.
  5388. * @NL80211_EXT_FEATURE_SCAN_START_TIME: This driver includes the actual
  5389. * time the scan started in scan results event. The time is the TSF of
  5390. * the BSS that the interface that requested the scan is connected to
  5391. * (if available).
  5392. * @NL80211_EXT_FEATURE_BSS_PARENT_TSF: Per BSS, this driver reports the
  5393. * time the last beacon/probe was received. The time is the TSF of the
  5394. * BSS that the interface that requested the scan is connected to
  5395. * (if available).
  5396. * @NL80211_EXT_FEATURE_SET_SCAN_DWELL: This driver supports configuration of
  5397. * channel dwell time.
  5398. * @NL80211_EXT_FEATURE_BEACON_RATE_LEGACY: Driver supports beacon rate
  5399. * configuration (AP/mesh), supporting a legacy (non HT/VHT) rate.
  5400. * @NL80211_EXT_FEATURE_BEACON_RATE_HT: Driver supports beacon rate
  5401. * configuration (AP/mesh) with HT rates.
  5402. * @NL80211_EXT_FEATURE_BEACON_RATE_VHT: Driver supports beacon rate
  5403. * configuration (AP/mesh) with VHT rates.
  5404. * @NL80211_EXT_FEATURE_FILS_STA: This driver supports Fast Initial Link Setup
  5405. * with user space SME (NL80211_CMD_AUTHENTICATE) in station mode.
  5406. * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA: This driver supports randomized TA
  5407. * in @NL80211_CMD_FRAME while not associated.
  5408. * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED: This driver supports
  5409. * randomized TA in @NL80211_CMD_FRAME while associated.
  5410. * @NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI: The driver supports sched_scan
  5411. * for reporting BSSs with better RSSI than the current connected BSS
  5412. * (%NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI).
  5413. * @NL80211_EXT_FEATURE_CQM_RSSI_LIST: With this driver the
  5414. * %NL80211_ATTR_CQM_RSSI_THOLD attribute accepts a list of zero or more
  5415. * RSSI threshold values to monitor rather than exactly one threshold.
  5416. * @NL80211_EXT_FEATURE_FILS_SK_OFFLOAD: Driver SME supports FILS shared key
  5417. * authentication with %NL80211_CMD_CONNECT.
  5418. * @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK: Device wants to do 4-way
  5419. * handshake with PSK in station mode (PSK is passed as part of the connect
  5420. * and associate commands), doing it in the host might not be supported.
  5421. * @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X: Device wants to do doing 4-way
  5422. * handshake with 802.1X in station mode (will pass EAP frames to the host
  5423. * and accept the set_pmk/del_pmk commands), doing it in the host might not
  5424. * be supported.
  5425. * @NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME: Driver is capable of overriding
  5426. * the max channel attribute in the FILS request params IE with the
  5427. * actual dwell time.
  5428. * @NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP: Driver accepts broadcast probe
  5429. * response
  5430. * @NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE: Driver supports sending
  5431. * the first probe request in each channel at rate of at least 5.5Mbps.
  5432. * @NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: Driver supports
  5433. * probe request tx deferral and suppression
  5434. * @NL80211_EXT_FEATURE_MFP_OPTIONAL: Driver supports the %NL80211_MFP_OPTIONAL
  5435. * value in %NL80211_ATTR_USE_MFP.
  5436. * @NL80211_EXT_FEATURE_LOW_SPAN_SCAN: Driver supports low span scan.
  5437. * @NL80211_EXT_FEATURE_LOW_POWER_SCAN: Driver supports low power scan.
  5438. * @NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN: Driver supports high accuracy scan.
  5439. * @NL80211_EXT_FEATURE_DFS_OFFLOAD: HW/driver will offload DFS actions.
  5440. * Device or driver will do all DFS-related actions by itself,
  5441. * informing user-space about CAC progress, radar detection event,
  5442. * channel change triggered by radar detection event.
  5443. * No need to start CAC from user-space, no need to react to
  5444. * "radar detected" event.
  5445. * @NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211: Driver supports sending and
  5446. * receiving control port frames over nl80211 instead of the netdevice.
  5447. * @NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT: This driver/device supports
  5448. * (average) ACK signal strength reporting.
  5449. * @NL80211_EXT_FEATURE_TXQS: Driver supports FQ-CoDel-enabled intermediate
  5450. * TXQs.
  5451. * @NL80211_EXT_FEATURE_SCAN_RANDOM_SN: Driver/device supports randomizing the
  5452. * SN in probe request frames if requested by %NL80211_SCAN_FLAG_RANDOM_SN.
  5453. * @NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT: Driver/device can omit all data
  5454. * except for supported rates from the probe request content if requested
  5455. * by the %NL80211_SCAN_FLAG_MIN_PREQ_CONTENT flag.
  5456. * @NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER: Driver supports enabling fine
  5457. * timing measurement responder role.
  5458. *
  5459. * @NL80211_EXT_FEATURE_CAN_REPLACE_PTK0: Driver/device confirm that they are
  5460. * able to rekey an in-use key correctly. Userspace must not rekey PTK keys
  5461. * if this flag is not set. Ignoring this can leak clear text packets and/or
  5462. * freeze the connection.
  5463. * @NL80211_EXT_FEATURE_EXT_KEY_ID: Driver supports "Extended Key ID for
  5464. * Individually Addressed Frames" from IEEE802.11-2016.
  5465. *
  5466. * @NL80211_EXT_FEATURE_AIRTIME_FAIRNESS: Driver supports getting airtime
  5467. * fairness for transmitted packets and has enabled airtime fairness
  5468. * scheduling.
  5469. *
  5470. * @NL80211_EXT_FEATURE_AP_PMKSA_CACHING: Driver/device supports PMKSA caching
  5471. * (set/del PMKSA operations) in AP mode.
  5472. *
  5473. * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Driver supports
  5474. * filtering of sched scan results using band specific RSSI thresholds.
  5475. *
  5476. * @NL80211_EXT_FEATURE_STA_TX_PWR: This driver supports controlling tx power
  5477. * to a station.
  5478. *
  5479. * @NL80211_EXT_FEATURE_SAE_OFFLOAD: Device wants to do SAE authentication in
  5480. * station mode (SAE password is passed as part of the connect command).
  5481. *
  5482. * @NL80211_EXT_FEATURE_VLAN_OFFLOAD: The driver supports a single netdev
  5483. * with VLAN tagged frames and separate VLAN-specific netdevs added using
  5484. * vconfig similarly to the Ethernet case.
  5485. *
  5486. * @NL80211_EXT_FEATURE_AQL: The driver supports the Airtime Queue Limit (AQL)
  5487. * feature, which prevents bufferbloat by using the expected transmission
  5488. * time to limit the amount of data buffered in the hardware.
  5489. *
  5490. * @NL80211_EXT_FEATURE_BEACON_PROTECTION: The driver supports Beacon protection
  5491. * and can receive key configuration for BIGTK using key indexes 6 and 7.
  5492. * @NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT: The driver supports Beacon
  5493. * protection as a client only and cannot transmit protected beacons.
  5494. *
  5495. * @NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH: The driver can disable the
  5496. * forwarding of preauth frames over the control port. They are then
  5497. * handled as ordinary data frames.
  5498. *
  5499. * @NL80211_EXT_FEATURE_PROTECTED_TWT: Driver supports protected TWT frames
  5500. *
  5501. * @NL80211_EXT_FEATURE_DEL_IBSS_STA: The driver supports removing stations
  5502. * in IBSS mode, essentially by dropping their state.
  5503. *
  5504. * @NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS: management frame registrations
  5505. * are possible for multicast frames and those will be reported properly.
  5506. *
  5507. * @NL80211_EXT_FEATURE_SCAN_FREQ_KHZ: This driver supports receiving and
  5508. * reporting scan request with %NL80211_ATTR_SCAN_FREQ_KHZ. In order to
  5509. * report %NL80211_ATTR_SCAN_FREQ_KHZ, %NL80211_SCAN_FLAG_FREQ_KHZ must be
  5510. * included in the scan request.
  5511. *
  5512. * @NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS: The driver
  5513. * can report tx status for control port over nl80211 tx operations.
  5514. *
  5515. * @NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION: Driver supports Operating
  5516. * Channel Validation (OCV) when using driver's SME for RSNA handshakes.
  5517. *
  5518. * @NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK: Device wants to do 4-way
  5519. * handshake with PSK in AP mode (PSK is passed as part of the start AP
  5520. * command).
  5521. *
  5522. * @NL80211_EXT_FEATURE_SAE_OFFLOAD_AP: Device wants to do SAE authentication
  5523. * in AP mode (SAE password is passed as part of the start AP command).
  5524. *
  5525. * @NL80211_EXT_FEATURE_FILS_DISCOVERY: Driver/device supports FILS discovery
  5526. * frames transmission
  5527. *
  5528. * @NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP: Driver/device supports
  5529. * unsolicited broadcast probe response transmission
  5530. *
  5531. * @NL80211_EXT_FEATURE_BEACON_RATE_HE: Driver supports beacon rate
  5532. * configuration (AP/mesh) with HE rates.
  5533. *
  5534. * @NL80211_EXT_FEATURE_SECURE_LTF: Device supports secure LTF measurement
  5535. * exchange protocol.
  5536. *
  5537. * @NL80211_EXT_FEATURE_SECURE_RTT: Device supports secure RTT measurement
  5538. * exchange protocol.
  5539. *
  5540. * @NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE: Device supports management
  5541. * frame protection for all management frames exchanged during the
  5542. * negotiation and range measurement procedure.
  5543. *
  5544. * @NL80211_EXT_FEATURE_BSS_COLOR: The driver supports BSS color collision
  5545. * detection and change announcemnts.
  5546. *
  5547. * @NUM_NL80211_EXT_FEATURES: number of extended features.
  5548. * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
  5549. */
  5550. enum nl80211_ext_feature_index {
  5551. NL80211_EXT_FEATURE_VHT_IBSS,
  5552. NL80211_EXT_FEATURE_RRM,
  5553. NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER,
  5554. NL80211_EXT_FEATURE_SCAN_START_TIME,
  5555. NL80211_EXT_FEATURE_BSS_PARENT_TSF,
  5556. NL80211_EXT_FEATURE_SET_SCAN_DWELL,
  5557. NL80211_EXT_FEATURE_BEACON_RATE_LEGACY,
  5558. NL80211_EXT_FEATURE_BEACON_RATE_HT,
  5559. NL80211_EXT_FEATURE_BEACON_RATE_VHT,
  5560. NL80211_EXT_FEATURE_FILS_STA,
  5561. NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA,
  5562. NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED,
  5563. NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI,
  5564. NL80211_EXT_FEATURE_CQM_RSSI_LIST,
  5565. NL80211_EXT_FEATURE_FILS_SK_OFFLOAD,
  5566. NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK,
  5567. NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X,
  5568. NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME,
  5569. NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP,
  5570. NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE,
  5571. NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION,
  5572. NL80211_EXT_FEATURE_MFP_OPTIONAL,
  5573. NL80211_EXT_FEATURE_LOW_SPAN_SCAN,
  5574. NL80211_EXT_FEATURE_LOW_POWER_SCAN,
  5575. NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN,
  5576. NL80211_EXT_FEATURE_DFS_OFFLOAD,
  5577. NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211,
  5578. NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT,
  5579. /* we renamed this - stay compatible */
  5580. NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT = NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT,
  5581. NL80211_EXT_FEATURE_TXQS,
  5582. NL80211_EXT_FEATURE_SCAN_RANDOM_SN,
  5583. NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT,
  5584. NL80211_EXT_FEATURE_CAN_REPLACE_PTK0,
  5585. NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER,
  5586. NL80211_EXT_FEATURE_AIRTIME_FAIRNESS,
  5587. NL80211_EXT_FEATURE_AP_PMKSA_CACHING,
  5588. NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD,
  5589. NL80211_EXT_FEATURE_EXT_KEY_ID,
  5590. NL80211_EXT_FEATURE_STA_TX_PWR,
  5591. NL80211_EXT_FEATURE_SAE_OFFLOAD,
  5592. NL80211_EXT_FEATURE_VLAN_OFFLOAD,
  5593. NL80211_EXT_FEATURE_AQL,
  5594. NL80211_EXT_FEATURE_BEACON_PROTECTION,
  5595. NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH,
  5596. NL80211_EXT_FEATURE_PROTECTED_TWT,
  5597. NL80211_EXT_FEATURE_DEL_IBSS_STA,
  5598. NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS,
  5599. NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT,
  5600. NL80211_EXT_FEATURE_SCAN_FREQ_KHZ,
  5601. NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS,
  5602. NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION,
  5603. NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK,
  5604. NL80211_EXT_FEATURE_SAE_OFFLOAD_AP,
  5605. NL80211_EXT_FEATURE_FILS_DISCOVERY,
  5606. NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP,
  5607. NL80211_EXT_FEATURE_BEACON_RATE_HE,
  5608. NL80211_EXT_FEATURE_SECURE_LTF,
  5609. NL80211_EXT_FEATURE_SECURE_RTT,
  5610. NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE,
  5611. NL80211_EXT_FEATURE_BSS_COLOR,
  5612. /* add new features before the definition below */
  5613. NUM_NL80211_EXT_FEATURES,
  5614. MAX_NL80211_EXT_FEATURES = NUM_NL80211_EXT_FEATURES - 1
  5615. };
  5616. /**
  5617. * enum nl80211_probe_resp_offload_support_attr - optional supported
  5618. * protocols for probe-response offloading by the driver/FW.
  5619. * To be used with the %NL80211_ATTR_PROBE_RESP_OFFLOAD attribute.
  5620. * Each enum value represents a bit in the bitmap of supported
  5621. * protocols. Typically a subset of probe-requests belonging to a
  5622. * supported protocol will be excluded from offload and uploaded
  5623. * to the host.
  5624. *
  5625. * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS: Support for WPS ver. 1
  5626. * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2: Support for WPS ver. 2
  5627. * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P: Support for P2P
  5628. * @NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U: Support for 802.11u
  5629. */
  5630. enum nl80211_probe_resp_offload_support_attr {
  5631. NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1<<0,
  5632. NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 1<<1,
  5633. NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 1<<2,
  5634. NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 1<<3,
  5635. };
  5636. /**
  5637. * enum nl80211_connect_failed_reason - connection request failed reasons
  5638. * @NL80211_CONN_FAIL_MAX_CLIENTS: Maximum number of clients that can be
  5639. * handled by the AP is reached.
  5640. * @NL80211_CONN_FAIL_BLOCKED_CLIENT: Connection request is rejected due to ACL.
  5641. */
  5642. enum nl80211_connect_failed_reason {
  5643. NL80211_CONN_FAIL_MAX_CLIENTS,
  5644. NL80211_CONN_FAIL_BLOCKED_CLIENT,
  5645. };
  5646. /**
  5647. * enum nl80211_timeout_reason - timeout reasons
  5648. *
  5649. * @NL80211_TIMEOUT_UNSPECIFIED: Timeout reason unspecified.
  5650. * @NL80211_TIMEOUT_SCAN: Scan (AP discovery) timed out.
  5651. * @NL80211_TIMEOUT_AUTH: Authentication timed out.
  5652. * @NL80211_TIMEOUT_ASSOC: Association timed out.
  5653. */
  5654. enum nl80211_timeout_reason {
  5655. NL80211_TIMEOUT_UNSPECIFIED,
  5656. NL80211_TIMEOUT_SCAN,
  5657. NL80211_TIMEOUT_AUTH,
  5658. NL80211_TIMEOUT_ASSOC,
  5659. };
  5660. /**
  5661. * enum nl80211_scan_flags - scan request control flags
  5662. *
  5663. * Scan request control flags are used to control the handling
  5664. * of NL80211_CMD_TRIGGER_SCAN and NL80211_CMD_START_SCHED_SCAN
  5665. * requests.
  5666. *
  5667. * NL80211_SCAN_FLAG_LOW_SPAN, NL80211_SCAN_FLAG_LOW_POWER, and
  5668. * NL80211_SCAN_FLAG_HIGH_ACCURACY flags are exclusive of each other, i.e., only
  5669. * one of them can be used in the request.
  5670. *
  5671. * @NL80211_SCAN_FLAG_LOW_PRIORITY: scan request has low priority
  5672. * @NL80211_SCAN_FLAG_FLUSH: flush cache before scanning
  5673. * @NL80211_SCAN_FLAG_AP: force a scan even if the interface is configured
  5674. * as AP and the beaconing has already been configured. This attribute is
  5675. * dangerous because will destroy stations performance as a lot of frames
  5676. * will be lost while scanning off-channel, therefore it must be used only
  5677. * when really needed
  5678. * @NL80211_SCAN_FLAG_RANDOM_ADDR: use a random MAC address for this scan (or
  5679. * for scheduled scan: a different one for every scan iteration). When the
  5680. * flag is set, depending on device capabilities the @NL80211_ATTR_MAC and
  5681. * @NL80211_ATTR_MAC_MASK attributes may also be given in which case only
  5682. * the masked bits will be preserved from the MAC address and the remainder
  5683. * randomised. If the attributes are not given full randomisation (46 bits,
  5684. * locally administered 1, multicast 0) is assumed.
  5685. * This flag must not be requested when the feature isn't supported, check
  5686. * the nl80211 feature flags for the device.
  5687. * @NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME: fill the dwell time in the FILS
  5688. * request parameters IE in the probe request
  5689. * @NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP: accept broadcast probe responses
  5690. * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE: send probe request frames at
  5691. * rate of at least 5.5M. In case non OCE AP is discovered in the channel,
  5692. * only the first probe req in the channel will be sent in high rate.
  5693. * @NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: allow probe request
  5694. * tx deferral (dot11FILSProbeDelay shall be set to 15ms)
  5695. * and suppression (if it has received a broadcast Probe Response frame,
  5696. * Beacon frame or FILS Discovery frame from an AP that the STA considers
  5697. * a suitable candidate for (re-)association - suitable in terms of
  5698. * SSID and/or RSSI.
  5699. * @NL80211_SCAN_FLAG_LOW_SPAN: Span corresponds to the total time taken to
  5700. * accomplish the scan. Thus, this flag intends the driver to perform the
  5701. * scan request with lesser span/duration. It is specific to the driver
  5702. * implementations on how this is accomplished. Scan accuracy may get
  5703. * impacted with this flag.
  5704. * @NL80211_SCAN_FLAG_LOW_POWER: This flag intends the scan attempts to consume
  5705. * optimal possible power. Drivers can resort to their specific means to
  5706. * optimize the power. Scan accuracy may get impacted with this flag.
  5707. * @NL80211_SCAN_FLAG_HIGH_ACCURACY: Accuracy here intends to the extent of scan
  5708. * results obtained. Thus HIGH_ACCURACY scan flag aims to get maximum
  5709. * possible scan results. This flag hints the driver to use the best
  5710. * possible scan configuration to improve the accuracy in scanning.
  5711. * Latency and power use may get impacted with this flag.
  5712. * @NL80211_SCAN_FLAG_RANDOM_SN: randomize the sequence number in probe
  5713. * request frames from this scan to avoid correlation/tracking being
  5714. * possible.
  5715. * @NL80211_SCAN_FLAG_MIN_PREQ_CONTENT: minimize probe request content to
  5716. * only have supported rates and no additional capabilities (unless
  5717. * added by userspace explicitly.)
  5718. * @NL80211_SCAN_FLAG_FREQ_KHZ: report scan results with
  5719. * %NL80211_ATTR_SCAN_FREQ_KHZ. This also means
  5720. * %NL80211_ATTR_SCAN_FREQUENCIES will not be included.
  5721. * @NL80211_SCAN_FLAG_COLOCATED_6GHZ: scan for colocated APs reported by
  5722. * 2.4/5 GHz APs
  5723. */
  5724. enum nl80211_scan_flags {
  5725. NL80211_SCAN_FLAG_LOW_PRIORITY = 1<<0,
  5726. NL80211_SCAN_FLAG_FLUSH = 1<<1,
  5727. NL80211_SCAN_FLAG_AP = 1<<2,
  5728. NL80211_SCAN_FLAG_RANDOM_ADDR = 1<<3,
  5729. NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME = 1<<4,
  5730. NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP = 1<<5,
  5731. NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE = 1<<6,
  5732. NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 1<<7,
  5733. NL80211_SCAN_FLAG_LOW_SPAN = 1<<8,
  5734. NL80211_SCAN_FLAG_LOW_POWER = 1<<9,
  5735. NL80211_SCAN_FLAG_HIGH_ACCURACY = 1<<10,
  5736. NL80211_SCAN_FLAG_RANDOM_SN = 1<<11,
  5737. NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 1<<12,
  5738. NL80211_SCAN_FLAG_FREQ_KHZ = 1<<13,
  5739. NL80211_SCAN_FLAG_COLOCATED_6GHZ = 1<<14,
  5740. };
  5741. /**
  5742. * enum nl80211_acl_policy - access control policy
  5743. *
  5744. * Access control policy is applied on a MAC list set by
  5745. * %NL80211_CMD_START_AP and %NL80211_CMD_SET_MAC_ACL, to
  5746. * be used with %NL80211_ATTR_ACL_POLICY.
  5747. *
  5748. * @NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED: Deny stations which are
  5749. * listed in ACL, i.e. allow all the stations which are not listed
  5750. * in ACL to authenticate.
  5751. * @NL80211_ACL_POLICY_DENY_UNLESS_LISTED: Allow the stations which are listed
  5752. * in ACL, i.e. deny all the stations which are not listed in ACL.
  5753. */
  5754. enum nl80211_acl_policy {
  5755. NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED,
  5756. NL80211_ACL_POLICY_DENY_UNLESS_LISTED,
  5757. };
  5758. /**
  5759. * enum nl80211_smps_mode - SMPS mode
  5760. *
  5761. * Requested SMPS mode (for AP mode)
  5762. *
  5763. * @NL80211_SMPS_OFF: SMPS off (use all antennas).
  5764. * @NL80211_SMPS_STATIC: static SMPS (use a single antenna)
  5765. * @NL80211_SMPS_DYNAMIC: dynamic smps (start with a single antenna and
  5766. * turn on other antennas after CTS/RTS).
  5767. */
  5768. enum nl80211_smps_mode {
  5769. NL80211_SMPS_OFF,
  5770. NL80211_SMPS_STATIC,
  5771. NL80211_SMPS_DYNAMIC,
  5772. __NL80211_SMPS_AFTER_LAST,
  5773. NL80211_SMPS_MAX = __NL80211_SMPS_AFTER_LAST - 1
  5774. };
  5775. /**
  5776. * enum nl80211_radar_event - type of radar event for DFS operation
  5777. *
  5778. * Type of event to be used with NL80211_ATTR_RADAR_EVENT to inform userspace
  5779. * about detected radars or success of the channel available check (CAC)
  5780. *
  5781. * @NL80211_RADAR_DETECTED: A radar pattern has been detected. The channel is
  5782. * now unusable.
  5783. * @NL80211_RADAR_CAC_FINISHED: Channel Availability Check has been finished,
  5784. * the channel is now available.
  5785. * @NL80211_RADAR_CAC_ABORTED: Channel Availability Check has been aborted, no
  5786. * change to the channel status.
  5787. * @NL80211_RADAR_NOP_FINISHED: The Non-Occupancy Period for this channel is
  5788. * over, channel becomes usable.
  5789. * @NL80211_RADAR_PRE_CAC_EXPIRED: Channel Availability Check done on this
  5790. * non-operating channel is expired and no longer valid. New CAC must
  5791. * be done on this channel before starting the operation. This is not
  5792. * applicable for ETSI dfs domain where pre-CAC is valid for ever.
  5793. * @NL80211_RADAR_CAC_STARTED: Channel Availability Check has been started,
  5794. * should be generated by HW if NL80211_EXT_FEATURE_DFS_OFFLOAD is enabled.
  5795. */
  5796. enum nl80211_radar_event {
  5797. NL80211_RADAR_DETECTED,
  5798. NL80211_RADAR_CAC_FINISHED,
  5799. NL80211_RADAR_CAC_ABORTED,
  5800. NL80211_RADAR_NOP_FINISHED,
  5801. NL80211_RADAR_PRE_CAC_EXPIRED,
  5802. NL80211_RADAR_CAC_STARTED,
  5803. };
  5804. /**
  5805. * enum nl80211_dfs_state - DFS states for channels
  5806. *
  5807. * Channel states used by the DFS code.
  5808. *
  5809. * @NL80211_DFS_USABLE: The channel can be used, but channel availability
  5810. * check (CAC) must be performed before using it for AP or IBSS.
  5811. * @NL80211_DFS_UNAVAILABLE: A radar has been detected on this channel, it
  5812. * is therefore marked as not available.
  5813. * @NL80211_DFS_AVAILABLE: The channel has been CAC checked and is available.
  5814. */
  5815. enum nl80211_dfs_state {
  5816. NL80211_DFS_USABLE,
  5817. NL80211_DFS_UNAVAILABLE,
  5818. NL80211_DFS_AVAILABLE,
  5819. };
  5820. /**
  5821. * enum nl80211_protocol_features - nl80211 protocol features
  5822. * @NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP: nl80211 supports splitting
  5823. * wiphy dumps (if requested by the application with the attribute
  5824. * %NL80211_ATTR_SPLIT_WIPHY_DUMP. Also supported is filtering the
  5825. * wiphy dump by %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFINDEX or
  5826. * %NL80211_ATTR_WDEV.
  5827. */
  5828. enum nl80211_protocol_features {
  5829. NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1 << 0,
  5830. };
  5831. /**
  5832. * enum nl80211_crit_proto_id - nl80211 critical protocol identifiers
  5833. *
  5834. * @NL80211_CRIT_PROTO_UNSPEC: protocol unspecified.
  5835. * @NL80211_CRIT_PROTO_DHCP: BOOTP or DHCPv6 protocol.
  5836. * @NL80211_CRIT_PROTO_EAPOL: EAPOL protocol.
  5837. * @NL80211_CRIT_PROTO_APIPA: APIPA protocol.
  5838. * @NUM_NL80211_CRIT_PROTO: must be kept last.
  5839. */
  5840. enum nl80211_crit_proto_id {
  5841. NL80211_CRIT_PROTO_UNSPEC,
  5842. NL80211_CRIT_PROTO_DHCP,
  5843. NL80211_CRIT_PROTO_EAPOL,
  5844. NL80211_CRIT_PROTO_APIPA,
  5845. /* add other protocols before this one */
  5846. NUM_NL80211_CRIT_PROTO
  5847. };
  5848. /* maximum duration for critical protocol measures */
  5849. #define NL80211_CRIT_PROTO_MAX_DURATION 5000 /* msec */
  5850. /**
  5851. * enum nl80211_rxmgmt_flags - flags for received management frame.
  5852. *
  5853. * Used by cfg80211_rx_mgmt()
  5854. *
  5855. * @NL80211_RXMGMT_FLAG_ANSWERED: frame was answered by device/driver.
  5856. * @NL80211_RXMGMT_FLAG_EXTERNAL_AUTH: Host driver intends to offload
  5857. * the authentication. Exclusively defined for host drivers that
  5858. * advertises the SME functionality but would like the userspace
  5859. * to handle certain authentication algorithms (e.g. SAE).
  5860. */
  5861. enum nl80211_rxmgmt_flags {
  5862. NL80211_RXMGMT_FLAG_ANSWERED = 1 << 0,
  5863. NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 1 << 1,
  5864. };
  5865. /*
  5866. * If this flag is unset, the lower 24 bits are an OUI, if set
  5867. * a Linux nl80211 vendor ID is used (no such IDs are allocated
  5868. * yet, so that's not valid so far)
  5869. */
  5870. #define NL80211_VENDOR_ID_IS_LINUX 0x80000000
  5871. /**
  5872. * struct nl80211_vendor_cmd_info - vendor command data
  5873. * @vendor_id: If the %NL80211_VENDOR_ID_IS_LINUX flag is clear, then the
  5874. * value is a 24-bit OUI; if it is set then a separately allocated ID
  5875. * may be used, but no such IDs are allocated yet. New IDs should be
  5876. * added to this file when needed.
  5877. * @subcmd: sub-command ID for the command
  5878. */
  5879. struct nl80211_vendor_cmd_info {
  5880. __u32 vendor_id;
  5881. __u32 subcmd;
  5882. };
  5883. /**
  5884. * enum nl80211_tdls_peer_capability - TDLS peer flags.
  5885. *
  5886. * Used by tdls_mgmt() to determine which conditional elements need
  5887. * to be added to TDLS Setup frames.
  5888. *
  5889. * @NL80211_TDLS_PEER_HT: TDLS peer is HT capable.
  5890. * @NL80211_TDLS_PEER_VHT: TDLS peer is VHT capable.
  5891. * @NL80211_TDLS_PEER_WMM: TDLS peer is WMM capable.
  5892. * @NL80211_TDLS_PEER_HE: TDLS peer is HE capable.
  5893. */
  5894. enum nl80211_tdls_peer_capability {
  5895. NL80211_TDLS_PEER_HT = 1<<0,
  5896. NL80211_TDLS_PEER_VHT = 1<<1,
  5897. NL80211_TDLS_PEER_WMM = 1<<2,
  5898. NL80211_TDLS_PEER_HE = 1<<3,
  5899. };
  5900. /**
  5901. * enum nl80211_sched_scan_plan - scanning plan for scheduled scan
  5902. * @__NL80211_SCHED_SCAN_PLAN_INVALID: attribute number 0 is reserved
  5903. * @NL80211_SCHED_SCAN_PLAN_INTERVAL: interval between scan iterations. In
  5904. * seconds (u32).
  5905. * @NL80211_SCHED_SCAN_PLAN_ITERATIONS: number of scan iterations in this
  5906. * scan plan (u32). The last scan plan must not specify this attribute
  5907. * because it will run infinitely. A value of zero is invalid as it will
  5908. * make the scan plan meaningless.
  5909. * @NL80211_SCHED_SCAN_PLAN_MAX: highest scheduled scan plan attribute number
  5910. * currently defined
  5911. * @__NL80211_SCHED_SCAN_PLAN_AFTER_LAST: internal use
  5912. */
  5913. enum nl80211_sched_scan_plan {
  5914. __NL80211_SCHED_SCAN_PLAN_INVALID,
  5915. NL80211_SCHED_SCAN_PLAN_INTERVAL,
  5916. NL80211_SCHED_SCAN_PLAN_ITERATIONS,
  5917. /* keep last */
  5918. __NL80211_SCHED_SCAN_PLAN_AFTER_LAST,
  5919. NL80211_SCHED_SCAN_PLAN_MAX =
  5920. __NL80211_SCHED_SCAN_PLAN_AFTER_LAST - 1
  5921. };
  5922. /**
  5923. * struct nl80211_bss_select_rssi_adjust - RSSI adjustment parameters.
  5924. *
  5925. * @band: band of BSS that must match for RSSI value adjustment. The value
  5926. * of this field is according to &enum nl80211_band.
  5927. * @delta: value used to adjust the RSSI value of matching BSS in dB.
  5928. */
  5929. struct nl80211_bss_select_rssi_adjust {
  5930. __u8 band;
  5931. __s8 delta;
  5932. } __attribute__((packed));
  5933. /**
  5934. * enum nl80211_bss_select_attr - attributes for bss selection.
  5935. *
  5936. * @__NL80211_BSS_SELECT_ATTR_INVALID: reserved.
  5937. * @NL80211_BSS_SELECT_ATTR_RSSI: Flag indicating only RSSI-based BSS selection
  5938. * is requested.
  5939. * @NL80211_BSS_SELECT_ATTR_BAND_PREF: attribute indicating BSS
  5940. * selection should be done such that the specified band is preferred.
  5941. * When there are multiple BSS-es in the preferred band, the driver
  5942. * shall use RSSI-based BSS selection as a second step. The value of
  5943. * this attribute is according to &enum nl80211_band (u32).
  5944. * @NL80211_BSS_SELECT_ATTR_RSSI_ADJUST: When present the RSSI level for
  5945. * BSS-es in the specified band is to be adjusted before doing
  5946. * RSSI-based BSS selection. The attribute value is a packed structure
  5947. * value as specified by &struct nl80211_bss_select_rssi_adjust.
  5948. * @NL80211_BSS_SELECT_ATTR_MAX: highest bss select attribute number.
  5949. * @__NL80211_BSS_SELECT_ATTR_AFTER_LAST: internal use.
  5950. *
  5951. * One and only one of these attributes are found within %NL80211_ATTR_BSS_SELECT
  5952. * for %NL80211_CMD_CONNECT. It specifies the required BSS selection behaviour
  5953. * which the driver shall use.
  5954. */
  5955. enum nl80211_bss_select_attr {
  5956. __NL80211_BSS_SELECT_ATTR_INVALID,
  5957. NL80211_BSS_SELECT_ATTR_RSSI,
  5958. NL80211_BSS_SELECT_ATTR_BAND_PREF,
  5959. NL80211_BSS_SELECT_ATTR_RSSI_ADJUST,
  5960. /* keep last */
  5961. __NL80211_BSS_SELECT_ATTR_AFTER_LAST,
  5962. NL80211_BSS_SELECT_ATTR_MAX = __NL80211_BSS_SELECT_ATTR_AFTER_LAST - 1
  5963. };
  5964. /**
  5965. * enum nl80211_nan_function_type - NAN function type
  5966. *
  5967. * Defines the function type of a NAN function
  5968. *
  5969. * @NL80211_NAN_FUNC_PUBLISH: function is publish
  5970. * @NL80211_NAN_FUNC_SUBSCRIBE: function is subscribe
  5971. * @NL80211_NAN_FUNC_FOLLOW_UP: function is follow-up
  5972. */
  5973. enum nl80211_nan_function_type {
  5974. NL80211_NAN_FUNC_PUBLISH,
  5975. NL80211_NAN_FUNC_SUBSCRIBE,
  5976. NL80211_NAN_FUNC_FOLLOW_UP,
  5977. /* keep last */
  5978. __NL80211_NAN_FUNC_TYPE_AFTER_LAST,
  5979. NL80211_NAN_FUNC_MAX_TYPE = __NL80211_NAN_FUNC_TYPE_AFTER_LAST - 1,
  5980. };
  5981. /**
  5982. * enum nl80211_nan_publish_type - NAN publish tx type
  5983. *
  5984. * Defines how to send publish Service Discovery Frames
  5985. *
  5986. * @NL80211_NAN_SOLICITED_PUBLISH: publish function is solicited
  5987. * @NL80211_NAN_UNSOLICITED_PUBLISH: publish function is unsolicited
  5988. */
  5989. enum nl80211_nan_publish_type {
  5990. NL80211_NAN_SOLICITED_PUBLISH = 1 << 0,
  5991. NL80211_NAN_UNSOLICITED_PUBLISH = 1 << 1,
  5992. };
  5993. /**
  5994. * enum nl80211_nan_func_term_reason - NAN functions termination reason
  5995. *
  5996. * Defines termination reasons of a NAN function
  5997. *
  5998. * @NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST: requested by user
  5999. * @NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED: timeout
  6000. * @NL80211_NAN_FUNC_TERM_REASON_ERROR: errored
  6001. */
  6002. enum nl80211_nan_func_term_reason {
  6003. NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST,
  6004. NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED,
  6005. NL80211_NAN_FUNC_TERM_REASON_ERROR,
  6006. };
  6007. #define NL80211_NAN_FUNC_SERVICE_ID_LEN 6
  6008. #define NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN 0xff
  6009. #define NL80211_NAN_FUNC_SRF_MAX_LEN 0xff
  6010. /**
  6011. * enum nl80211_nan_func_attributes - NAN function attributes
  6012. * @__NL80211_NAN_FUNC_INVALID: invalid
  6013. * @NL80211_NAN_FUNC_TYPE: &enum nl80211_nan_function_type (u8).
  6014. * @NL80211_NAN_FUNC_SERVICE_ID: 6 bytes of the service ID hash as
  6015. * specified in NAN spec. This is a binary attribute.
  6016. * @NL80211_NAN_FUNC_PUBLISH_TYPE: relevant if the function's type is
  6017. * publish. Defines the transmission type for the publish Service Discovery
  6018. * Frame, see &enum nl80211_nan_publish_type. Its type is u8.
  6019. * @NL80211_NAN_FUNC_PUBLISH_BCAST: relevant if the function is a solicited
  6020. * publish. Should the solicited publish Service Discovery Frame be sent to
  6021. * the NAN Broadcast address. This is a flag.
  6022. * @NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE: relevant if the function's type is
  6023. * subscribe. Is the subscribe active. This is a flag.
  6024. * @NL80211_NAN_FUNC_FOLLOW_UP_ID: relevant if the function's type is follow up.
  6025. * The instance ID for the follow up Service Discovery Frame. This is u8.
  6026. * @NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID: relevant if the function's type
  6027. * is follow up. This is a u8.
  6028. * The requestor instance ID for the follow up Service Discovery Frame.
  6029. * @NL80211_NAN_FUNC_FOLLOW_UP_DEST: the MAC address of the recipient of the
  6030. * follow up Service Discovery Frame. This is a binary attribute.
  6031. * @NL80211_NAN_FUNC_CLOSE_RANGE: is this function limited for devices in a
  6032. * close range. The range itself (RSSI) is defined by the device.
  6033. * This is a flag.
  6034. * @NL80211_NAN_FUNC_TTL: strictly positive number of DWs this function should
  6035. * stay active. If not present infinite TTL is assumed. This is a u32.
  6036. * @NL80211_NAN_FUNC_SERVICE_INFO: array of bytes describing the service
  6037. * specific info. This is a binary attribute.
  6038. * @NL80211_NAN_FUNC_SRF: Service Receive Filter. This is a nested attribute.
  6039. * See &enum nl80211_nan_srf_attributes.
  6040. * @NL80211_NAN_FUNC_RX_MATCH_FILTER: Receive Matching filter. This is a nested
  6041. * attribute. It is a list of binary values.
  6042. * @NL80211_NAN_FUNC_TX_MATCH_FILTER: Transmit Matching filter. This is a
  6043. * nested attribute. It is a list of binary values.
  6044. * @NL80211_NAN_FUNC_INSTANCE_ID: The instance ID of the function.
  6045. * Its type is u8 and it cannot be 0.
  6046. * @NL80211_NAN_FUNC_TERM_REASON: NAN function termination reason.
  6047. * See &enum nl80211_nan_func_term_reason.
  6048. *
  6049. * @NUM_NL80211_NAN_FUNC_ATTR: internal
  6050. * @NL80211_NAN_FUNC_ATTR_MAX: highest NAN function attribute
  6051. */
  6052. enum nl80211_nan_func_attributes {
  6053. __NL80211_NAN_FUNC_INVALID,
  6054. NL80211_NAN_FUNC_TYPE,
  6055. NL80211_NAN_FUNC_SERVICE_ID,
  6056. NL80211_NAN_FUNC_PUBLISH_TYPE,
  6057. NL80211_NAN_FUNC_PUBLISH_BCAST,
  6058. NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE,
  6059. NL80211_NAN_FUNC_FOLLOW_UP_ID,
  6060. NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID,
  6061. NL80211_NAN_FUNC_FOLLOW_UP_DEST,
  6062. NL80211_NAN_FUNC_CLOSE_RANGE,
  6063. NL80211_NAN_FUNC_TTL,
  6064. NL80211_NAN_FUNC_SERVICE_INFO,
  6065. NL80211_NAN_FUNC_SRF,
  6066. NL80211_NAN_FUNC_RX_MATCH_FILTER,
  6067. NL80211_NAN_FUNC_TX_MATCH_FILTER,
  6068. NL80211_NAN_FUNC_INSTANCE_ID,
  6069. NL80211_NAN_FUNC_TERM_REASON,
  6070. /* keep last */
  6071. NUM_NL80211_NAN_FUNC_ATTR,
  6072. NL80211_NAN_FUNC_ATTR_MAX = NUM_NL80211_NAN_FUNC_ATTR - 1
  6073. };
  6074. /**
  6075. * enum nl80211_nan_srf_attributes - NAN Service Response filter attributes
  6076. * @__NL80211_NAN_SRF_INVALID: invalid
  6077. * @NL80211_NAN_SRF_INCLUDE: present if the include bit of the SRF set.
  6078. * This is a flag.
  6079. * @NL80211_NAN_SRF_BF: Bloom Filter. Present if and only if
  6080. * %NL80211_NAN_SRF_MAC_ADDRS isn't present. This attribute is binary.
  6081. * @NL80211_NAN_SRF_BF_IDX: index of the Bloom Filter. Mandatory if
  6082. * %NL80211_NAN_SRF_BF is present. This is a u8.
  6083. * @NL80211_NAN_SRF_MAC_ADDRS: list of MAC addresses for the SRF. Present if
  6084. * and only if %NL80211_NAN_SRF_BF isn't present. This is a nested
  6085. * attribute. Each nested attribute is a MAC address.
  6086. * @NUM_NL80211_NAN_SRF_ATTR: internal
  6087. * @NL80211_NAN_SRF_ATTR_MAX: highest NAN SRF attribute
  6088. */
  6089. enum nl80211_nan_srf_attributes {
  6090. __NL80211_NAN_SRF_INVALID,
  6091. NL80211_NAN_SRF_INCLUDE,
  6092. NL80211_NAN_SRF_BF,
  6093. NL80211_NAN_SRF_BF_IDX,
  6094. NL80211_NAN_SRF_MAC_ADDRS,
  6095. /* keep last */
  6096. NUM_NL80211_NAN_SRF_ATTR,
  6097. NL80211_NAN_SRF_ATTR_MAX = NUM_NL80211_NAN_SRF_ATTR - 1,
  6098. };
  6099. /**
  6100. * enum nl80211_nan_match_attributes - NAN match attributes
  6101. * @__NL80211_NAN_MATCH_INVALID: invalid
  6102. * @NL80211_NAN_MATCH_FUNC_LOCAL: the local function that had the
  6103. * match. This is a nested attribute.
  6104. * See &enum nl80211_nan_func_attributes.
  6105. * @NL80211_NAN_MATCH_FUNC_PEER: the peer function
  6106. * that caused the match. This is a nested attribute.
  6107. * See &enum nl80211_nan_func_attributes.
  6108. *
  6109. * @NUM_NL80211_NAN_MATCH_ATTR: internal
  6110. * @NL80211_NAN_MATCH_ATTR_MAX: highest NAN match attribute
  6111. */
  6112. enum nl80211_nan_match_attributes {
  6113. __NL80211_NAN_MATCH_INVALID,
  6114. NL80211_NAN_MATCH_FUNC_LOCAL,
  6115. NL80211_NAN_MATCH_FUNC_PEER,
  6116. /* keep last */
  6117. NUM_NL80211_NAN_MATCH_ATTR,
  6118. NL80211_NAN_MATCH_ATTR_MAX = NUM_NL80211_NAN_MATCH_ATTR - 1
  6119. };
  6120. /**
  6121. * nl80211_external_auth_action - Action to perform with external
  6122. * authentication request. Used by NL80211_ATTR_EXTERNAL_AUTH_ACTION.
  6123. * @NL80211_EXTERNAL_AUTH_START: Start the authentication.
  6124. * @NL80211_EXTERNAL_AUTH_ABORT: Abort the ongoing authentication.
  6125. */
  6126. enum nl80211_external_auth_action {
  6127. NL80211_EXTERNAL_AUTH_START,
  6128. NL80211_EXTERNAL_AUTH_ABORT,
  6129. };
  6130. /**
  6131. * enum nl80211_ftm_responder_attributes - fine timing measurement
  6132. * responder attributes
  6133. * @__NL80211_FTM_RESP_ATTR_INVALID: Invalid
  6134. * @NL80211_FTM_RESP_ATTR_ENABLED: FTM responder is enabled
  6135. * @NL80211_FTM_RESP_ATTR_LCI: The content of Measurement Report Element
  6136. * (9.4.2.22 in 802.11-2016) with type 8 - LCI (9.4.2.22.10),
  6137. * i.e. starting with the measurement token
  6138. * @NL80211_FTM_RESP_ATTR_CIVIC: The content of Measurement Report Element
  6139. * (9.4.2.22 in 802.11-2016) with type 11 - Civic (Section 9.4.2.22.13),
  6140. * i.e. starting with the measurement token
  6141. * @__NL80211_FTM_RESP_ATTR_LAST: Internal
  6142. * @NL80211_FTM_RESP_ATTR_MAX: highest FTM responder attribute.
  6143. */
  6144. enum nl80211_ftm_responder_attributes {
  6145. __NL80211_FTM_RESP_ATTR_INVALID,
  6146. NL80211_FTM_RESP_ATTR_ENABLED,
  6147. NL80211_FTM_RESP_ATTR_LCI,
  6148. NL80211_FTM_RESP_ATTR_CIVICLOC,
  6149. /* keep last */
  6150. __NL80211_FTM_RESP_ATTR_LAST,
  6151. NL80211_FTM_RESP_ATTR_MAX = __NL80211_FTM_RESP_ATTR_LAST - 1,
  6152. };
  6153. /*
  6154. * enum nl80211_ftm_responder_stats - FTM responder statistics
  6155. *
  6156. * These attribute types are used with %NL80211_ATTR_FTM_RESPONDER_STATS
  6157. * when getting FTM responder statistics.
  6158. *
  6159. * @__NL80211_FTM_STATS_INVALID: attribute number 0 is reserved
  6160. * @NL80211_FTM_STATS_SUCCESS_NUM: number of FTM sessions in which all frames
  6161. * were ssfully answered (u32)
  6162. * @NL80211_FTM_STATS_PARTIAL_NUM: number of FTM sessions in which part of the
  6163. * frames were successfully answered (u32)
  6164. * @NL80211_FTM_STATS_FAILED_NUM: number of failed FTM sessions (u32)
  6165. * @NL80211_FTM_STATS_ASAP_NUM: number of ASAP sessions (u32)
  6166. * @NL80211_FTM_STATS_NON_ASAP_NUM: number of non-ASAP sessions (u32)
  6167. * @NL80211_FTM_STATS_TOTAL_DURATION_MSEC: total sessions durations - gives an
  6168. * indication of how much time the responder was busy (u64, msec)
  6169. * @NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM: number of unknown FTM triggers -
  6170. * triggers from initiators that didn't finish successfully the negotiation
  6171. * phase with the responder (u32)
  6172. * @NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM: number of FTM reschedule requests
  6173. * - initiator asks for a new scheduling although it already has scheduled
  6174. * FTM slot (u32)
  6175. * @NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM: number of FTM triggers out of
  6176. * scheduled window (u32)
  6177. * @NL80211_FTM_STATS_PAD: used for padding, ignore
  6178. * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal
  6179. * @NL80211_FTM_STATS_MAX: highest possible FTM responder stats attribute
  6180. */
  6181. enum nl80211_ftm_responder_stats {
  6182. __NL80211_FTM_STATS_INVALID,
  6183. NL80211_FTM_STATS_SUCCESS_NUM,
  6184. NL80211_FTM_STATS_PARTIAL_NUM,
  6185. NL80211_FTM_STATS_FAILED_NUM,
  6186. NL80211_FTM_STATS_ASAP_NUM,
  6187. NL80211_FTM_STATS_NON_ASAP_NUM,
  6188. NL80211_FTM_STATS_TOTAL_DURATION_MSEC,
  6189. NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM,
  6190. NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM,
  6191. NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM,
  6192. NL80211_FTM_STATS_PAD,
  6193. /* keep last */
  6194. __NL80211_FTM_STATS_AFTER_LAST,
  6195. NL80211_FTM_STATS_MAX = __NL80211_FTM_STATS_AFTER_LAST - 1
  6196. };
  6197. /**
  6198. * enum nl80211_preamble - frame preamble types
  6199. * @NL80211_PREAMBLE_LEGACY: legacy (HR/DSSS, OFDM, ERP PHY) preamble
  6200. * @NL80211_PREAMBLE_HT: HT preamble
  6201. * @NL80211_PREAMBLE_VHT: VHT preamble
  6202. * @NL80211_PREAMBLE_DMG: DMG preamble
  6203. * @NL80211_PREAMBLE_HE: HE preamble
  6204. */
  6205. enum nl80211_preamble {
  6206. NL80211_PREAMBLE_LEGACY,
  6207. NL80211_PREAMBLE_HT,
  6208. NL80211_PREAMBLE_VHT,
  6209. NL80211_PREAMBLE_DMG,
  6210. NL80211_PREAMBLE_HE,
  6211. };
  6212. /**
  6213. * enum nl80211_peer_measurement_type - peer measurement types
  6214. * @NL80211_PMSR_TYPE_INVALID: invalid/unused, needed as we use
  6215. * these numbers also for attributes
  6216. *
  6217. * @NL80211_PMSR_TYPE_FTM: flight time measurement
  6218. *
  6219. * @NUM_NL80211_PMSR_TYPES: internal
  6220. * @NL80211_PMSR_TYPE_MAX: highest type number
  6221. */
  6222. enum nl80211_peer_measurement_type {
  6223. NL80211_PMSR_TYPE_INVALID,
  6224. NL80211_PMSR_TYPE_FTM,
  6225. NUM_NL80211_PMSR_TYPES,
  6226. NL80211_PMSR_TYPE_MAX = NUM_NL80211_PMSR_TYPES - 1
  6227. };
  6228. /**
  6229. * enum nl80211_peer_measurement_status - peer measurement status
  6230. * @NL80211_PMSR_STATUS_SUCCESS: measurement completed successfully
  6231. * @NL80211_PMSR_STATUS_REFUSED: measurement was locally refused
  6232. * @NL80211_PMSR_STATUS_TIMEOUT: measurement timed out
  6233. * @NL80211_PMSR_STATUS_FAILURE: measurement failed, a type-dependent
  6234. * reason may be available in the response data
  6235. */
  6236. enum nl80211_peer_measurement_status {
  6237. NL80211_PMSR_STATUS_SUCCESS,
  6238. NL80211_PMSR_STATUS_REFUSED,
  6239. NL80211_PMSR_STATUS_TIMEOUT,
  6240. NL80211_PMSR_STATUS_FAILURE,
  6241. };
  6242. /**
  6243. * enum nl80211_peer_measurement_req - peer measurement request attributes
  6244. * @__NL80211_PMSR_REQ_ATTR_INVALID: invalid
  6245. *
  6246. * @NL80211_PMSR_REQ_ATTR_DATA: This is a nested attribute with measurement
  6247. * type-specific request data inside. The attributes used are from the
  6248. * enums named nl80211_peer_measurement_<type>_req.
  6249. * @NL80211_PMSR_REQ_ATTR_GET_AP_TSF: include AP TSF timestamp, if supported
  6250. * (flag attribute)
  6251. *
  6252. * @NUM_NL80211_PMSR_REQ_ATTRS: internal
  6253. * @NL80211_PMSR_REQ_ATTR_MAX: highest attribute number
  6254. */
  6255. enum nl80211_peer_measurement_req {
  6256. __NL80211_PMSR_REQ_ATTR_INVALID,
  6257. NL80211_PMSR_REQ_ATTR_DATA,
  6258. NL80211_PMSR_REQ_ATTR_GET_AP_TSF,
  6259. /* keep last */
  6260. NUM_NL80211_PMSR_REQ_ATTRS,
  6261. NL80211_PMSR_REQ_ATTR_MAX = NUM_NL80211_PMSR_REQ_ATTRS - 1
  6262. };
  6263. /**
  6264. * enum nl80211_peer_measurement_resp - peer measurement response attributes
  6265. * @__NL80211_PMSR_RESP_ATTR_INVALID: invalid
  6266. *
  6267. * @NL80211_PMSR_RESP_ATTR_DATA: This is a nested attribute with measurement
  6268. * type-specific results inside. The attributes used are from the enums
  6269. * named nl80211_peer_measurement_<type>_resp.
  6270. * @NL80211_PMSR_RESP_ATTR_STATUS: u32 value with the measurement status
  6271. * (using values from &enum nl80211_peer_measurement_status.)
  6272. * @NL80211_PMSR_RESP_ATTR_HOST_TIME: host time (%CLOCK_BOOTTIME) when the
  6273. * result was measured; this value is not expected to be accurate to
  6274. * more than 20ms. (u64, nanoseconds)
  6275. * @NL80211_PMSR_RESP_ATTR_AP_TSF: TSF of the AP that the interface
  6276. * doing the measurement is connected to when the result was measured.
  6277. * This shall be accurately reported if supported and requested
  6278. * (u64, usec)
  6279. * @NL80211_PMSR_RESP_ATTR_FINAL: If results are sent to the host partially
  6280. * (*e.g. with FTM per-burst data) this flag will be cleared on all but
  6281. * the last result; if all results are combined it's set on the single
  6282. * result.
  6283. * @NL80211_PMSR_RESP_ATTR_PAD: padding for 64-bit attributes, ignore
  6284. *
  6285. * @NUM_NL80211_PMSR_RESP_ATTRS: internal
  6286. * @NL80211_PMSR_RESP_ATTR_MAX: highest attribute number
  6287. */
  6288. enum nl80211_peer_measurement_resp {
  6289. __NL80211_PMSR_RESP_ATTR_INVALID,
  6290. NL80211_PMSR_RESP_ATTR_DATA,
  6291. NL80211_PMSR_RESP_ATTR_STATUS,
  6292. NL80211_PMSR_RESP_ATTR_HOST_TIME,
  6293. NL80211_PMSR_RESP_ATTR_AP_TSF,
  6294. NL80211_PMSR_RESP_ATTR_FINAL,
  6295. NL80211_PMSR_RESP_ATTR_PAD,
  6296. /* keep last */
  6297. NUM_NL80211_PMSR_RESP_ATTRS,
  6298. NL80211_PMSR_RESP_ATTR_MAX = NUM_NL80211_PMSR_RESP_ATTRS - 1
  6299. };
  6300. /**
  6301. * enum nl80211_peer_measurement_peer_attrs - peer attributes for measurement
  6302. * @__NL80211_PMSR_PEER_ATTR_INVALID: invalid
  6303. *
  6304. * @NL80211_PMSR_PEER_ATTR_ADDR: peer's MAC address
  6305. * @NL80211_PMSR_PEER_ATTR_CHAN: channel definition, nested, using top-level
  6306. * attributes like %NL80211_ATTR_WIPHY_FREQ etc.
  6307. * @NL80211_PMSR_PEER_ATTR_REQ: This is a nested attribute indexed by
  6308. * measurement type, with attributes from the
  6309. * &enum nl80211_peer_measurement_req inside.
  6310. * @NL80211_PMSR_PEER_ATTR_RESP: This is a nested attribute indexed by
  6311. * measurement type, with attributes from the
  6312. * &enum nl80211_peer_measurement_resp inside.
  6313. *
  6314. * @NUM_NL80211_PMSR_PEER_ATTRS: internal
  6315. * @NL80211_PMSR_PEER_ATTR_MAX: highest attribute number
  6316. */
  6317. enum nl80211_peer_measurement_peer_attrs {
  6318. __NL80211_PMSR_PEER_ATTR_INVALID,
  6319. NL80211_PMSR_PEER_ATTR_ADDR,
  6320. NL80211_PMSR_PEER_ATTR_CHAN,
  6321. NL80211_PMSR_PEER_ATTR_REQ,
  6322. NL80211_PMSR_PEER_ATTR_RESP,
  6323. /* keep last */
  6324. NUM_NL80211_PMSR_PEER_ATTRS,
  6325. NL80211_PMSR_PEER_ATTR_MAX = NUM_NL80211_PMSR_PEER_ATTRS - 1,
  6326. };
  6327. /**
  6328. * enum nl80211_peer_measurement_attrs - peer measurement attributes
  6329. * @__NL80211_PMSR_ATTR_INVALID: invalid
  6330. *
  6331. * @NL80211_PMSR_ATTR_MAX_PEERS: u32 attribute used for capability
  6332. * advertisement only, indicates the maximum number of peers
  6333. * measurements can be done with in a single request
  6334. * @NL80211_PMSR_ATTR_REPORT_AP_TSF: flag attribute in capability
  6335. * indicating that the connected AP's TSF can be reported in
  6336. * measurement results
  6337. * @NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR: flag attribute in capability
  6338. * indicating that MAC address randomization is supported.
  6339. * @NL80211_PMSR_ATTR_TYPE_CAPA: capabilities reported by the device,
  6340. * this contains a nesting indexed by measurement type, and
  6341. * type-specific capabilities inside, which are from the enums
  6342. * named nl80211_peer_measurement_<type>_capa.
  6343. * @NL80211_PMSR_ATTR_PEERS: nested attribute, the nesting index is
  6344. * meaningless, just a list of peers to measure with, with the
  6345. * sub-attributes taken from
  6346. * &enum nl80211_peer_measurement_peer_attrs.
  6347. *
  6348. * @NUM_NL80211_PMSR_ATTR: internal
  6349. * @NL80211_PMSR_ATTR_MAX: highest attribute number
  6350. */
  6351. enum nl80211_peer_measurement_attrs {
  6352. __NL80211_PMSR_ATTR_INVALID,
  6353. NL80211_PMSR_ATTR_MAX_PEERS,
  6354. NL80211_PMSR_ATTR_REPORT_AP_TSF,
  6355. NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR,
  6356. NL80211_PMSR_ATTR_TYPE_CAPA,
  6357. NL80211_PMSR_ATTR_PEERS,
  6358. /* keep last */
  6359. NUM_NL80211_PMSR_ATTR,
  6360. NL80211_PMSR_ATTR_MAX = NUM_NL80211_PMSR_ATTR - 1
  6361. };
  6362. /**
  6363. * enum nl80211_peer_measurement_ftm_capa - FTM capabilities
  6364. * @__NL80211_PMSR_FTM_CAPA_ATTR_INVALID: invalid
  6365. *
  6366. * @NL80211_PMSR_FTM_CAPA_ATTR_ASAP: flag attribute indicating ASAP mode
  6367. * is supported
  6368. * @NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP: flag attribute indicating non-ASAP
  6369. * mode is supported
  6370. * @NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI: flag attribute indicating if LCI
  6371. * data can be requested during the measurement
  6372. * @NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC: flag attribute indicating if civic
  6373. * location data can be requested during the measurement
  6374. * @NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES: u32 bitmap attribute of bits
  6375. * from &enum nl80211_preamble.
  6376. * @NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS: bitmap of values from
  6377. * &enum nl80211_chan_width indicating the supported channel
  6378. * bandwidths for FTM. Note that a higher channel bandwidth may be
  6379. * configured to allow for other measurements types with different
  6380. * bandwidth requirement in the same measurement.
  6381. * @NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT: u32 attribute indicating
  6382. * the maximum bursts exponent that can be used (if not present anything
  6383. * is valid)
  6384. * @NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST: u32 attribute indicating
  6385. * the maximum FTMs per burst (if not present anything is valid)
  6386. * @NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED: flag attribute indicating if
  6387. * trigger based ranging measurement is supported
  6388. * @NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED: flag attribute indicating
  6389. * if non trigger based ranging measurement is supported
  6390. *
  6391. * @NUM_NL80211_PMSR_FTM_CAPA_ATTR: internal
  6392. * @NL80211_PMSR_FTM_CAPA_ATTR_MAX: highest attribute number
  6393. */
  6394. enum nl80211_peer_measurement_ftm_capa {
  6395. __NL80211_PMSR_FTM_CAPA_ATTR_INVALID,
  6396. NL80211_PMSR_FTM_CAPA_ATTR_ASAP,
  6397. NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP,
  6398. NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI,
  6399. NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC,
  6400. NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES,
  6401. NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS,
  6402. NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT,
  6403. NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST,
  6404. NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED,
  6405. NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED,
  6406. /* keep last */
  6407. NUM_NL80211_PMSR_FTM_CAPA_ATTR,
  6408. NL80211_PMSR_FTM_CAPA_ATTR_MAX = NUM_NL80211_PMSR_FTM_CAPA_ATTR - 1
  6409. };
  6410. /**
  6411. * enum nl80211_peer_measurement_ftm_req - FTM request attributes
  6412. * @__NL80211_PMSR_FTM_REQ_ATTR_INVALID: invalid
  6413. *
  6414. * @NL80211_PMSR_FTM_REQ_ATTR_ASAP: ASAP mode requested (flag)
  6415. * @NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE: preamble type (see
  6416. * &enum nl80211_preamble), optional for DMG (u32)
  6417. * @NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP: number of bursts exponent as in
  6418. * 802.11-2016 9.4.2.168 "Fine Timing Measurement Parameters element"
  6419. * (u8, 0-15, optional with default 15 i.e. "no preference")
  6420. * @NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD: interval between bursts in units
  6421. * of 100ms (u16, optional with default 0)
  6422. * @NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION: burst duration, as in 802.11-2016
  6423. * Table 9-257 "Burst Duration field encoding" (u8, 0-15, optional with
  6424. * default 15 i.e. "no preference")
  6425. * @NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST: number of successful FTM frames
  6426. * requested per burst
  6427. * (u8, 0-31, optional with default 0 i.e. "no preference")
  6428. * @NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES: number of FTMR frame retries
  6429. * (u8, default 3)
  6430. * @NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI: request LCI data (flag)
  6431. * @NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC: request civic location data
  6432. * (flag)
  6433. * @NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED: request trigger based ranging
  6434. * measurement (flag).
  6435. * This attribute and %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED are
  6436. * mutually exclusive.
  6437. * if neither %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED nor
  6438. * %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED is set, EDCA based
  6439. * ranging will be used.
  6440. * @NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED: request non trigger based
  6441. * ranging measurement (flag)
  6442. * This attribute and %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED are
  6443. * mutually exclusive.
  6444. * if neither %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED nor
  6445. * %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED is set, EDCA based
  6446. * ranging will be used.
  6447. * @NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK: negotiate for LMR feedback. Only
  6448. * valid if either %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED or
  6449. * %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED is set.
  6450. * @NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR: optional. The BSS color of the
  6451. * responder. Only valid if %NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED
  6452. * or %NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED is set.
  6453. *
  6454. * @NUM_NL80211_PMSR_FTM_REQ_ATTR: internal
  6455. * @NL80211_PMSR_FTM_REQ_ATTR_MAX: highest attribute number
  6456. */
  6457. enum nl80211_peer_measurement_ftm_req {
  6458. __NL80211_PMSR_FTM_REQ_ATTR_INVALID,
  6459. NL80211_PMSR_FTM_REQ_ATTR_ASAP,
  6460. NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE,
  6461. NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP,
  6462. NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD,
  6463. NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION,
  6464. NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST,
  6465. NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES,
  6466. NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI,
  6467. NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC,
  6468. NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED,
  6469. NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED,
  6470. NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK,
  6471. NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR,
  6472. /* keep last */
  6473. NUM_NL80211_PMSR_FTM_REQ_ATTR,
  6474. NL80211_PMSR_FTM_REQ_ATTR_MAX = NUM_NL80211_PMSR_FTM_REQ_ATTR - 1
  6475. };
  6476. /**
  6477. * enum nl80211_peer_measurement_ftm_failure_reasons - FTM failure reasons
  6478. * @NL80211_PMSR_FTM_FAILURE_UNSPECIFIED: unspecified failure, not used
  6479. * @NL80211_PMSR_FTM_FAILURE_NO_RESPONSE: no response from the FTM responder
  6480. * @NL80211_PMSR_FTM_FAILURE_REJECTED: FTM responder rejected measurement
  6481. * @NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL: we already know the peer is
  6482. * on a different channel, so can't measure (if we didn't know, we'd
  6483. * try and get no response)
  6484. * @NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE: peer can't actually do FTM
  6485. * @NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP: invalid T1/T4 timestamps
  6486. * received
  6487. * @NL80211_PMSR_FTM_FAILURE_PEER_BUSY: peer reports busy, you may retry
  6488. * later (see %NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME)
  6489. * @NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS: parameters were changed
  6490. * by the peer and are no longer supported
  6491. */
  6492. enum nl80211_peer_measurement_ftm_failure_reasons {
  6493. NL80211_PMSR_FTM_FAILURE_UNSPECIFIED,
  6494. NL80211_PMSR_FTM_FAILURE_NO_RESPONSE,
  6495. NL80211_PMSR_FTM_FAILURE_REJECTED,
  6496. NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL,
  6497. NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE,
  6498. NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP,
  6499. NL80211_PMSR_FTM_FAILURE_PEER_BUSY,
  6500. NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS,
  6501. };
  6502. /**
  6503. * enum nl80211_peer_measurement_ftm_resp - FTM response attributes
  6504. * @__NL80211_PMSR_FTM_RESP_ATTR_INVALID: invalid
  6505. *
  6506. * @NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON: FTM-specific failure reason
  6507. * (u32, optional)
  6508. * @NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX: optional, if bursts are reported
  6509. * as separate results then it will be the burst index 0...(N-1) and
  6510. * the top level will indicate partial results (u32)
  6511. * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS: number of FTM Request frames
  6512. * transmitted (u32, optional)
  6513. * @NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES: number of FTM Request frames
  6514. * that were acknowleged (u32, optional)
  6515. * @NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME: retry time received from the
  6516. * busy peer (u32, seconds)
  6517. * @NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP: actual number of bursts exponent
  6518. * used by the responder (similar to request, u8)
  6519. * @NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION: actual burst duration used by
  6520. * the responder (similar to request, u8)
  6521. * @NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST: actual FTMs per burst used
  6522. * by the responder (similar to request, u8)
  6523. * @NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG: average RSSI across all FTM action
  6524. * frames (optional, s32, 1/2 dBm)
  6525. * @NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD: RSSI spread across all FTM action
  6526. * frames (optional, s32, 1/2 dBm)
  6527. * @NL80211_PMSR_FTM_RESP_ATTR_TX_RATE: bitrate we used for the response to the
  6528. * FTM action frame (optional, nested, using &enum nl80211_rate_info
  6529. * attributes)
  6530. * @NL80211_PMSR_FTM_RESP_ATTR_RX_RATE: bitrate the responder used for the FTM
  6531. * action frame (optional, nested, using &enum nl80211_rate_info attrs)
  6532. * @NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG: average RTT (s64, picoseconds, optional
  6533. * but one of RTT/DIST must be present)
  6534. * @NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE: RTT variance (u64, ps^2, note that
  6535. * standard deviation is the square root of variance, optional)
  6536. * @NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD: RTT spread (u64, picoseconds,
  6537. * optional)
  6538. * @NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG: average distance (s64, mm, optional
  6539. * but one of RTT/DIST must be present)
  6540. * @NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE: distance variance (u64, mm^2, note
  6541. * that standard deviation is the square root of variance, optional)
  6542. * @NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD: distance spread (u64, mm, optional)
  6543. * @NL80211_PMSR_FTM_RESP_ATTR_LCI: LCI data from peer (binary, optional);
  6544. * this is the contents of the Measurement Report Element (802.11-2016
  6545. * 9.4.2.22.1) starting with the Measurement Token, with Measurement
  6546. * Type 8.
  6547. * @NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC: civic location data from peer
  6548. * (binary, optional);
  6549. * this is the contents of the Measurement Report Element (802.11-2016
  6550. * 9.4.2.22.1) starting with the Measurement Token, with Measurement
  6551. * Type 11.
  6552. * @NL80211_PMSR_FTM_RESP_ATTR_PAD: ignore, for u64/s64 padding only
  6553. *
  6554. * @NUM_NL80211_PMSR_FTM_RESP_ATTR: internal
  6555. * @NL80211_PMSR_FTM_RESP_ATTR_MAX: highest attribute number
  6556. */
  6557. enum nl80211_peer_measurement_ftm_resp {
  6558. __NL80211_PMSR_FTM_RESP_ATTR_INVALID,
  6559. NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON,
  6560. NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX,
  6561. NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS,
  6562. NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES,
  6563. NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME,
  6564. NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP,
  6565. NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION,
  6566. NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST,
  6567. NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG,
  6568. NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD,
  6569. NL80211_PMSR_FTM_RESP_ATTR_TX_RATE,
  6570. NL80211_PMSR_FTM_RESP_ATTR_RX_RATE,
  6571. NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG,
  6572. NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE,
  6573. NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD,
  6574. NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG,
  6575. NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE,
  6576. NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD,
  6577. NL80211_PMSR_FTM_RESP_ATTR_LCI,
  6578. NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC,
  6579. NL80211_PMSR_FTM_RESP_ATTR_PAD,
  6580. /* keep last */
  6581. NUM_NL80211_PMSR_FTM_RESP_ATTR,
  6582. NL80211_PMSR_FTM_RESP_ATTR_MAX = NUM_NL80211_PMSR_FTM_RESP_ATTR - 1
  6583. };
  6584. /**
  6585. * enum nl80211_obss_pd_attributes - OBSS packet detection attributes
  6586. * @__NL80211_HE_OBSS_PD_ATTR_INVALID: Invalid
  6587. *
  6588. * @NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET: the OBSS PD minimum tx power offset.
  6589. * @NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET: the OBSS PD maximum tx power offset.
  6590. * @NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET: the non-SRG OBSS PD maximum
  6591. * tx power offset.
  6592. * @NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP: bitmap that indicates the BSS color
  6593. * values used by members of the SRG.
  6594. * @NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP: bitmap that indicates the partial
  6595. * BSSID values used by members of the SRG.
  6596. * @NL80211_HE_OBSS_PD_ATTR_SR_CTRL: The SR Control field of SRP element.
  6597. *
  6598. * @__NL80211_HE_OBSS_PD_ATTR_LAST: Internal
  6599. * @NL80211_HE_OBSS_PD_ATTR_MAX: highest OBSS PD attribute.
  6600. */
  6601. enum nl80211_obss_pd_attributes {
  6602. __NL80211_HE_OBSS_PD_ATTR_INVALID,
  6603. NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET,
  6604. NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET,
  6605. NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET,
  6606. NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP,
  6607. NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP,
  6608. NL80211_HE_OBSS_PD_ATTR_SR_CTRL,
  6609. /* keep last */
  6610. __NL80211_HE_OBSS_PD_ATTR_LAST,
  6611. NL80211_HE_OBSS_PD_ATTR_MAX = __NL80211_HE_OBSS_PD_ATTR_LAST - 1,
  6612. };
  6613. /**
  6614. * enum nl80211_bss_color_attributes - BSS Color attributes
  6615. * @__NL80211_HE_BSS_COLOR_ATTR_INVALID: Invalid
  6616. *
  6617. * @NL80211_HE_BSS_COLOR_ATTR_COLOR: the current BSS Color.
  6618. * @NL80211_HE_BSS_COLOR_ATTR_DISABLED: is BSS coloring disabled.
  6619. * @NL80211_HE_BSS_COLOR_ATTR_PARTIAL: the AID equation to be used..
  6620. *
  6621. * @__NL80211_HE_BSS_COLOR_ATTR_LAST: Internal
  6622. * @NL80211_HE_BSS_COLOR_ATTR_MAX: highest BSS Color attribute.
  6623. */
  6624. enum nl80211_bss_color_attributes {
  6625. __NL80211_HE_BSS_COLOR_ATTR_INVALID,
  6626. NL80211_HE_BSS_COLOR_ATTR_COLOR,
  6627. NL80211_HE_BSS_COLOR_ATTR_DISABLED,
  6628. NL80211_HE_BSS_COLOR_ATTR_PARTIAL,
  6629. /* keep last */
  6630. __NL80211_HE_BSS_COLOR_ATTR_LAST,
  6631. NL80211_HE_BSS_COLOR_ATTR_MAX = __NL80211_HE_BSS_COLOR_ATTR_LAST - 1,
  6632. };
  6633. /**
  6634. * enum nl80211_iftype_akm_attributes - interface type AKM attributes
  6635. * @__NL80211_IFTYPE_AKM_ATTR_INVALID: Invalid
  6636. *
  6637. * @NL80211_IFTYPE_AKM_ATTR_IFTYPES: nested attribute containing a flag
  6638. * attribute for each interface type that supports AKM suites specified in
  6639. * %NL80211_IFTYPE_AKM_ATTR_SUITES
  6640. * @NL80211_IFTYPE_AKM_ATTR_SUITES: an array of u32. Used to indicate supported
  6641. * AKM suites for the specified interface types.
  6642. *
  6643. * @__NL80211_IFTYPE_AKM_ATTR_LAST: Internal
  6644. * @NL80211_IFTYPE_AKM_ATTR_MAX: highest interface type AKM attribute.
  6645. */
  6646. enum nl80211_iftype_akm_attributes {
  6647. __NL80211_IFTYPE_AKM_ATTR_INVALID,
  6648. NL80211_IFTYPE_AKM_ATTR_IFTYPES,
  6649. NL80211_IFTYPE_AKM_ATTR_SUITES,
  6650. /* keep last */
  6651. __NL80211_IFTYPE_AKM_ATTR_LAST,
  6652. NL80211_IFTYPE_AKM_ATTR_MAX = __NL80211_IFTYPE_AKM_ATTR_LAST - 1,
  6653. };
  6654. /**
  6655. * enum nl80211_fils_discovery_attributes - FILS discovery configuration
  6656. * from IEEE Std 802.11ai-2016, Annex C.3 MIB detail.
  6657. *
  6658. * @__NL80211_FILS_DISCOVERY_ATTR_INVALID: Invalid
  6659. *
  6660. * @NL80211_FILS_DISCOVERY_ATTR_INT_MIN: Minimum packet interval (u32, TU).
  6661. * Allowed range: 0..10000 (TU = Time Unit)
  6662. * @NL80211_FILS_DISCOVERY_ATTR_INT_MAX: Maximum packet interval (u32, TU).
  6663. * Allowed range: 0..10000 (TU = Time Unit)
  6664. * @NL80211_FILS_DISCOVERY_ATTR_TMPL: Template data for FILS discovery action
  6665. * frame including the headers.
  6666. *
  6667. * @__NL80211_FILS_DISCOVERY_ATTR_LAST: Internal
  6668. * @NL80211_FILS_DISCOVERY_ATTR_MAX: highest attribute
  6669. */
  6670. enum nl80211_fils_discovery_attributes {
  6671. __NL80211_FILS_DISCOVERY_ATTR_INVALID,
  6672. NL80211_FILS_DISCOVERY_ATTR_INT_MIN,
  6673. NL80211_FILS_DISCOVERY_ATTR_INT_MAX,
  6674. NL80211_FILS_DISCOVERY_ATTR_TMPL,
  6675. /* keep last */
  6676. __NL80211_FILS_DISCOVERY_ATTR_LAST,
  6677. NL80211_FILS_DISCOVERY_ATTR_MAX = __NL80211_FILS_DISCOVERY_ATTR_LAST - 1
  6678. };
  6679. /*
  6680. * FILS discovery template minimum length with action frame headers and
  6681. * mandatory fields.
  6682. */
  6683. #define NL80211_FILS_DISCOVERY_TMPL_MIN_LEN 42
  6684. /**
  6685. * enum nl80211_unsol_bcast_probe_resp_attributes - Unsolicited broadcast probe
  6686. * response configuration. Applicable only in 6GHz.
  6687. *
  6688. * @__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID: Invalid
  6689. *
  6690. * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT: Maximum packet interval (u32, TU).
  6691. * Allowed range: 0..20 (TU = Time Unit). IEEE P802.11ax/D6.0
  6692. * 26.17.2.3.2 (AP behavior for fast passive scanning).
  6693. * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL: Unsolicited broadcast probe response
  6694. * frame template (binary).
  6695. *
  6696. * @__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST: Internal
  6697. * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX: highest attribute
  6698. */
  6699. enum nl80211_unsol_bcast_probe_resp_attributes {
  6700. __NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID,
  6701. NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT,
  6702. NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL,
  6703. /* keep last */
  6704. __NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST,
  6705. NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX =
  6706. __NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST - 1
  6707. };
  6708. /**
  6709. * enum nl80211_sae_pwe_mechanism - The mechanism(s) allowed for SAE PWE
  6710. * derivation. Applicable only when WPA3-Personal SAE authentication is
  6711. * used.
  6712. *
  6713. * @NL80211_SAE_PWE_UNSPECIFIED: not specified, used internally to indicate that
  6714. * attribute is not present from userspace.
  6715. * @NL80211_SAE_PWE_HUNT_AND_PECK: hunting-and-pecking loop only
  6716. * @NL80211_SAE_PWE_HASH_TO_ELEMENT: hash-to-element only
  6717. * @NL80211_SAE_PWE_BOTH: both hunting-and-pecking loop and hash-to-element
  6718. * can be used.
  6719. */
  6720. enum nl80211_sae_pwe_mechanism {
  6721. NL80211_SAE_PWE_UNSPECIFIED,
  6722. NL80211_SAE_PWE_HUNT_AND_PECK,
  6723. NL80211_SAE_PWE_HASH_TO_ELEMENT,
  6724. NL80211_SAE_PWE_BOTH,
  6725. };
  6726. /**
  6727. * enum nl80211_sar_type - type of SAR specs
  6728. *
  6729. * @NL80211_SAR_TYPE_POWER: power limitation specified in 0.25dBm unit
  6730. *
  6731. */
  6732. enum nl80211_sar_type {
  6733. NL80211_SAR_TYPE_POWER,
  6734. /* add new type here */
  6735. /* Keep last */
  6736. NUM_NL80211_SAR_TYPE,
  6737. };
  6738. /**
  6739. * enum nl80211_sar_attrs - Attributes for SAR spec
  6740. *
  6741. * @NL80211_SAR_ATTR_TYPE: the SAR type as defined in &enum nl80211_sar_type.
  6742. *
  6743. * @NL80211_SAR_ATTR_SPECS: Nested array of SAR power
  6744. * limit specifications. Each specification contains a set
  6745. * of %nl80211_sar_specs_attrs.
  6746. *
  6747. * For SET operation, it contains array of %NL80211_SAR_ATTR_SPECS_POWER
  6748. * and %NL80211_SAR_ATTR_SPECS_RANGE_INDEX.
  6749. *
  6750. * For sar_capa dump, it contains array of
  6751. * %NL80211_SAR_ATTR_SPECS_START_FREQ
  6752. * and %NL80211_SAR_ATTR_SPECS_END_FREQ.
  6753. *
  6754. * @__NL80211_SAR_ATTR_LAST: Internal
  6755. * @NL80211_SAR_ATTR_MAX: highest sar attribute
  6756. *
  6757. * These attributes are used with %NL80211_CMD_SET_SAR_SPEC
  6758. */
  6759. enum nl80211_sar_attrs {
  6760. __NL80211_SAR_ATTR_INVALID,
  6761. NL80211_SAR_ATTR_TYPE,
  6762. NL80211_SAR_ATTR_SPECS,
  6763. __NL80211_SAR_ATTR_LAST,
  6764. NL80211_SAR_ATTR_MAX = __NL80211_SAR_ATTR_LAST - 1,
  6765. };
  6766. /**
  6767. * enum nl80211_sar_specs_attrs - Attributes for SAR power limit specs
  6768. *
  6769. * @NL80211_SAR_ATTR_SPECS_POWER: Required (s32)value to specify the actual
  6770. * power limit value in units of 0.25 dBm if type is
  6771. * NL80211_SAR_TYPE_POWER. (i.e., a value of 44 represents 11 dBm).
  6772. * 0 means userspace doesn't have SAR limitation on this associated range.
  6773. *
  6774. * @NL80211_SAR_ATTR_SPECS_RANGE_INDEX: Required (u32) value to specify the
  6775. * index of exported freq range table and the associated power limitation
  6776. * is applied to this range.
  6777. *
  6778. * Userspace isn't required to set all the ranges advertised by WLAN driver,
  6779. * and userspace can skip some certain ranges. These skipped ranges don't
  6780. * have SAR limitations, and they are same as setting the
  6781. * %NL80211_SAR_ATTR_SPECS_POWER to any unreasonable high value because any
  6782. * value higher than regulatory allowed value just means SAR power
  6783. * limitation is removed, but it's required to set at least one range.
  6784. * It's not allowed to set duplicated range in one SET operation.
  6785. *
  6786. * Every SET operation overwrites previous SET operation.
  6787. *
  6788. * @NL80211_SAR_ATTR_SPECS_START_FREQ: Required (u32) value to specify the start
  6789. * frequency of this range edge when registering SAR capability to wiphy.
  6790. * It's not a channel center frequency. The unit is kHz.
  6791. *
  6792. * @NL80211_SAR_ATTR_SPECS_END_FREQ: Required (u32) value to specify the end
  6793. * frequency of this range edge when registering SAR capability to wiphy.
  6794. * It's not a channel center frequency. The unit is kHz.
  6795. *
  6796. * @__NL80211_SAR_ATTR_SPECS_LAST: Internal
  6797. * @NL80211_SAR_ATTR_SPECS_MAX: highest sar specs attribute
  6798. */
  6799. enum nl80211_sar_specs_attrs {
  6800. __NL80211_SAR_ATTR_SPECS_INVALID,
  6801. NL80211_SAR_ATTR_SPECS_POWER,
  6802. NL80211_SAR_ATTR_SPECS_RANGE_INDEX,
  6803. NL80211_SAR_ATTR_SPECS_START_FREQ,
  6804. NL80211_SAR_ATTR_SPECS_END_FREQ,
  6805. __NL80211_SAR_ATTR_SPECS_LAST,
  6806. NL80211_SAR_ATTR_SPECS_MAX = __NL80211_SAR_ATTR_SPECS_LAST - 1,
  6807. };
  6808. #endif /* __LINUX_NL80211_H */