aboutsummaryrefslogtreecommitdiff
path: root/cyw43/src/consts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cyw43/src/consts.rs')
-rw-r--r--cyw43/src/consts.rs299
1 files changed, 288 insertions, 11 deletions
diff --git a/cyw43/src/consts.rs b/cyw43/src/consts.rs
index b6e22e61d..d47e5097a 100644
--- a/cyw43/src/consts.rs
+++ b/cyw43/src/consts.rs
@@ -113,17 +113,6 @@ pub(crate) const IRQ_F1_INTR: u16 = 0x2000;
113pub(crate) const IRQ_F2_INTR: u16 = 0x4000; 113pub(crate) const IRQ_F2_INTR: u16 = 0x4000;
114pub(crate) const IRQ_F3_INTR: u16 = 0x8000; 114pub(crate) const IRQ_F3_INTR: u16 = 0x8000;
115 115
116pub(crate) const IOCTL_CMD_UP: u32 = 2;
117pub(crate) const IOCTL_CMD_DOWN: u32 = 3;
118pub(crate) const IOCTL_CMD_SET_SSID: u32 = 26;
119pub(crate) const IOCTL_CMD_SET_CHANNEL: u32 = 30;
120pub(crate) const IOCTL_CMD_DISASSOC: u32 = 52;
121pub(crate) const IOCTL_CMD_ANTDIV: u32 = 64;
122pub(crate) const IOCTL_CMD_SET_AP: u32 = 118;
123pub(crate) const IOCTL_CMD_SET_VAR: u32 = 263;
124pub(crate) const IOCTL_CMD_GET_VAR: u32 = 262;
125pub(crate) const IOCTL_CMD_SET_PASSPHRASE: u32 = 268;
126
127pub(crate) const CHANNEL_TYPE_CONTROL: u8 = 0; 116pub(crate) const CHANNEL_TYPE_CONTROL: u8 = 0;
128pub(crate) const CHANNEL_TYPE_EVENT: u8 = 1; 117pub(crate) const CHANNEL_TYPE_EVENT: u8 = 1;
129pub(crate) const CHANNEL_TYPE_DATA: u8 = 2; 118pub(crate) const CHANNEL_TYPE_DATA: u8 = 2;
@@ -376,3 +365,291 @@ impl core::fmt::Display for FormatInterrupt {
376 core::fmt::Debug::fmt(self, f) 365 core::fmt::Debug::fmt(self, f)
377 } 366 }
378} 367}
368
369#[derive(Copy, Clone, Debug)]
370#[cfg_attr(feature = "defmt", derive(defmt::Format))]
371#[repr(u32)]
372pub(crate) enum Ioctl {
373 GetMagic = 0,
374 GetVersion = 1,
375 Up = 2,
376 Down = 3,
377 GetLoop = 4,
378 SetLoop = 5,
379 Dump = 6,
380 GetMsglevel = 7,
381 SetMsglevel = 8,
382 GetPromisc = 9,
383 SetPromisc = 10,
384 GetRate = 12,
385 GetInstance = 14,
386 GetInfra = 19,
387 SetInfra = 20,
388 GetAuth = 21,
389 SetAuth = 22,
390 GetBssid = 23,
391 SetBssid = 24,
392 GetSsid = 25,
393 SetSsid = 26,
394 Restart = 27,
395 GetChannel = 29,
396 SetChannel = 30,
397 GetSrl = 31,
398 SetSrl = 32,
399 GetLrl = 33,
400 SetLrl = 34,
401 GetPlcphdr = 35,
402 SetPlcphdr = 36,
403 GetRadio = 37,
404 SetRadio = 38,
405 GetPhytype = 39,
406 DumpRate = 40,
407 SetRateParams = 41,
408 GetKey = 44,
409 SetKey = 45,
410 GetRegulatory = 46,
411 SetRegulatory = 47,
412 GetPassiveScan = 48,
413 SetPassiveScan = 49,
414 Scan = 50,
415 ScanResults = 51,
416 Disassoc = 52,
417 Reassoc = 53,
418 GetRoamTrigger = 54,
419 SetRoamTrigger = 55,
420 GetRoamDelta = 56,
421 SetRoamDelta = 57,
422 GetRoamScanPeriod = 58,
423 SetRoamScanPeriod = 59,
424 Evm = 60,
425 GetTxant = 61,
426 SetTxant = 62,
427 GetAntdiv = 63,
428 SetAntdiv = 64,
429 GetClosed = 67,
430 SetClosed = 68,
431 GetMaclist = 69,
432 SetMaclist = 70,
433 GetRateset = 71,
434 SetRateset = 72,
435 Longtrain = 74,
436 GetBcnprd = 75,
437 SetBcnprd = 76,
438 GetDtimprd = 77,
439 SetDtimprd = 78,
440 GetSrom = 79,
441 SetSrom = 80,
442 GetWepRestrict = 81,
443 SetWepRestrict = 82,
444 GetCountry = 83,
445 SetCountry = 84,
446 GetPm = 85,
447 SetPm = 86,
448 GetWake = 87,
449 SetWake = 88,
450 GetForcelink = 90,
451 SetForcelink = 91,
452 FreqAccuracy = 92,
453 CarrierSuppress = 93,
454 GetPhyreg = 94,
455 SetPhyreg = 95,
456 GetRadioreg = 96,
457 SetRadioreg = 97,
458 GetRevinfo = 98,
459 GetUcantdiv = 99,
460 SetUcantdiv = 100,
461 RReg = 101,
462 WReg = 102,
463 GetMacmode = 105,
464 SetMacmode = 106,
465 GetMonitor = 107,
466 SetMonitor = 108,
467 GetGmode = 109,
468 SetGmode = 110,
469 GetLegacyErp = 111,
470 SetLegacyErp = 112,
471 GetRxAnt = 113,
472 GetCurrRateset = 114,
473 GetScansuppress = 115,
474 SetScansuppress = 116,
475 GetAp = 117,
476 SetAp = 118,
477 GetEapRestrict = 119,
478 SetEapRestrict = 120,
479 ScbAuthorize = 121,
480 ScbDeauthorize = 122,
481 GetWdslist = 123,
482 SetWdslist = 124,
483 GetAtim = 125,
484 SetAtim = 126,
485 GetRssi = 127,
486 GetPhyantdiv = 128,
487 SetPhyantdiv = 129,
488 ApRxOnly = 130,
489 GetTxPathPwr = 131,
490 SetTxPathPwr = 132,
491 GetWsec = 133,
492 SetWsec = 134,
493 GetPhyNoise = 135,
494 GetBssInfo = 136,
495 GetPktcnts = 137,
496 GetLazywds = 138,
497 SetLazywds = 139,
498 GetBandlist = 140,
499 GetBand = 141,
500 SetBand = 142,
501 ScbDeauthenticate = 143,
502 GetShortslot = 144,
503 GetShortslotOverride = 145,
504 SetShortslotOverride = 146,
505 GetShortslotRestrict = 147,
506 SetShortslotRestrict = 148,
507 GetGmodeProtection = 149,
508 GetGmodeProtectionOverride = 150,
509 SetGmodeProtectionOverride = 151,
510 Upgrade = 152,
511 GetIgnoreBcns = 155,
512 SetIgnoreBcns = 156,
513 GetScbTimeout = 157,
514 SetScbTimeout = 158,
515 GetAssoclist = 159,
516 GetClk = 160,
517 SetClk = 161,
518 GetUp = 162,
519 Out = 163,
520 GetWpaAuth = 164,
521 SetWpaAuth = 165,
522 GetUcflags = 166,
523 SetUcflags = 167,
524 GetPwridx = 168,
525 SetPwridx = 169,
526 GetTssi = 170,
527 GetSupRatesetOverride = 171,
528 SetSupRatesetOverride = 172,
529 GetProtectionControl = 178,
530 SetProtectionControl = 179,
531 GetPhylist = 180,
532 EncryptStrength = 181,
533 DecryptStatus = 182,
534 GetKeySeq = 183,
535 GetScanChannelTime = 184,
536 SetScanChannelTime = 185,
537 GetScanUnassocTime = 186,
538 SetScanUnassocTime = 187,
539 GetScanHomeTime = 188,
540 SetScanHomeTime = 189,
541 GetScanNprobes = 190,
542 SetScanNprobes = 191,
543 GetPrbRespTimeout = 192,
544 SetPrbRespTimeout = 193,
545 GetAtten = 194,
546 SetAtten = 195,
547 GetShmem = 196,
548 SetShmem = 197,
549 SetWsecTest = 200,
550 ScbDeauthenticateForReason = 201,
551 TkipCountermeasures = 202,
552 GetPiomode = 203,
553 SetPiomode = 204,
554 SetAssocPrefer = 205,
555 GetAssocPrefer = 206,
556 SetRoamPrefer = 207,
557 GetRoamPrefer = 208,
558 SetLed = 209,
559 GetLed = 210,
560 GetInterferenceMode = 211,
561 SetInterferenceMode = 212,
562 GetChannelQa = 213,
563 StartChannelQa = 214,
564 GetChannelSel = 215,
565 StartChannelSel = 216,
566 GetValidChannels = 217,
567 GetFakefrag = 218,
568 SetFakefrag = 219,
569 GetPwroutPercentage = 220,
570 SetPwroutPercentage = 221,
571 SetBadFramePreempt = 222,
572 GetBadFramePreempt = 223,
573 SetLeapList = 224,
574 GetLeapList = 225,
575 GetCwmin = 226,
576 SetCwmin = 227,
577 GetCwmax = 228,
578 SetCwmax = 229,
579 GetWet = 230,
580 SetWet = 231,
581 GetPub = 232,
582 GetKeyPrimary = 235,
583 SetKeyPrimary = 236,
584 GetAciArgs = 238,
585 SetAciArgs = 239,
586 UnsetCallback = 240,
587 SetCallback = 241,
588 GetRadar = 242,
589 SetRadar = 243,
590 SetSpectManagment = 244,
591 GetSpectManagment = 245,
592 WdsGetRemoteHwaddr = 246,
593 WdsGetWpaSup = 247,
594 SetCsScanTimer = 248,
595 GetCsScanTimer = 249,
596 MeasureRequest = 250,
597 Init = 251,
598 SendQuiet = 252,
599 Keepalive = 253,
600 SendPwrConstraint = 254,
601 UpgradeStatus = 255,
602 CurrentPwr = 256,
603 GetScanPassiveTime = 257,
604 SetScanPassiveTime = 258,
605 LegacyLinkBehavior = 259,
606 GetChannelsInCountry = 260,
607 GetCountryList = 261,
608 GetVar = 262,
609 SetVar = 263,
610 NvramGet = 264,
611 NvramSet = 265,
612 NvramDump = 266,
613 Reboot = 267,
614 SetWsecPmk = 268,
615 GetAuthMode = 269,
616 SetAuthMode = 270,
617 GetWakeentry = 271,
618 SetWakeentry = 272,
619 NdconfigItem = 273,
620 Nvotpw = 274,
621 Otpw = 275,
622 IovBlockGet = 276,
623 IovModulesGet = 277,
624 SoftReset = 278,
625 GetAllowMode = 279,
626 SetAllowMode = 280,
627 GetDesiredBssid = 281,
628 SetDesiredBssid = 282,
629 DisassocMyap = 283,
630 GetNbands = 284,
631 GetBandstates = 285,
632 GetWlcBssInfo = 286,
633 GetAssocInfo = 287,
634 GetOidPhy = 288,
635 SetOidPhy = 289,
636 SetAssocTime = 290,
637 GetDesiredSsid = 291,
638 GetChanspec = 292,
639 GetAssocState = 293,
640 SetPhyState = 294,
641 GetScanPending = 295,
642 GetScanreqPending = 296,
643 GetPrevRoamReason = 297,
644 SetPrevRoamReason = 298,
645 GetBandstatesPi = 299,
646 GetPhyState = 300,
647 GetBssWpaRsn = 301,
648 GetBssWpa2Rsn = 302,
649 GetBssBcnTs = 303,
650 GetIntDisassoc = 304,
651 SetNumPeers = 305,
652 GetNumBss = 306,
653 GetWsecPmk = 318,
654 GetRandomBytes = 319,
655}