diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-01-19 17:35:04 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-19 17:35:04 +0100 |
| commit | 5cf6d6fcbae003b6b5439f60267cc88ca8d49258 (patch) | |
| tree | 30f7e2ba3c9afc731977bdcf555f0d5c1a207f99 | |
| parent | 1e16661e0a17cdb9ad044ef9a38dacbaf35c1d10 (diff) | |
| parent | 5e158757b9922bff178541f8a50a3e87be8c1c2d (diff) | |
Merge pull request #2461 from raymanfx/main
Add more fields to the BssInfo packet struct
| -rw-r--r-- | cyw43/src/structs.rs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/cyw43/src/structs.rs b/cyw43/src/structs.rs index 5ea62d95b..ae7ef6038 100644 --- a/cyw43/src/structs.rs +++ b/cyw43/src/structs.rs | |||
| @@ -491,6 +491,44 @@ pub struct BssInfo { | |||
| 491 | pub ssid_len: u8, | 491 | pub ssid_len: u8, |
| 492 | /// SSID. | 492 | /// SSID. |
| 493 | pub ssid: [u8; 32], | 493 | pub ssid: [u8; 32], |
| 494 | reserved1: [u8; 1], | ||
| 495 | /// Number of rates in the rates field. | ||
| 496 | pub rateset_count: u32, | ||
| 497 | /// Rates in 500kpbs units. | ||
| 498 | pub rates: [u8; 16], | ||
| 499 | /// Channel specification. | ||
| 500 | pub chanspec: u16, | ||
| 501 | /// Announcement traffic indication message. | ||
| 502 | pub atim_window: u16, | ||
| 503 | /// Delivery traffic indication message. | ||
| 504 | pub dtim_period: u8, | ||
| 505 | reserved2: [u8; 1], | ||
| 506 | /// Receive signal strength (in dbM). | ||
| 507 | pub rssi: i16, | ||
| 508 | /// Received noise (in dbM). | ||
| 509 | pub phy_noise: i8, | ||
| 510 | /// 802.11n capability. | ||
| 511 | pub n_cap: u8, | ||
| 512 | reserved3: [u8; 2], | ||
| 513 | /// 802.11n BSS capabilities. | ||
| 514 | pub nbss_cap: u32, | ||
| 515 | /// 802.11n control channel number. | ||
| 516 | pub ctl_ch: u8, | ||
| 517 | reserved4: [u8; 3], | ||
| 518 | reserved32: [u32; 1], | ||
| 519 | /// Flags. | ||
| 520 | pub flags: u8, | ||
| 521 | /// VHT capability. | ||
| 522 | pub vht_cap: u8, | ||
| 523 | reserved5: [u8; 2], | ||
| 524 | /// 802.11n BSS required MCS. | ||
| 525 | pub basic_mcs: [u8; 16], | ||
| 526 | /// Information Elements (IE) offset. | ||
| 527 | pub ie_offset: u16, | ||
| 528 | /// Length of Information Elements (IE) in bytes. | ||
| 529 | pub ie_length: u32, | ||
| 530 | /// Average signal-to-noise (SNR) ratio during frame reception. | ||
| 531 | pub snr: i16, | ||
| 494 | // there will be more stuff here | 532 | // there will be more stuff here |
| 495 | } | 533 | } |
| 496 | impl_bytes!(BssInfo); | 534 | impl_bytes!(BssInfo); |
