wlan_common/ie/wsc/
id.rs
1use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout, Unaligned};
6
7#[repr(C, packed)]
8#[derive(
9 Eq, PartialEq, Hash, IntoBytes, KnownLayout, FromBytes, Immutable, Unaligned, Copy, Clone, Debug,
10)]
11pub struct Id(pub [u8; 2]);
12
13impl Id {
15 pub const AP_SETUP_LOCKED: Self = Self([0x10, 0x57]);
16 pub const CONFIG_METHODS: Self = Self([0x10, 0x08]);
17 pub const DEVICE_NAME: Self = Self([0x10, 0x11]);
18 pub const DEVICE_PASSWORD_ID: Self = Self([0x10, 0x12]);
19 pub const MANUFACTURER: Self = Self([0x10, 0x21]);
20 pub const MODEL_NAME: Self = Self([0x10, 0x23]);
21 pub const MODEL_NUMBER: Self = Self([0x10, 0x24]);
22 pub const PRIMARY_DEVICE_TYPE: Self = Self([0x10, 0x54]);
23 pub const RESPONSE_TYPE: Self = Self([0x10, 0x3B]);
24 pub const RF_BANDS: Self = Self([0x10, 0x3C]);
25 pub const SELECTED_REG: Self = Self([0x10, 0x41]);
26 pub const SELECTED_REG_CONFIG_METHODS: Self = Self([0x10, 0x53]);
27 pub const SERIAL_NUMBER: Self = Self([0x10, 0x42]);
28 pub const UUID_E: Self = Self([0x10, 0x47]);
29 pub const VENDOR_EXT: Self = Self([0x10, 0x49]);
30 pub const VERSION: Self = Self([0x10, 0x4A]);
31 pub const WPS_STATE: Self = Self([0x10, 0x44]);
32}