aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-01-02 16:52:42 +0000
committerGitHub <[email protected]>2025-01-02 16:52:42 +0000
commitf816cacaf7a4d7da9e741ddea005561a404db7cd (patch)
treebc72f8ca5b2f64cd25a9109f112db7c36007108e
parentd58c7f60474b9ad7a06daac327b6bfe2478be4f9 (diff)
parent1de400bdcbb8b0872dc1fc03b66cfcb42017affd (diff)
Merge pull request #3637 from karimpanacci/main
Fix ScanType enum export
-rw-r--r--cyw43/src/control.rs5
-rw-r--r--cyw43/src/lib.rs2
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))]
40pub enum ScanType { 41pub 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;
30use crate::bus::Bus; 30use crate::bus::Bus;
31pub use crate::bus::SpiBusCyw43; 31pub use crate::bus::SpiBusCyw43;
32pub use crate::control::{ 32pub 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};
35pub use crate::runner::Runner; 35pub use crate::runner::Runner;
36pub use crate::structs::BssInfo; 36pub use crate::structs::BssInfo;