diff options
Diffstat (limited to 'cyw43/src')
| -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; |
