#[repr(C)]pub struct wifi_sta_config_t {Show 18 fields
pub ssid: [u8; 32],
pub password: [u8; 64],
pub scan_method: wifi_scan_method_t,
pub bssid_set: bool,
pub bssid: [u8; 6],
pub channel: u8,
pub listen_interval: u16,
pub sort_method: wifi_sort_method_t,
pub threshold: wifi_scan_threshold_t,
pub pmf_cfg: wifi_pmf_config_t,
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
pub sae_pwe_h2e: wifi_sae_pwe_method_t,
pub sae_pk_mode: wifi_sae_pk_mode_t,
pub failure_retry_cnt: u8,
pub _bitfield_align_2: [u32; 0],
pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4]>,
pub sae_h2e_identifier: [u8; 32],
}Expand description
@brief STA configuration settings for the device
Fields§
§ssid: [u8; 32]< SSID of target AP.
password: [u8; 64]< Password of target AP.
scan_method: wifi_scan_method_t< Do all channel scan or fast scan
bssid_set: bool< Whether set MAC address of target AP or not. Generally, station_config.bssid_set needs to be 0; and it needs to be 1 only when users need to check the MAC address of the AP.
bssid: [u8; 6]< MAC address of target AP
channel: u8< Channel hint for target AP. For 2.4G AP, set to 1~13 to scan starting from the specified channel before connecting to AP. For 5G AP, set to 36~177 (36, 40, 44 … 177) to scan starting from the specified channel before connecting to AP. Set to 0 for no preference
listen_interval: u16< Listen interval for ESP32 station to receive beacon when WIFI_PS_MAX_MODEM is set. Units: AP beacon intervals. Defaults to 3 if set to 0.
sort_method: wifi_sort_method_t< Sort the connect AP in the list by rssi or security mode
threshold: wifi_scan_threshold_t< When scan_threshold is set, only APs which have an auth mode that is more secure than the selected auth mode and a signal stronger than the minimum RSSI will be used.
pmf_cfg: wifi_pmf_config_t< Configuration for Protected Management Frame. Will be advertised in RSN Capabilities in RSN IE.
_bitfield_align_1: [u32; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>§sae_pwe_h2e: wifi_sae_pwe_method_t< Configuration for SAE PWE derivation method. Default value :2 (WPA3_SAE_PWE_BOTH)
sae_pk_mode: wifi_sae_pk_mode_t< Configuration for SAE-PK (Public Key) Authentication method
failure_retry_cnt: u8< Number of connection retries station will do before moving to next AP. scan_method should be set as WIFI_ALL_CHANNEL_SCAN to use this config. Note: Enabling this may cause connection time to increase in case best AP doesn’t behave properly.
_bitfield_align_2: [u32; 0]§_bitfield_2: __BindgenBitfieldUnit<[u8; 4]>§sae_h2e_identifier: [u8; 32]< Password identifier for H2E. Strings null-terminated (length < SAE_H2E_IDENTIFIER_LEN) or non-null terminated (length = SAE_H2E_IDENTIFIER_LEN) are accepted. Non-null terminated string with 0xFF for full length of SAE_H2E_IDENTIFIER_LEN is not considered a valid identifier
Implementations§
Source§impl wifi_sta_config_t
impl wifi_sta_config_t
pub fn rm_enabled(&self) -> u32
pub fn set_rm_enabled(&mut self, val: u32)
pub unsafe fn rm_enabled_raw(this: *const Self) -> u32
pub unsafe fn set_rm_enabled_raw(this: *mut Self, val: u32)
pub fn btm_enabled(&self) -> u32
pub fn set_btm_enabled(&mut self, val: u32)
pub unsafe fn btm_enabled_raw(this: *const Self) -> u32
pub unsafe fn set_btm_enabled_raw(this: *mut Self, val: u32)
pub fn mbo_enabled(&self) -> u32
pub fn set_mbo_enabled(&mut self, val: u32)
pub unsafe fn mbo_enabled_raw(this: *const Self) -> u32
pub unsafe fn set_mbo_enabled_raw(this: *mut Self, val: u32)
pub fn ft_enabled(&self) -> u32
pub fn set_ft_enabled(&mut self, val: u32)
pub unsafe fn ft_enabled_raw(this: *const Self) -> u32
pub unsafe fn set_ft_enabled_raw(this: *mut Self, val: u32)
pub fn owe_enabled(&self) -> u32
pub fn set_owe_enabled(&mut self, val: u32)
pub unsafe fn owe_enabled_raw(this: *const Self) -> u32
pub unsafe fn set_owe_enabled_raw(this: *mut Self, val: u32)
pub fn transition_disable(&self) -> u32
pub fn set_transition_disable(&mut self, val: u32)
pub unsafe fn transition_disable_raw(this: *const Self) -> u32
pub unsafe fn set_transition_disable_raw(this: *mut Self, val: u32)
pub fn reserved1(&self) -> u32
pub fn set_reserved1(&mut self, val: u32)
pub unsafe fn reserved1_raw(this: *const Self) -> u32
pub unsafe fn set_reserved1_raw(this: *mut Self, val: u32)
pub fn new_bitfield_1( rm_enabled: u32, btm_enabled: u32, mbo_enabled: u32, ft_enabled: u32, owe_enabled: u32, transition_disable: u32, reserved1: u32, ) -> __BindgenBitfieldUnit<[u8; 4]>
pub fn he_dcm_set(&self) -> u32
pub fn set_he_dcm_set(&mut self, val: u32)
pub unsafe fn he_dcm_set_raw(this: *const Self) -> u32
pub unsafe fn set_he_dcm_set_raw(this: *mut Self, val: u32)
pub fn he_dcm_max_constellation_tx(&self) -> u32
pub fn set_he_dcm_max_constellation_tx(&mut self, val: u32)
pub unsafe fn he_dcm_max_constellation_tx_raw(this: *const Self) -> u32
pub unsafe fn set_he_dcm_max_constellation_tx_raw(this: *mut Self, val: u32)
pub fn he_dcm_max_constellation_rx(&self) -> u32
pub fn set_he_dcm_max_constellation_rx(&mut self, val: u32)
pub unsafe fn he_dcm_max_constellation_rx_raw(this: *const Self) -> u32
pub unsafe fn set_he_dcm_max_constellation_rx_raw(this: *mut Self, val: u32)
pub fn he_mcs9_enabled(&self) -> u32
pub fn set_he_mcs9_enabled(&mut self, val: u32)
pub unsafe fn he_mcs9_enabled_raw(this: *const Self) -> u32
pub unsafe fn set_he_mcs9_enabled_raw(this: *mut Self, val: u32)
pub fn he_su_beamformee_disabled(&self) -> u32
pub fn set_he_su_beamformee_disabled(&mut self, val: u32)
pub unsafe fn he_su_beamformee_disabled_raw(this: *const Self) -> u32
pub unsafe fn set_he_su_beamformee_disabled_raw(this: *mut Self, val: u32)
pub fn he_trig_su_bmforming_feedback_disabled(&self) -> u32
pub fn set_he_trig_su_bmforming_feedback_disabled(&mut self, val: u32)
pub unsafe fn he_trig_su_bmforming_feedback_disabled_raw( this: *const Self, ) -> u32
pub unsafe fn set_he_trig_su_bmforming_feedback_disabled_raw( this: *mut Self, val: u32, )
pub fn he_trig_mu_bmforming_partial_feedback_disabled(&self) -> u32
pub fn set_he_trig_mu_bmforming_partial_feedback_disabled(&mut self, val: u32)
pub unsafe fn he_trig_mu_bmforming_partial_feedback_disabled_raw( this: *const Self, ) -> u32
pub unsafe fn set_he_trig_mu_bmforming_partial_feedback_disabled_raw( this: *mut Self, val: u32, )
pub fn he_trig_cqi_feedback_disabled(&self) -> u32
pub fn set_he_trig_cqi_feedback_disabled(&mut self, val: u32)
pub unsafe fn he_trig_cqi_feedback_disabled_raw(this: *const Self) -> u32
pub unsafe fn set_he_trig_cqi_feedback_disabled_raw(this: *mut Self, val: u32)
pub fn vht_su_beamformee_disabled(&self) -> u32
pub fn set_vht_su_beamformee_disabled(&mut self, val: u32)
pub unsafe fn vht_su_beamformee_disabled_raw(this: *const Self) -> u32
pub unsafe fn set_vht_su_beamformee_disabled_raw(this: *mut Self, val: u32)
pub fn vht_mu_beamformee_disabled(&self) -> u32
pub fn set_vht_mu_beamformee_disabled(&mut self, val: u32)
pub unsafe fn vht_mu_beamformee_disabled_raw(this: *const Self) -> u32
pub unsafe fn set_vht_mu_beamformee_disabled_raw(this: *mut Self, val: u32)
pub fn vht_mcs8_enabled(&self) -> u32
pub fn set_vht_mcs8_enabled(&mut self, val: u32)
pub unsafe fn vht_mcs8_enabled_raw(this: *const Self) -> u32
pub unsafe fn set_vht_mcs8_enabled_raw(this: *mut Self, val: u32)
pub fn reserved2(&self) -> u32
pub fn set_reserved2(&mut self, val: u32)
pub unsafe fn reserved2_raw(this: *const Self) -> u32
pub unsafe fn set_reserved2_raw(this: *mut Self, val: u32)
pub fn new_bitfield_2( he_dcm_set: u32, he_dcm_max_constellation_tx: u32, he_dcm_max_constellation_rx: u32, he_mcs9_enabled: u32, he_su_beamformee_disabled: u32, he_trig_su_bmforming_feedback_disabled: u32, he_trig_mu_bmforming_partial_feedback_disabled: u32, he_trig_cqi_feedback_disabled: u32, vht_su_beamformee_disabled: u32, vht_mu_beamformee_disabled: u32, vht_mcs8_enabled: u32, reserved2: u32, ) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations§
Source§impl Clone for wifi_sta_config_t
impl Clone for wifi_sta_config_t
Source§fn clone(&self) -> wifi_sta_config_t
fn clone(&self) -> wifi_sta_config_t
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for wifi_sta_config_t
impl Debug for wifi_sta_config_t
Source§impl Default for wifi_sta_config_t
impl Default for wifi_sta_config_t
impl Copy for wifi_sta_config_t
Auto Trait Implementations§
impl Freeze for wifi_sta_config_t
impl RefUnwindSafe for wifi_sta_config_t
impl Send for wifi_sta_config_t
impl Sync for wifi_sta_config_t
impl Unpin for wifi_sta_config_t
impl UnsafeUnpin for wifi_sta_config_t
impl UnwindSafe for wifi_sta_config_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)