diff options
| author | Christopher N. Hesse <[email protected]> | 2024-01-15 12:05:55 +0100 |
|---|---|---|
| committer | Christopher N. Hesse <[email protected]> | 2024-01-19 17:31:12 +0100 |
| commit | 5e158757b9922bff178541f8a50a3e87be8c1c2d (patch) | |
| tree | 8c0e58603bf17b1272c5e54332b54b8a481198e1 /cyw43/src/structs.rs | |
| parent | 9cd0beaee37f9e1cc885ad162b63bca795478227 (diff) | |
Add more fields to the BssInfo packet struct
Taken from the Infineon WHD repository:
https://github.com/Infineon/wifi-host-driver/blob/04ee318cc96bffa7d69a1e076c008e2364453f82/WiFi_Host_Driver/inc/whd_types.h#L814
Signed-off-by: Christopher N. Hesse <[email protected]>
Diffstat (limited to 'cyw43/src/structs.rs')
| -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); |
