#[repr(C)]pub struct wifi_scan_threshold_t {
pub rssi: i8,
pub authmode: wifi_auth_mode_t,
pub rssi_5g_adjustment: u8,
}Expand description
@brief Structure describing parameters for Wi-Fi scan during connection
Fields§
§rssi: i8< The minimum rssi to accept in Wi-Fi scan. Defaults to -127 if set to >= 0
authmode: wifi_auth_mode_t< The weakest authentication mode to accept when scanning for Wi-Fi during connection.
Note: In case this value is not set and password is set as per WPA2 standards(password len >= 8), it will be defaulted to WPA2 and device won’t connect to deprecated WEP/WPA networks. Please set auth mode threshold as WIFI_AUTH_WEP/WIFI_AUTH_WPA_PSK to connect to WEP/WPA networks.
If this is set to a mixed mode (for example, WPA_WPA2 or WPA2_WPA3), the minimum mode becomes the stronger of the two. For example, WPA_WPA2 becomes WPA2, and WPA2_WPA3 becomes WPA3. See wifi_auth_mode_t for details on relative strengths.
rssi_5g_adjustment: u8< The RSSI value of the 5G AP is within the rssi_5g_adjustment range compared to the 2G AP, the 5G AP will be given priority for connection.
Trait Implementations§
Source§impl Clone for wifi_scan_threshold_t
impl Clone for wifi_scan_threshold_t
Source§fn clone(&self) -> wifi_scan_threshold_t
fn clone(&self) -> wifi_scan_threshold_t
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for wifi_scan_threshold_t
Source§impl Debug for wifi_scan_threshold_t
impl Debug for wifi_scan_threshold_t
Auto Trait Implementations§
impl Freeze for wifi_scan_threshold_t
impl RefUnwindSafe for wifi_scan_threshold_t
impl Send for wifi_scan_threshold_t
impl Sync for wifi_scan_threshold_t
impl Unpin for wifi_scan_threshold_t
impl UnsafeUnpin for wifi_scan_threshold_t
impl UnwindSafe for wifi_scan_threshold_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)