3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

ie: Add information element types

IE types are from IEEE Std 802.11 chapter 8.4.2
This commit is contained in:
Jukka Rissanen 2014-07-07 15:32:58 +03:00 committed by Denis Kenzior
parent 43f91eb168
commit eedadd860b
2 changed files with 157 additions and 1 deletions

View File

@ -39,7 +39,8 @@ bin_PROGRAMS = src/iwd client/iwctl
src_iwd_SOURCES = src/main.c linux/nl80211.h linux/kdbus.h \
src/kdbus.h src/kdbus.c \
src/netdev.h src/netdev.c \
src/sha1.h src/sha1.c
src/sha1.h src/sha1.c \
src/ie.h
src_iwd_LDADD = ell/libell-internal.la
client_iwctl_SOURCES = client/main.c linux/kdbus.h \

155
src/ie.h Normal file
View File

@ -0,0 +1,155 @@
/*
*
* Wireless daemon for Linux
*
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
/*
* Information elements, IEEE Std 802.11 ch. 8.4.2
*/
enum ie_type {
IE_TYPE_SSID = 0,
IE_TYPE_SUPPORTED_RATES = 1,
IE_TYPE_FH_PARAMETER_SET = 2,
IE_TYPE_DSSS_PARAMETER_SET = 3,
IE_TYPE_CF_PARAMETER_SET = 4,
IE_TYPE_TIM = 5,
IE_TYPE_IBSS_PARAMETER_SET = 6,
IE_TYPE_COUNTRY = 7,
IE_TYPE_HOPPING_PATTERN_PARAMETERS = 8,
IE_TYPE_HOPPING_PATTERN_TABLE = 9,
IE_TYPE_REQUEST = 10,
IE_TYPE_BSS_LOAD = 11,
IE_TYPE_EDCA_PARAMETER_SET = 12,
IE_TYPE_TSPEC = 13,
IE_TYPE_TCLAS = 14,
IE_TYPE_SCHEDULE = 15,
IE_TYPE_CHALLENGE_TEXT = 16,
/* Reserved 17 - 31 */
IE_TYPE_POWER_CONSTRAINT = 32,
IE_TYPE_POWER_CAPABILITY = 33,
IE_TYPE_TPC_REQUEST = 34,
IE_TYPE_TPC_REPORT = 35,
IE_TYPE_SUPPORTED_CHANNELS = 36,
IE_TYPE_CHANNEL_SWITCH_ANNOUNCEMENT = 37,
IE_TYPE_MEASUREMENT_REQUEST = 38,
IE_TYPE_MEASUREMENT_REPORT = 39,
IE_TYPE_QUIET = 40,
IE_TYPE_IBSS_DFS = 41,
IE_TYPE_ERP = 42,
IE_TYPE_TS_DELAY = 43,
IE_TYPE_TCLAS_PROCESSING = 44,
IE_TYPE_HT_CAPABILITIES = 45,
IE_TYPE_QOS_CAPABILITY = 46,
/* Reserved 47 */
IE_TYPE_RSN = 48,
/* Reserved 49 */
IE_TYPE_EXTENDED_SUPPORTED_RATES = 50,
IE_TYPE_AP_CHANNEL_REPORT = 51,
IE_TYPE_NEIGHBOR_REPORT = 52,
IE_TYPE_RCPI = 53,
IE_TYPE_MOBILITY_DOMAIN = 54,
IE_TYPE_FAST_BSS_TRANSITION = 55,
IE_TYPE_TIMEOUT_INTERVAL = 56,
IE_TYPE_RIC_DATA = 57,
IE_TYPE_DSE_REGISTERED_LOCATION = 58,
IE_TYPE_SUPPORTED_OPERATING_CLASSES = 59,
IE_TYPE_EXTENDED_CHANNEL_SWITCH_ANNOUNCEMENT = 60,
IE_TYPE_HT_OPERATION = 61,
IE_TYPE_SECONDARY_CHANNEL_OFFSET = 62,
IE_TYPE_BSS_AVERAGE_ACCESS_DELAY = 63,
IE_TYPE_ANTENNA = 64,
IE_TYPE_RSNI = 65,
IE_TYPE_MEASUREMENT_PILOT_TRANSMISSION = 66,
IE_TYPE_BSS_AVAILABLE_ADMISSION_CAPACITY = 67,
IE_TYPE_BSS_AC_ACCESS_DELAY = 68,
IE_TYPE_TIME_ADVERTISEMENT = 69,
IE_TYPE_RM_ENABLED_CAPABILITIES = 70,
IE_TYPE_MULTIPLE_BSSID = 71,
IE_TYPE_BSS_COEXISTENCE = 72,
IE_TYPE_BSS_INTOLERANT_CHANNEL_REPORT = 73,
IE_TYPE_OVERLAPPING_BSS_SCAN_PARAMETERS = 74,
IE_TYPE_RIC_DESCRIPTOR = 75,
IE_TYPE_MANAGEMENT_MIC = 76,
IE_TYPE_EVENT_REQUEST = 78,
IE_TYPE_EVENT_REPORT = 79,
IE_TYPE_DIAGNOSTIC_REQUEST = 80,
IE_TYPE_DIAGNOSTIC_REPORT = 81,
IE_TYPE_LOCATION_PARAMETERS = 82,
IE_TYPE_NONTRANSMITTED_BSSID_CAPABILITY = 83,
IE_TYPE_SSID_LIST = 84,
IE_TYPE_MULTIPLE_BSSID_INDEX = 85,
IE_TYPE_FMS_DESCRIPTOR = 86,
IE_TYPE_FMS_REQUEST = 87,
IE_TYPE_FMS_RESPONSE = 88,
IE_TYPE_QOS_TRAFFIC_CAPABILITY = 89,
IE_TYPE_BSS_MAX_IDLE_PERIOD = 90,
IE_TYPE_TFS_REQUEST = 91,
IE_TYPE_TFS_RESPONSE = 92,
IE_TYPE_WNM_SLEEP_MODE = 93,
IE_TYPE_TIM_BROADCAST_REQUEST = 94,
IE_TYPE_TIM_BROADCAST_RESPONSE = 95,
IE_TYPE_COLLOCATED_INTERFERENCE_REPORT = 96,
IE_TYPE_CHANNEL_USAGE = 97,
IE_TYPE_TIME_ZONE = 98,
IE_TYPE_DMS_REQUEST = 99,
IE_TYPE_DMS_RESPONSE = 100,
IE_TYPE_LINK_IDENTIFIER = 101,
IE_TYPE_WAKEUP_SCHEDULE = 102,
IE_TYPE_CHANNEL_SWITCH_TIMING = 104,
IE_TYPE_PTI_CONTROL = 105,
IE_TYPE_TPU_BUFFER_STATUS = 106,
IE_TYPE_INTERWORKING = 107,
IE_TYPE_ADVERTISEMENT_PROTOCOL = 108,
IE_TYPE_EXPEDITED_BANDWIDTH_REQUEST = 109,
IE_TYPE_QOS_MAP_SET = 110,
IE_TYPE_ROAMING_CONSORTIUM = 111,
IE_TYPE_EMERGENCY_ALERT_IDENTIFIER = 112,
IE_TYPE_MESH_CONFIGURATION = 113,
IE_TYPE_MESH_ID = 114,
IE_TYPE_MESH_LINK_METRIC_REPORT = 115,
IE_TYPE_CONGESTION_NOTIFICATION = 116,
IE_TYPE_MESH_PEERING_MANAGEMENT = 117,
IE_TYPE_MESH_CHANNEL_SWITCH_PARAMETERS = 118,
IE_TYPE_MESH_AWAKE_WINDOW = 119,
IE_TYPE_BEACON_TIMING = 120,
IE_TYPE_MCCAOP_SETUP_REQUEST = 121,
IE_TYPE_MCCAOP_SETUP_REPLY = 122,
IE_TYPE_MCCAOP_ADVERTISEMENT = 123,
IE_TYPE_MCCAOP_TEARDOWN = 124,
IE_TYPE_GANN = 125,
IE_TYPE_RANN = 126,
IE_TYPE_EXTENDED_CAPABILITIES = 127,
/* Reserved 128 - 129 */
IE_TYPE_PREQ = 130,
IE_TYPE_PREP = 131,
IE_TYPE_PERR = 132,
/* Reserved 133 - 136 */
IE_TYPE_PXU = 137,
IE_TYPE_PXUC = 138,
IE_TYPE_AUTHENTICATED_MESH_PEERING_EXCHANGE = 139,
IE_TYPE_MIC = 140,
IE_TYPE_DESTINATION_URI = 141,
IE_TYPE_U_APSD_COEXISTENCE = 142,
/* Reserved 143 - 173 */
IE_TYPE_MCCAOP_ADVERTISEMENT_OVERVIEW = 174,
/* Reserved 175 - 220 */
IE_TYPE_VENDOR_SPECIFIC = 221,
/* Reserved 222 - 255 */
};