From 3efbd60a9054631717bcdf9a195323d18bd0dc66 Mon Sep 17 00:00:00 2001 From: Vicente Date: Thu, 25 Jul 2024 19:24:37 +0200 Subject: [PATCH 1/4] Fixing missing re-export cyw::control::ScanOptions --- cyw43/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyw43/src/lib.rs b/cyw43/src/lib.rs index 19b0cb194..e36f7d83e 100644 --- a/cyw43/src/lib.rs +++ b/cyw43/src/lib.rs @@ -28,7 +28,7 @@ use ioctl::IoctlState; use crate::bus::Bus; pub use crate::bus::SpiBusCyw43; -pub use crate::control::{AddMulticastAddressError, Control, Error as ControlError, Scanner}; +pub use crate::control::{AddMulticastAddressError, Control, Error as ControlError, Scanner, ScanOptions}; pub use crate::runner::Runner; pub use crate::structs::BssInfo; From 6eb447eb587da42644926fb1aebca8a5d0aab57f Mon Sep 17 00:00:00 2001 From: Vicente Date: Thu, 25 Jul 2024 19:45:52 +0200 Subject: [PATCH 2/4] Adding pub struct docs cyw43::ScanOptions --- cyw43/src/control.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cyw43/src/control.rs b/cyw43/src/control.rs index 8944865c1..d48cd6748 100644 --- a/cyw43/src/control.rs +++ b/cyw43/src/control.rs @@ -42,6 +42,7 @@ pub enum ScanType { Passive, } +/// Scan options. #[derive(Clone)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] pub struct ScanOptions { From da5ecd29f1a046526bbb56673a6e6c986dbd8c39 Mon Sep 17 00:00:00 2001 From: Vicente Date: Thu, 25 Jul 2024 19:55:54 +0200 Subject: [PATCH 3/4] Formmating --- cyw43/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyw43/src/lib.rs b/cyw43/src/lib.rs index e36f7d83e..7c8f35da7 100644 --- a/cyw43/src/lib.rs +++ b/cyw43/src/lib.rs @@ -28,7 +28,7 @@ use ioctl::IoctlState; use crate::bus::Bus; pub use crate::bus::SpiBusCyw43; -pub use crate::control::{AddMulticastAddressError, Control, Error as ControlError, Scanner, ScanOptions}; +pub use crate::control::{AddMulticastAddressError, Control, Error as ControlError, ScanOptions, Scanner}; pub use crate::runner::Runner; pub use crate::structs::BssInfo; From 29d79d3af2bad9ef2e3010de0589b1606bbcfb8d Mon Sep 17 00:00:00 2001 From: Vicente Date: Thu, 25 Jul 2024 20:01:19 +0200 Subject: [PATCH 4/4] Added doc comment to a public enum variant --- cyw43/src/control.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cyw43/src/control.rs b/cyw43/src/control.rs index d48cd6748..f0f179e2e 100644 --- a/cyw43/src/control.rs +++ b/cyw43/src/control.rs @@ -46,6 +46,7 @@ pub enum ScanType { #[derive(Clone)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] pub struct ScanOptions { + /// SSID to scan for. pub ssid: Option>, /// If set to `None`, all APs will be returned. If set to `Some`, only APs /// with the specified BSSID will be returned.