1f280f93dSOleksandr Tymoshenko /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3f280f93dSOleksandr Tymoshenko * 4f280f93dSOleksandr Tymoshenko * Copyright (c) 2017 J.R. Oldroyd, Open Advisors Limited 5f280f93dSOleksandr Tymoshenko * All rights reserved. 6f280f93dSOleksandr Tymoshenko * 7f280f93dSOleksandr Tymoshenko * Redistribution and use in source and binary forms, with or without 8f280f93dSOleksandr Tymoshenko * modification, are permitted provided that the following conditions 9f280f93dSOleksandr Tymoshenko * are met: 10f280f93dSOleksandr Tymoshenko * 1. Redistributions of source code must retain the above copyright 11f280f93dSOleksandr Tymoshenko * notice, this list of conditions and the following disclaimer. 12f280f93dSOleksandr Tymoshenko * 2. Redistributions in binary form must reproduce the above copyright 13f280f93dSOleksandr Tymoshenko * notice, this list of conditions and the following disclaimer in the 14f280f93dSOleksandr Tymoshenko * documentation and/or other materials provided with the distribution. 15f280f93dSOleksandr Tymoshenko * 16f280f93dSOleksandr Tymoshenko * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17f280f93dSOleksandr Tymoshenko * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18f280f93dSOleksandr Tymoshenko * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19f280f93dSOleksandr Tymoshenko * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20f280f93dSOleksandr Tymoshenko * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21f280f93dSOleksandr Tymoshenko * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22f280f93dSOleksandr Tymoshenko * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23f280f93dSOleksandr Tymoshenko * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24f280f93dSOleksandr Tymoshenko * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25f280f93dSOleksandr Tymoshenko * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26f280f93dSOleksandr Tymoshenko * 27f280f93dSOleksandr Tymoshenko * $FreeBSD$ 28f280f93dSOleksandr Tymoshenko */ 29f280f93dSOleksandr Tymoshenko #ifndef _NET80211_IEEE80211_WPS_H_ 30f280f93dSOleksandr Tymoshenko #define _NET80211_IEEE80211_WPS_H_ 31f280f93dSOleksandr Tymoshenko 32f280f93dSOleksandr Tymoshenko /* 33f280f93dSOleksandr Tymoshenko * 802.11 WPS implementation definitions. 34f280f93dSOleksandr Tymoshenko */ 35f280f93dSOleksandr Tymoshenko 36f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_AP_CHANNEL 0x1001 37f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_ASSOC_STATE 0x1002 38f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_AUTH_TYPE 0x1003 39f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_AUTH_TYPE_FLAGS 0x1004 40f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_AUTHENTICATOR 0x1005 41f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_CONFIG_METHODS 0x1008 42f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_CONFIG_ERROR 0x1009 43f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_CONFIRM_URL4 0x100a 44f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_CONFIRM_URL6 0x100b 45f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_CONN_TYPE 0x100c 46f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_CONN_TYPE_FLAGS 0x100d 47f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_CRED 0x100e 48f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_ENCR_TYPE 0x100f 49f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_ENCR_TYPE_FLAGS 0x1010 50f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_DEV_NAME 0x1011 51f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_DEV_PASSWORD_ID 0x1012 52f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_E_HASH1 0x1014 53f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_E_HASH2 0x1015 54f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_E_SNONCE1 0x1016 55f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_E_SNONCE2 0x1017 56f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_ENCR_SETTINGS 0x1018 57f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_ENROLLEE_NONCE 0x101a 58f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_FEATURE_ID 0x101b 59f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_IDENTITY 0x101c 60f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_IDENTITY_PROOF 0x101d 61f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_KEY_WRAP_AUTH 0x101e 62f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_KEY_ID 0x101f 63f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_MAC_ADDR 0x1020 64f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_MANUFACTURER 0x1021 65f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_MSG_TYPE 0x1022 66f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_MODEL_NAME 0x1023 67f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_MODEL_NUMBER 0x1024 68f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_NETWORK_INDEX 0x1026 69f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_NETWORK_KEY 0x1027 70f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_NETWORK_KEY_INDEX 0x1028 71f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_NEW_DEVICE_NAME 0x1029 72f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_NEW_PASSWORD 0x102a 73f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_OOB_DEVICE_PASSWORD 0x102c 74f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_OS_VERSION 0x102d 75f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_POWER_LEVEL 0x102f 76f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_PSK_CURRENT 0x1030 77f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_PSK_MAX 0x1031 78f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_PUBLIC_KEY 0x1032 79f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_RADIO_ENABLE 0x1033 80f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_REBOOT 0x1034 81f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_REGISTRAR_CURRENT 0x1035 82f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_REGISTRAR_ESTBLSHD 0x1036 83f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_REGISTRAR_LIST 0x1037 84f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_REGISTRAR_MAX 0x1038 85f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_REGISTRAR_NONCE 0x1039 86f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_REQUEST_TYPE 0x103a 87f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_RESPONSE_TYPE 0x103b 88f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_RF_BANDS 0x103c 89f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_R_HASH1 0x103d 90f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_R_HASH2 0x103e 91f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_R_SNONCE1 0x103f 92f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_R_SNONCE2 0x1040 93f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_SELECTED_REGISTRAR 0x1041 94f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_SERIAL_NUMBER 0x1042 95f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_WPS_STATE 0x1044 96f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_SSID 0x1045 97f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_TOTAL_NETWORKS 0x1046 98f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_UUID_E 0x1047 99f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_UUID_R 0x1048 100f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_VENDOR_EXT 0x1049 101f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_VERSION 0x104a 102f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_X509_CERT_REQ 0x104b 103f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_X509_CERT 0x104c 104f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_EAP_IDENTITY 0x104d 105f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_MSG_COUNTER 0x104e 106f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_PUBKEY_HASH 0x104f 107f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_REKEY_KEY 0x1050 108f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_KEY_LIFETIME 0x1051 109f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_PERMITTED_CONFIG_METHODS 0x1052 110f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_SELECTED_REGISTRAR_CONFIG_METHODS 0x1053 111f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_PRIMARY_DEV_TYPE 0x1054 112f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_SECONDARY_DEV_TYPE_LIST 0x1055 113f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_PORTABLE_DEV 0x1056 114f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_AP_SETUP_LOCKED 0x1057 115f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_APPLICATION_EXT 0x1058 116f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_EAP_TYPE 0x1059 117f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_IV 0x1060 118f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_KEY_PROVIDED_AUTO 0x1061 119f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_802_1X_ENABLED 0x1062 120f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_AP_SESSION_KEY 0x1063 121f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_WEP_TRANSMIT_KEY 0x1064 122f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_REQUESTED_DEV_TYPE 0x106a 123f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_ATTR_EXTENSIBILITY_TEST 0x10fa /* _NOT_ defined in the spec */ 124f280f93dSOleksandr Tymoshenko 125f280f93dSOleksandr Tymoshenko /* RF bands bitmask */ 126f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_RF_BAND_24GHZ 0x01 127f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_RF_BAND_50GHZ 0x02 128f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_RF_BAND_600GHZ 0x04 129f280f93dSOleksandr Tymoshenko 130f280f93dSOleksandr Tymoshenko /* Config methods bitmask */ 131f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_USBA 0x0001 132f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_ETHERNET 0x0002 133f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_LABEL 0x0004 134f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_DISPLAY 0x0008 135f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_EXT_NFC_TOKEN 0x0010 136f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_INT_NFC_TOKEN 0x0020 137f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_NFC_INTERFACE 0x0040 138f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_PUSHBUTTON 0x0080 139f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_KEYPAD 0x0100 140f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_VIRT_PUSHBUTTON 0x0200 141f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_PHY_PUSHBUTTON 0x0400 142f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_P2PS 0x1000 143f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_VIRT_DISPLAY 0x2000 144f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_CONFIG_PHY_DISPLAY 0x4000 145f280f93dSOleksandr Tymoshenko 146f280f93dSOleksandr Tymoshenko /* Wi-Fi Protected Setup state */ 147f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_STATE_NOT_CONFIGURED 0x01 148f280f93dSOleksandr Tymoshenko #define IEEE80211_WPS_STATE_CONFIGURED 0x02 149f280f93dSOleksandr Tymoshenko #endif /* _NET80211_IEEE80211_WPS_H_ */ 150