aboutsummaryrefslogtreecommitdiff
path: root/cyw43/src/control.rs
diff options
context:
space:
mode:
authorKarim <[email protected]>2024-12-10 20:24:16 +0100
committerDario Nieuwenhuis <[email protected]>2025-01-02 17:32:37 +0100
commit1de400bdcbb8b0872dc1fc03b66cfcb42017affd (patch)
treebc72f8ca5b2f64cd25a9109f112db7c36007108e /cyw43/src/control.rs
parentd58c7f60474b9ad7a06daac327b6bfe2478be4f9 (diff)
Fix ScanType enum export
Exports the ScanType enum, which is needed to build the ScanOptions struct
Diffstat (limited to 'cyw43/src/control.rs')
-rw-r--r--cyw43/src/control.rs5
1 files changed, 5 insertions, 0 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