Skip to content

Commit 1de400b

Browse files
karimpanacciDirbaio
authored andcommitted
Fix ScanType enum export
Exports the ScanType enum, which is needed to build the ScanOptions struct
1 parent d58c7f6 commit 1de400b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

cyw43/src/control.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,15 @@ pub struct Control<'a> {
3535
ioctl_state: &'a IoctlState,
3636
}
3737

38+
/// WiFi scan type.
3839
#[derive(Copy, Clone, Debug)]
3940
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
4041
pub enum ScanType {
42+
/// Active scan: the station actively transmits probes that make APs respond.
43+
/// Faster, but uses more power.
4144
Active,
45+
/// Passive scan: the station doesn't transmit any probes, just listens for beacons.
46+
/// Slower, but uses less power.
4247
Passive,
4348
}
4449

cyw43/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use ioctl::IoctlState;
3030
use crate::bus::Bus;
3131
pub use crate::bus::SpiBusCyw43;
3232
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,
3434
};
3535
pub use crate::runner::Runner;
3636
pub use crate::structs::BssInfo;

0 commit comments

Comments
 (0)