diff options
| -rw-r--r-- | cyw43/src/control.rs | 2 | ||||
| -rw-r--r-- | cyw43/src/lib.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cyw43/src/control.rs b/cyw43/src/control.rs index 8944865c1..f0f179e2e 100644 --- a/cyw43/src/control.rs +++ b/cyw43/src/control.rs | |||
| @@ -42,9 +42,11 @@ pub enum ScanType { | |||
| 42 | Passive, | 42 | Passive, |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | /// Scan options. | ||
| 45 | #[derive(Clone)] | 46 | #[derive(Clone)] |
| 46 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 47 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| 47 | pub struct ScanOptions { | 48 | pub struct ScanOptions { |
| 49 | /// SSID to scan for. | ||
| 48 | pub ssid: Option<heapless::String<32>>, | 50 | pub ssid: Option<heapless::String<32>>, |
| 49 | /// If set to `None`, all APs will be returned. If set to `Some`, only APs | 51 | /// If set to `None`, all APs will be returned. If set to `Some`, only APs |
| 50 | /// with the specified BSSID will be returned. | 52 | /// with the specified BSSID will be returned. |
diff --git a/cyw43/src/lib.rs b/cyw43/src/lib.rs index 19b0cb194..7c8f35da7 100644 --- a/cyw43/src/lib.rs +++ b/cyw43/src/lib.rs | |||
| @@ -28,7 +28,7 @@ use ioctl::IoctlState; | |||
| 28 | 28 | ||
| 29 | use crate::bus::Bus; | 29 | use crate::bus::Bus; |
| 30 | pub use crate::bus::SpiBusCyw43; | 30 | pub use crate::bus::SpiBusCyw43; |
| 31 | pub use crate::control::{AddMulticastAddressError, Control, Error as ControlError, Scanner}; | 31 | pub use crate::control::{AddMulticastAddressError, Control, Error as ControlError, ScanOptions, Scanner}; |
| 32 | pub use crate::runner::Runner; | 32 | pub use crate::runner::Runner; |
| 33 | pub use crate::structs::BssInfo; | 33 | pub use crate::structs::BssInfo; |
| 34 | 34 | ||
