diff options
| author | Karim <[email protected]> | 2024-12-10 20:24:16 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-01-02 17:32:37 +0100 |
| commit | 1de400bdcbb8b0872dc1fc03b66cfcb42017affd (patch) | |
| tree | bc72f8ca5b2f64cd25a9109f112db7c36007108e | |
| parent | d58c7f60474b9ad7a06daac327b6bfe2478be4f9 (diff) | |
Fix ScanType enum export
Exports the ScanType enum, which is needed to build the ScanOptions struct
| -rw-r--r-- | cyw43/src/control.rs | 5 | ||||
| -rw-r--r-- | cyw43/src/lib.rs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/cyw43/src/control.rs b/cyw43/src/control.rs index 071ba88e4..888cf4b90 100644 --- a/cyw43/src/control.rs +++ b/cyw43/src/control.rs | |||
| @@ -35,10 +35,15 @@ pub struct Control<'a> { | |||
| 35 | ioctl_state: &'a IoctlState, | 35 | ioctl_state: &'a IoctlState, |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | /// WiFi scan type. | ||
| 38 | #[derive(Copy, Clone, Debug)] | 39 | #[derive(Copy, Clone, Debug)] |
| 39 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 40 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
| 40 | pub enum ScanType { | 41 | pub enum ScanType { |
| 42 | /// Active scan: the station actively transmits probes that make APs respond. | ||
| 43 | /// Faster, but uses more power. | ||
| 41 | Active, | 44 | Active, |
| 45 | /// Passive scan: the station doesn't transmit any probes, just listens for beacons. | ||
| 46 | /// Slower, but uses less power. | ||
| 42 | Passive, | 47 | Passive, |
| 43 | } | 48 | } |
| 44 | 49 | ||
diff --git a/cyw43/src/lib.rs b/cyw43/src/lib.rs index 3cd0e4988..aab13d8b8 100644 --- a/cyw43/src/lib.rs +++ b/cyw43/src/lib.rs | |||
| @@ -30,7 +30,7 @@ use ioctl::IoctlState; | |||
| 30 | use crate::bus::Bus; | 30 | use crate::bus::Bus; |
| 31 | pub use crate::bus::SpiBusCyw43; | 31 | pub use crate::bus::SpiBusCyw43; |
| 32 | pub use crate::control::{ | 32 | pub use crate::control::{ |
| 33 | AddMulticastAddressError, Control, Error as ControlError, JoinAuth, JoinOptions, ScanOptions, Scanner, | 33 | AddMulticastAddressError, Control, Error as ControlError, JoinAuth, JoinOptions, ScanOptions, ScanType, Scanner, |
| 34 | }; | 34 | }; |
| 35 | pub use crate::runner::Runner; | 35 | pub use crate::runner::Runner; |
| 36 | pub use crate::structs::BssInfo; | 36 | pub use crate::structs::BssInfo; |
