1e5b75505Sopenharmony_ci/* 2e5b75505Sopenharmony_ci * Wi-Fi Protected Setup - message definitions 3e5b75505Sopenharmony_ci * Copyright (c) 2008, Jouni Malinen <j@w1.fi> 4e5b75505Sopenharmony_ci * 5e5b75505Sopenharmony_ci * This software may be distributed under the terms of the BSD license. 6e5b75505Sopenharmony_ci * See README for more details. 7e5b75505Sopenharmony_ci */ 8e5b75505Sopenharmony_ci 9e5b75505Sopenharmony_ci#ifndef WPS_DEFS_H 10e5b75505Sopenharmony_ci#define WPS_DEFS_H 11e5b75505Sopenharmony_ci 12e5b75505Sopenharmony_ci#ifdef CONFIG_WPS_TESTING 13e5b75505Sopenharmony_ci 14e5b75505Sopenharmony_ciextern int wps_version_number; 15e5b75505Sopenharmony_ciextern int wps_testing_dummy_cred; 16e5b75505Sopenharmony_ciextern int wps_corrupt_pkhash; 17e5b75505Sopenharmony_ciextern int wps_force_auth_types_in_use; 18e5b75505Sopenharmony_ciextern u16 wps_force_auth_types; 19e5b75505Sopenharmony_ciextern int wps_force_encr_types_in_use; 20e5b75505Sopenharmony_ciextern u16 wps_force_encr_types; 21e5b75505Sopenharmony_ci#define WPS_VERSION wps_version_number 22e5b75505Sopenharmony_ci 23e5b75505Sopenharmony_ci#else /* CONFIG_WPS_TESTING */ 24e5b75505Sopenharmony_ci 25e5b75505Sopenharmony_ci#define WPS_VERSION 0x20 26e5b75505Sopenharmony_ci 27e5b75505Sopenharmony_ci#endif /* CONFIG_WPS_TESTING */ 28e5b75505Sopenharmony_ci 29e5b75505Sopenharmony_ci/* Diffie-Hellman 1536-bit MODP Group; RFC 3526, Group 5 */ 30e5b75505Sopenharmony_ci#define WPS_DH_GROUP 5 31e5b75505Sopenharmony_ci 32e5b75505Sopenharmony_ci#define WPS_UUID_LEN 16 33e5b75505Sopenharmony_ci#define WPS_NONCE_LEN 16 34e5b75505Sopenharmony_ci#define WPS_AUTHENTICATOR_LEN 8 35e5b75505Sopenharmony_ci#define WPS_AUTHKEY_LEN 32 36e5b75505Sopenharmony_ci#define WPS_KEYWRAPKEY_LEN 16 37e5b75505Sopenharmony_ci#define WPS_EMSK_LEN 32 38e5b75505Sopenharmony_ci#define WPS_PSK_LEN 16 39e5b75505Sopenharmony_ci#define WPS_SECRET_NONCE_LEN 16 40e5b75505Sopenharmony_ci#define WPS_HASH_LEN 32 41e5b75505Sopenharmony_ci#define WPS_KWA_LEN 8 42e5b75505Sopenharmony_ci#define WPS_MGMTAUTHKEY_LEN 32 43e5b75505Sopenharmony_ci#define WPS_MGMTENCKEY_LEN 16 44e5b75505Sopenharmony_ci#define WPS_MGMT_KEY_ID_LEN 16 45e5b75505Sopenharmony_ci#define WPS_OOB_DEVICE_PASSWORD_MIN_LEN 16 46e5b75505Sopenharmony_ci#define WPS_OOB_DEVICE_PASSWORD_LEN 32 47e5b75505Sopenharmony_ci#define WPS_OOB_PUBKEY_HASH_LEN 20 48e5b75505Sopenharmony_ci#define WPS_DEV_NAME_MAX_LEN 32 49e5b75505Sopenharmony_ci#define WPS_MANUFACTURER_MAX_LEN 64 50e5b75505Sopenharmony_ci#define WPS_MODEL_NAME_MAX_LEN 32 51e5b75505Sopenharmony_ci#define WPS_MODEL_NUMBER_MAX_LEN 32 52e5b75505Sopenharmony_ci#define WPS_SERIAL_NUMBER_MAX_LEN 32 53e5b75505Sopenharmony_ci 54e5b75505Sopenharmony_ci/* Attribute Types */ 55e5b75505Sopenharmony_cienum wps_attribute { 56e5b75505Sopenharmony_ci ATTR_AP_CHANNEL = 0x1001, 57e5b75505Sopenharmony_ci ATTR_ASSOC_STATE = 0x1002, 58e5b75505Sopenharmony_ci ATTR_AUTH_TYPE = 0x1003, 59e5b75505Sopenharmony_ci ATTR_AUTH_TYPE_FLAGS = 0x1004, 60e5b75505Sopenharmony_ci ATTR_AUTHENTICATOR = 0x1005, 61e5b75505Sopenharmony_ci ATTR_CONFIG_METHODS = 0x1008, 62e5b75505Sopenharmony_ci ATTR_CONFIG_ERROR = 0x1009, 63e5b75505Sopenharmony_ci ATTR_CONFIRM_URL4 = 0x100a, 64e5b75505Sopenharmony_ci ATTR_CONFIRM_URL6 = 0x100b, 65e5b75505Sopenharmony_ci ATTR_CONN_TYPE = 0x100c, 66e5b75505Sopenharmony_ci ATTR_CONN_TYPE_FLAGS = 0x100d, 67e5b75505Sopenharmony_ci ATTR_CRED = 0x100e, 68e5b75505Sopenharmony_ci ATTR_ENCR_TYPE = 0x100f, 69e5b75505Sopenharmony_ci ATTR_ENCR_TYPE_FLAGS = 0x1010, 70e5b75505Sopenharmony_ci ATTR_DEV_NAME = 0x1011, 71e5b75505Sopenharmony_ci ATTR_DEV_PASSWORD_ID = 0x1012, 72e5b75505Sopenharmony_ci ATTR_E_HASH1 = 0x1014, 73e5b75505Sopenharmony_ci ATTR_E_HASH2 = 0x1015, 74e5b75505Sopenharmony_ci ATTR_E_SNONCE1 = 0x1016, 75e5b75505Sopenharmony_ci ATTR_E_SNONCE2 = 0x1017, 76e5b75505Sopenharmony_ci ATTR_ENCR_SETTINGS = 0x1018, 77e5b75505Sopenharmony_ci ATTR_ENROLLEE_NONCE = 0x101a, 78e5b75505Sopenharmony_ci ATTR_FEATURE_ID = 0x101b, 79e5b75505Sopenharmony_ci ATTR_IDENTITY = 0x101c, 80e5b75505Sopenharmony_ci ATTR_IDENTITY_PROOF = 0x101d, 81e5b75505Sopenharmony_ci ATTR_KEY_WRAP_AUTH = 0x101e, 82e5b75505Sopenharmony_ci ATTR_KEY_ID = 0x101f, 83e5b75505Sopenharmony_ci ATTR_MAC_ADDR = 0x1020, 84e5b75505Sopenharmony_ci ATTR_MANUFACTURER = 0x1021, 85e5b75505Sopenharmony_ci ATTR_MSG_TYPE = 0x1022, 86e5b75505Sopenharmony_ci ATTR_MODEL_NAME = 0x1023, 87e5b75505Sopenharmony_ci ATTR_MODEL_NUMBER = 0x1024, 88e5b75505Sopenharmony_ci ATTR_NETWORK_INDEX = 0x1026, 89e5b75505Sopenharmony_ci ATTR_NETWORK_KEY = 0x1027, 90e5b75505Sopenharmony_ci ATTR_NETWORK_KEY_INDEX = 0x1028, 91e5b75505Sopenharmony_ci ATTR_NEW_DEVICE_NAME = 0x1029, 92e5b75505Sopenharmony_ci ATTR_NEW_PASSWORD = 0x102a, 93e5b75505Sopenharmony_ci ATTR_OOB_DEVICE_PASSWORD = 0x102c, 94e5b75505Sopenharmony_ci ATTR_OS_VERSION = 0x102d, 95e5b75505Sopenharmony_ci ATTR_POWER_LEVEL = 0x102f, 96e5b75505Sopenharmony_ci ATTR_PSK_CURRENT = 0x1030, 97e5b75505Sopenharmony_ci ATTR_PSK_MAX = 0x1031, 98e5b75505Sopenharmony_ci ATTR_PUBLIC_KEY = 0x1032, 99e5b75505Sopenharmony_ci ATTR_RADIO_ENABLE = 0x1033, 100e5b75505Sopenharmony_ci ATTR_REBOOT = 0x1034, 101e5b75505Sopenharmony_ci ATTR_REGISTRAR_CURRENT = 0x1035, 102e5b75505Sopenharmony_ci ATTR_REGISTRAR_ESTABLISHED = 0x1036, 103e5b75505Sopenharmony_ci ATTR_REGISTRAR_LIST = 0x1037, 104e5b75505Sopenharmony_ci ATTR_REGISTRAR_MAX = 0x1038, 105e5b75505Sopenharmony_ci ATTR_REGISTRAR_NONCE = 0x1039, 106e5b75505Sopenharmony_ci ATTR_REQUEST_TYPE = 0x103a, 107e5b75505Sopenharmony_ci ATTR_RESPONSE_TYPE = 0x103b, 108e5b75505Sopenharmony_ci ATTR_RF_BANDS = 0x103c, 109e5b75505Sopenharmony_ci ATTR_R_HASH1 = 0x103d, 110e5b75505Sopenharmony_ci ATTR_R_HASH2 = 0x103e, 111e5b75505Sopenharmony_ci ATTR_R_SNONCE1 = 0x103f, 112e5b75505Sopenharmony_ci ATTR_R_SNONCE2 = 0x1040, 113e5b75505Sopenharmony_ci ATTR_SELECTED_REGISTRAR = 0x1041, 114e5b75505Sopenharmony_ci ATTR_SERIAL_NUMBER = 0x1042, 115e5b75505Sopenharmony_ci ATTR_WPS_STATE = 0x1044, 116e5b75505Sopenharmony_ci ATTR_SSID = 0x1045, 117e5b75505Sopenharmony_ci ATTR_TOTAL_NETWORKS = 0x1046, 118e5b75505Sopenharmony_ci ATTR_UUID_E = 0x1047, 119e5b75505Sopenharmony_ci ATTR_UUID_R = 0x1048, 120e5b75505Sopenharmony_ci ATTR_VENDOR_EXT = 0x1049, 121e5b75505Sopenharmony_ci ATTR_VERSION = 0x104a, 122e5b75505Sopenharmony_ci ATTR_X509_CERT_REQ = 0x104b, 123e5b75505Sopenharmony_ci ATTR_X509_CERT = 0x104c, 124e5b75505Sopenharmony_ci ATTR_EAP_IDENTITY = 0x104d, 125e5b75505Sopenharmony_ci ATTR_MSG_COUNTER = 0x104e, 126e5b75505Sopenharmony_ci ATTR_PUBKEY_HASH = 0x104f, 127e5b75505Sopenharmony_ci ATTR_REKEY_KEY = 0x1050, 128e5b75505Sopenharmony_ci ATTR_KEY_LIFETIME = 0x1051, 129e5b75505Sopenharmony_ci ATTR_PERMITTED_CFG_METHODS = 0x1052, 130e5b75505Sopenharmony_ci ATTR_SELECTED_REGISTRAR_CONFIG_METHODS = 0x1053, 131e5b75505Sopenharmony_ci ATTR_PRIMARY_DEV_TYPE = 0x1054, 132e5b75505Sopenharmony_ci ATTR_SECONDARY_DEV_TYPE_LIST = 0x1055, 133e5b75505Sopenharmony_ci ATTR_PORTABLE_DEV = 0x1056, 134e5b75505Sopenharmony_ci ATTR_AP_SETUP_LOCKED = 0x1057, 135e5b75505Sopenharmony_ci ATTR_APPLICATION_EXT = 0x1058, 136e5b75505Sopenharmony_ci ATTR_EAP_TYPE = 0x1059, 137e5b75505Sopenharmony_ci ATTR_IV = 0x1060, 138e5b75505Sopenharmony_ci ATTR_KEY_PROVIDED_AUTO = 0x1061, 139e5b75505Sopenharmony_ci ATTR_802_1X_ENABLED = 0x1062, 140e5b75505Sopenharmony_ci ATTR_APPSESSIONKEY = 0x1063, 141e5b75505Sopenharmony_ci ATTR_WEPTRANSMITKEY = 0x1064, 142e5b75505Sopenharmony_ci ATTR_REQUESTED_DEV_TYPE = 0x106a, 143e5b75505Sopenharmony_ci ATTR_EXTENSIBILITY_TEST = 0x10fa /* _NOT_ defined in the spec */ 144e5b75505Sopenharmony_ci}; 145e5b75505Sopenharmony_ci 146e5b75505Sopenharmony_ci#define WPS_VENDOR_ID_WFA 14122 147e5b75505Sopenharmony_ci 148e5b75505Sopenharmony_ci/* WFA Vendor Extension subelements */ 149e5b75505Sopenharmony_cienum { 150e5b75505Sopenharmony_ci WFA_ELEM_VERSION2 = 0x00, 151e5b75505Sopenharmony_ci WFA_ELEM_AUTHORIZEDMACS = 0x01, 152e5b75505Sopenharmony_ci WFA_ELEM_NETWORK_KEY_SHAREABLE = 0x02, 153e5b75505Sopenharmony_ci WFA_ELEM_REQUEST_TO_ENROLL = 0x03, 154e5b75505Sopenharmony_ci WFA_ELEM_SETTINGS_DELAY_TIME = 0x04, 155e5b75505Sopenharmony_ci WFA_ELEM_REGISTRAR_CONFIGURATION_METHODS = 0x05, 156e5b75505Sopenharmony_ci WFA_ELEM_MULTI_AP = 0x06 157e5b75505Sopenharmony_ci}; 158e5b75505Sopenharmony_ci 159e5b75505Sopenharmony_ci/* Device Password ID */ 160e5b75505Sopenharmony_cienum wps_dev_password_id { 161e5b75505Sopenharmony_ci DEV_PW_DEFAULT = 0x0000, 162e5b75505Sopenharmony_ci DEV_PW_USER_SPECIFIED = 0x0001, 163e5b75505Sopenharmony_ci DEV_PW_MACHINE_SPECIFIED = 0x0002, 164e5b75505Sopenharmony_ci DEV_PW_REKEY = 0x0003, 165e5b75505Sopenharmony_ci DEV_PW_PUSHBUTTON = 0x0004, 166e5b75505Sopenharmony_ci DEV_PW_REGISTRAR_SPECIFIED = 0x0005, 167e5b75505Sopenharmony_ci DEV_PW_NFC_CONNECTION_HANDOVER = 0x0007, 168e5b75505Sopenharmony_ci DEV_PW_P2PS_DEFAULT = 0x0008 169e5b75505Sopenharmony_ci}; 170e5b75505Sopenharmony_ci 171e5b75505Sopenharmony_ci/* Message Type */ 172e5b75505Sopenharmony_cienum wps_msg_type { 173e5b75505Sopenharmony_ci WPS_Beacon = 0x01, 174e5b75505Sopenharmony_ci WPS_ProbeRequest = 0x02, 175e5b75505Sopenharmony_ci WPS_ProbeResponse = 0x03, 176e5b75505Sopenharmony_ci WPS_M1 = 0x04, 177e5b75505Sopenharmony_ci WPS_M2 = 0x05, 178e5b75505Sopenharmony_ci WPS_M2D = 0x06, 179e5b75505Sopenharmony_ci WPS_M3 = 0x07, 180e5b75505Sopenharmony_ci WPS_M4 = 0x08, 181e5b75505Sopenharmony_ci WPS_M5 = 0x09, 182e5b75505Sopenharmony_ci WPS_M6 = 0x0a, 183e5b75505Sopenharmony_ci WPS_M7 = 0x0b, 184e5b75505Sopenharmony_ci WPS_M8 = 0x0c, 185e5b75505Sopenharmony_ci WPS_WSC_ACK = 0x0d, 186e5b75505Sopenharmony_ci WPS_WSC_NACK = 0x0e, 187e5b75505Sopenharmony_ci WPS_WSC_DONE = 0x0f 188e5b75505Sopenharmony_ci}; 189e5b75505Sopenharmony_ci 190e5b75505Sopenharmony_ci/* Authentication Type Flags */ 191e5b75505Sopenharmony_ci#define WPS_AUTH_OPEN 0x0001 192e5b75505Sopenharmony_ci#define WPS_AUTH_WPAPSK 0x0002 193e5b75505Sopenharmony_ci#define WPS_AUTH_SHARED 0x0004 /* deprecated */ 194e5b75505Sopenharmony_ci#define WPS_AUTH_WPA 0x0008 195e5b75505Sopenharmony_ci#define WPS_AUTH_WPA2 0x0010 196e5b75505Sopenharmony_ci#define WPS_AUTH_WPA2PSK 0x0020 197e5b75505Sopenharmony_ci#define WPS_AUTH_TYPES (WPS_AUTH_OPEN | WPS_AUTH_WPAPSK | WPS_AUTH_SHARED | \ 198e5b75505Sopenharmony_ci WPS_AUTH_WPA | WPS_AUTH_WPA2 | WPS_AUTH_WPA2PSK) 199e5b75505Sopenharmony_ci 200e5b75505Sopenharmony_ci/* Encryption Type Flags */ 201e5b75505Sopenharmony_ci#define WPS_ENCR_NONE 0x0001 202e5b75505Sopenharmony_ci#define WPS_ENCR_WEP 0x0002 /* deprecated */ 203e5b75505Sopenharmony_ci#define WPS_ENCR_TKIP 0x0004 204e5b75505Sopenharmony_ci#define WPS_ENCR_AES 0x0008 205e5b75505Sopenharmony_ci#define WPS_ENCR_TYPES (WPS_ENCR_NONE | WPS_ENCR_WEP | WPS_ENCR_TKIP | \ 206e5b75505Sopenharmony_ci WPS_ENCR_AES) 207e5b75505Sopenharmony_ci 208e5b75505Sopenharmony_ci/* Configuration Error */ 209e5b75505Sopenharmony_cienum wps_config_error { 210e5b75505Sopenharmony_ci WPS_CFG_NO_ERROR = 0, 211e5b75505Sopenharmony_ci WPS_CFG_OOB_IFACE_READ_ERROR = 1, 212e5b75505Sopenharmony_ci WPS_CFG_DECRYPTION_CRC_FAILURE = 2, 213e5b75505Sopenharmony_ci WPS_CFG_24_CHAN_NOT_SUPPORTED = 3, 214e5b75505Sopenharmony_ci WPS_CFG_50_CHAN_NOT_SUPPORTED = 4, 215e5b75505Sopenharmony_ci WPS_CFG_SIGNAL_TOO_WEAK = 5, 216e5b75505Sopenharmony_ci WPS_CFG_NETWORK_AUTH_FAILURE = 6, 217e5b75505Sopenharmony_ci WPS_CFG_NETWORK_ASSOC_FAILURE = 7, 218e5b75505Sopenharmony_ci WPS_CFG_NO_DHCP_RESPONSE = 8, 219e5b75505Sopenharmony_ci WPS_CFG_FAILED_DHCP_CONFIG = 9, 220e5b75505Sopenharmony_ci WPS_CFG_IP_ADDR_CONFLICT = 10, 221e5b75505Sopenharmony_ci WPS_CFG_NO_CONN_TO_REGISTRAR = 11, 222e5b75505Sopenharmony_ci WPS_CFG_MULTIPLE_PBC_DETECTED = 12, 223e5b75505Sopenharmony_ci WPS_CFG_ROGUE_SUSPECTED = 13, 224e5b75505Sopenharmony_ci WPS_CFG_DEVICE_BUSY = 14, 225e5b75505Sopenharmony_ci WPS_CFG_SETUP_LOCKED = 15, 226e5b75505Sopenharmony_ci WPS_CFG_MSG_TIMEOUT = 16, 227e5b75505Sopenharmony_ci WPS_CFG_REG_SESS_TIMEOUT = 17, 228e5b75505Sopenharmony_ci WPS_CFG_DEV_PASSWORD_AUTH_FAILURE = 18, 229e5b75505Sopenharmony_ci WPS_CFG_60G_CHAN_NOT_SUPPORTED = 19, 230e5b75505Sopenharmony_ci WPS_CFG_PUBLIC_KEY_HASH_MISMATCH = 20 231e5b75505Sopenharmony_ci}; 232e5b75505Sopenharmony_ci 233e5b75505Sopenharmony_ci/* Vendor specific Error Indication for WPS event messages */ 234e5b75505Sopenharmony_cienum wps_error_indication { 235e5b75505Sopenharmony_ci WPS_EI_NO_ERROR, 236e5b75505Sopenharmony_ci WPS_EI_SECURITY_TKIP_ONLY_PROHIBITED, 237e5b75505Sopenharmony_ci WPS_EI_SECURITY_WEP_PROHIBITED, 238e5b75505Sopenharmony_ci WPS_EI_AUTH_FAILURE, 239e5b75505Sopenharmony_ci NUM_WPS_EI_VALUES 240e5b75505Sopenharmony_ci}; 241e5b75505Sopenharmony_ci 242e5b75505Sopenharmony_ci/* RF Bands */ 243e5b75505Sopenharmony_ci#define WPS_RF_24GHZ 0x01 244e5b75505Sopenharmony_ci#define WPS_RF_50GHZ 0x02 245e5b75505Sopenharmony_ci#define WPS_RF_60GHZ 0x04 246e5b75505Sopenharmony_ci 247e5b75505Sopenharmony_ci/* Config Methods */ 248e5b75505Sopenharmony_ci#define WPS_CONFIG_USBA 0x0001 249e5b75505Sopenharmony_ci#define WPS_CONFIG_ETHERNET 0x0002 250e5b75505Sopenharmony_ci#define WPS_CONFIG_LABEL 0x0004 251e5b75505Sopenharmony_ci#define WPS_CONFIG_DISPLAY 0x0008 252e5b75505Sopenharmony_ci#define WPS_CONFIG_EXT_NFC_TOKEN 0x0010 253e5b75505Sopenharmony_ci#define WPS_CONFIG_INT_NFC_TOKEN 0x0020 254e5b75505Sopenharmony_ci#define WPS_CONFIG_NFC_INTERFACE 0x0040 255e5b75505Sopenharmony_ci#define WPS_CONFIG_PUSHBUTTON 0x0080 256e5b75505Sopenharmony_ci#define WPS_CONFIG_KEYPAD 0x0100 257e5b75505Sopenharmony_ci#define WPS_CONFIG_VIRT_PUSHBUTTON 0x0280 258e5b75505Sopenharmony_ci#define WPS_CONFIG_PHY_PUSHBUTTON 0x0480 259e5b75505Sopenharmony_ci#define WPS_CONFIG_P2PS 0x1000 260e5b75505Sopenharmony_ci#define WPS_CONFIG_VIRT_DISPLAY 0x2008 261e5b75505Sopenharmony_ci#define WPS_CONFIG_PHY_DISPLAY 0x4008 262e5b75505Sopenharmony_ci 263e5b75505Sopenharmony_ci/* Connection Type Flags */ 264e5b75505Sopenharmony_ci#define WPS_CONN_ESS 0x01 265e5b75505Sopenharmony_ci#define WPS_CONN_IBSS 0x02 266e5b75505Sopenharmony_ci 267e5b75505Sopenharmony_ci/* Wi-Fi Protected Setup State */ 268e5b75505Sopenharmony_cienum wps_state { 269e5b75505Sopenharmony_ci WPS_STATE_NOT_CONFIGURED = 1, 270e5b75505Sopenharmony_ci WPS_STATE_CONFIGURED = 2 271e5b75505Sopenharmony_ci}; 272e5b75505Sopenharmony_ci 273e5b75505Sopenharmony_ci/* Association State */ 274e5b75505Sopenharmony_cienum wps_assoc_state { 275e5b75505Sopenharmony_ci WPS_ASSOC_NOT_ASSOC = 0, 276e5b75505Sopenharmony_ci WPS_ASSOC_CONN_SUCCESS = 1, 277e5b75505Sopenharmony_ci WPS_ASSOC_CFG_FAILURE = 2, 278e5b75505Sopenharmony_ci WPS_ASSOC_FAILURE = 3, 279e5b75505Sopenharmony_ci WPS_ASSOC_IP_FAILURE = 4 280e5b75505Sopenharmony_ci}; 281e5b75505Sopenharmony_ci 282e5b75505Sopenharmony_ci 283e5b75505Sopenharmony_ci#define WPS_DEV_OUI_WFA 0x0050f204 284e5b75505Sopenharmony_ci 285e5b75505Sopenharmony_cienum wps_dev_categ { 286e5b75505Sopenharmony_ci WPS_DEV_COMPUTER = 1, 287e5b75505Sopenharmony_ci WPS_DEV_INPUT = 2, 288e5b75505Sopenharmony_ci WPS_DEV_PRINTER = 3, 289e5b75505Sopenharmony_ci WPS_DEV_CAMERA = 4, 290e5b75505Sopenharmony_ci WPS_DEV_STORAGE = 5, 291e5b75505Sopenharmony_ci WPS_DEV_NETWORK_INFRA = 6, 292e5b75505Sopenharmony_ci WPS_DEV_DISPLAY = 7, 293e5b75505Sopenharmony_ci WPS_DEV_MULTIMEDIA = 8, 294e5b75505Sopenharmony_ci WPS_DEV_GAMING = 9, 295e5b75505Sopenharmony_ci WPS_DEV_PHONE = 10, 296e5b75505Sopenharmony_ci WPS_DEV_AUDIO = 11, 297e5b75505Sopenharmony_ci}; 298e5b75505Sopenharmony_ci 299e5b75505Sopenharmony_cienum wps_dev_subcateg { 300e5b75505Sopenharmony_ci WPS_DEV_COMPUTER_PC = 1, 301e5b75505Sopenharmony_ci WPS_DEV_COMPUTER_SERVER = 2, 302e5b75505Sopenharmony_ci WPS_DEV_COMPUTER_MEDIA_CENTER = 3, 303e5b75505Sopenharmony_ci WPS_DEV_COMPUTER_ULTRA_MOBILE = 4, 304e5b75505Sopenharmony_ci WPS_DEV_COMPUTER_NOTEBOOK = 5, 305e5b75505Sopenharmony_ci WPS_DEV_COMPUTER_DESKTOP = 6, 306e5b75505Sopenharmony_ci WPS_DEV_COMPUTER_MID = 7, 307e5b75505Sopenharmony_ci WPS_DEV_COMPUTER_NETBOOK = 8, 308e5b75505Sopenharmony_ci WPS_DEV_COMPUTER_TABLET = 9, 309e5b75505Sopenharmony_ci WPS_DEV_INPUT_KEYBOARD = 1, 310e5b75505Sopenharmony_ci WPS_DEV_INPUT_MOUSE = 2, 311e5b75505Sopenharmony_ci WPS_DEV_INPUT_JOYSTICK = 3, 312e5b75505Sopenharmony_ci WPS_DEV_INPUT_TRACKBALL = 4, 313e5b75505Sopenharmony_ci WPS_DEV_INPUT_GAMING = 5, 314e5b75505Sopenharmony_ci WPS_DEV_INPUT_REMOTE = 6, 315e5b75505Sopenharmony_ci WPS_DEV_INPUT_TOUCHSCREEN = 7, 316e5b75505Sopenharmony_ci WPS_DEV_INPUT_BIOMETRIC_READER = 8, 317e5b75505Sopenharmony_ci WPS_DEV_INPUT_BARCODE_READER = 9, 318e5b75505Sopenharmony_ci WPS_DEV_PRINTER_PRINTER = 1, 319e5b75505Sopenharmony_ci WPS_DEV_PRINTER_SCANNER = 2, 320e5b75505Sopenharmony_ci WPS_DEV_PRINTER_FAX = 3, 321e5b75505Sopenharmony_ci WPS_DEV_PRINTER_COPIER = 4, 322e5b75505Sopenharmony_ci WPS_DEV_PRINTER_ALL_IN_ONE = 5, 323e5b75505Sopenharmony_ci WPS_DEV_CAMERA_DIGITAL_STILL_CAMERA = 1, 324e5b75505Sopenharmony_ci WPS_DEV_CAMERA_VIDEO = 2, 325e5b75505Sopenharmony_ci WPS_DEV_CAMERA_WEB = 3, 326e5b75505Sopenharmony_ci WPS_DEV_CAMERA_SECURITY = 4, 327e5b75505Sopenharmony_ci WPS_DEV_STORAGE_NAS = 1, 328e5b75505Sopenharmony_ci WPS_DEV_NETWORK_INFRA_AP = 1, 329e5b75505Sopenharmony_ci WPS_DEV_NETWORK_INFRA_ROUTER = 2, 330e5b75505Sopenharmony_ci WPS_DEV_NETWORK_INFRA_SWITCH = 3, 331e5b75505Sopenharmony_ci WPS_DEV_NETWORK_INFRA_GATEWAY = 4, 332e5b75505Sopenharmony_ci WPS_DEV_NETWORK_INFRA_BRIDGE = 5, 333e5b75505Sopenharmony_ci WPS_DEV_DISPLAY_TV = 1, 334e5b75505Sopenharmony_ci WPS_DEV_DISPLAY_PICTURE_FRAME = 2, 335e5b75505Sopenharmony_ci WPS_DEV_DISPLAY_PROJECTOR = 3, 336e5b75505Sopenharmony_ci WPS_DEV_DISPLAY_MONITOR = 4, 337e5b75505Sopenharmony_ci WPS_DEV_MULTIMEDIA_DAR = 1, 338e5b75505Sopenharmony_ci WPS_DEV_MULTIMEDIA_PVR = 2, 339e5b75505Sopenharmony_ci WPS_DEV_MULTIMEDIA_MCX = 3, 340e5b75505Sopenharmony_ci WPS_DEV_MULTIMEDIA_SET_TOP_BOX = 4, 341e5b75505Sopenharmony_ci WPS_DEV_MULTIMEDIA_MEDIA_SERVER = 5, 342e5b75505Sopenharmony_ci WPS_DEV_MULTIMEDIA_PORTABLE_VIDEO_PLAYER = 6, 343e5b75505Sopenharmony_ci WPS_DEV_GAMING_XBOX = 1, 344e5b75505Sopenharmony_ci WPS_DEV_GAMING_XBOX360 = 2, 345e5b75505Sopenharmony_ci WPS_DEV_GAMING_PLAYSTATION = 3, 346e5b75505Sopenharmony_ci WPS_DEV_GAMING_GAME_CONSOLE = 4, 347e5b75505Sopenharmony_ci WPS_DEV_GAMING_PORTABLE_DEVICE = 5, 348e5b75505Sopenharmony_ci WPS_DEV_PHONE_WINDOWS_MOBILE = 1, 349e5b75505Sopenharmony_ci WPS_DEV_PHONE_SINGLE_MODE = 2, 350e5b75505Sopenharmony_ci WPS_DEV_PHONE_DUAL_MODE = 3, 351e5b75505Sopenharmony_ci WPS_DEV_PHONE_SP_SINGLE_MODE = 4, 352e5b75505Sopenharmony_ci WPS_DEV_PHONE_SP_DUAL_MODE = 5, 353e5b75505Sopenharmony_ci WPS_DEV_AUDIO_TUNER_RECV = 1, 354e5b75505Sopenharmony_ci WPS_DEV_AUDIO_SPEAKERS = 2, 355e5b75505Sopenharmony_ci WPS_DEV_AUDIO_PMP = 3, 356e5b75505Sopenharmony_ci WPS_DEV_AUDIO_HEADSET = 4, 357e5b75505Sopenharmony_ci WPS_DEV_AUDIO_HEADPHONES = 5, 358e5b75505Sopenharmony_ci WPS_DEV_AUDIO_MICROPHONE = 6, 359e5b75505Sopenharmony_ci WPS_DEV_AUDIO_HOME_THEATRE = 7, 360e5b75505Sopenharmony_ci}; 361e5b75505Sopenharmony_ci 362e5b75505Sopenharmony_ci 363e5b75505Sopenharmony_ci/* Request Type */ 364e5b75505Sopenharmony_cienum wps_request_type { 365e5b75505Sopenharmony_ci WPS_REQ_ENROLLEE_INFO = 0, 366e5b75505Sopenharmony_ci WPS_REQ_ENROLLEE = 1, 367e5b75505Sopenharmony_ci WPS_REQ_REGISTRAR = 2, 368e5b75505Sopenharmony_ci WPS_REQ_WLAN_MANAGER_REGISTRAR = 3 369e5b75505Sopenharmony_ci}; 370e5b75505Sopenharmony_ci 371e5b75505Sopenharmony_ci/* Response Type */ 372e5b75505Sopenharmony_cienum wps_response_type { 373e5b75505Sopenharmony_ci WPS_RESP_ENROLLEE_INFO = 0, 374e5b75505Sopenharmony_ci WPS_RESP_ENROLLEE = 1, 375e5b75505Sopenharmony_ci WPS_RESP_REGISTRAR = 2, 376e5b75505Sopenharmony_ci WPS_RESP_AP = 3 377e5b75505Sopenharmony_ci}; 378e5b75505Sopenharmony_ci 379e5b75505Sopenharmony_ci/* Walk Time for push button configuration (in seconds) */ 380e5b75505Sopenharmony_ci#define WPS_PBC_WALK_TIME 120 381e5b75505Sopenharmony_ci 382e5b75505Sopenharmony_ci#define WPS_MAX_AUTHORIZED_MACS 5 383e5b75505Sopenharmony_ci 384e5b75505Sopenharmony_ci#endif /* WPS_DEFS_H */ 385