aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cyw43/src/control.rs2
-rw-r--r--cyw43/src/lib.rs2
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))]
47pub struct ScanOptions { 48pub 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
29use crate::bus::Bus; 29use crate::bus::Bus;
30pub use crate::bus::SpiBusCyw43; 30pub use crate::bus::SpiBusCyw43;
31pub use crate::control::{AddMulticastAddressError, Control, Error as ControlError, Scanner}; 31pub use crate::control::{AddMulticastAddressError, Control, Error as ControlError, ScanOptions, Scanner};
32pub use crate::runner::Runner; 32pub use crate::runner::Runner;
33pub use crate::structs::BssInfo; 33pub use crate::structs::BssInfo;
34 34