wlan_common/ie/wsc/
fields.rsuse zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout, Unaligned};
#[derive(Eq, PartialEq, Hash, Clone, Debug)]
pub struct ProbeRespWsc {
pub version: u8,
pub wps_state: WpsState,
pub ap_setup_locked: bool,
pub selected_reg: bool,
pub selected_reg_config_methods: Option<[u8; 2]>,
pub response_type: u8,
pub uuid_e: [u8; 16],
pub manufacturer: Vec<u8>,
pub model_name: Vec<u8>,
pub model_number: Vec<u8>,
pub serial_number: Vec<u8>,
pub primary_device_type: [u8; 8],
pub device_name: Vec<u8>,
pub config_methods: [u8; 2],
pub rf_bands: Option<u8>,
pub vendor_ext: Vec<u8>,
}
#[repr(C, packed)]
#[derive(
Eq, PartialEq, Hash, IntoBytes, KnownLayout, FromBytes, Immutable, Unaligned, Copy, Clone, Debug,
)]
pub struct WpsState(pub u8);
impl WpsState {
pub const NOT_CONFIGURED: Self = Self(0x01);
pub const CONFIGURED: Self = Self(0x02);
}