2008-02-28 02:34:43 +01:00
|
|
|
/*
|
|
|
|
* IEEE 802.11 Frame type definitions
|
2019-01-02 16:56:41 +01:00
|
|
|
* Copyright (c) 2002-2019, Jouni Malinen <j@w1.fi>
|
2008-08-22 08:15:05 +02:00
|
|
|
* Copyright (c) 2007-2008 Intel Corporation
|
2008-02-28 02:34:43 +01:00
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-28 02:34:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef IEEE802_11_DEFS_H
|
|
|
|
#define IEEE802_11_DEFS_H
|
|
|
|
|
2015-04-07 11:00:13 +02:00
|
|
|
#include <utils/common.h>
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
/* IEEE 802.11 defines */
|
|
|
|
|
|
|
|
#define WLAN_FC_PVER 0x0003
|
|
|
|
#define WLAN_FC_TODS 0x0100
|
|
|
|
#define WLAN_FC_FROMDS 0x0200
|
|
|
|
#define WLAN_FC_MOREFRAG 0x0400
|
|
|
|
#define WLAN_FC_RETRY 0x0800
|
|
|
|
#define WLAN_FC_PWRMGT 0x1000
|
|
|
|
#define WLAN_FC_MOREDATA 0x2000
|
|
|
|
#define WLAN_FC_ISWEP 0x4000
|
|
|
|
#define WLAN_FC_ORDER 0x8000
|
|
|
|
|
|
|
|
#define WLAN_FC_GET_TYPE(fc) (((fc) & 0x000c) >> 2)
|
|
|
|
#define WLAN_FC_GET_STYPE(fc) (((fc) & 0x00f0) >> 4)
|
|
|
|
|
2014-11-05 09:50:34 +01:00
|
|
|
#define WLAN_INVALID_MGMT_SEQ 0xFFFF
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_GET_SEQ_FRAG(seq) ((seq) & (BIT(3) | BIT(2) | BIT(1) | BIT(0)))
|
|
|
|
#define WLAN_GET_SEQ_SEQ(seq) \
|
|
|
|
(((seq) & (~(BIT(3) | BIT(2) | BIT(1) | BIT(0)))) >> 4)
|
|
|
|
|
|
|
|
#define WLAN_FC_TYPE_MGMT 0
|
|
|
|
#define WLAN_FC_TYPE_CTRL 1
|
|
|
|
#define WLAN_FC_TYPE_DATA 2
|
|
|
|
|
|
|
|
/* management */
|
|
|
|
#define WLAN_FC_STYPE_ASSOC_REQ 0
|
|
|
|
#define WLAN_FC_STYPE_ASSOC_RESP 1
|
|
|
|
#define WLAN_FC_STYPE_REASSOC_REQ 2
|
|
|
|
#define WLAN_FC_STYPE_REASSOC_RESP 3
|
|
|
|
#define WLAN_FC_STYPE_PROBE_REQ 4
|
|
|
|
#define WLAN_FC_STYPE_PROBE_RESP 5
|
|
|
|
#define WLAN_FC_STYPE_BEACON 8
|
|
|
|
#define WLAN_FC_STYPE_ATIM 9
|
|
|
|
#define WLAN_FC_STYPE_DISASSOC 10
|
|
|
|
#define WLAN_FC_STYPE_AUTH 11
|
|
|
|
#define WLAN_FC_STYPE_DEAUTH 12
|
|
|
|
#define WLAN_FC_STYPE_ACTION 13
|
|
|
|
|
|
|
|
/* control */
|
|
|
|
#define WLAN_FC_STYPE_PSPOLL 10
|
|
|
|
#define WLAN_FC_STYPE_RTS 11
|
|
|
|
#define WLAN_FC_STYPE_CTS 12
|
|
|
|
#define WLAN_FC_STYPE_ACK 13
|
|
|
|
#define WLAN_FC_STYPE_CFEND 14
|
|
|
|
#define WLAN_FC_STYPE_CFENDACK 15
|
|
|
|
|
|
|
|
/* data */
|
|
|
|
#define WLAN_FC_STYPE_DATA 0
|
|
|
|
#define WLAN_FC_STYPE_DATA_CFACK 1
|
|
|
|
#define WLAN_FC_STYPE_DATA_CFPOLL 2
|
|
|
|
#define WLAN_FC_STYPE_DATA_CFACKPOLL 3
|
|
|
|
#define WLAN_FC_STYPE_NULLFUNC 4
|
|
|
|
#define WLAN_FC_STYPE_CFACK 5
|
|
|
|
#define WLAN_FC_STYPE_CFPOLL 6
|
|
|
|
#define WLAN_FC_STYPE_CFACKPOLL 7
|
|
|
|
#define WLAN_FC_STYPE_QOS_DATA 8
|
2010-11-06 15:20:45 +01:00
|
|
|
#define WLAN_FC_STYPE_QOS_DATA_CFACK 9
|
|
|
|
#define WLAN_FC_STYPE_QOS_DATA_CFPOLL 10
|
|
|
|
#define WLAN_FC_STYPE_QOS_DATA_CFACKPOLL 11
|
|
|
|
#define WLAN_FC_STYPE_QOS_NULL 12
|
|
|
|
#define WLAN_FC_STYPE_QOS_CFPOLL 14
|
|
|
|
#define WLAN_FC_STYPE_QOS_CFACKPOLL 15
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
/* Authentication algorithms */
|
|
|
|
#define WLAN_AUTH_OPEN 0
|
|
|
|
#define WLAN_AUTH_SHARED_KEY 1
|
|
|
|
#define WLAN_AUTH_FT 2
|
2012-09-30 18:51:07 +02:00
|
|
|
#define WLAN_AUTH_SAE 3
|
2015-09-01 16:50:04 +02:00
|
|
|
#define WLAN_AUTH_FILS_SK 4
|
|
|
|
#define WLAN_AUTH_FILS_SK_PFS 5
|
|
|
|
#define WLAN_AUTH_FILS_PK 6
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_AUTH_LEAP 128
|
|
|
|
|
|
|
|
#define WLAN_AUTH_CHALLENGE_LEN 128
|
|
|
|
|
|
|
|
#define WLAN_CAPABILITY_ESS BIT(0)
|
|
|
|
#define WLAN_CAPABILITY_IBSS BIT(1)
|
|
|
|
#define WLAN_CAPABILITY_CF_POLLABLE BIT(2)
|
|
|
|
#define WLAN_CAPABILITY_CF_POLL_REQUEST BIT(3)
|
|
|
|
#define WLAN_CAPABILITY_PRIVACY BIT(4)
|
|
|
|
#define WLAN_CAPABILITY_SHORT_PREAMBLE BIT(5)
|
|
|
|
#define WLAN_CAPABILITY_PBCC BIT(6)
|
|
|
|
#define WLAN_CAPABILITY_CHANNEL_AGILITY BIT(7)
|
|
|
|
#define WLAN_CAPABILITY_SPECTRUM_MGMT BIT(8)
|
2016-02-15 15:53:41 +01:00
|
|
|
#define WLAN_CAPABILITY_QOS BIT(9)
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_CAPABILITY_SHORT_SLOT_TIME BIT(10)
|
2016-02-15 15:53:41 +01:00
|
|
|
#define WLAN_CAPABILITY_APSD BIT(11)
|
|
|
|
#define WLAN_CAPABILITY_RADIO_MEASUREMENT BIT(12)
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_CAPABILITY_DSSS_OFDM BIT(13)
|
2016-02-15 15:53:41 +01:00
|
|
|
#define WLAN_CAPABILITY_DELAYED_BLOCK_ACK BIT(14)
|
|
|
|
#define WLAN_CAPABILITY_IMM_BLOCK_ACK BIT(15)
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2016-12-17 11:27:49 +01:00
|
|
|
/* Status codes (IEEE Std 802.11-2016, 9.4.1.9, Table 9-46) */
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_STATUS_SUCCESS 0
|
|
|
|
#define WLAN_STATUS_UNSPECIFIED_FAILURE 1
|
2010-10-07 09:26:56 +02:00
|
|
|
#define WLAN_STATUS_TDLS_WAKEUP_ALTERNATE 2
|
|
|
|
#define WLAN_STATUS_TDLS_WAKEUP_REJECT 3
|
|
|
|
#define WLAN_STATUS_SECURITY_DISABLED 5
|
|
|
|
#define WLAN_STATUS_UNACCEPTABLE_LIFETIME 6
|
|
|
|
#define WLAN_STATUS_NOT_IN_SAME_BSS 7
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_STATUS_CAPS_UNSUPPORTED 10
|
|
|
|
#define WLAN_STATUS_REASSOC_NO_ASSOC 11
|
|
|
|
#define WLAN_STATUS_ASSOC_DENIED_UNSPEC 12
|
|
|
|
#define WLAN_STATUS_NOT_SUPPORTED_AUTH_ALG 13
|
|
|
|
#define WLAN_STATUS_UNKNOWN_AUTH_TRANSACTION 14
|
|
|
|
#define WLAN_STATUS_CHALLENGE_FAIL 15
|
|
|
|
#define WLAN_STATUS_AUTH_TIMEOUT 16
|
|
|
|
#define WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA 17
|
|
|
|
#define WLAN_STATUS_ASSOC_DENIED_RATES 18
|
|
|
|
#define WLAN_STATUS_ASSOC_DENIED_NOSHORT 19
|
|
|
|
#define WLAN_STATUS_SPEC_MGMT_REQUIRED 22
|
|
|
|
#define WLAN_STATUS_PWR_CAPABILITY_NOT_VALID 23
|
|
|
|
#define WLAN_STATUS_SUPPORTED_CHANNEL_NOT_VALID 24
|
2008-02-28 02:54:06 +01:00
|
|
|
#define WLAN_STATUS_ASSOC_DENIED_NO_SHORT_SLOT_TIME 25
|
2011-02-09 14:08:47 +01:00
|
|
|
#define WLAN_STATUS_ASSOC_DENIED_NO_HT 27
|
2009-03-09 21:25:58 +01:00
|
|
|
#define WLAN_STATUS_R0KH_UNREACHABLE 28
|
2011-02-09 14:08:47 +01:00
|
|
|
#define WLAN_STATUS_ASSOC_DENIED_NO_PCO 29
|
2008-08-30 13:59:39 +02:00
|
|
|
#define WLAN_STATUS_ASSOC_REJECTED_TEMPORARILY 30
|
2008-12-26 10:25:05 +01:00
|
|
|
#define WLAN_STATUS_ROBUST_MGMT_FRAME_POLICY_VIOLATION 31
|
2009-03-09 21:25:58 +01:00
|
|
|
#define WLAN_STATUS_UNSPECIFIED_QOS_FAILURE 32
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_STATUS_DENIED_INSUFFICIENT_BANDWIDTH 33
|
|
|
|
#define WLAN_STATUS_DENIED_POOR_CHANNEL_CONDITIONS 34
|
|
|
|
#define WLAN_STATUS_DENIED_QOS_NOT_SUPPORTED 35
|
2009-03-09 21:25:58 +01:00
|
|
|
#define WLAN_STATUS_REQUEST_DECLINED 37
|
|
|
|
#define WLAN_STATUS_INVALID_PARAMETERS 38
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_STATUS_REJECTED_WITH_SUGGESTED_CHANGES 39
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_STATUS_INVALID_IE 40
|
|
|
|
#define WLAN_STATUS_GROUP_CIPHER_NOT_VALID 41
|
|
|
|
#define WLAN_STATUS_PAIRWISE_CIPHER_NOT_VALID 42
|
|
|
|
#define WLAN_STATUS_AKMP_NOT_VALID 43
|
|
|
|
#define WLAN_STATUS_UNSUPPORTED_RSN_IE_VERSION 44
|
|
|
|
#define WLAN_STATUS_INVALID_RSN_IE_CAPAB 45
|
|
|
|
#define WLAN_STATUS_CIPHER_REJECTED_PER_POLICY 46
|
2008-02-28 02:54:06 +01:00
|
|
|
#define WLAN_STATUS_TS_NOT_CREATED 47
|
|
|
|
#define WLAN_STATUS_DIRECT_LINK_NOT_ALLOWED 48
|
|
|
|
#define WLAN_STATUS_DEST_STA_NOT_PRESENT 49
|
|
|
|
#define WLAN_STATUS_DEST_STA_NOT_QOS_STA 50
|
|
|
|
#define WLAN_STATUS_ASSOC_DENIED_LISTEN_INT_TOO_LARGE 51
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_STATUS_INVALID_FT_ACTION_FRAME_COUNT 52
|
2009-03-09 21:28:30 +01:00
|
|
|
#define WLAN_STATUS_INVALID_PMKID 53
|
|
|
|
#define WLAN_STATUS_INVALID_MDIE 54
|
|
|
|
#define WLAN_STATUS_INVALID_FTIE 55
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_STATUS_REQUESTED_TCLAS_NOT_SUPPORTED 56
|
|
|
|
#define WLAN_STATUS_INSUFFICIENT_TCLAS_PROCESSING_RESOURCES 57
|
|
|
|
#define WLAN_STATUS_TRY_ANOTHER_BSS 58
|
2011-10-16 19:57:11 +02:00
|
|
|
#define WLAN_STATUS_GAS_ADV_PROTO_NOT_SUPPORTED 59
|
|
|
|
#define WLAN_STATUS_NO_OUTSTANDING_GAS_REQ 60
|
|
|
|
#define WLAN_STATUS_GAS_RESP_NOT_RECEIVED 61
|
|
|
|
#define WLAN_STATUS_STA_TIMED_OUT_WAITING_FOR_GAS_RESP 62
|
|
|
|
#define WLAN_STATUS_GAS_RESP_LARGER_THAN_LIMIT 63
|
|
|
|
#define WLAN_STATUS_REQ_REFUSED_HOME 64
|
|
|
|
#define WLAN_STATUS_ADV_SRV_UNREACHABLE 65
|
|
|
|
#define WLAN_STATUS_REQ_REFUSED_SSPN 67
|
|
|
|
#define WLAN_STATUS_REQ_REFUSED_UNAUTH_ACCESS 68
|
2010-10-07 09:26:56 +02:00
|
|
|
#define WLAN_STATUS_INVALID_RSNIE 72
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_STATUS_U_APSD_COEX_NOT_SUPPORTED 73
|
|
|
|
#define WLAN_STATUS_U_APSD_COEX_MODE_NOT_SUPPORTED 74
|
|
|
|
#define WLAN_STATUS_BAD_INTERVAL_WITH_U_APSD_COEX 75
|
2012-09-30 18:51:07 +02:00
|
|
|
#define WLAN_STATUS_ANTI_CLOGGING_TOKEN_REQ 76
|
|
|
|
#define WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED 77
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_STATUS_CANNOT_FIND_ALT_TBTT 78
|
2011-10-16 19:57:11 +02:00
|
|
|
#define WLAN_STATUS_TRANSMISSION_FAILURE 79
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_STATUS_REQ_TCLAS_NOT_SUPPORTED 80
|
|
|
|
#define WLAN_STATUS_TCLAS_RESOURCES_EXCHAUSTED 81
|
2015-09-05 18:00:03 +02:00
|
|
|
#define WLAN_STATUS_REJECTED_WITH_SUGGESTED_BSS_TRANSITION 82
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_STATUS_REJECT_WITH_SCHEDULE 83
|
|
|
|
#define WLAN_STATUS_REJECT_NO_WAKEUP_SPECIFIED 84
|
|
|
|
#define WLAN_STATUS_SUCCESS_POWER_SAVE_MODE 85
|
2015-02-18 15:59:21 +01:00
|
|
|
#define WLAN_STATUS_PENDING_ADMITTING_FST_SESSION 86
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_STATUS_PERFORMING_FST_NOW 87
|
|
|
|
#define WLAN_STATUS_PENDING_GAP_IN_BA_WINDOW 88
|
|
|
|
#define WLAN_STATUS_REJECT_U_PID_SETTING 89
|
|
|
|
#define WLAN_STATUS_REFUSED_EXTERNAL_REASON 92
|
|
|
|
#define WLAN_STATUS_REFUSED_AP_OUT_OF_MEMORY 93
|
|
|
|
#define WLAN_STATUS_REJECTED_EMERGENCY_SERVICE_NOT_SUPPORTED 94
|
2014-03-01 15:51:46 +01:00
|
|
|
#define WLAN_STATUS_QUERY_RESP_OUTSTANDING 95
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_STATUS_REJECT_DSE_BAND 96
|
|
|
|
#define WLAN_STATUS_TCLAS_PROCESSING_TERMINATED 97
|
|
|
|
#define WLAN_STATUS_TS_SCHEDULE_CONFLICT 98
|
2015-02-18 15:59:21 +01:00
|
|
|
#define WLAN_STATUS_DENIED_WITH_SUGGESTED_BAND_AND_CHANNEL 99
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_STATUS_MCCAOP_RESERVATION_CONFLICT 100
|
|
|
|
#define WLAN_STATUS_MAF_LIMIT_EXCEEDED 101
|
|
|
|
#define WLAN_STATUS_MCCA_TRACK_LIMIT_EXCEEDED 102
|
|
|
|
#define WLAN_STATUS_DENIED_DUE_TO_SPECTRUM_MANAGEMENT 103
|
2013-12-24 20:19:45 +01:00
|
|
|
#define WLAN_STATUS_ASSOC_DENIED_NO_VHT 104
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_STATUS_ENABLEMENT_DENIED 105
|
|
|
|
#define WLAN_STATUS_RESTRICTION_FROM_AUTHORIZED_GDB 106
|
|
|
|
#define WLAN_STATUS_AUTHORIZATION_DEENABLED 107
|
2015-09-01 16:50:04 +02:00
|
|
|
#define WLAN_STATUS_FILS_AUTHENTICATION_FAILURE 112
|
|
|
|
#define WLAN_STATUS_UNKNOWN_AUTHENTICATION_SERVER 113
|
2018-05-19 16:28:01 +02:00
|
|
|
#define WLAN_STATUS_UNKNOWN_PASSWORD_IDENTIFIER 123
|
2019-09-06 14:46:10 +02:00
|
|
|
#define WLAN_STATUS_SAE_HASH_TO_ELEMENT 126
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2016-12-17 11:27:49 +01:00
|
|
|
/* Reason codes (IEEE Std 802.11-2016, 9.4.1.7, Table 9-45) */
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_REASON_UNSPECIFIED 1
|
|
|
|
#define WLAN_REASON_PREV_AUTH_NOT_VALID 2
|
|
|
|
#define WLAN_REASON_DEAUTH_LEAVING 3
|
|
|
|
#define WLAN_REASON_DISASSOC_DUE_TO_INACTIVITY 4
|
|
|
|
#define WLAN_REASON_DISASSOC_AP_BUSY 5
|
|
|
|
#define WLAN_REASON_CLASS2_FRAME_FROM_NONAUTH_STA 6
|
|
|
|
#define WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA 7
|
|
|
|
#define WLAN_REASON_DISASSOC_STA_HAS_LEFT 8
|
|
|
|
#define WLAN_REASON_STA_REQ_ASSOC_WITHOUT_AUTH 9
|
|
|
|
#define WLAN_REASON_PWR_CAPABILITY_NOT_VALID 10
|
|
|
|
#define WLAN_REASON_SUPPORTED_CHANNEL_NOT_VALID 11
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_REASON_BSS_TRANSITION_DISASSOC 12
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_REASON_INVALID_IE 13
|
|
|
|
#define WLAN_REASON_MICHAEL_MIC_FAILURE 14
|
|
|
|
#define WLAN_REASON_4WAY_HANDSHAKE_TIMEOUT 15
|
|
|
|
#define WLAN_REASON_GROUP_KEY_UPDATE_TIMEOUT 16
|
|
|
|
#define WLAN_REASON_IE_IN_4WAY_DIFFERS 17
|
|
|
|
#define WLAN_REASON_GROUP_CIPHER_NOT_VALID 18
|
|
|
|
#define WLAN_REASON_PAIRWISE_CIPHER_NOT_VALID 19
|
|
|
|
#define WLAN_REASON_AKMP_NOT_VALID 20
|
|
|
|
#define WLAN_REASON_UNSUPPORTED_RSN_IE_VERSION 21
|
|
|
|
#define WLAN_REASON_INVALID_RSN_IE_CAPAB 22
|
|
|
|
#define WLAN_REASON_IEEE_802_1X_AUTH_FAILED 23
|
|
|
|
#define WLAN_REASON_CIPHER_SUITE_REJECTED 24
|
2010-10-07 09:26:56 +02:00
|
|
|
#define WLAN_REASON_TDLS_TEARDOWN_UNREACHABLE 25
|
|
|
|
#define WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED 26
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_REASON_SSP_REQUESTED_DISASSOC 27
|
|
|
|
#define WLAN_REASON_NO_SSP_ROAMING_AGREEMENT 28
|
|
|
|
#define WLAN_REASON_BAD_CIPHER_OR_AKM 29
|
|
|
|
#define WLAN_REASON_NOT_AUTHORIZED_THIS_LOCATION 30
|
|
|
|
#define WLAN_REASON_SERVICE_CHANGE_PRECLUDES_TS 31
|
|
|
|
#define WLAN_REASON_UNSPECIFIED_QOS_REASON 32
|
|
|
|
#define WLAN_REASON_NOT_ENOUGH_BANDWIDTH 33
|
2010-12-28 16:15:01 +01:00
|
|
|
#define WLAN_REASON_DISASSOC_LOW_ACK 34
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_REASON_EXCEEDED_TXOP 35
|
|
|
|
#define WLAN_REASON_STA_LEAVING 36
|
|
|
|
#define WLAN_REASON_END_TS_BA_DLS 37
|
|
|
|
#define WLAN_REASON_UNKNOWN_TS_BA 38
|
|
|
|
#define WLAN_REASON_TIMEOUT 39
|
|
|
|
#define WLAN_REASON_PEERKEY_MISMATCH 45
|
|
|
|
#define WLAN_REASON_AUTHORIZED_ACCESS_LIMIT_REACHED 46
|
|
|
|
#define WLAN_REASON_EXTERNAL_SERVICE_REQUIREMENTS 47
|
|
|
|
#define WLAN_REASON_INVALID_FT_ACTION_FRAME_COUNT 48
|
|
|
|
#define WLAN_REASON_INVALID_PMKID 49
|
|
|
|
#define WLAN_REASON_INVALID_MDE 50
|
|
|
|
#define WLAN_REASON_INVALID_FTE 51
|
2014-09-01 06:23:20 +02:00
|
|
|
#define WLAN_REASON_MESH_PEERING_CANCELLED 52
|
|
|
|
#define WLAN_REASON_MESH_MAX_PEERS 53
|
|
|
|
#define WLAN_REASON_MESH_CONFIG_POLICY_VIOLATION 54
|
|
|
|
#define WLAN_REASON_MESH_CLOSE_RCVD 55
|
|
|
|
#define WLAN_REASON_MESH_MAX_RETRIES 56
|
|
|
|
#define WLAN_REASON_MESH_CONFIRM_TIMEOUT 57
|
|
|
|
#define WLAN_REASON_MESH_INVALID_GTK 58
|
|
|
|
#define WLAN_REASON_MESH_INCONSISTENT_PARAMS 59
|
|
|
|
#define WLAN_REASON_MESH_INVALID_SECURITY_CAP 60
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_REASON_MESH_PATH_ERROR_NO_PROXY_INFO 61
|
|
|
|
#define WLAN_REASON_MESH_PATH_ERROR_NO_FORWARDING_INFO 62
|
|
|
|
#define WLAN_REASON_MESH_PATH_ERROR_DEST_UNREACHABLE 63
|
|
|
|
#define WLAN_REASON_MAC_ADDRESS_ALREADY_EXISTS_IN_MBSS 64
|
|
|
|
#define WLAN_REASON_MESH_CHANNEL_SWITCH_REGULATORY_REQ 65
|
|
|
|
#define WLAN_REASON_MESH_CHANNEL_SWITCH_UNSPECIFIED 66
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
|
2016-12-17 11:27:49 +01:00
|
|
|
/* Information Element IDs (IEEE Std 802.11-2016, 9.4.2.1, Table 9-77) */
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_EID_SSID 0
|
|
|
|
#define WLAN_EID_SUPP_RATES 1
|
|
|
|
#define WLAN_EID_DS_PARAMS 3
|
|
|
|
#define WLAN_EID_CF_PARAMS 4
|
|
|
|
#define WLAN_EID_TIM 5
|
|
|
|
#define WLAN_EID_IBSS_PARAMS 6
|
|
|
|
#define WLAN_EID_COUNTRY 7
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_REQUEST 10
|
2013-10-18 13:06:11 +02:00
|
|
|
#define WLAN_EID_BSS_LOAD 11
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_EDCA_PARAM_SET 12
|
|
|
|
#define WLAN_EID_TSPEC 13
|
|
|
|
#define WLAN_EID_TCLAS 14
|
|
|
|
#define WLAN_EID_SCHEDULE 15
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_EID_CHALLENGE 16
|
|
|
|
#define WLAN_EID_PWR_CONSTRAINT 32
|
|
|
|
#define WLAN_EID_PWR_CAPABILITY 33
|
|
|
|
#define WLAN_EID_TPC_REQUEST 34
|
|
|
|
#define WLAN_EID_TPC_REPORT 35
|
|
|
|
#define WLAN_EID_SUPPORTED_CHANNELS 36
|
|
|
|
#define WLAN_EID_CHANNEL_SWITCH 37
|
|
|
|
#define WLAN_EID_MEASURE_REQUEST 38
|
|
|
|
#define WLAN_EID_MEASURE_REPORT 39
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_QUIET 40
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_EID_IBSS_DFS 41
|
|
|
|
#define WLAN_EID_ERP_INFO 42
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_TS_DELAY 43
|
|
|
|
#define WLAN_EID_TCLAS_PROCESSING 44
|
2008-08-21 17:18:38 +02:00
|
|
|
#define WLAN_EID_HT_CAP 45
|
2013-02-05 15:41:01 +01:00
|
|
|
#define WLAN_EID_QOS 46
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_EID_RSN 48
|
|
|
|
#define WLAN_EID_EXT_SUPP_RATES 50
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_AP_CHANNEL_REPORT 51
|
2014-04-07 23:53:55 +02:00
|
|
|
#define WLAN_EID_NEIGHBOR_REPORT 52
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_RCPI 53
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_EID_MOBILITY_DOMAIN 54
|
|
|
|
#define WLAN_EID_FAST_BSS_TRANSITION 55
|
|
|
|
#define WLAN_EID_TIMEOUT_INTERVAL 56
|
|
|
|
#define WLAN_EID_RIC_DATA 57
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_DSE_REGISTERED_LOCATION 58
|
2014-01-06 14:06:13 +01:00
|
|
|
#define WLAN_EID_SUPPORTED_OPERATING_CLASSES 59
|
2015-09-08 11:46:15 +02:00
|
|
|
#define WLAN_EID_EXT_CHANSWITCH_ANN 60
|
2008-08-21 17:18:38 +02:00
|
|
|
#define WLAN_EID_HT_OPERATION 61
|
|
|
|
#define WLAN_EID_SECONDARY_CHANNEL_OFFSET 62
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_BSS_AVERAGE_ACCESS_DELAY 63
|
|
|
|
#define WLAN_EID_ANTENNA 64
|
|
|
|
#define WLAN_EID_RSNI 65
|
|
|
|
#define WLAN_EID_MEASUREMENT_PILOT_TRANSMISSION 66
|
|
|
|
#define WLAN_EID_BSS_AVAILABLE_ADM_CAPA 67
|
|
|
|
#define WLAN_EID_BSS_AC_ACCESS_DELAY 68 /* note: also used by WAPI */
|
2011-10-17 23:24:16 +02:00
|
|
|
#define WLAN_EID_TIME_ADVERTISEMENT 69
|
2014-11-05 09:42:48 +01:00
|
|
|
#define WLAN_EID_RRM_ENABLED_CAPABILITIES 70
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_MULTIPLE_BSSID 71
|
2008-08-21 17:18:38 +02:00
|
|
|
#define WLAN_EID_20_40_BSS_COEXISTENCE 72
|
|
|
|
#define WLAN_EID_20_40_BSS_INTOLERANT 73
|
|
|
|
#define WLAN_EID_OVERLAPPING_BSS_SCAN_PARAMS 74
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_RIC_DESCRIPTOR 75
|
2008-08-30 13:59:39 +02:00
|
|
|
#define WLAN_EID_MMIE 76
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_EVENT_REQUEST 78
|
|
|
|
#define WLAN_EID_EVENT_REPORT 79
|
|
|
|
#define WLAN_EID_DIAGNOSTIC_REQUEST 80
|
|
|
|
#define WLAN_EID_DIAGNOSTIC_REPORT 81
|
|
|
|
#define WLAN_EID_LOCATION_PARAMETERS 82
|
|
|
|
#define WLAN_EID_NONTRANSMITTED_BSSID_CAPA 83
|
2012-12-16 20:22:24 +01:00
|
|
|
#define WLAN_EID_SSID_LIST 84
|
2019-04-08 22:42:12 +02:00
|
|
|
#define WLAN_EID_MULTIPLE_BSSID_INDEX 85
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_FMS_DESCRIPTOR 86
|
|
|
|
#define WLAN_EID_FMS_REQUEST 87
|
|
|
|
#define WLAN_EID_FMS_RESPONSE 88
|
|
|
|
#define WLAN_EID_QOS_TRAFFIC_CAPABILITY 89
|
2012-05-28 02:35:00 +02:00
|
|
|
#define WLAN_EID_BSS_MAX_IDLE_PERIOD 90
|
2012-02-26 16:20:00 +01:00
|
|
|
#define WLAN_EID_TFS_REQ 91
|
|
|
|
#define WLAN_EID_TFS_RESP 92
|
|
|
|
#define WLAN_EID_WNMSLEEP 93
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_TIM_BROADCAST_REQUEST 94
|
|
|
|
#define WLAN_EID_TIM_BROADCAST_RESPONSE 95
|
|
|
|
#define WLAN_EID_COLLOCATED_INTERFERENCE_REPORT 96
|
|
|
|
#define WLAN_EID_CHANNEL_USAGE 97
|
2011-10-17 23:24:16 +02:00
|
|
|
#define WLAN_EID_TIME_ZONE 98
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_DMS_REQUEST 99
|
|
|
|
#define WLAN_EID_DMS_RESPONSE 100
|
2010-12-13 10:20:55 +01:00
|
|
|
#define WLAN_EID_LINK_ID 101
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_WAKEUP_SCHEDULE 102
|
|
|
|
#define WLAN_EID_CHANNEL_SWITCH_TIMING 104
|
|
|
|
#define WLAN_EID_PTI_CONTROL 105
|
|
|
|
#define WLAN_EID_TPU_BUFFER_STATUS 106
|
2011-09-23 19:26:17 +02:00
|
|
|
#define WLAN_EID_INTERWORKING 107
|
2010-07-18 05:21:39 +02:00
|
|
|
#define WLAN_EID_ADV_PROTO 108
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_EXPEDITED_BANDWIDTH_REQ 109
|
2013-07-24 11:28:20 +02:00
|
|
|
#define WLAN_EID_QOS_MAP_SET 110
|
2011-10-17 22:55:50 +02:00
|
|
|
#define WLAN_EID_ROAMING_CONSORTIUM 111
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_EMERGENCY_ALERT_ID 112
|
2014-09-01 06:23:20 +02:00
|
|
|
#define WLAN_EID_MESH_CONFIG 113
|
|
|
|
#define WLAN_EID_MESH_ID 114
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_MESH_LINK_METRIC_REPORT 115
|
|
|
|
#define WLAN_EID_CONGESTION_NOTIFICATION 116
|
2014-09-01 06:23:20 +02:00
|
|
|
#define WLAN_EID_PEER_MGMT 117
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_MESH_CHANNEL_SWITCH_PARAMETERS 118
|
|
|
|
#define WLAN_EID_MESH_AWAKE_WINDOW 119
|
|
|
|
#define WLAN_EID_BEACON_TIMING 120
|
|
|
|
#define WLAN_EID_MCCAOP_SETUP_REQUEST 121
|
|
|
|
#define WLAN_EID_MCCAOP_SETUP_REPLY 122
|
|
|
|
#define WLAN_EID_MCCAOP_ADVERTISEMENT 123
|
|
|
|
#define WLAN_EID_MCCAOP_TEARDOWN 124
|
|
|
|
#define WLAN_EID_GANN 125
|
|
|
|
#define WLAN_EID_RANN 126
|
2011-01-28 18:21:59 +01:00
|
|
|
#define WLAN_EID_EXT_CAPAB 127
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_PREQ 130
|
|
|
|
#define WLAN_EID_PREP 131
|
|
|
|
#define WLAN_EID_PERR 132
|
|
|
|
#define WLAN_EID_PXU 137
|
|
|
|
#define WLAN_EID_PXUC 138
|
2014-09-01 06:23:20 +02:00
|
|
|
#define WLAN_EID_AMPE 139
|
|
|
|
#define WLAN_EID_MIC 140
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_DESTINATION_URI 141
|
|
|
|
#define WLAN_EID_U_APSD_COEX 142
|
|
|
|
#define WLAN_EID_DMG_WAKEUP_SCHEDULE 143
|
|
|
|
#define WLAN_EID_EXTENDED_SCHEDULE 144
|
|
|
|
#define WLAN_EID_STA_AVAILABILITY 145
|
|
|
|
#define WLAN_EID_DMG_TSPEC 146
|
|
|
|
#define WLAN_EID_NEXT_DMG_ATI 147
|
|
|
|
#define WLAN_EID_DMG_CAPABILITIES 148
|
|
|
|
#define WLAN_EID_DMG_OPERATION 151
|
|
|
|
#define WLAN_EID_DMG_BSS_PARAMETER_CHANGE 152
|
|
|
|
#define WLAN_EID_DMG_BEAM_REFINEMENT 153
|
|
|
|
#define WLAN_EID_CHANNEL_MEASUREMENT_FEEDBACK 154
|
2012-09-30 19:26:55 +02:00
|
|
|
#define WLAN_EID_CCKM 156
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_AWAKE_WINDOW 157
|
2015-02-18 15:59:21 +01:00
|
|
|
#define WLAN_EID_MULTI_BAND 158
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_ADDBA_EXTENSION 159
|
|
|
|
#define WLAN_EID_NEXTPCP_LIST 160
|
|
|
|
#define WLAN_EID_PCP_HANDOVER 161
|
|
|
|
#define WLAN_EID_DMG_LINK_MARGIN 162
|
|
|
|
#define WLAN_EID_SWITCHING_STREAM 163
|
2015-02-18 15:59:21 +01:00
|
|
|
#define WLAN_EID_SESSION_TRANSITION 164
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_DYNAMIC_TONE_PAIRING_REPORT 165
|
|
|
|
#define WLAN_EID_CLUSTER_REPORT 166
|
|
|
|
#define WLAN_EID_REPLAY_CAPABILITIES 167
|
|
|
|
#define WLAN_EID_RELAY_TRANSFER_PARAM_SET 168
|
|
|
|
#define WLAN_EID_BEAMLINK_MAINTENANCE 169
|
|
|
|
#define WLAN_EID_MULTIPLE_MAC_SUBLAYERS 170
|
|
|
|
#define WLAN_EID_U_PID 171
|
|
|
|
#define WLAN_EID_DMG_LINK_ADAPTATION_ACK 172
|
|
|
|
#define WLAN_EID_MCCAOP_ADVERTISEMENT_OVERVIEW 174
|
|
|
|
#define WLAN_EID_QUIET_PERIOD_REQUEST 175
|
|
|
|
#define WLAN_EID_QUIET_PERIOD_RESPONSE 177
|
|
|
|
#define WLAN_EID_QMF_POLICY 181
|
|
|
|
#define WLAN_EID_ECAPC_POLICY 182
|
|
|
|
#define WLAN_EID_CLUSTER_TIME_OFFSET 183
|
|
|
|
#define WLAN_EID_INTRA_ACCESS_CATEGORY_PRIORITY 184
|
|
|
|
#define WLAN_EID_SCS_DESCRIPTOR 185
|
|
|
|
#define WLAN_EID_QLOAD_REPORT 186
|
|
|
|
#define WLAN_EID_HCCA_TXOP_UPDATE_COUNT 187
|
|
|
|
#define WLAN_EID_HIGHER_LAYER_STREAM_ID 188
|
|
|
|
#define WLAN_EID_GCR_GROUP_ADDRESS 189
|
|
|
|
#define WLAN_EID_ANTENNA_SECTOR_ID_PATTERN 190
|
2012-06-30 12:52:13 +02:00
|
|
|
#define WLAN_EID_VHT_CAP 191
|
|
|
|
#define WLAN_EID_VHT_OPERATION 192
|
|
|
|
#define WLAN_EID_VHT_EXTENDED_BSS_LOAD 193
|
|
|
|
#define WLAN_EID_VHT_WIDE_BW_CHSWITCH 194
|
|
|
|
#define WLAN_EID_VHT_TRANSMIT_POWER_ENVELOPE 195
|
|
|
|
#define WLAN_EID_VHT_CHANNEL_SWITCH_WRAPPER 196
|
|
|
|
#define WLAN_EID_VHT_AID 197
|
|
|
|
#define WLAN_EID_VHT_QUIET_CHANNEL 198
|
|
|
|
#define WLAN_EID_VHT_OPERATING_MODE_NOTIFICATION 199
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_UPSIM 200
|
|
|
|
#define WLAN_EID_REDUCED_NEIGHBOR_REPORT 201
|
|
|
|
#define WLAN_EID_TVHT_OPERATION 202
|
|
|
|
#define WLAN_EID_DEVICE_LOCATION 204
|
|
|
|
#define WLAN_EID_WHITE_SPACE_MAP 205
|
|
|
|
#define WLAN_EID_FTM_PARAMETERS 206
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_EID_VENDOR_SPECIFIC 221
|
2015-09-01 16:50:04 +02:00
|
|
|
#define WLAN_EID_CAG_NUMBER 237
|
|
|
|
#define WLAN_EID_AP_CSN 239
|
|
|
|
#define WLAN_EID_FILS_INDICATION 240
|
|
|
|
#define WLAN_EID_DILS 241
|
|
|
|
#define WLAN_EID_FRAGMENT 242
|
2019-09-06 14:46:10 +02:00
|
|
|
#define WLAN_EID_RSNX 244
|
2015-09-01 16:50:04 +02:00
|
|
|
#define WLAN_EID_EXTENSION 255
|
|
|
|
|
|
|
|
/* Element ID Extension (EID 255) values */
|
|
|
|
#define WLAN_EID_EXT_ASSOC_DELAY_INFO 1
|
|
|
|
#define WLAN_EID_EXT_FILS_REQ_PARAMS 2
|
|
|
|
#define WLAN_EID_EXT_FILS_KEY_CONFIRM 3
|
|
|
|
#define WLAN_EID_EXT_FILS_SESSION 4
|
|
|
|
#define WLAN_EID_EXT_FILS_HLP_CONTAINER 5
|
|
|
|
#define WLAN_EID_EXT_FILS_IP_ADDR_ASSIGN 6
|
|
|
|
#define WLAN_EID_EXT_KEY_DELIVERY 7
|
|
|
|
#define WLAN_EID_EXT_FILS_WRAPPED_DATA 8
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_EXT_FTM_SYNC_INFO 9
|
|
|
|
#define WLAN_EID_EXT_EXTENDED_REQUEST 10
|
|
|
|
#define WLAN_EID_EXT_ESTIMATED_SERVICE_PARAMS 11
|
2015-09-01 16:50:04 +02:00
|
|
|
#define WLAN_EID_EXT_FILS_PUBLIC_KEY 12
|
|
|
|
#define WLAN_EID_EXT_FILS_NONCE 13
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_EID_EXT_FUTURE_CHANNEL_GUIDANCE 14
|
2017-03-11 23:23:36 +01:00
|
|
|
#define WLAN_EID_EXT_OWE_DH_PARAM 32
|
2018-05-19 16:28:01 +02:00
|
|
|
#define WLAN_EID_EXT_PASSWORD_IDENTIFIER 33
|
2017-09-30 01:32:44 +02:00
|
|
|
#define WLAN_EID_EXT_HE_CAPABILITIES 35
|
|
|
|
#define WLAN_EID_EXT_HE_OPERATION 36
|
2019-01-07 10:26:24 +01:00
|
|
|
#define WLAN_EID_EXT_HE_MU_EDCA_PARAMS 38
|
2019-04-16 14:34:01 +02:00
|
|
|
#define WLAN_EID_EXT_SPATIAL_REUSE 39
|
2018-08-06 21:46:25 +02:00
|
|
|
#define WLAN_EID_EXT_OCV_OCI 54
|
2019-09-10 09:26:01 +02:00
|
|
|
#define WLAN_EID_EXT_EDMG_CAPABILITIES 61
|
|
|
|
#define WLAN_EID_EXT_EDMG_OPERATION 62
|
2019-09-06 14:46:10 +02:00
|
|
|
#define WLAN_EID_EXT_REJECTED_GROUPS 92
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2019-01-02 16:56:41 +01:00
|
|
|
/* Extended Capabilities field */
|
|
|
|
#define WLAN_EXT_CAPAB_20_40_COEX 0
|
|
|
|
#define WLAN_EXT_CAPAB_GLK 1
|
|
|
|
#define WLAN_EXT_CAPAB_EXT_CHAN_SWITCH 2
|
|
|
|
#define WLAN_EXT_CAPAB_GLK_GCR 3
|
|
|
|
#define WLAN_EXT_CAPAB_PSMP 4
|
|
|
|
/* 5 - Reserved */
|
|
|
|
#define WLAN_EXT_CAPAB_S_PSMP 6
|
|
|
|
#define WLAN_EXT_CAPAB_EVENT 7
|
|
|
|
#define WLAN_EXT_CAPAB_DIAGNOSTICS 8
|
|
|
|
#define WLAN_EXT_CAPAB_MULTICAST_DIAGNOSTICS 9
|
|
|
|
#define WLAN_EXT_CAPAB_LOCATION_TRACKING 10
|
|
|
|
#define WLAN_EXT_CAPAB_FMS 11
|
|
|
|
#define WLAN_EXT_CAPAB_PROXY_ARP 12
|
|
|
|
#define WLAN_EXT_CAPAB_COLL_INTERF_REP 13
|
|
|
|
#define WLAN_EXT_CAPAB_CIVIC_LOCATION 14
|
|
|
|
#define WLAN_EXT_CAPAB_GEOSPATIAL_LOCATION 15
|
|
|
|
#define WLAN_EXT_CAPAB_TFS 16
|
|
|
|
#define WLAN_EXT_CAPAB_WNM_SLEEP_MODE 17
|
|
|
|
#define WLAN_EXT_CAPAB_TIM_BROADCAST 18
|
|
|
|
#define WLAN_EXT_CAPAB_BSS_TRANSITION 19
|
|
|
|
#define WLAN_EXT_CAPAB_QOS_TRAFFIC 20
|
|
|
|
#define WLAN_EXT_CAPAB_AC_STA_COUNT 21
|
|
|
|
#define WLAN_EXT_CAPAB_MULTIPLE_BSSID 22
|
|
|
|
#define WLAN_EXT_CAPAB_TIMING_MEASUREMENT 23
|
|
|
|
#define WLAN_EXT_CAPAB_CHANNEL_USAGE 24
|
|
|
|
#define WLAN_EXT_CAPAB_SSID_LIST 25
|
|
|
|
#define WLAN_EXT_CAPAB_DMS 26
|
|
|
|
#define WLAN_EXT_CAPAB_UTF_TSF_OFFSET 27
|
|
|
|
#define WLAN_EXT_CAPAB_TPU_BUFFER_STA 28
|
|
|
|
#define WLAN_EXT_CAPAB_TDLS_PEER_PSM 29
|
|
|
|
#define WLAN_EXT_CAPAB_TDLS_CHANNEL_SWITCH 30
|
|
|
|
#define WLAN_EXT_CAPAB_INTERWORKING 31
|
|
|
|
#define WLAN_EXT_CAPAB_QOS_MAP 32
|
|
|
|
#define WLAN_EXT_CAPAB_EBR 33
|
|
|
|
#define WLAN_EXT_CAPAB_SSPN_INTERFACE 34
|
|
|
|
/* 35 - Reserved */
|
|
|
|
#define WLAN_EXT_CAPAB_MSGCF 36
|
|
|
|
#define WLAN_EXT_CAPAB_TDLS 37
|
|
|
|
#define WLAN_EXT_CAPAB_TDLS_PROHIBITED 38
|
|
|
|
#define WLAN_EXT_CAPAB_TDLS_CHANNEL_SWITCH_PROHIBITED 39
|
|
|
|
#define WLAN_EXT_CAPAB_REJECT_UNADMITTED_FRAME 40
|
|
|
|
#define WLAN_EXT_CAPAB_
|
|
|
|
/* 41-43 - Service Interval Granularity */
|
|
|
|
#define WLAN_EXT_CAPAB_IDENTIFIER_LOCATION 44
|
|
|
|
#define WLAN_EXT_CAPAB_U_APSD_COEX 45
|
|
|
|
#define WLAN_EXT_CAPAB_WNM_NOTIFCATION 46
|
|
|
|
#define WLAN_EXT_CAPAB_QAB 47
|
|
|
|
#define WLAN_EXT_CAPAB_UTF_8_SSID 48
|
|
|
|
#define WLAN_EXT_CAPAB_QMF 49
|
|
|
|
#define WLAN_EXT_CAPAB_QMF_RECONFIG 50
|
|
|
|
#define WLAN_EXT_CAPAB_ROBUST_AV_STREAMING 51
|
|
|
|
#define WLAN_EXT_CAPAB_ADVANCED_GCR 52
|
|
|
|
#define WLAN_EXT_CAPAB_MESH_GCR 53
|
|
|
|
#define WLAN_EXT_CAPAB_SCS 54
|
|
|
|
#define WLAN_EXT_CAPAB_QLOAD_REPORT 55
|
|
|
|
#define WLAN_EXT_CAPAB_ALT_EDCA 56
|
|
|
|
#define WLAN_EXT_CAPAB_UNPROT_TXOP_NEG 57
|
|
|
|
#define WLAN_EXT_CAPAB_PROT_TXOP_NEG 58
|
|
|
|
/* 59 - Reserved */
|
|
|
|
#define WLAN_EXT_CAPAB_PROT_QLOAD_REPORT 60
|
|
|
|
#define WLAN_EXT_CAPAB_TDLS_WIDER_BW 61
|
|
|
|
#define WLAN_EXT_CAPAB_OPMODE_NOTIF 62
|
|
|
|
#define WLAN_EXT_CAPAB_
|
|
|
|
/* 63-64 - Max Number of MSDUs In A-MSDU */
|
|
|
|
#define WLAN_EXT_CAPAB_CHANNEL_SCHEDULE_MGMT 65
|
|
|
|
#define WLAN_EXT_CAPAB_GEODB_INBAND_ENABLING_SIGNAL 66
|
|
|
|
#define WLAN_EXT_CAPAB_NETWORK_CHANNEL_CTRL 67
|
|
|
|
#define WLAN_EXT_CAPAB_WHITE_SPACE_MAP 68
|
|
|
|
#define WLAN_EXT_CAPAB_CHANNEL_AVAIL_QUERY 69
|
|
|
|
#define WLAN_EXT_CAPAB_FTM_RESPONDER 70
|
|
|
|
#define WLAN_EXT_CAPAB_FTM_INITIATOR 71
|
|
|
|
#define WLAN_EXT_CAPAB_FILS 72
|
|
|
|
#define WLAN_EXT_CAPAB_EXT_SPECTRUM_MGMT 73
|
|
|
|
#define WLAN_EXT_CAPAB_FUTURE_CHANNEL_GUIDANCE 74
|
|
|
|
#define WLAN_EXT_CAPAB_PAD 75
|
|
|
|
/* 76-79 - Reserved */
|
|
|
|
#define WLAN_EXT_CAPAB_COMPLETE_NON_TX_BSSID_PROFILE 80
|
|
|
|
#define WLAN_EXT_CAPAB_SAE_PW_ID 81
|
|
|
|
#define WLAN_EXT_CAPAB_SAE_PW_ID_EXCLUSIVELY 82
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2019-09-06 14:46:10 +02:00
|
|
|
/* Extended RSN Capabilities */
|
|
|
|
/* bits 0-3: Field length (n-1) */
|
|
|
|
#define WLAN_RSNX_CAPAB_PROTECTED_TWT 4
|
|
|
|
#define WLAN_RSNX_CAPAB_SAE_H2E 5
|
|
|
|
|
2016-12-17 11:27:49 +01:00
|
|
|
/* Action frame categories (IEEE Std 802.11-2016, 9.4.1.11, Table 9-76) */
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_ACTION_SPECTRUM_MGMT 0
|
|
|
|
#define WLAN_ACTION_QOS 1
|
|
|
|
#define WLAN_ACTION_DLS 2
|
|
|
|
#define WLAN_ACTION_BLOCK_ACK 3
|
2009-05-08 11:51:28 +02:00
|
|
|
#define WLAN_ACTION_PUBLIC 4
|
2008-02-28 02:34:43 +01:00
|
|
|
#define WLAN_ACTION_RADIO_MEASUREMENT 5
|
|
|
|
#define WLAN_ACTION_FT 6
|
2009-05-08 11:51:28 +02:00
|
|
|
#define WLAN_ACTION_HT 7
|
2008-12-31 16:52:05 +01:00
|
|
|
#define WLAN_ACTION_SA_QUERY 8
|
2014-01-23 10:12:27 +01:00
|
|
|
#define WLAN_ACTION_PROTECTED_DUAL 9
|
2011-10-07 12:33:04 +02:00
|
|
|
#define WLAN_ACTION_WNM 10
|
|
|
|
#define WLAN_ACTION_UNPROTECTED_WNM 11
|
2010-12-13 10:20:55 +01:00
|
|
|
#define WLAN_ACTION_TDLS 12
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_ACTION_MESH 13
|
|
|
|
#define WLAN_ACTION_MULTIHOP 14
|
2014-09-01 06:23:20 +02:00
|
|
|
#define WLAN_ACTION_SELF_PROTECTED 15
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_ACTION_DMG 16
|
2009-03-04 11:33:24 +01:00
|
|
|
#define WLAN_ACTION_WMM 17 /* WMM Specification 1.1 */
|
2015-02-18 15:59:21 +01:00
|
|
|
#define WLAN_ACTION_FST 18
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_ACTION_ROBUST_AV_STREAMING 19
|
|
|
|
#define WLAN_ACTION_UNPROTECTED_DMG 20
|
|
|
|
#define WLAN_ACTION_VHT 21
|
2015-09-01 16:50:04 +02:00
|
|
|
#define WLAN_ACTION_FILS 26
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_ACTION_VENDOR_SPECIFIC_PROTECTED 126
|
2010-07-18 05:21:39 +02:00
|
|
|
#define WLAN_ACTION_VENDOR_SPECIFIC 127
|
2016-12-17 11:27:49 +01:00
|
|
|
/* Note: 128-255 used to report errors by setting category | 0x80 */
|
2010-07-18 05:21:39 +02:00
|
|
|
|
2016-12-17 11:27:49 +01:00
|
|
|
/* Public action codes (IEEE Std 802.11-2016, 9.6.8.1, Table 9-307) */
|
2012-04-24 15:08:35 +02:00
|
|
|
#define WLAN_PA_20_40_BSS_COEX 0
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_PA_DSE_ENABLEMENT 1
|
|
|
|
#define WLAN_PA_DSE_DEENABLEMENT 2
|
|
|
|
#define WLAN_PA_DSE_REG_LOCATION_ANNOUNCE 3
|
|
|
|
#define WLAN_PA_EXT_CHANNEL_SWITCH_ANNOUNCE 4
|
|
|
|
#define WLAN_PA_DSE_MEASUREMENT_REQ 5
|
|
|
|
#define WLAN_PA_DSE_MEASUREMENT_RESP 6
|
|
|
|
#define WLAN_PA_MEASUREMENT_PILOT 7
|
|
|
|
#define WLAN_PA_DSE_POWER_CONSTRAINT 8
|
2010-07-18 05:21:39 +02:00
|
|
|
#define WLAN_PA_VENDOR_SPECIFIC 9
|
|
|
|
#define WLAN_PA_GAS_INITIAL_REQ 10
|
|
|
|
#define WLAN_PA_GAS_INITIAL_RESP 11
|
|
|
|
#define WLAN_PA_GAS_COMEBACK_REQ 12
|
|
|
|
#define WLAN_PA_GAS_COMEBACK_RESP 13
|
2011-09-26 12:55:26 +02:00
|
|
|
#define WLAN_TDLS_DISCOVERY_RESPONSE 14
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_PA_LOCATION_TRACK_NOTIFICATION 15
|
|
|
|
#define WLAN_PA_QAB_REQUEST_FRAME 16
|
|
|
|
#define WLAN_PA_QAB_RESPONSE_FRAME 17
|
|
|
|
#define WLAN_PA_QMF_POLICY 18
|
|
|
|
#define WLAN_PA_QMF_POLICY_CHANGE 19
|
|
|
|
#define WLAN_PA_QLOAD_REQUEST 20
|
|
|
|
#define WLAN_PA_QLOAD_REPORT 21
|
|
|
|
#define WLAN_PA_HCCA_TXOP_ADVERTISEMENT 22
|
|
|
|
#define WLAN_PA_HCCA_TXOP_RESPONSE 23
|
|
|
|
#define WLAN_PA_PUBLIC_KEY 24
|
|
|
|
#define WLAN_PA_CHANNEL_AVAILABILITY_QUERY 25
|
|
|
|
#define WLAN_PA_CHANNEL_SCHEDULE_MANAGEMENT 26
|
|
|
|
#define WLAN_PA_CONTACT_VERIFICATION_SIGNAL 27
|
|
|
|
#define WLAN_PA_GDD_ENABLEMENT_REQ 28
|
|
|
|
#define WLAN_PA_GDD_ENABLEMENT_RESP 29
|
|
|
|
#define WLAN_PA_NETWORK_CHANNEL_CONTROL 30
|
|
|
|
#define WLAN_PA_WHITE_SPACE_MAP_ANNOUNCEMENT 31
|
|
|
|
#define WLAN_PA_FTM_REQUEST 32
|
|
|
|
#define WLAN_PA_FTM 33
|
2015-09-01 16:50:04 +02:00
|
|
|
#define WLAN_PA_FILS_DISCOVERY 34
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2016-12-17 11:27:49 +01:00
|
|
|
/* Protected Dual of Public Action frames (IEEE Std 802.11-2016, 9.6.11,
|
|
|
|
* Table 9-332) */
|
2014-01-23 10:12:27 +01:00
|
|
|
#define WLAN_PROT_DSE_ENABLEMENT 1
|
|
|
|
#define WLAN_PROT_DSE_DEENABLEMENT 2
|
|
|
|
#define WLAN_PROT_EXT_CSA 4
|
|
|
|
#define WLAN_PROT_MEASUREMENT_REQ 5
|
|
|
|
#define WLAN_PROT_MEASUREMENT_REPORT 6
|
|
|
|
#define WLAN_PROT_DSE_POWER_CONSTRAINT 8
|
|
|
|
#define WLAN_PROT_VENDOR_SPECIFIC 9
|
|
|
|
#define WLAN_PROT_GAS_INITIAL_REQ 10
|
|
|
|
#define WLAN_PROT_GAS_INITIAL_RESP 11
|
|
|
|
#define WLAN_PROT_GAS_COMEBACK_REQ 12
|
|
|
|
#define WLAN_PROT_GAS_COMEBACK_RESP 13
|
2016-12-17 11:27:49 +01:00
|
|
|
#define WLAN_PROT_QAB_REQUEST_FRAME 16
|
|
|
|
#define WLAN_PROT_QAB_RESPONSE_FRAME 17
|
|
|
|
#define WLAN_PROT_QMF_POLICY 18
|
|
|
|
#define WLAN_PROT_QMF_POLICY_CHANGE 19
|
|
|
|
#define WLAN_PROT_QLOAD_REQUEST 20
|
|
|
|
#define WLAN_PROT_QLOAD_REPORT 21
|
|
|
|
#define WLAN_PROT_HCCA_TXOP_ADVERTISEMENT 22
|
|
|
|
#define WLAN_PROT_HCCA_TXOP_RESPONSE 23
|
|
|
|
#define WLAN_PROT_CHANNEL_AVAILABILITY_QUERY 25
|
|
|
|
#define WLAN_PROT_CHANNEL_SCHEDULE_MANAGEMENT 26
|
|
|
|
#define WLAN_PROT_CONTACT_VERIFICATION_SIGNAL 27
|
|
|
|
#define WLAN_PROT_GDD_ENABLEMENT_REQ 28
|
|
|
|
#define WLAN_PROT_GDD_ENABLEMENT_RESP 29
|
|
|
|
#define WLAN_PROT_NETWORK_CHANNEL_CONTROL 30
|
|
|
|
#define WLAN_PROT_WHITE_SPACE_MAP_ANNOUNCEMENT 31
|
2014-01-23 10:12:27 +01:00
|
|
|
|
2009-05-06 17:57:17 +02:00
|
|
|
/* SA Query Action frame (IEEE 802.11w/D8.0, 7.4.9) */
|
2008-12-26 10:46:21 +01:00
|
|
|
#define WLAN_SA_QUERY_REQUEST 0
|
|
|
|
#define WLAN_SA_QUERY_RESPONSE 1
|
2008-08-31 10:04:47 +02:00
|
|
|
|
2009-05-06 17:57:17 +02:00
|
|
|
#define WLAN_SA_QUERY_TR_ID_LEN 2
|
2008-08-31 10:04:47 +02:00
|
|
|
|
2010-12-13 10:20:55 +01:00
|
|
|
/* TDLS action codes */
|
|
|
|
#define WLAN_TDLS_SETUP_REQUEST 0
|
|
|
|
#define WLAN_TDLS_SETUP_RESPONSE 1
|
|
|
|
#define WLAN_TDLS_SETUP_CONFIRM 2
|
|
|
|
#define WLAN_TDLS_TEARDOWN 3
|
|
|
|
#define WLAN_TDLS_PEER_TRAFFIC_INDICATION 4
|
|
|
|
#define WLAN_TDLS_CHANNEL_SWITCH_REQUEST 5
|
|
|
|
#define WLAN_TDLS_CHANNEL_SWITCH_RESPONSE 6
|
|
|
|
#define WLAN_TDLS_PEER_PSM_REQUEST 7
|
|
|
|
#define WLAN_TDLS_PEER_PSM_RESPONSE 8
|
|
|
|
#define WLAN_TDLS_PEER_TRAFFIC_RESPONSE 9
|
|
|
|
#define WLAN_TDLS_DISCOVERY_REQUEST 10
|
|
|
|
|
2014-11-05 09:42:50 +01:00
|
|
|
/* Radio Measurement Action codes */
|
|
|
|
#define WLAN_RRM_RADIO_MEASUREMENT_REQUEST 0
|
|
|
|
#define WLAN_RRM_RADIO_MEASUREMENT_REPORT 1
|
|
|
|
#define WLAN_RRM_LINK_MEASUREMENT_REQUEST 2
|
|
|
|
#define WLAN_RRM_LINK_MEASUREMENT_REPORT 3
|
|
|
|
#define WLAN_RRM_NEIGHBOR_REPORT_REQUEST 4
|
|
|
|
#define WLAN_RRM_NEIGHBOR_REPORT_RESPONSE 5
|
|
|
|
|
2016-12-28 14:06:33 +01:00
|
|
|
/* Radio Measurement capabilities (from RM Enabled Capabilities element)
|
|
|
|
* IEEE Std 802.11-2016, 9.4.2.45, Table 9-157 */
|
2014-11-05 09:42:50 +01:00
|
|
|
/* byte 1 (out of 5) */
|
2014-11-05 09:42:56 +01:00
|
|
|
#define WLAN_RRM_CAPS_LINK_MEASUREMENT BIT(0)
|
2014-11-05 09:42:50 +01:00
|
|
|
#define WLAN_RRM_CAPS_NEIGHBOR_REPORT BIT(1)
|
2016-12-28 14:06:33 +01:00
|
|
|
#define WLAN_RRM_CAPS_BEACON_REPORT_PASSIVE BIT(4)
|
|
|
|
#define WLAN_RRM_CAPS_BEACON_REPORT_ACTIVE BIT(5)
|
|
|
|
#define WLAN_RRM_CAPS_BEACON_REPORT_TABLE BIT(6)
|
2016-04-06 18:42:11 +02:00
|
|
|
/* byte 2 (out of 5) */
|
|
|
|
#define WLAN_RRM_CAPS_LCI_MEASUREMENT BIT(4)
|
2016-04-06 18:42:12 +02:00
|
|
|
/* byte 5 (out of 5) */
|
|
|
|
#define WLAN_RRM_CAPS_FTM_RANGE_REPORT BIT(2)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* IEEE P802.11-REVmc/D5.0, 9.4.2.21.19 (Fine Timing Measurement Range
|
|
|
|
* request) - Minimum AP count
|
|
|
|
*/
|
|
|
|
#define WLAN_RRM_RANGE_REQ_MAX_MIN_AP 15
|
2014-11-05 09:42:50 +01:00
|
|
|
|
2009-01-19 17:42:10 +01:00
|
|
|
/* Timeout Interval Type */
|
|
|
|
#define WLAN_TIMEOUT_REASSOC_DEADLINE 1
|
|
|
|
#define WLAN_TIMEOUT_KEY_LIFETIME 2
|
|
|
|
#define WLAN_TIMEOUT_ASSOC_COMEBACK 3
|
|
|
|
|
2011-09-23 19:26:17 +02:00
|
|
|
/* Interworking element (IEEE 802.11u) - Access Network Options */
|
|
|
|
#define INTERWORKING_ANO_ACCESS_NETWORK_MASK 0x0f
|
|
|
|
#define INTERWORKING_ANO_INTERNET 0x10
|
|
|
|
#define INTERWORKING_ANO_ASRA 0x20
|
|
|
|
#define INTERWORKING_ANO_ESR 0x40
|
|
|
|
#define INTERWORKING_ANO_UESA 0x80
|
|
|
|
|
2011-09-27 22:15:05 +02:00
|
|
|
#define INTERWORKING_ANT_PRIVATE 0
|
|
|
|
#define INTERWORKING_ANT_PRIVATE_WITH_GUEST 1
|
|
|
|
#define INTERWORKING_ANT_CHARGEABLE_PUBLIC 2
|
|
|
|
#define INTERWORKING_ANT_FREE_PUBLIC 3
|
|
|
|
#define INTERWORKING_ANT_PERSONAL_DEVICE 4
|
|
|
|
#define INTERWORKING_ANT_EMERGENCY_SERVICES 5
|
|
|
|
#define INTERWORKING_ANT_TEST 6
|
|
|
|
#define INTERWORKING_ANT_WILDCARD 15
|
|
|
|
|
2016-12-17 11:27:49 +01:00
|
|
|
/* Advertisement Protocol ID definitions (IEEE Std 802.11-2016, Table 9-215) */
|
2010-07-18 05:21:39 +02:00
|
|
|
enum adv_proto_id {
|
2011-09-08 19:52:23 +02:00
|
|
|
ACCESS_NETWORK_QUERY_PROTOCOL = 0,
|
2010-07-18 05:21:39 +02:00
|
|
|
MIH_INFO_SERVICE = 1,
|
|
|
|
MIH_CMD_AND_EVENT_DISCOVERY = 2,
|
|
|
|
EMERGENCY_ALERT_SYSTEM = 3,
|
2016-12-17 11:27:49 +01:00
|
|
|
REGISTERED_LOCATION_QUERY_PROTO = 4,
|
2010-07-18 05:21:39 +02:00
|
|
|
ADV_PROTO_VENDOR_SPECIFIC = 221
|
|
|
|
};
|
|
|
|
|
2016-12-17 11:27:49 +01:00
|
|
|
/* Access Network Query Protocol info ID definitions (IEEE Std 802.11-2016,
|
|
|
|
* Table 9-271; P802.11ai) */
|
2011-09-08 19:52:23 +02:00
|
|
|
enum anqp_info_id {
|
|
|
|
ANQP_QUERY_LIST = 256,
|
|
|
|
ANQP_CAPABILITY_LIST = 257,
|
|
|
|
ANQP_VENUE_NAME = 258,
|
|
|
|
ANQP_EMERGENCY_CALL_NUMBER = 259,
|
|
|
|
ANQP_NETWORK_AUTH_TYPE = 260,
|
|
|
|
ANQP_ROAMING_CONSORTIUM = 261,
|
|
|
|
ANQP_IP_ADDR_TYPE_AVAILABILITY = 262,
|
|
|
|
ANQP_NAI_REALM = 263,
|
|
|
|
ANQP_3GPP_CELLULAR_NETWORK = 264,
|
|
|
|
ANQP_AP_GEOSPATIAL_LOCATION = 265,
|
|
|
|
ANQP_AP_CIVIC_LOCATION = 266,
|
|
|
|
ANQP_AP_LOCATION_PUBLIC_URI = 267,
|
|
|
|
ANQP_DOMAIN_NAME = 268,
|
|
|
|
ANQP_EMERGENCY_ALERT_URI = 269,
|
2015-10-07 15:12:55 +02:00
|
|
|
ANQP_TDLS_CAPABILITY = 270,
|
2011-09-08 19:52:23 +02:00
|
|
|
ANQP_EMERGENCY_NAI = 271,
|
2015-10-07 15:12:55 +02:00
|
|
|
ANQP_NEIGHBOR_REPORT = 272,
|
2015-09-01 16:50:04 +02:00
|
|
|
ANQP_QUERY_AP_LIST = 273,
|
|
|
|
ANQP_AP_LIST_RESPONSE = 274,
|
2016-12-17 21:02:06 +01:00
|
|
|
ANQP_FILS_REALM_INFO = 275,
|
2015-09-01 16:50:04 +02:00
|
|
|
ANQP_CAG = 276,
|
2015-10-07 15:12:55 +02:00
|
|
|
ANQP_VENUE_URL = 277,
|
|
|
|
ANQP_ADVICE_OF_CHARGE = 278,
|
|
|
|
ANQP_LOCAL_CONTENT = 279,
|
2016-12-17 11:27:49 +01:00
|
|
|
ANQP_NETWORK_AUTH_TYPE_TIMESTAMP = 280,
|
2011-09-08 19:52:23 +02:00
|
|
|
ANQP_VENDOR_SPECIFIC = 56797
|
2010-07-18 05:21:39 +02:00
|
|
|
};
|
|
|
|
|
2011-10-05 13:38:13 +02:00
|
|
|
/* NAI Realm list - EAP Method subfield - Authentication Parameter ID */
|
|
|
|
enum nai_realm_eap_auth_param {
|
|
|
|
NAI_REALM_EAP_AUTH_EXPANDED_EAP_METHOD = 1,
|
|
|
|
NAI_REALM_EAP_AUTH_NON_EAP_INNER_AUTH = 2,
|
|
|
|
NAI_REALM_EAP_AUTH_INNER_AUTH_EAP_METHOD = 3,
|
|
|
|
NAI_REALM_EAP_AUTH_EXPANDED_INNER_EAP_METHOD = 4,
|
|
|
|
NAI_REALM_EAP_AUTH_CRED_TYPE = 5,
|
|
|
|
NAI_REALM_EAP_AUTH_TUNNELED_CRED_TYPE = 6,
|
|
|
|
NAI_REALM_EAP_AUTH_VENDOR_SPECIFIC = 221
|
|
|
|
};
|
|
|
|
|
|
|
|
enum nai_realm_eap_auth_inner_non_eap {
|
|
|
|
NAI_REALM_INNER_NON_EAP_PAP = 1,
|
|
|
|
NAI_REALM_INNER_NON_EAP_CHAP = 2,
|
|
|
|
NAI_REALM_INNER_NON_EAP_MSCHAP = 3,
|
|
|
|
NAI_REALM_INNER_NON_EAP_MSCHAPV2 = 4
|
|
|
|
};
|
|
|
|
|
|
|
|
enum nai_realm_eap_cred_type {
|
|
|
|
NAI_REALM_CRED_TYPE_SIM = 1,
|
|
|
|
NAI_REALM_CRED_TYPE_USIM = 2,
|
|
|
|
NAI_REALM_CRED_TYPE_NFC_SECURE_ELEMENT = 3,
|
|
|
|
NAI_REALM_CRED_TYPE_HARDWARE_TOKEN = 4,
|
|
|
|
NAI_REALM_CRED_TYPE_SOFTOKEN = 5,
|
|
|
|
NAI_REALM_CRED_TYPE_CERTIFICATE = 6,
|
|
|
|
NAI_REALM_CRED_TYPE_USERNAME_PASSWORD = 7,
|
|
|
|
NAI_REALM_CRED_TYPE_NONE = 8,
|
|
|
|
NAI_REALM_CRED_TYPE_ANONYMOUS = 9,
|
|
|
|
NAI_REALM_CRED_TYPE_VENDOR_SPECIFIC = 10
|
|
|
|
};
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2016-04-06 18:42:03 +02:00
|
|
|
/*
|
|
|
|
* IEEE P802.11-REVmc/D5.0 Table 9-81 - Measurement type definitions for
|
|
|
|
* measurement requests
|
|
|
|
*/
|
|
|
|
enum measure_type {
|
|
|
|
MEASURE_TYPE_BASIC = 0,
|
|
|
|
MEASURE_TYPE_CCA = 1,
|
|
|
|
MEASURE_TYPE_RPI_HIST = 2,
|
|
|
|
MEASURE_TYPE_CHANNEL_LOAD = 3,
|
|
|
|
MEASURE_TYPE_NOISE_HIST = 4,
|
|
|
|
MEASURE_TYPE_BEACON = 5,
|
|
|
|
MEASURE_TYPE_FRAME = 6,
|
|
|
|
MEASURE_TYPE_STA_STATISTICS = 7,
|
|
|
|
MEASURE_TYPE_LCI = 8,
|
|
|
|
MEASURE_TYPE_TRANSMIT_STREAM = 9,
|
|
|
|
MEASURE_TYPE_MULTICAST_DIAG = 10,
|
|
|
|
MEASURE_TYPE_LOCATION_CIVIC = 11,
|
|
|
|
MEASURE_TYPE_LOCATION_ID = 12,
|
|
|
|
MEASURE_TYPE_DIRECTIONAL_CHAN_QUALITY = 13,
|
|
|
|
MEASURE_TYPE_DIRECTIONAL_MEASURE = 14,
|
|
|
|
MEASURE_TYPE_DIRECTIONAL_STATS = 15,
|
|
|
|
MEASURE_TYPE_FTM_RANGE = 16,
|
|
|
|
MEASURE_TYPE_MEASURE_PAUSE = 255,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* IEEE Std 802.11-2012 Table 8-71 - Location subject definition */
|
|
|
|
enum location_subject {
|
|
|
|
LOCATION_SUBJECT_LOCAL = 0,
|
|
|
|
LOCATION_SUBJECT_REMOTE = 1,
|
|
|
|
LOCATION_SUBJECT_3RD_PARTY = 2,
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* IEEE P802.11-REVmc/D5.0 Table 9-94 - Optional subelement IDs for LCI request
|
|
|
|
*/
|
|
|
|
enum lci_req_subelem {
|
|
|
|
LCI_REQ_SUBELEM_AZIMUTH_REQ = 1,
|
|
|
|
LCI_REQ_SUBELEM_ORIGINATOR_MAC_ADDR = 2,
|
|
|
|
LCI_REQ_SUBELEM_TARGET_MAC_ADDR = 3,
|
|
|
|
LCI_REQ_SUBELEM_MAX_AGE = 4,
|
|
|
|
};
|
|
|
|
|
2015-09-01 16:50:04 +02:00
|
|
|
#define FILS_NONCE_LEN 16
|
|
|
|
#define FILS_SESSION_LEN 8
|
2015-09-01 16:50:04 +02:00
|
|
|
#define FILS_CACHE_ID_LEN 2
|
|
|
|
#define FILS_MAX_KEY_AUTH_LEN 48
|
2015-09-01 16:50:04 +02:00
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma pack(push, 1)
|
|
|
|
#endif /* _MSC_VER */
|
|
|
|
|
2009-11-23 15:14:39 +01:00
|
|
|
struct ieee80211_hdr {
|
|
|
|
le16 frame_control;
|
|
|
|
le16 duration_id;
|
|
|
|
u8 addr1[6];
|
|
|
|
u8 addr2[6];
|
|
|
|
u8 addr3[6];
|
|
|
|
le16 seq_ctrl;
|
|
|
|
/* followed by 'u8 addr4[6];' if ToDS and FromDS is set in data frame
|
|
|
|
*/
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
#define IEEE80211_DA_FROMDS addr1
|
|
|
|
#define IEEE80211_BSSID_FROMDS addr2
|
|
|
|
#define IEEE80211_SA_FROMDS addr3
|
|
|
|
|
|
|
|
#define IEEE80211_HDRLEN (sizeof(struct ieee80211_hdr))
|
|
|
|
|
|
|
|
#define IEEE80211_FC(type, stype) host_to_le16((type << 2) | (stype << 4))
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
struct ieee80211_mgmt {
|
|
|
|
le16 frame_control;
|
|
|
|
le16 duration;
|
|
|
|
u8 da[6];
|
|
|
|
u8 sa[6];
|
|
|
|
u8 bssid[6];
|
|
|
|
le16 seq_ctrl;
|
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
le16 auth_alg;
|
|
|
|
le16 auth_transaction;
|
|
|
|
le16 status_code;
|
|
|
|
/* possibly followed by Challenge text */
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2008-02-28 02:34:43 +01:00
|
|
|
} STRUCT_PACKED auth;
|
|
|
|
struct {
|
|
|
|
le16 reason_code;
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2008-02-28 02:34:43 +01:00
|
|
|
} STRUCT_PACKED deauth;
|
|
|
|
struct {
|
|
|
|
le16 capab_info;
|
|
|
|
le16 listen_interval;
|
|
|
|
/* followed by SSID and Supported rates */
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2008-02-28 02:34:43 +01:00
|
|
|
} STRUCT_PACKED assoc_req;
|
|
|
|
struct {
|
|
|
|
le16 capab_info;
|
|
|
|
le16 status_code;
|
|
|
|
le16 aid;
|
|
|
|
/* followed by Supported rates */
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2008-02-28 02:34:43 +01:00
|
|
|
} STRUCT_PACKED assoc_resp, reassoc_resp;
|
|
|
|
struct {
|
|
|
|
le16 capab_info;
|
|
|
|
le16 listen_interval;
|
|
|
|
u8 current_ap[6];
|
|
|
|
/* followed by SSID and Supported rates */
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2008-02-28 02:34:43 +01:00
|
|
|
} STRUCT_PACKED reassoc_req;
|
|
|
|
struct {
|
|
|
|
le16 reason_code;
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2008-02-28 02:34:43 +01:00
|
|
|
} STRUCT_PACKED disassoc;
|
|
|
|
struct {
|
|
|
|
u8 timestamp[8];
|
|
|
|
le16 beacon_int;
|
|
|
|
le16 capab_info;
|
|
|
|
/* followed by some of SSID, Supported rates,
|
|
|
|
* FH Params, DS Params, CF Params, IBSS Params, TIM */
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2008-02-28 02:34:43 +01:00
|
|
|
} STRUCT_PACKED beacon;
|
2016-04-02 15:53:04 +02:00
|
|
|
/* probe_req: only variable items: SSID, Supported rates */
|
2008-02-28 02:34:43 +01:00
|
|
|
struct {
|
|
|
|
u8 timestamp[8];
|
|
|
|
le16 beacon_int;
|
|
|
|
le16 capab_info;
|
|
|
|
/* followed by some of SSID, Supported rates,
|
|
|
|
* FH Params, DS Params, CF Params, IBSS Params */
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2008-02-28 02:34:43 +01:00
|
|
|
} STRUCT_PACKED probe_resp;
|
|
|
|
struct {
|
|
|
|
u8 category;
|
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
u8 action_code;
|
|
|
|
u8 dialog_token;
|
|
|
|
u8 status_code;
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2009-03-04 11:33:24 +01:00
|
|
|
} STRUCT_PACKED wmm_action;
|
2008-02-28 02:34:43 +01:00
|
|
|
struct{
|
|
|
|
u8 action_code;
|
|
|
|
u8 element_id;
|
|
|
|
u8 length;
|
|
|
|
u8 switch_mode;
|
|
|
|
u8 new_chan;
|
|
|
|
u8 switch_count;
|
|
|
|
} STRUCT_PACKED chan_switch;
|
|
|
|
struct {
|
|
|
|
u8 action;
|
|
|
|
u8 sta_addr[ETH_ALEN];
|
|
|
|
u8 target_ap_addr[ETH_ALEN];
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[]; /* FT Request */
|
2008-02-28 02:34:43 +01:00
|
|
|
} STRUCT_PACKED ft_action_req;
|
|
|
|
struct {
|
|
|
|
u8 action;
|
|
|
|
u8 sta_addr[ETH_ALEN];
|
|
|
|
u8 target_ap_addr[ETH_ALEN];
|
|
|
|
le16 status_code;
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[]; /* FT Request */
|
2008-02-28 02:34:43 +01:00
|
|
|
} STRUCT_PACKED ft_action_resp;
|
2008-08-30 13:59:39 +02:00
|
|
|
struct {
|
|
|
|
u8 action;
|
2008-12-26 10:46:21 +01:00
|
|
|
u8 trans_id[WLAN_SA_QUERY_TR_ID_LEN];
|
OCV: Include and verify OCI in SA Query frames
Include an OCI element in SA Query Request and Response frames if OCV
has been negotiated.
On Linux, a kernel patch is needed to let clients correctly handle SA
Query Requests that contain an OCI element. Without this patch, the
kernel will reply to the SA Query Request itself, without verifying the
included OCI. Additionally, the SA Query Response sent by the kernel
will not include an OCI element. The correct operation of the AP does
not require a kernel patch.
Without the corresponding kernel patch, SA Query Requests sent by the
client are still valid, meaning they do include an OCI element.
Note that an AP does not require any kernel patches. In other words, SA
Query frames sent and received by the AP are properly handled, even
without a kernel patch.
As a result, the kernel patch is only required to make the client properly
process and respond to a SA Query Request from the AP. Without this
patch, the client will send a SA Query Response without an OCI element,
causing the AP to silently ignore the response and eventually disconnect
the client from the network if OCV has been negotiated to be used.
Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
2018-08-06 21:46:34 +02:00
|
|
|
u8 variable[]; /* OCI element */
|
2008-12-26 10:46:21 +01:00
|
|
|
} STRUCT_PACKED sa_query_req;
|
2008-08-30 13:59:39 +02:00
|
|
|
struct {
|
2008-08-31 10:04:47 +02:00
|
|
|
u8 action; /* */
|
2008-12-26 10:46:21 +01:00
|
|
|
u8 trans_id[WLAN_SA_QUERY_TR_ID_LEN];
|
OCV: Include and verify OCI in SA Query frames
Include an OCI element in SA Query Request and Response frames if OCV
has been negotiated.
On Linux, a kernel patch is needed to let clients correctly handle SA
Query Requests that contain an OCI element. Without this patch, the
kernel will reply to the SA Query Request itself, without verifying the
included OCI. Additionally, the SA Query Response sent by the kernel
will not include an OCI element. The correct operation of the AP does
not require a kernel patch.
Without the corresponding kernel patch, SA Query Requests sent by the
client are still valid, meaning they do include an OCI element.
Note that an AP does not require any kernel patches. In other words, SA
Query frames sent and received by the AP are properly handled, even
without a kernel patch.
As a result, the kernel patch is only required to make the client properly
process and respond to a SA Query Request from the AP. Without this
patch, the client will send a SA Query Response without an OCI element,
causing the AP to silently ignore the response and eventually disconnect
the client from the network if OCV has been negotiated to be used.
Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
2018-08-06 21:46:34 +02:00
|
|
|
u8 variable[]; /* OCI element */
|
2008-12-26 10:46:21 +01:00
|
|
|
} STRUCT_PACKED sa_query_resp;
|
2012-02-26 16:20:00 +01:00
|
|
|
struct {
|
|
|
|
u8 action;
|
|
|
|
u8 dialogtoken;
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2012-02-26 16:20:00 +01:00
|
|
|
} STRUCT_PACKED wnm_sleep_req;
|
|
|
|
struct {
|
|
|
|
u8 action;
|
|
|
|
u8 dialogtoken;
|
|
|
|
le16 keydata_len;
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2012-02-26 16:20:00 +01:00
|
|
|
} STRUCT_PACKED wnm_sleep_resp;
|
2010-07-18 05:22:40 +02:00
|
|
|
struct {
|
|
|
|
u8 action;
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2010-07-18 05:22:40 +02:00
|
|
|
} STRUCT_PACKED public_action;
|
|
|
|
struct {
|
|
|
|
u8 action; /* 9 */
|
|
|
|
u8 oui[3];
|
|
|
|
/* Vendor-specific content */
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2010-07-18 05:22:40 +02:00
|
|
|
} STRUCT_PACKED vs_public_action;
|
2011-10-07 12:33:04 +02:00
|
|
|
struct {
|
|
|
|
u8 action; /* 7 */
|
|
|
|
u8 dialog_token;
|
|
|
|
u8 req_mode;
|
|
|
|
le16 disassoc_timer;
|
|
|
|
u8 validity_interval;
|
|
|
|
/* BSS Termination Duration (optional),
|
|
|
|
* Session Information URL (optional),
|
|
|
|
* BSS Transition Candidate List
|
|
|
|
* Entries */
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2011-10-07 12:33:04 +02:00
|
|
|
} STRUCT_PACKED bss_tm_req;
|
2012-12-22 19:27:30 +01:00
|
|
|
struct {
|
|
|
|
u8 action; /* 8 */
|
|
|
|
u8 dialog_token;
|
|
|
|
u8 status_code;
|
|
|
|
u8 bss_termination_delay;
|
|
|
|
/* Target BSSID (optional),
|
|
|
|
* BSS Transition Candidate List
|
|
|
|
* Entries (optional) */
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2012-12-22 19:27:30 +01:00
|
|
|
} STRUCT_PACKED bss_tm_resp;
|
2013-05-16 16:50:31 +02:00
|
|
|
struct {
|
|
|
|
u8 action; /* 6 */
|
|
|
|
u8 dialog_token;
|
|
|
|
u8 query_reason;
|
|
|
|
/* BSS Transition Candidate List
|
|
|
|
* Entries (optional) */
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2013-05-16 16:50:31 +02:00
|
|
|
} STRUCT_PACKED bss_tm_query;
|
2018-10-30 13:00:00 +01:00
|
|
|
struct {
|
|
|
|
u8 action; /* 11 */
|
|
|
|
u8 dialog_token;
|
|
|
|
u8 req_info;
|
|
|
|
} STRUCT_PACKED coloc_intf_req;
|
|
|
|
struct {
|
|
|
|
u8 action; /* 12 */
|
|
|
|
u8 dialog_token;
|
|
|
|
u8 variable[];
|
|
|
|
} STRUCT_PACKED coloc_intf_report;
|
2014-09-01 06:23:20 +02:00
|
|
|
struct {
|
|
|
|
u8 action; /* 15 */
|
Updates for stricter automatic memcpy bounds checking
Both Android's libc and glibc support _FORTIFY_SOURCE, a compiler
and libc feature which inserts automatic bounds checking into
common C functions such as memcpy() and strcpy(). If a buffer
overflow occurs when calling a hardened libc function, the
automatic bounds checking will safely shutdown the program and
prevent memory corruption.
Android is experimenting with _FORTIFY_SOURCE=3, a new fortify
level which enhances memcpy() to prevent overflowing an element
of a struct. Under the enhancements, code such as
struct foo {
char empty[0];
char one[1];
char a[10];
char b[10];
};
int main() {
foo myfoo;
int n = atoi("11");
memcpy(myfoo.a, "01234567890123456789", n);
return 0;
}
will cleanly crash when the memcpy() call is made.
Fixup hostap code to support the new level. Specifically:
* Fixup sha1_transform so it works with the enhanced bounds checking.
The old memcpy() code was attempting to write to context.h0, but that
structure element is too small and the write was extending (by design)
into h1, h2, h3, and h4. Use explicit assignments instead of
overflowing the struct element.
* Modify most of the structures in ieee802_11_defs.h to use ISO C99
flexible array members (https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html)
instead of a zero length array. Zero length arrays have zero length,
and any attempt to call memcpy() on such elements will always overflow.
Flexible array members have no such limitation. The only element not
adjusted is probe_req, since doing so will generate a compile time error,
and it's not obvious to me how to fix it.
Signed-off-by: Nick Kralevich <nnk@google.com>
2015-04-12 22:20:26 +02:00
|
|
|
u8 variable[];
|
2014-09-01 06:23:20 +02:00
|
|
|
} STRUCT_PACKED slf_prot_action;
|
2015-02-18 15:59:21 +01:00
|
|
|
struct {
|
|
|
|
u8 action;
|
|
|
|
u8 variable[];
|
|
|
|
} STRUCT_PACKED fst_action;
|
2016-04-06 18:42:09 +02:00
|
|
|
struct {
|
|
|
|
u8 action;
|
|
|
|
u8 dialog_token;
|
|
|
|
u8 variable[];
|
|
|
|
} STRUCT_PACKED rrm;
|
2008-02-28 02:34:43 +01:00
|
|
|
} u;
|
|
|
|
} STRUCT_PACKED action;
|
|
|
|
} u;
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2008-08-21 17:18:38 +02:00
|
|
|
|
2016-04-06 18:42:09 +02:00
|
|
|
#define IEEE80211_MAX_MMPDU_SIZE 2304
|
|
|
|
|
2012-01-29 20:01:31 +01:00
|
|
|
/* Rx MCS bitmask is in the first 77 bits of supported_mcs_set */
|
|
|
|
#define IEEE80211_HT_MCS_MASK_LEN 10
|
|
|
|
|
2014-04-07 21:45:11 +02:00
|
|
|
/* HT Capabilities element */
|
2009-11-29 11:02:29 +01:00
|
|
|
struct ieee80211_ht_capabilities {
|
|
|
|
le16 ht_capabilities_info;
|
2014-04-07 21:45:11 +02:00
|
|
|
u8 a_mpdu_params; /* Maximum A-MPDU Length Exponent B0..B1
|
|
|
|
* Minimum MPDU Start Spacing B2..B4
|
|
|
|
* Reserved B5..B7 */
|
2008-08-21 17:18:38 +02:00
|
|
|
u8 supported_mcs_set[16];
|
2009-11-29 11:02:29 +01:00
|
|
|
le16 ht_extended_capabilities;
|
|
|
|
le32 tx_bf_capability_info;
|
|
|
|
u8 asel_capabilities;
|
2008-08-21 17:18:38 +02:00
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
|
2014-04-07 21:45:11 +02:00
|
|
|
/* HT Operation element */
|
2008-08-21 17:18:38 +02:00
|
|
|
struct ieee80211_ht_operation {
|
2014-04-07 21:45:11 +02:00
|
|
|
u8 primary_chan;
|
|
|
|
/* Five octets of HT Operation Information */
|
|
|
|
u8 ht_param; /* B0..B7 */
|
|
|
|
le16 operation_mode; /* B8..B23 */
|
|
|
|
le16 param; /* B24..B39 */
|
|
|
|
u8 basic_mcs_set[16];
|
2008-08-21 17:18:38 +02:00
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2012-06-30 12:52:13 +02:00
|
|
|
|
2013-09-04 17:59:52 +02:00
|
|
|
struct ieee80211_obss_scan_parameters {
|
|
|
|
le16 scan_passive_dwell;
|
|
|
|
le16 scan_active_dwell;
|
|
|
|
le16 width_trigger_scan_interval;
|
|
|
|
le16 scan_passive_total_per_channel;
|
|
|
|
le16 scan_active_total_per_channel;
|
|
|
|
le16 channel_transition_delay_factor;
|
|
|
|
le16 scan_activity_threshold;
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
|
2012-06-30 12:52:13 +02:00
|
|
|
struct ieee80211_vht_capabilities {
|
|
|
|
le32 vht_capabilities_info;
|
2013-03-01 17:24:57 +01:00
|
|
|
struct {
|
|
|
|
le16 rx_map;
|
|
|
|
le16 rx_highest;
|
|
|
|
le16 tx_map;
|
|
|
|
le16 tx_highest;
|
|
|
|
} vht_supported_mcs_set;
|
2012-06-30 12:52:13 +02:00
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
struct ieee80211_vht_operation {
|
|
|
|
u8 vht_op_info_chwidth;
|
|
|
|
u8 vht_op_info_chan_center_freq_seg0_idx;
|
|
|
|
u8 vht_op_info_chan_center_freq_seg1_idx;
|
|
|
|
le16 vht_basic_mcs_set;
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2014-09-01 06:23:20 +02:00
|
|
|
struct ieee80211_ampe_ie {
|
|
|
|
u8 selected_pairwise_suite[4];
|
|
|
|
u8 local_nonce[32];
|
|
|
|
u8 peer_nonce[32];
|
2016-06-18 13:11:23 +02:00
|
|
|
/* Followed by
|
|
|
|
* Key Replay Counter[8] (optional)
|
|
|
|
* (only in Mesh Group Key Inform/Acknowledge frames)
|
|
|
|
* GTKdata[variable] (optional)
|
|
|
|
* (MGTK[variable] || Key RSC[8] || GTKExpirationTime[4])
|
|
|
|
* IGTKdata[variable] (optional)
|
|
|
|
* (Key ID[2], IPN[6], IGTK[variable] in IGTK KDE format)
|
|
|
|
*/
|
2014-09-01 06:23:20 +02:00
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2009-11-29 11:43:23 +01:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma pack(pop)
|
|
|
|
#endif /* _MSC_VER */
|
2008-08-21 17:18:38 +02:00
|
|
|
|
2009-11-29 11:43:23 +01:00
|
|
|
#define ERP_INFO_NON_ERP_PRESENT BIT(0)
|
|
|
|
#define ERP_INFO_USE_PROTECTION BIT(1)
|
|
|
|
#define ERP_INFO_BARKER_PREAMBLE_MODE BIT(2)
|
2008-08-21 17:18:38 +02:00
|
|
|
|
2014-04-14 19:40:56 +02:00
|
|
|
#define OVERLAPPING_BSS_TRANS_DELAY_FACTOR 5
|
2008-08-21 17:18:38 +02:00
|
|
|
|
2014-04-07 21:45:11 +02:00
|
|
|
/* HT Capabilities Info field within HT Capabilities element */
|
2008-11-24 14:08:02 +01:00
|
|
|
#define HT_CAP_INFO_LDPC_CODING_CAP ((u16) BIT(0))
|
2008-08-21 17:18:38 +02:00
|
|
|
#define HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET ((u16) BIT(1))
|
2008-11-24 14:44:25 +01:00
|
|
|
#define HT_CAP_INFO_SMPS_MASK ((u16) (BIT(2) | BIT(3)))
|
|
|
|
#define HT_CAP_INFO_SMPS_STATIC ((u16) 0)
|
|
|
|
#define HT_CAP_INFO_SMPS_DYNAMIC ((u16) BIT(2))
|
|
|
|
#define HT_CAP_INFO_SMPS_DISABLED ((u16) (BIT(2) | BIT(3)))
|
2008-08-21 17:18:38 +02:00
|
|
|
#define HT_CAP_INFO_GREEN_FIELD ((u16) BIT(4))
|
|
|
|
#define HT_CAP_INFO_SHORT_GI20MHZ ((u16) BIT(5))
|
|
|
|
#define HT_CAP_INFO_SHORT_GI40MHZ ((u16) BIT(6))
|
|
|
|
#define HT_CAP_INFO_TX_STBC ((u16) BIT(7))
|
2008-11-24 14:44:25 +01:00
|
|
|
#define HT_CAP_INFO_RX_STBC_MASK ((u16) (BIT(8) | BIT(9)))
|
|
|
|
#define HT_CAP_INFO_RX_STBC_1 ((u16) BIT(8))
|
|
|
|
#define HT_CAP_INFO_RX_STBC_12 ((u16) BIT(9))
|
|
|
|
#define HT_CAP_INFO_RX_STBC_123 ((u16) (BIT(8) | BIT(9)))
|
2008-08-21 17:18:38 +02:00
|
|
|
#define HT_CAP_INFO_DELAYED_BA ((u16) BIT(10))
|
|
|
|
#define HT_CAP_INFO_MAX_AMSDU_SIZE ((u16) BIT(11))
|
|
|
|
#define HT_CAP_INFO_DSSS_CCK40MHZ ((u16) BIT(12))
|
2014-04-07 21:02:14 +02:00
|
|
|
/* B13 - Reserved (was PSMP support during P802.11n development) */
|
2008-11-24 14:08:02 +01:00
|
|
|
#define HT_CAP_INFO_40MHZ_INTOLERANT ((u16) BIT(14))
|
2008-08-21 17:18:38 +02:00
|
|
|
#define HT_CAP_INFO_LSIG_TXOP_PROTECT_SUPPORT ((u16) BIT(15))
|
|
|
|
|
2014-04-07 21:45:11 +02:00
|
|
|
/* HT Extended Capabilities field within HT Capabilities element */
|
2008-08-21 17:18:38 +02:00
|
|
|
#define EXT_HT_CAP_INFO_PCO ((u16) BIT(0))
|
2014-04-07 21:45:11 +02:00
|
|
|
#define EXT_HT_CAP_INFO_PCO_TRANS_TIME_MASK ((u16) (BIT(1) | BIT(2)))
|
2008-08-21 17:18:38 +02:00
|
|
|
#define EXT_HT_CAP_INFO_TRANS_TIME_OFFSET 1
|
2014-04-07 21:45:11 +02:00
|
|
|
/* B3..B7 - Reserved */
|
|
|
|
#define EXT_HT_CAP_INFO_MCS_FEEDBACK_MASK ((u16) (BIT(8) | BIT(9)))
|
2008-08-21 17:18:38 +02:00
|
|
|
#define EXT_HT_CAP_INFO_MCS_FEEDBACK_OFFSET 8
|
2014-04-07 21:45:11 +02:00
|
|
|
#define EXT_HT_CAP_INFO_HTC_SUPPORT ((u16) BIT(10))
|
2008-08-21 17:18:38 +02:00
|
|
|
#define EXT_HT_CAP_INFO_RD_RESPONDER ((u16) BIT(11))
|
2014-04-07 21:45:11 +02:00
|
|
|
/* B12..B15 - Reserved */
|
|
|
|
|
|
|
|
/* Transmit Beanforming Capabilities within HT Capabilities element */
|
|
|
|
#define TX_BF_CAP_IMPLICIT_TXBF_RX_CAP ((u32) BIT(0))
|
|
|
|
#define TX_BF_CAP_RX_STAGGERED_SOUNDING_CAP ((u32) BIT(1))
|
|
|
|
#define TX_BF_CAP_TX_STAGGERED_SOUNDING_CAP ((u32) BIT(2))
|
|
|
|
#define TX_BF_CAP_RX_NDP_CAP ((u32) BIT(3))
|
|
|
|
#define TX_BF_CAP_TX_NDP_CAP ((u32) BIT(4))
|
|
|
|
#define TX_BF_CAP_IMPLICIT_TX_BF_CAP ((u32) BIT(5))
|
|
|
|
#define TX_BF_CAP_CALIBRATION_MASK ((u32) (BIT(6) | BIT(7))
|
|
|
|
#define TX_BF_CAP_CALIB_OFFSET 6
|
|
|
|
#define TX_BF_CAP_EXPLICIT_CSI_TXBF_CAP ((u32) BIT(8))
|
|
|
|
#define TX_BF_CAP_EXPLICIT_NONCOMPR_STEERING_CAP ((u32) BIT(9))
|
|
|
|
#define TX_BF_CAP_EXPLICIT_COMPR_STEERING_CAP ((u32) BIT(10))
|
|
|
|
#define TX_BF_CAP_EXPLICIT_TX_BF_CSI_FEEDBACK_MASK ((u32) (BIT(10) | BIT(11)))
|
|
|
|
#define TX_BF_CAP_EXPLICIT_BF_CSI_FEEDBACK_OFFSET 11
|
|
|
|
#define TX_BF_CAP_EXPLICIT_UNCOMPR_STEERING_MATRIX_FEEDBACK_OFFSET 13
|
|
|
|
#define TX_BF_CAP_EXPLICIT_COMPRESSED_STEERING_MATRIX_FEEDBACK_OFFSET 15
|
|
|
|
#define TX_BF_CAP_MINIMAL_GROUPING_OFFSET 17
|
|
|
|
#define TX_BF_CAP_CSI_NUM_BEAMFORMER_ANT_OFFSET 19
|
|
|
|
#define TX_BF_CAP_UNCOMPRESSED_STEERING_MATRIX_BEAMFORMER_ANT_OFFSET 21
|
|
|
|
#define TX_BF_CAP_COMPRESSED_STEERING_MATRIX_BEAMFORMER_ANT_OFFSET 23
|
|
|
|
#define TX_BF_CAP_SCI_MAX_OF_ROWS_BEANFORMER_SUPPORTED_OFFSET 25
|
|
|
|
#define TX_BF_CAP_CHANNEL_ESTIMATION_CAP_MASK ((u32) (BIT(27) | BIT(28)))
|
|
|
|
#define TX_BF_CAP_CHANNEL_ESTIMATION_CAP_OFFSET 27
|
|
|
|
/* B29..B31 - Reserved */
|
|
|
|
|
|
|
|
/* ASEL Capability field within HT Capabilities element */
|
|
|
|
#define ASEL_CAP_ASEL_CAPABLE ((u8) BIT(0))
|
|
|
|
#define ASEL_CAP_EXPLICIT_CSI_FEEDBACK_BASED_TX_AS_CAP ((u8) BIT(1))
|
|
|
|
#define ASEL_CAP_ANT_INDICES_FEEDBACK_BASED_TX_AS_CAP ((u8) BIT(2))
|
|
|
|
#define ASEL_CAP_EXPLICIT_CSI_FEEDBACK_CAP ((u8) BIT(3))
|
|
|
|
#define ASEL_CAP_ANT_INDICES_FEEDBACK_CAP ((u8) BIT(4))
|
|
|
|
#define ASEL_CAP_RX_AS_CAP ((u8) BIT(5))
|
|
|
|
#define ASEL_CAP_TX_SOUNDING_PPDUS_CAP ((u8) BIT(6))
|
|
|
|
/* B7 - Reserved */
|
|
|
|
|
|
|
|
/* First octet of HT Operation Information within HT Operation element */
|
2008-11-24 15:33:45 +01:00
|
|
|
#define HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK ((u8) BIT(0) | BIT(1))
|
|
|
|
#define HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE ((u8) BIT(0))
|
|
|
|
#define HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW ((u8) BIT(0) | BIT(1))
|
2014-04-07 21:45:11 +02:00
|
|
|
#define HT_INFO_HT_PARAM_STA_CHNL_WIDTH ((u8) BIT(2))
|
2008-08-21 17:18:38 +02:00
|
|
|
#define HT_INFO_HT_PARAM_RIFS_MODE ((u8) BIT(3))
|
2014-04-07 21:45:11 +02:00
|
|
|
/* B4..B7 - Reserved */
|
|
|
|
|
|
|
|
/* HT Protection (B8..B9 of HT Operation Information) */
|
|
|
|
#define HT_PROT_NO_PROTECTION 0
|
|
|
|
#define HT_PROT_NONMEMBER_PROTECTION 1
|
|
|
|
#define HT_PROT_20MHZ_PROTECTION 2
|
|
|
|
#define HT_PROT_NON_HT_MIXED 3
|
|
|
|
/* Bits within ieee80211_ht_operation::operation_mode (BIT(0) maps to B8 in
|
|
|
|
* HT Operation Information) */
|
|
|
|
#define HT_OPER_OP_MODE_HT_PROT_MASK ((u16) (BIT(0) | BIT(1))) /* B8..B9 */
|
|
|
|
#define HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT ((u16) BIT(2)) /* B10 */
|
|
|
|
/* BIT(3), i.e., B11 in HT Operation Information field - Reserved */
|
|
|
|
#define HT_OPER_OP_MODE_OBSS_NON_HT_STAS_PRESENT ((u16) BIT(4)) /* B12 */
|
|
|
|
/* BIT(5)..BIT(15), i.e., B13..B23 - Reserved */
|
|
|
|
|
|
|
|
/* Last two octets of HT Operation Information (BIT(0) = B24) */
|
|
|
|
/* B24..B29 - Reserved */
|
|
|
|
#define HT_OPER_PARAM_DUAL_BEACON ((u16) BIT(6))
|
|
|
|
#define HT_OPER_PARAM_DUAL_CTS_PROTECTION ((u16) BIT(7))
|
|
|
|
#define HT_OPER_PARAM_STBC_BEACON ((u16) BIT(8))
|
|
|
|
#define HT_OPER_PARAM_LSIG_TXOP_PROT_FULL_SUPP ((u16) BIT(9))
|
|
|
|
#define HT_OPER_PARAM_PCO_ACTIVE ((u16) BIT(10))
|
|
|
|
#define HT_OPER_PARAM_PCO_PHASE ((u16) BIT(11))
|
|
|
|
/* B36..B39 - Reserved */
|
2008-08-21 17:18:38 +02:00
|
|
|
|
2012-11-24 16:27:16 +01:00
|
|
|
#define BSS_MEMBERSHIP_SELECTOR_VHT_PHY 126
|
2011-02-09 14:08:47 +01:00
|
|
|
#define BSS_MEMBERSHIP_SELECTOR_HT_PHY 127
|
2019-09-06 14:46:10 +02:00
|
|
|
#define BSS_MEMBERSHIP_SELECTOR_SAE_H2E_ONLY 123
|
2008-08-21 17:18:38 +02:00
|
|
|
|
2012-06-30 12:52:13 +02:00
|
|
|
/* VHT Defines */
|
|
|
|
#define VHT_CAP_MAX_MPDU_LENGTH_7991 ((u32) BIT(0))
|
|
|
|
#define VHT_CAP_MAX_MPDU_LENGTH_11454 ((u32) BIT(1))
|
2013-10-27 18:11:29 +01:00
|
|
|
#define VHT_CAP_MAX_MPDU_LENGTH_MASK ((u32) BIT(0) | BIT(1))
|
2014-12-14 18:00:38 +01:00
|
|
|
#define VHT_CAP_MAX_MPDU_LENGTH_MASK_SHIFT 0
|
2012-06-30 12:52:13 +02:00
|
|
|
#define VHT_CAP_SUPP_CHAN_WIDTH_160MHZ ((u32) BIT(2))
|
|
|
|
#define VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ ((u32) BIT(3))
|
2013-10-27 18:28:40 +01:00
|
|
|
#define VHT_CAP_SUPP_CHAN_WIDTH_MASK ((u32) BIT(2) | BIT(3))
|
2017-06-09 11:39:51 +02:00
|
|
|
#define VHT_CAP_SUPP_CHAN_WIDTH_MASK_SHIFT 2
|
2012-06-30 12:52:13 +02:00
|
|
|
#define VHT_CAP_RXLDPC ((u32) BIT(4))
|
|
|
|
#define VHT_CAP_SHORT_GI_80 ((u32) BIT(5))
|
|
|
|
#define VHT_CAP_SHORT_GI_160 ((u32) BIT(6))
|
|
|
|
#define VHT_CAP_TXSTBC ((u32) BIT(7))
|
|
|
|
#define VHT_CAP_RXSTBC_1 ((u32) BIT(8))
|
|
|
|
#define VHT_CAP_RXSTBC_2 ((u32) BIT(9))
|
|
|
|
#define VHT_CAP_RXSTBC_3 ((u32) BIT(8) | BIT(9))
|
|
|
|
#define VHT_CAP_RXSTBC_4 ((u32) BIT(10))
|
2013-10-27 18:11:29 +01:00
|
|
|
#define VHT_CAP_RXSTBC_MASK ((u32) BIT(8) | BIT(9) | \
|
|
|
|
BIT(10))
|
2014-12-14 18:00:38 +01:00
|
|
|
#define VHT_CAP_RXSTBC_MASK_SHIFT 8
|
2012-06-30 12:52:13 +02:00
|
|
|
#define VHT_CAP_SU_BEAMFORMER_CAPABLE ((u32) BIT(11))
|
|
|
|
#define VHT_CAP_SU_BEAMFORMEE_CAPABLE ((u32) BIT(12))
|
2013-10-27 18:05:58 +01:00
|
|
|
#define VHT_CAP_BEAMFORMEE_STS_MAX ((u32) BIT(13) | \
|
|
|
|
BIT(14) | BIT(15))
|
2014-12-14 18:00:38 +01:00
|
|
|
#define VHT_CAP_BEAMFORMEE_STS_MAX_SHIFT 13
|
2013-10-27 18:05:58 +01:00
|
|
|
#define VHT_CAP_BEAMFORMEE_STS_OFFSET 13
|
|
|
|
#define VHT_CAP_SOUNDING_DIMENSION_MAX ((u32) BIT(16) | \
|
|
|
|
BIT(17) | BIT(18))
|
2014-12-14 18:00:38 +01:00
|
|
|
#define VHT_CAP_SOUNDING_DIMENSION_MAX_SHIFT 16
|
2013-10-27 18:05:58 +01:00
|
|
|
#define VHT_CAP_SOUNDING_DIMENSION_OFFSET 16
|
2012-06-30 12:52:13 +02:00
|
|
|
#define VHT_CAP_MU_BEAMFORMER_CAPABLE ((u32) BIT(19))
|
|
|
|
#define VHT_CAP_MU_BEAMFORMEE_CAPABLE ((u32) BIT(20))
|
|
|
|
#define VHT_CAP_VHT_TXOP_PS ((u32) BIT(21))
|
|
|
|
#define VHT_CAP_HTC_VHT ((u32) BIT(22))
|
2014-02-26 10:39:47 +01:00
|
|
|
|
|
|
|
#define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_1 ((u32) BIT(23))
|
|
|
|
#define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_2 ((u32) BIT(24))
|
|
|
|
#define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_3 ((u32) BIT(23) | BIT(24))
|
|
|
|
#define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_4 ((u32) BIT(25))
|
|
|
|
#define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_5 ((u32) BIT(23) | BIT(25))
|
|
|
|
#define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_6 ((u32) BIT(24) | BIT(25))
|
|
|
|
#define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX ((u32) BIT(23) | \
|
2013-10-27 18:05:58 +01:00
|
|
|
BIT(24) | BIT(25))
|
2014-12-14 17:44:10 +01:00
|
|
|
#define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX_SHIFT 23
|
2012-06-30 12:52:13 +02:00
|
|
|
#define VHT_CAP_VHT_LINK_ADAPTATION_VHT_UNSOL_MFB ((u32) BIT(27))
|
|
|
|
#define VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB ((u32) BIT(26) | BIT(27))
|
|
|
|
#define VHT_CAP_RX_ANTENNA_PATTERN ((u32) BIT(28))
|
|
|
|
#define VHT_CAP_TX_ANTENNA_PATTERN ((u32) BIT(29))
|
|
|
|
|
2014-02-10 13:43:05 +01:00
|
|
|
#define VHT_OPMODE_CHANNEL_WIDTH_MASK ((u8) BIT(0) | BIT(1))
|
|
|
|
#define VHT_OPMODE_CHANNEL_RxNSS_MASK ((u8) BIT(4) | BIT(5) | \
|
|
|
|
BIT(6))
|
|
|
|
#define VHT_OPMODE_NOTIF_RX_NSS_SHIFT 4
|
|
|
|
|
|
|
|
#define VHT_RX_NSS_MAX_STREAMS 8
|
|
|
|
|
2012-12-28 16:24:21 +01:00
|
|
|
/* VHT channel widths */
|
2019-05-20 09:55:06 +02:00
|
|
|
#define CHANWIDTH_USE_HT 0
|
|
|
|
#define CHANWIDTH_80MHZ 1
|
|
|
|
#define CHANWIDTH_160MHZ 2
|
|
|
|
#define CHANWIDTH_80P80MHZ 3
|
2012-12-28 16:24:21 +01:00
|
|
|
|
2019-05-20 09:55:05 +02:00
|
|
|
#define HE_NSS_MAX_STREAMS 8
|
|
|
|
|
2008-10-29 20:48:14 +01:00
|
|
|
#define OUI_MICROSOFT 0x0050f2 /* Microsoft (also used in Wi-Fi specs)
|
|
|
|
* 00:50:F2 */
|
2009-12-10 11:27:46 +01:00
|
|
|
#define WPA_IE_VENDOR_TYPE 0x0050f201
|
2014-07-04 19:14:19 +02:00
|
|
|
#define WMM_IE_VENDOR_TYPE 0x0050f202
|
2009-12-10 11:27:46 +01:00
|
|
|
#define WPS_IE_VENDOR_TYPE 0x0050f204
|
2010-07-18 23:30:24 +02:00
|
|
|
#define OUI_WFA 0x506f9a
|
|
|
|
#define P2P_IE_VENDOR_TYPE 0x506f9a09
|
2012-03-02 16:26:01 +01:00
|
|
|
#define WFD_IE_VENDOR_TYPE 0x506f9a0a
|
|
|
|
#define WFD_OUI_TYPE 10
|
2011-10-03 17:23:01 +02:00
|
|
|
#define HS20_IE_VENDOR_TYPE 0x506f9a10
|
2013-07-23 20:23:25 +02:00
|
|
|
#define OSEN_IE_VENDOR_TYPE 0x506f9a12
|
2016-02-15 15:53:19 +01:00
|
|
|
#define MBO_IE_VENDOR_TYPE 0x506f9a16
|
|
|
|
#define MBO_OUI_TYPE 22
|
2017-10-08 11:23:00 +02:00
|
|
|
#define OWE_IE_VENDOR_TYPE 0x506f9a1c
|
|
|
|
#define OWE_OUI_TYPE 28
|
2018-12-05 11:23:51 +01:00
|
|
|
#define MULTI_AP_OUI_TYPE 0x1B
|
|
|
|
|
|
|
|
#define MULTI_AP_SUB_ELEM_TYPE 0x06
|
|
|
|
#define MULTI_AP_TEAR_DOWN BIT(4)
|
|
|
|
#define MULTI_AP_FRONTHAUL_BSS BIT(5)
|
|
|
|
#define MULTI_AP_BACKHAUL_BSS BIT(6)
|
|
|
|
#define MULTI_AP_BACKHAUL_STA BIT(7)
|
2008-10-29 20:48:14 +01:00
|
|
|
|
2009-03-04 11:33:24 +01:00
|
|
|
#define WMM_OUI_TYPE 2
|
|
|
|
#define WMM_OUI_SUBTYPE_INFORMATION_ELEMENT 0
|
|
|
|
#define WMM_OUI_SUBTYPE_PARAMETER_ELEMENT 1
|
|
|
|
#define WMM_OUI_SUBTYPE_TSPEC_ELEMENT 2
|
|
|
|
#define WMM_VERSION 1
|
|
|
|
|
|
|
|
#define WMM_ACTION_CODE_ADDTS_REQ 0
|
|
|
|
#define WMM_ACTION_CODE_ADDTS_RESP 1
|
|
|
|
#define WMM_ACTION_CODE_DELTS 2
|
|
|
|
|
|
|
|
#define WMM_ADDTS_STATUS_ADMISSION_ACCEPTED 0
|
|
|
|
#define WMM_ADDTS_STATUS_INVALID_PARAMETERS 1
|
|
|
|
/* 2 - Reserved */
|
|
|
|
#define WMM_ADDTS_STATUS_REFUSED 3
|
|
|
|
/* 4-255 - Reserved */
|
|
|
|
|
|
|
|
/* WMM TSPEC Direction Field Values */
|
|
|
|
#define WMM_TSPEC_DIRECTION_UPLINK 0
|
|
|
|
#define WMM_TSPEC_DIRECTION_DOWNLINK 1
|
|
|
|
/* 2 - Reserved */
|
|
|
|
#define WMM_TSPEC_DIRECTION_BI_DIRECTIONAL 3
|
2008-10-29 20:48:14 +01:00
|
|
|
|
2009-03-06 19:12:31 +01:00
|
|
|
/*
|
|
|
|
* WMM Information Element (used in (Re)Association Request frames; may also be
|
|
|
|
* used in Beacon frames)
|
|
|
|
*/
|
|
|
|
struct wmm_information_element {
|
|
|
|
/* Element ID: 221 (0xdd); Length: 7 */
|
|
|
|
/* required fields for WMM version 1 */
|
|
|
|
u8 oui[3]; /* 00:50:f2 */
|
|
|
|
u8 oui_type; /* 2 */
|
|
|
|
u8 oui_subtype; /* 0 */
|
|
|
|
u8 version; /* 1 for WMM version 1.0 */
|
|
|
|
u8 qos_info; /* AP/STA specific QoS info */
|
|
|
|
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2014-10-22 14:03:54 +02:00
|
|
|
#define WMM_QOSINFO_AP_UAPSD 0x80
|
|
|
|
|
2011-12-17 11:38:06 +01:00
|
|
|
#define WMM_QOSINFO_STA_AC_MASK 0x0f
|
|
|
|
#define WMM_QOSINFO_STA_SP_MASK 0x03
|
|
|
|
#define WMM_QOSINFO_STA_SP_SHIFT 5
|
|
|
|
|
2009-03-06 19:12:31 +01:00
|
|
|
#define WMM_AC_AIFSN_MASK 0x0f
|
|
|
|
#define WMM_AC_AIFNS_SHIFT 0
|
|
|
|
#define WMM_AC_ACM 0x10
|
|
|
|
#define WMM_AC_ACI_MASK 0x60
|
|
|
|
#define WMM_AC_ACI_SHIFT 5
|
|
|
|
|
|
|
|
#define WMM_AC_ECWMIN_MASK 0x0f
|
|
|
|
#define WMM_AC_ECWMIN_SHIFT 0
|
|
|
|
#define WMM_AC_ECWMAX_MASK 0xf0
|
|
|
|
#define WMM_AC_ECWMAX_SHIFT 4
|
|
|
|
|
|
|
|
struct wmm_ac_parameter {
|
|
|
|
u8 aci_aifsn; /* AIFSN, ACM, ACI */
|
|
|
|
u8 cw; /* ECWmin, ECWmax (CW = 2^ECW - 1) */
|
|
|
|
le16 txop_limit;
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* WMM Parameter Element (used in Beacon, Probe Response, and (Re)Association
|
|
|
|
* Response frmaes)
|
|
|
|
*/
|
|
|
|
struct wmm_parameter_element {
|
|
|
|
/* Element ID: 221 (0xdd); Length: 24 */
|
|
|
|
/* required fields for WMM version 1 */
|
|
|
|
u8 oui[3]; /* 00:50:f2 */
|
|
|
|
u8 oui_type; /* 2 */
|
|
|
|
u8 oui_subtype; /* 1 */
|
|
|
|
u8 version; /* 1 for WMM version 1.0 */
|
2011-09-21 23:43:59 +02:00
|
|
|
u8 qos_info; /* AP/STA specific QoS info */
|
2009-03-06 19:12:31 +01:00
|
|
|
u8 reserved; /* 0 */
|
|
|
|
struct wmm_ac_parameter ac[4]; /* AC_BE, AC_BK, AC_VI, AC_VO */
|
|
|
|
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
/* WMM TSPEC Element */
|
|
|
|
struct wmm_tspec_element {
|
|
|
|
u8 eid; /* 221 = 0xdd */
|
|
|
|
u8 length; /* 6 + 55 = 61 */
|
|
|
|
u8 oui[3]; /* 00:50:f2 */
|
|
|
|
u8 oui_type; /* 2 */
|
|
|
|
u8 oui_subtype; /* 2 */
|
|
|
|
u8 version; /* 1 */
|
|
|
|
/* WMM TSPEC body (55 octets): */
|
|
|
|
u8 ts_info[3];
|
|
|
|
le16 nominal_msdu_size;
|
|
|
|
le16 maximum_msdu_size;
|
|
|
|
le32 minimum_service_interval;
|
|
|
|
le32 maximum_service_interval;
|
|
|
|
le32 inactivity_interval;
|
|
|
|
le32 suspension_interval;
|
|
|
|
le32 service_start_time;
|
|
|
|
le32 minimum_data_rate;
|
|
|
|
le32 mean_data_rate;
|
|
|
|
le32 peak_data_rate;
|
|
|
|
le32 maximum_burst_size;
|
|
|
|
le32 delay_bound;
|
|
|
|
le32 minimum_phy_rate;
|
|
|
|
le16 surplus_bandwidth_allowance;
|
|
|
|
le16 medium_time;
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
|
|
|
|
/* Access Categories / ACI to AC coding */
|
2014-10-22 14:03:54 +02:00
|
|
|
enum wmm_ac {
|
2009-03-06 19:12:31 +01:00
|
|
|
WMM_AC_BE = 0 /* Best Effort */,
|
|
|
|
WMM_AC_BK = 1 /* Background */,
|
|
|
|
WMM_AC_VI = 2 /* Video */,
|
2014-10-22 14:03:54 +02:00
|
|
|
WMM_AC_VO = 3 /* Voice */,
|
|
|
|
WMM_AC_NUM = 4
|
2009-03-06 19:12:31 +01:00
|
|
|
};
|
|
|
|
|
2008-12-04 12:42:33 +01:00
|
|
|
|
2011-10-16 18:40:32 +02:00
|
|
|
#define HS20_INDICATION_OUI_TYPE 16
|
|
|
|
#define HS20_ANQP_OUI_TYPE 17
|
2013-07-23 20:23:25 +02:00
|
|
|
#define HS20_OSEN_OUI_TYPE 18
|
2018-04-17 12:08:31 +02:00
|
|
|
#define HS20_ROAMING_CONS_SEL_OUI_TYPE 29
|
2011-10-16 18:40:32 +02:00
|
|
|
#define HS20_STYPE_QUERY_LIST 1
|
|
|
|
#define HS20_STYPE_CAPABILITY_LIST 2
|
|
|
|
#define HS20_STYPE_OPERATOR_FRIENDLY_NAME 3
|
|
|
|
#define HS20_STYPE_WAN_METRICS 4
|
|
|
|
#define HS20_STYPE_CONNECTION_CAPABILITY 5
|
|
|
|
#define HS20_STYPE_NAI_HOME_REALM_QUERY 6
|
|
|
|
#define HS20_STYPE_OPERATING_CLASS 7
|
2013-01-08 22:51:16 +01:00
|
|
|
#define HS20_STYPE_OSU_PROVIDERS_LIST 8
|
2012-12-20 20:15:05 +01:00
|
|
|
#define HS20_STYPE_ICON_REQUEST 10
|
|
|
|
#define HS20_STYPE_ICON_BINARY_FILE 11
|
2018-04-16 12:16:39 +02:00
|
|
|
#define HS20_STYPE_OPERATOR_ICON_METADATA 12
|
2018-10-05 19:49:42 +02:00
|
|
|
#define HS20_STYPE_OSU_PROVIDERS_NAI_LIST 13
|
2011-10-16 18:40:32 +02:00
|
|
|
|
2012-11-02 11:08:11 +01:00
|
|
|
#define HS20_DGAF_DISABLED 0x01
|
|
|
|
#define HS20_PPS_MO_ID_PRESENT 0x02
|
|
|
|
#define HS20_ANQP_DOMAIN_ID_PRESENT 0x04
|
2018-06-18 18:42:38 +02:00
|
|
|
#ifndef HS20_VERSION
|
2018-12-07 23:55:01 +01:00
|
|
|
#define HS20_VERSION 0x20 /* Release 3 */
|
2018-06-18 18:42:38 +02:00
|
|
|
#endif /* HS20_VERSION */
|
2012-11-02 11:08:11 +01:00
|
|
|
|
2012-11-02 12:05:57 +01:00
|
|
|
/* WNM-Notification WFA vendors specific subtypes */
|
|
|
|
#define HS20_WNM_SUB_REM_NEEDED 0
|
2013-07-26 21:12:37 +02:00
|
|
|
#define HS20_WNM_DEAUTH_IMMINENT_NOTICE 1
|
2019-01-31 11:57:04 +01:00
|
|
|
#define WFA_WNM_NOTIF_SUBELEM_NON_PREF_CHAN_REPORT 2
|
|
|
|
#define WFA_WNM_NOTIF_SUBELEM_CELL_DATA_CAPA 3
|
2019-01-31 11:54:33 +01:00
|
|
|
#define HS20_WNM_T_C_ACCEPTANCE 4
|
2013-07-26 21:12:37 +02:00
|
|
|
|
|
|
|
#define HS20_DEAUTH_REASON_CODE_BSS 0
|
|
|
|
#define HS20_DEAUTH_REASON_CODE_ESS 1
|
2012-11-02 12:05:57 +01:00
|
|
|
|
2016-02-15 15:53:19 +01:00
|
|
|
/* MBO v0.0_r19, 4.2: MBO Attributes */
|
|
|
|
/* Table 4-5: MBO Attributes */
|
2017-06-15 09:29:32 +02:00
|
|
|
/* OCE v0.0.10, Table 4-3: OCE Attributes */
|
2016-02-15 15:53:19 +01:00
|
|
|
enum mbo_attr_id {
|
|
|
|
MBO_ATTR_ID_AP_CAPA_IND = 1,
|
|
|
|
MBO_ATTR_ID_NON_PREF_CHAN_REPORT = 2,
|
|
|
|
MBO_ATTR_ID_CELL_DATA_CAPA = 3,
|
|
|
|
MBO_ATTR_ID_ASSOC_DISALLOW = 4,
|
|
|
|
MBO_ATTR_ID_CELL_DATA_PREF = 5,
|
|
|
|
MBO_ATTR_ID_TRANSITION_REASON = 6,
|
|
|
|
MBO_ATTR_ID_TRANSITION_REJECT_REASON = 7,
|
|
|
|
MBO_ATTR_ID_ASSOC_RETRY_DELAY = 8,
|
2017-06-15 09:29:32 +02:00
|
|
|
OCE_ATTR_ID_CAPA_IND = 101,
|
|
|
|
OCE_ATTR_ID_RSSI_BASED_ASSOC_REJECT = 102,
|
|
|
|
OCE_ATTR_ID_REDUCED_WAN_METRICS = 103,
|
|
|
|
OCE_ATTR_ID_RNR_COMPLETENESS = 104,
|
2016-02-15 15:53:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/* MBO v0.0_r19, 4.2.1: MBO AP Capability Indication Attribute */
|
|
|
|
/* Table 4-7: MBO AP Capability Indication Field Values */
|
|
|
|
#define MBO_AP_CAPA_CELL_AWARE BIT(6)
|
|
|
|
|
|
|
|
/* MBO v0.0_r19, 4.2.2: Non-preferred Channel Report Attribute */
|
|
|
|
/* Table 4-10: Reason Code Field Values */
|
|
|
|
enum mbo_non_pref_chan_reason {
|
|
|
|
MBO_NON_PREF_CHAN_REASON_UNSPECIFIED = 0,
|
|
|
|
MBO_NON_PREF_CHAN_REASON_RSSI = 1,
|
|
|
|
MBO_NON_PREF_CHAN_REASON_EXT_INTERFERENCE = 2,
|
|
|
|
MBO_NON_PREF_CHAN_REASON_INT_INTERFERENCE = 3,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* MBO v0.0_r19, 4.2.3: Cellular Data Capabilities Attribute */
|
|
|
|
/* Table 4-13: Cellular Data Connectivity Field */
|
|
|
|
enum mbo_cellular_capa {
|
|
|
|
MBO_CELL_CAPA_AVAILABLE = 1,
|
|
|
|
MBO_CELL_CAPA_NOT_AVAILABLE = 2,
|
|
|
|
MBO_CELL_CAPA_NOT_SUPPORTED = 3,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* MBO v0.0_r19, 4.2.4: Association Disallowed Attribute */
|
|
|
|
/* Table 4-15: Reason Code Field Values */
|
|
|
|
enum mbo_assoc_disallow_reason {
|
|
|
|
MBO_ASSOC_DISALLOW_REASON_UNSPECIFIED = 1,
|
|
|
|
MBO_ASSOC_DISALLOW_REASON_MAX_STA = 2,
|
|
|
|
MBO_ASSOC_DISALLOW_REASON_AIR_INTERFERENCE = 3,
|
|
|
|
MBO_ASSOC_DISALLOW_REASON_AUTH_SERVER_OVERLOAD = 4,
|
|
|
|
MBO_ASSOC_DISALLOW_REASON_LOW_RSSI = 5,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* MBO v0.0_r19, 4.2.5: Cellular Data Connection Preference Attribute */
|
|
|
|
/* Table 4-17: Cellular Preference Field Values */
|
|
|
|
enum mbo_cell_pref {
|
|
|
|
MBO_CELL_PREF_EXCLUDED = 0,
|
|
|
|
MBO_CELL_PREF_NO_USE = 1,
|
|
|
|
MBO_CELL_PREF_USE = 255
|
|
|
|
};
|
|
|
|
|
|
|
|
/* MBO v0.0_r19, 4.2.6: Transition Reason Code Attribute */
|
|
|
|
/* Table 4-19: Transition Reason Code Field Values */
|
|
|
|
enum mbo_transition_reason {
|
|
|
|
MBO_TRANSITION_REASON_UNSPECIFIED = 0,
|
|
|
|
MBO_TRANSITION_REASON_FRAME_LOSS = 1,
|
|
|
|
MBO_TRANSITION_REASON_DELAY = 2,
|
|
|
|
MBO_TRANSITION_REASON_BANDWIDTH = 3,
|
|
|
|
MBO_TRANSITION_REASON_LOAD_BALANCE = 4,
|
|
|
|
MBO_TRANSITION_REASON_RSSI = 5,
|
|
|
|
MBO_TRANSITION_REASON_RETRANSMISSIONS = 6,
|
|
|
|
MBO_TRANSITION_REASON_INTERFERENCE = 7,
|
|
|
|
MBO_TRANSITION_REASON_GRAY_ZONE = 8,
|
|
|
|
MBO_TRANSITION_REASON_PREMIUM_AP = 9,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* MBO v0.0_r19, 4.2.7: Transition Rejection Reason Code Attribute */
|
|
|
|
/* Table 4-21: Transition Rejection Reason Code Field Values */
|
|
|
|
enum mbo_transition_reject_reason {
|
|
|
|
MBO_TRANSITION_REJECT_REASON_UNSPECIFIED = 0,
|
|
|
|
MBO_TRANSITION_REJECT_REASON_FRAME_LOSS = 1,
|
|
|
|
MBO_TRANSITION_REJECT_REASON_DELAY = 2,
|
|
|
|
MBO_TRANSITION_REJECT_REASON_QOS_CAPACITY = 3,
|
|
|
|
MBO_TRANSITION_REJECT_REASON_RSSI = 4,
|
|
|
|
MBO_TRANSITION_REJECT_REASON_INTERFERENCE = 5,
|
|
|
|
MBO_TRANSITION_REJECT_REASON_SERVICES = 6,
|
|
|
|
};
|
|
|
|
|
2017-03-09 14:19:58 +01:00
|
|
|
/* MBO v0.0_r27, 4.3: MBO ANQP-elements */
|
2016-09-09 14:05:50 +02:00
|
|
|
#define MBO_ANQP_OUI_TYPE 0x12
|
2017-03-09 14:19:58 +01:00
|
|
|
#define MBO_ANQP_SUBTYPE_QUERY_LIST 1
|
|
|
|
#define MBO_ANQP_SUBTYPE_CELL_CONN_PREF 2
|
|
|
|
#define MAX_MBO_ANQP_SUBTYPE MBO_ANQP_SUBTYPE_CELL_CONN_PREF
|
2016-09-09 14:05:50 +02:00
|
|
|
|
2017-06-15 09:29:32 +02:00
|
|
|
/* OCE v0.0.10, 4.2.1: OCE Capability Indication Attribute */
|
|
|
|
#define OCE_RELEASE 1
|
|
|
|
#define OCE_RELEASE_MASK (BIT(0) | BIT(1) | BIT(2))
|
|
|
|
#define OCE_IS_STA_CFON BIT(3)
|
|
|
|
#define OCE_IS_NON_OCE_AP_PRESENT BIT(4)
|
|
|
|
|
2010-07-18 23:30:24 +02:00
|
|
|
/* Wi-Fi Direct (P2P) */
|
|
|
|
|
|
|
|
#define P2P_OUI_TYPE 9
|
|
|
|
|
|
|
|
enum p2p_attr_id {
|
|
|
|
P2P_ATTR_STATUS = 0,
|
|
|
|
P2P_ATTR_MINOR_REASON_CODE = 1,
|
|
|
|
P2P_ATTR_CAPABILITY = 2,
|
|
|
|
P2P_ATTR_DEVICE_ID = 3,
|
|
|
|
P2P_ATTR_GROUP_OWNER_INTENT = 4,
|
|
|
|
P2P_ATTR_CONFIGURATION_TIMEOUT = 5,
|
|
|
|
P2P_ATTR_LISTEN_CHANNEL = 6,
|
|
|
|
P2P_ATTR_GROUP_BSSID = 7,
|
|
|
|
P2P_ATTR_EXT_LISTEN_TIMING = 8,
|
|
|
|
P2P_ATTR_INTENDED_INTERFACE_ADDR = 9,
|
|
|
|
P2P_ATTR_MANAGEABILITY = 10,
|
|
|
|
P2P_ATTR_CHANNEL_LIST = 11,
|
|
|
|
P2P_ATTR_NOTICE_OF_ABSENCE = 12,
|
|
|
|
P2P_ATTR_DEVICE_INFO = 13,
|
|
|
|
P2P_ATTR_GROUP_INFO = 14,
|
|
|
|
P2P_ATTR_GROUP_ID = 15,
|
|
|
|
P2P_ATTR_INTERFACE = 16,
|
|
|
|
P2P_ATTR_OPERATING_CHANNEL = 17,
|
|
|
|
P2P_ATTR_INVITATION_FLAGS = 18,
|
2013-02-15 16:07:28 +01:00
|
|
|
P2P_ATTR_OOB_GO_NEG_CHANNEL = 19,
|
2014-09-05 15:20:44 +02:00
|
|
|
P2P_ATTR_SERVICE_HASH = 21,
|
|
|
|
P2P_ATTR_SESSION_INFORMATION_DATA = 22,
|
|
|
|
P2P_ATTR_CONNECTION_CAPABILITY = 23,
|
|
|
|
P2P_ATTR_ADVERTISEMENT_ID = 24,
|
|
|
|
P2P_ATTR_ADVERTISED_SERVICE = 25,
|
|
|
|
P2P_ATTR_SESSION_ID = 26,
|
|
|
|
P2P_ATTR_FEATURE_CAPABILITY = 27,
|
|
|
|
P2P_ATTR_PERSISTENT_GROUP = 28,
|
2010-07-18 23:30:24 +02:00
|
|
|
P2P_ATTR_VENDOR_SPECIFIC = 221
|
|
|
|
};
|
|
|
|
|
|
|
|
#define P2P_MAX_GO_INTENT 15
|
|
|
|
|
|
|
|
/* P2P Capability - Device Capability bitmap */
|
|
|
|
#define P2P_DEV_CAPAB_SERVICE_DISCOVERY BIT(0)
|
|
|
|
#define P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY BIT(1)
|
|
|
|
#define P2P_DEV_CAPAB_CONCURRENT_OPER BIT(2)
|
|
|
|
#define P2P_DEV_CAPAB_INFRA_MANAGED BIT(3)
|
|
|
|
#define P2P_DEV_CAPAB_DEVICE_LIMIT BIT(4)
|
|
|
|
#define P2P_DEV_CAPAB_INVITATION_PROCEDURE BIT(5)
|
|
|
|
|
|
|
|
/* P2P Capability - Group Capability bitmap */
|
|
|
|
#define P2P_GROUP_CAPAB_GROUP_OWNER BIT(0)
|
|
|
|
#define P2P_GROUP_CAPAB_PERSISTENT_GROUP BIT(1)
|
|
|
|
#define P2P_GROUP_CAPAB_GROUP_LIMIT BIT(2)
|
|
|
|
#define P2P_GROUP_CAPAB_INTRA_BSS_DIST BIT(3)
|
|
|
|
#define P2P_GROUP_CAPAB_CROSS_CONN BIT(4)
|
|
|
|
#define P2P_GROUP_CAPAB_PERSISTENT_RECONN BIT(5)
|
|
|
|
#define P2P_GROUP_CAPAB_GROUP_FORMATION BIT(6)
|
2013-03-16 18:13:31 +01:00
|
|
|
#define P2P_GROUP_CAPAB_IP_ADDR_ALLOCATION BIT(7)
|
2010-07-18 23:30:24 +02:00
|
|
|
|
2015-07-02 15:21:20 +02:00
|
|
|
/* P2PS Coordination Protocol Transport Bitmap */
|
|
|
|
#define P2PS_FEATURE_CAPAB_UDP_TRANSPORT BIT(0)
|
|
|
|
#define P2PS_FEATURE_CAPAB_MAC_TRANSPORT BIT(1)
|
|
|
|
|
2015-07-02 15:21:22 +02:00
|
|
|
struct p2ps_feature_capab {
|
|
|
|
u8 cpt;
|
|
|
|
u8 reserved;
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2010-07-18 23:30:24 +02:00
|
|
|
/* Invitation Flags */
|
|
|
|
#define P2P_INVITATION_FLAGS_TYPE BIT(0)
|
|
|
|
|
2010-07-10 17:59:19 +02:00
|
|
|
/* P2P Manageability */
|
|
|
|
#define P2P_MAN_DEVICE_MANAGEMENT BIT(0)
|
2010-10-08 17:15:38 +02:00
|
|
|
#define P2P_MAN_CROSS_CONNECTION_PERMITTED BIT(1)
|
2010-07-10 17:59:19 +02:00
|
|
|
#define P2P_MAN_COEXISTENCE_OPTIONAL BIT(2)
|
|
|
|
|
2010-07-18 23:30:24 +02:00
|
|
|
enum p2p_status_code {
|
|
|
|
P2P_SC_SUCCESS = 0,
|
|
|
|
P2P_SC_FAIL_INFO_CURRENTLY_UNAVAILABLE = 1,
|
|
|
|
P2P_SC_FAIL_INCOMPATIBLE_PARAMS = 2,
|
|
|
|
P2P_SC_FAIL_LIMIT_REACHED = 3,
|
|
|
|
P2P_SC_FAIL_INVALID_PARAMS = 4,
|
|
|
|
P2P_SC_FAIL_UNABLE_TO_ACCOMMODATE = 5,
|
|
|
|
P2P_SC_FAIL_PREV_PROTOCOL_ERROR = 6,
|
|
|
|
P2P_SC_FAIL_NO_COMMON_CHANNELS = 7,
|
|
|
|
P2P_SC_FAIL_UNKNOWN_GROUP = 8,
|
|
|
|
P2P_SC_FAIL_BOTH_GO_INTENT_15 = 9,
|
|
|
|
P2P_SC_FAIL_INCOMPATIBLE_PROV_METHOD = 10,
|
|
|
|
P2P_SC_FAIL_REJECTED_BY_USER = 11,
|
2014-09-05 15:20:44 +02:00
|
|
|
P2P_SC_SUCCESS_DEFERRED = 12,
|
2010-07-18 23:30:24 +02:00
|
|
|
};
|
|
|
|
|
2013-02-15 16:07:28 +01:00
|
|
|
enum p2p_role_indication {
|
|
|
|
P2P_DEVICE_NOT_IN_GROUP = 0x00,
|
|
|
|
P2P_CLIENT_IN_A_GROUP = 0x01,
|
|
|
|
P2P_GO_IN_A_GROUP = 0x02,
|
|
|
|
};
|
|
|
|
|
2010-07-18 23:30:24 +02:00
|
|
|
#define P2P_WILDCARD_SSID "DIRECT-"
|
|
|
|
#define P2P_WILDCARD_SSID_LEN 7
|
|
|
|
|
|
|
|
/* P2P action frames */
|
|
|
|
enum p2p_act_frame_type {
|
|
|
|
P2P_NOA = 0,
|
|
|
|
P2P_PRESENCE_REQ = 1,
|
|
|
|
P2P_PRESENCE_RESP = 2,
|
|
|
|
P2P_GO_DISC_REQ = 3
|
|
|
|
};
|
|
|
|
|
|
|
|
/* P2P public action frames */
|
|
|
|
enum p2p_action_frame_type {
|
|
|
|
P2P_GO_NEG_REQ = 0,
|
|
|
|
P2P_GO_NEG_RESP = 1,
|
|
|
|
P2P_GO_NEG_CONF = 2,
|
|
|
|
P2P_INVITATION_REQ = 3,
|
|
|
|
P2P_INVITATION_RESP = 4,
|
|
|
|
P2P_DEV_DISC_REQ = 5,
|
|
|
|
P2P_DEV_DISC_RESP = 6,
|
|
|
|
P2P_PROV_DISC_REQ = 7,
|
|
|
|
P2P_PROV_DISC_RESP = 8
|
|
|
|
};
|
|
|
|
|
|
|
|
enum p2p_service_protocol_type {
|
|
|
|
P2P_SERV_ALL_SERVICES = 0,
|
|
|
|
P2P_SERV_BONJOUR = 1,
|
|
|
|
P2P_SERV_UPNP = 2,
|
|
|
|
P2P_SERV_WS_DISCOVERY = 3,
|
2012-03-02 20:48:57 +01:00
|
|
|
P2P_SERV_WIFI_DISPLAY = 4,
|
2014-09-05 15:20:44 +02:00
|
|
|
P2P_SERV_P2PS = 11,
|
2010-07-18 23:30:24 +02:00
|
|
|
P2P_SERV_VENDOR_SPECIFIC = 255
|
|
|
|
};
|
|
|
|
|
|
|
|
enum p2p_sd_status {
|
|
|
|
P2P_SD_SUCCESS = 0,
|
|
|
|
P2P_SD_PROTO_NOT_AVAILABLE = 1,
|
2010-06-27 20:46:44 +02:00
|
|
|
P2P_SD_REQUESTED_INFO_NOT_AVAILABLE = 2,
|
2010-07-18 23:30:24 +02:00
|
|
|
P2P_SD_BAD_REQUEST = 3
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2012-03-02 16:26:01 +01:00
|
|
|
enum wifi_display_subelem {
|
|
|
|
WFD_SUBELEM_DEVICE_INFO = 0,
|
|
|
|
WFD_SUBELEM_ASSOCIATED_BSSID = 1,
|
|
|
|
WFD_SUBELEM_AUDIO_FORMATS = 2,
|
|
|
|
WFD_SUBELEM_VIDEO_FORMATS = 3,
|
|
|
|
WFD_SUBELEM_3D_VIDEO_FORMATS = 4,
|
|
|
|
WFD_SUBELEM_CONTENT_PROTECTION = 5,
|
|
|
|
WFD_SUBELEM_COUPLED_SINK = 6,
|
|
|
|
WFD_SUBELEM_EXT_CAPAB = 7,
|
|
|
|
WFD_SUBELEM_LOCAL_IP_ADDRESS = 8,
|
2017-03-01 06:18:58 +01:00
|
|
|
WFD_SUBELEM_SESSION_INFO = 9,
|
|
|
|
WFD_SUBELEM_MAC_INFO = 10,
|
|
|
|
WFD_SUBELEM_R2_DEVICE_INFO = 11,
|
2012-03-02 16:26:01 +01:00
|
|
|
};
|
|
|
|
|
2014-09-01 06:23:20 +02:00
|
|
|
/* 802.11s */
|
|
|
|
#define MESH_SYNC_METHOD_NEIGHBOR_OFFSET 1
|
|
|
|
#define MESH_SYNC_METHOD_VENDOR 255
|
|
|
|
#define MESH_PATH_PROTOCOL_HWMP 1
|
|
|
|
#define MESH_PATH_PROTOCOL_VENDOR 255
|
|
|
|
#define MESH_PATH_METRIC_AIRTIME 1
|
|
|
|
#define MESH_PATH_METRIC_VENDOR 255
|
2016-06-14 05:31:15 +02:00
|
|
|
/* IEEE 802.11s - Mesh Capability */
|
|
|
|
#define MESH_CAP_ACCEPT_ADDITIONAL_PEER BIT(0)
|
|
|
|
#define MESH_CAP_MCCA_SUPPORTED BIT(1)
|
|
|
|
#define MESH_CAP_MCCA_ENABLED BIT(2)
|
|
|
|
#define MESH_CAP_FORWARDING BIT(3)
|
|
|
|
#define MESH_CAP_MBCA_ENABLED BIT(4)
|
|
|
|
#define MESH_CAP_TBTT_ADJUSTING BIT(5)
|
|
|
|
#define MESH_CAP_MESH_PS_LEVEL BIT(6)
|
2012-03-02 16:26:01 +01:00
|
|
|
|
2014-03-11 05:07:01 +01:00
|
|
|
enum plink_action_field {
|
|
|
|
PLINK_OPEN = 1,
|
|
|
|
PLINK_CONFIRM,
|
|
|
|
PLINK_CLOSE
|
|
|
|
};
|
|
|
|
|
2008-12-04 12:42:33 +01:00
|
|
|
#define OUI_BROADCOM 0x00904c /* Broadcom (Epigram) */
|
2014-11-10 16:12:29 +01:00
|
|
|
#define VENDOR_VHT_TYPE 0x04
|
|
|
|
#define VENDOR_VHT_SUBTYPE 0x08
|
|
|
|
#define VENDOR_VHT_SUBTYPE2 0x00
|
2008-12-04 12:42:33 +01:00
|
|
|
|
|
|
|
#define VENDOR_HT_CAPAB_OUI_TYPE 0x33 /* 00-90-4c:0x33 */
|
|
|
|
|
2011-10-07 12:33:04 +02:00
|
|
|
|
|
|
|
/* IEEE 802.11v - WNM Action field values */
|
|
|
|
enum wnm_action {
|
|
|
|
WNM_EVENT_REQ = 0,
|
|
|
|
WNM_EVENT_REPORT = 1,
|
|
|
|
WNM_DIAGNOSTIC_REQ = 2,
|
|
|
|
WNM_DIAGNOSTIC_REPORT = 3,
|
|
|
|
WNM_LOCATION_CFG_REQ = 4,
|
|
|
|
WNM_LOCATION_CFG_RESP = 5,
|
|
|
|
WNM_BSS_TRANS_MGMT_QUERY = 6,
|
|
|
|
WNM_BSS_TRANS_MGMT_REQ = 7,
|
|
|
|
WNM_BSS_TRANS_MGMT_RESP = 8,
|
|
|
|
WNM_FMS_REQ = 9,
|
|
|
|
WNM_FMS_RESP = 10,
|
|
|
|
WNM_COLLOCATED_INTERFERENCE_REQ = 11,
|
|
|
|
WNM_COLLOCATED_INTERFERENCE_REPORT = 12,
|
|
|
|
WNM_TFS_REQ = 13,
|
|
|
|
WNM_TFS_RESP = 14,
|
|
|
|
WNM_TFS_NOTIFY = 15,
|
|
|
|
WNM_SLEEP_MODE_REQ = 16,
|
|
|
|
WNM_SLEEP_MODE_RESP = 17,
|
|
|
|
WNM_TIM_BROADCAST_REQ = 18,
|
|
|
|
WNM_TIM_BROADCAST_RESP = 19,
|
|
|
|
WNM_QOS_TRAFFIC_CAPAB_UPDATE = 20,
|
|
|
|
WNM_CHANNEL_USAGE_REQ = 21,
|
|
|
|
WNM_CHANNEL_USAGE_RESP = 22,
|
|
|
|
WNM_DMS_REQ = 23,
|
|
|
|
WNM_DMS_RESP = 24,
|
|
|
|
WNM_TIMING_MEASUREMENT_REQ = 25,
|
|
|
|
WNM_NOTIFICATION_REQ = 26,
|
|
|
|
WNM_NOTIFICATION_RESP = 27
|
|
|
|
};
|
|
|
|
|
|
|
|
/* IEEE 802.11v - BSS Transition Management Request - Request Mode */
|
|
|
|
#define WNM_BSS_TM_REQ_PREF_CAND_LIST_INCLUDED BIT(0)
|
|
|
|
#define WNM_BSS_TM_REQ_ABRIDGED BIT(1)
|
|
|
|
#define WNM_BSS_TM_REQ_DISASSOC_IMMINENT BIT(2)
|
|
|
|
#define WNM_BSS_TM_REQ_BSS_TERMINATION_INCLUDED BIT(3)
|
|
|
|
#define WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT BIT(4)
|
|
|
|
|
2013-05-23 15:07:10 +02:00
|
|
|
/* IEEE Std 802.11-2012 - Table 8-253 */
|
|
|
|
enum bss_trans_mgmt_status_code {
|
|
|
|
WNM_BSS_TM_ACCEPT = 0,
|
|
|
|
WNM_BSS_TM_REJECT_UNSPECIFIED = 1,
|
|
|
|
WNM_BSS_TM_REJECT_INSUFFICIENT_BEACON = 2,
|
|
|
|
WNM_BSS_TM_REJECT_INSUFFICIENT_CAPABITY = 3,
|
|
|
|
WNM_BSS_TM_REJECT_UNDESIRED = 4,
|
|
|
|
WNM_BSS_TM_REJECT_DELAY_REQUEST = 5,
|
|
|
|
WNM_BSS_TM_REJECT_STA_CANDIDATE_LIST_PROVIDED = 6,
|
|
|
|
WNM_BSS_TM_REJECT_NO_SUITABLE_CANDIDATES = 7,
|
|
|
|
WNM_BSS_TM_REJECT_LEAVING_ESS = 8
|
|
|
|
};
|
|
|
|
|
2016-04-06 18:42:03 +02:00
|
|
|
/*
|
|
|
|
* IEEE P802.11-REVmc/D5.0 Table 9-150 - Optional subelement IDs for
|
|
|
|
* neighbor report
|
|
|
|
*/
|
2013-05-16 16:48:59 +02:00
|
|
|
#define WNM_NEIGHBOR_TSF 1
|
|
|
|
#define WNM_NEIGHBOR_CONDENSED_COUNTRY_STRING 2
|
|
|
|
#define WNM_NEIGHBOR_BSS_TRANSITION_CANDIDATE 3
|
|
|
|
#define WNM_NEIGHBOR_BSS_TERMINATION_DURATION 4
|
|
|
|
#define WNM_NEIGHBOR_BEARING 5
|
2016-04-06 18:42:03 +02:00
|
|
|
#define WNM_NEIGHBOR_WIDE_BW_CHAN 6
|
|
|
|
#define WNM_NEIGHBOR_MEASUREMENT_REPORT 39
|
|
|
|
#define WNM_NEIGHBOR_HT_CAPAB 45
|
|
|
|
#define WNM_NEIGHBOR_HT_OPER 61
|
|
|
|
#define WNM_NEIGHBOR_SEC_CHAN_OFFSET 62
|
2013-05-16 16:48:59 +02:00
|
|
|
#define WNM_NEIGHBOR_MEASUREMENT_PILOT 66
|
|
|
|
#define WNM_NEIGHBOR_RRM_ENABLED_CAPABILITIES 70
|
|
|
|
#define WNM_NEIGHBOR_MULTIPLE_BSSID 71
|
2016-04-06 18:42:03 +02:00
|
|
|
#define WNM_NEIGHBOR_VHT_CAPAB 191
|
|
|
|
#define WNM_NEIGHBOR_VHT_OPER 192
|
2013-05-16 16:48:59 +02:00
|
|
|
|
2013-07-24 11:28:20 +02:00
|
|
|
/* QoS action */
|
|
|
|
enum qos_action {
|
|
|
|
QOS_ADDTS_REQ = 0,
|
|
|
|
QOS_ADDTS_RESP = 1,
|
|
|
|
QOS_DELTS = 2,
|
|
|
|
QOS_SCHEDULE = 3,
|
|
|
|
QOS_QOS_MAP_CONFIG = 4,
|
|
|
|
};
|
|
|
|
|
2012-04-24 15:08:35 +02:00
|
|
|
/* IEEE Std 802.11-2012, 8.4.2.62 20/40 BSS Coexistence element */
|
|
|
|
#define WLAN_20_40_BSS_COEX_INFO_REQ BIT(0)
|
|
|
|
#define WLAN_20_40_BSS_COEX_40MHZ_INTOL BIT(1)
|
|
|
|
#define WLAN_20_40_BSS_COEX_20MHZ_WIDTH_REQ BIT(2)
|
|
|
|
#define WLAN_20_40_BSS_COEX_OBSS_EXEMPT_REQ BIT(3)
|
|
|
|
#define WLAN_20_40_BSS_COEX_OBSS_EXEMPT_GRNT BIT(4)
|
|
|
|
|
|
|
|
struct ieee80211_2040_bss_coex_ie {
|
|
|
|
u8 element_id;
|
|
|
|
u8 length;
|
|
|
|
u8 coex_param;
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
struct ieee80211_2040_intol_chan_report {
|
|
|
|
u8 element_id;
|
|
|
|
u8 length;
|
|
|
|
u8 op_class;
|
|
|
|
u8 variable[0]; /* Channel List */
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2012-02-26 16:20:00 +01:00
|
|
|
/* IEEE 802.11v - WNM-Sleep Mode element */
|
|
|
|
struct wnm_sleep_element {
|
|
|
|
u8 eid; /* WLAN_EID_WNMSLEEP */
|
|
|
|
u8 len;
|
2012-12-16 11:57:38 +01:00
|
|
|
u8 action_type; /* WNM_SLEEP_ENTER/WNM_SLEEP_MODE_EXIT */
|
2012-02-26 16:20:00 +01:00
|
|
|
u8 status;
|
|
|
|
le16 intval;
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2012-12-16 11:57:38 +01:00
|
|
|
#define WNM_SLEEP_MODE_ENTER 0
|
|
|
|
#define WNM_SLEEP_MODE_EXIT 1
|
|
|
|
|
2012-02-26 16:20:00 +01:00
|
|
|
enum wnm_sleep_mode_response_status {
|
|
|
|
WNM_STATUS_SLEEP_ACCEPT = 0,
|
|
|
|
WNM_STATUS_SLEEP_EXIT_ACCEPT_GTK_UPDATE = 1,
|
|
|
|
WNM_STATUS_DENIED_ACTION = 2,
|
|
|
|
WNM_STATUS_DENIED_TMP = 3,
|
|
|
|
WNM_STATUS_DENIED_KEY = 4,
|
|
|
|
WNM_STATUS_DENIED_OTHER_WNM_SERVICE = 5
|
|
|
|
};
|
|
|
|
|
|
|
|
/* WNM-Sleep Mode subelement IDs */
|
|
|
|
enum wnm_sleep_mode_subelement_id {
|
|
|
|
WNM_SLEEP_SUBELEM_GTK = 0,
|
|
|
|
WNM_SLEEP_SUBELEM_IGTK = 1
|
|
|
|
};
|
|
|
|
|
2013-11-14 11:28:31 +01:00
|
|
|
/* Channel Switch modes (802.11h) */
|
|
|
|
#define CHAN_SWITCH_MODE_ALLOW_TX 0
|
|
|
|
#define CHAN_SWITCH_MODE_BLOCK_TX 1
|
|
|
|
|
2014-11-05 09:42:56 +01:00
|
|
|
struct tpc_report {
|
|
|
|
u8 eid;
|
|
|
|
u8 len;
|
|
|
|
u8 tx_power;
|
|
|
|
u8 link_margin;
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2016-04-06 18:42:06 +02:00
|
|
|
#define RRM_CAPABILITIES_IE_LEN 5
|
|
|
|
|
2014-11-05 09:42:56 +01:00
|
|
|
/* IEEE Std 802.11-2012, 8.5.7.4 - Link Measurement Request frame format */
|
|
|
|
struct rrm_link_measurement_request {
|
|
|
|
u8 dialog_token;
|
|
|
|
s8 tx_power;
|
|
|
|
s8 max_tp;
|
|
|
|
u8 variable[0];
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
/* IEEE Std 802.11-2012, 8.5.7.5 - Link Measurement Report frame format */
|
|
|
|
struct rrm_link_measurement_report {
|
|
|
|
u8 dialog_token;
|
|
|
|
struct tpc_report tpc;
|
|
|
|
u8 rx_ant_id;
|
|
|
|
u8 tx_ant_id;
|
|
|
|
u8 rcpi;
|
|
|
|
u8 rsni;
|
|
|
|
u8 variable[0];
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2016-12-28 14:06:33 +01:00
|
|
|
/* IEEE Std 802.11-2016, 9.4.2.21 - Measurement Request element */
|
|
|
|
struct rrm_measurement_request_element {
|
|
|
|
u8 eid; /* Element ID */
|
|
|
|
u8 len; /* Length */
|
|
|
|
u8 token; /* Measurement Token */
|
|
|
|
u8 mode; /* Measurement Request Mode */
|
|
|
|
u8 type; /* Measurement Type */
|
|
|
|
u8 variable[0]; /* Measurement Request */
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
/* IEEE Std 802.11-2016, Figure 9-148 - Measurement Request Mode field */
|
|
|
|
#define MEASUREMENT_REQUEST_MODE_PARALLEL BIT(0)
|
|
|
|
#define MEASUREMENT_REQUEST_MODE_ENABLE BIT(1)
|
|
|
|
#define MEASUREMENT_REQUEST_MODE_REQUEST BIT(2)
|
|
|
|
#define MEASUREMENT_REQUEST_MODE_REPORT BIT(3)
|
|
|
|
#define MEASUREMENT_REQUEST_MODE_DURATION_MANDATORY BIT(4)
|
|
|
|
|
|
|
|
/* IEEE Std 802.11-2016, 9.4.2.21.7 - Beacon request */
|
|
|
|
struct rrm_measurement_beacon_request {
|
|
|
|
u8 oper_class; /* Operating Class */
|
|
|
|
u8 channel; /* Channel Number */
|
|
|
|
le16 rand_interval; /* Randomization Interval (in TUs) */
|
|
|
|
le16 duration; /* Measurement Duration (in TUs) */
|
|
|
|
u8 mode; /* Measurement Mode */
|
|
|
|
u8 bssid[ETH_ALEN]; /* BSSID */
|
|
|
|
u8 variable[0]; /* Optional Subelements */
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* IEEE Std 802.11-2016, Table 9-87 - Measurement Mode definitions for Beacon
|
|
|
|
* request
|
|
|
|
*/
|
|
|
|
enum beacon_report_mode {
|
|
|
|
BEACON_REPORT_MODE_PASSIVE = 0,
|
|
|
|
BEACON_REPORT_MODE_ACTIVE = 1,
|
|
|
|
BEACON_REPORT_MODE_TABLE = 2,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* IEEE Std 802.11-2016, Table 9-88 - Beacon Request subelement IDs */
|
2018-08-22 15:46:19 +02:00
|
|
|
/* IEEE P802.11-REVmd/D2.0, Table 9-106 - Optional subelement IDs for
|
|
|
|
* Beacon request */
|
2016-12-28 14:06:33 +01:00
|
|
|
#define WLAN_BEACON_REQUEST_SUBELEM_SSID 0
|
|
|
|
#define WLAN_BEACON_REQUEST_SUBELEM_INFO 1 /* Beacon Reporting */
|
|
|
|
#define WLAN_BEACON_REQUEST_SUBELEM_DETAIL 2 /* Reporting Detail */
|
|
|
|
#define WLAN_BEACON_REQUEST_SUBELEM_REQUEST 10
|
|
|
|
#define WLAN_BEACON_REQUEST_SUBELEM_AP_CHANNEL 51 /* AP Channel Report */
|
2018-08-22 15:46:19 +02:00
|
|
|
#define WLAN_BEACON_REQUEST_SUBELEM_LAST_INDICATION 164
|
2016-12-28 14:06:33 +01:00
|
|
|
#define WLAN_BEACON_REQUEST_SUBELEM_VENDOR 221
|
|
|
|
|
|
|
|
/*
|
|
|
|
* IEEE Std 802.11-2016, Table 9-90 - Reporting Detail values
|
|
|
|
*/
|
|
|
|
enum beacon_report_detail {
|
|
|
|
/* No fixed-length fields or elements */
|
|
|
|
BEACON_REPORT_DETAIL_NONE = 0,
|
|
|
|
/* All fixed-length fields and any requested elements in the Request
|
|
|
|
* element if present */
|
|
|
|
BEACON_REPORT_DETAIL_REQUESTED_ONLY = 1,
|
|
|
|
/* All fixed-length fields and elements (default, used when Reporting
|
|
|
|
* Detail subelement is not included in a Beacon request) */
|
|
|
|
BEACON_REPORT_DETAIL_ALL_FIELDS_AND_ELEMENTS = 2,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* IEEE Std 802.11-2016, 9.4.2.22 - Measurement Report element */
|
|
|
|
struct rrm_measurement_report_element {
|
|
|
|
u8 eid; /* Element ID */
|
|
|
|
u8 len; /* Length */
|
|
|
|
u8 token; /* Measurement Token */
|
|
|
|
u8 mode; /* Measurement Report Mode */
|
|
|
|
u8 type; /* Measurement Type */
|
|
|
|
u8 variable[0]; /* Measurement Report */
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
/* IEEE Std 802.11-2016, Figure 9-192 - Measurement Report Mode field */
|
|
|
|
#define MEASUREMENT_REPORT_MODE_ACCEPT 0
|
|
|
|
#define MEASUREMENT_REPORT_MODE_REJECT_LATE BIT(0)
|
|
|
|
#define MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE BIT(1)
|
|
|
|
#define MEASUREMENT_REPORT_MODE_REJECT_REFUSED BIT(2)
|
|
|
|
|
|
|
|
/* IEEE Std 802.11-2016, 9.4.2.22.7 - Beacon report */
|
|
|
|
struct rrm_measurement_beacon_report {
|
|
|
|
u8 op_class; /* Operating Class */
|
|
|
|
u8 channel; /* Channel Number */
|
|
|
|
le64 start_time; /* Actual Measurement Start Time
|
|
|
|
* (in TSF of the BSS requesting the measurement) */
|
|
|
|
le16 duration; /* in TUs */
|
|
|
|
u8 report_info; /* Reported Frame Information */
|
|
|
|
u8 rcpi; /* RCPI */
|
|
|
|
u8 rsni; /* RSNI */
|
|
|
|
u8 bssid[ETH_ALEN]; /* BSSID */
|
|
|
|
u8 antenna_id; /* Antenna ID */
|
|
|
|
le32 parent_tsf; /* Parent TSF */
|
|
|
|
u8 variable[0]; /* Optional Subelements */
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
/* IEEE Std 802.11-2016, Table 9-112 - Beacon report Subelement IDs */
|
2018-08-22 15:46:17 +02:00
|
|
|
/* IEEE P802.11-REVmd/D2.0, Table 9-130 - Optional subelement IDs for
|
|
|
|
* Beacon report */
|
2016-12-28 14:06:33 +01:00
|
|
|
#define WLAN_BEACON_REPORT_SUBELEM_FRAME_BODY 1
|
2018-08-22 15:46:17 +02:00
|
|
|
#define WLAN_BEACON_REPORT_SUBELEM_FRAME_BODY_FRAGMENT_ID 2
|
2018-08-22 15:46:19 +02:00
|
|
|
#define WLAN_BEACON_REPORT_SUBELEM_LAST_INDICATION 164
|
2016-12-28 14:06:33 +01:00
|
|
|
#define WLAN_BEACON_REPORT_SUBELEM_VENDOR 221
|
|
|
|
|
2018-08-22 15:46:17 +02:00
|
|
|
/* IEEE P802.11-REVmd/D2.0, Table 9-232 - Data field format of the
|
|
|
|
* Reported Frame Body Fragment ID subelement */
|
|
|
|
#define REPORTED_FRAME_BODY_SUBELEM_LEN 4
|
|
|
|
#define REPORTED_FRAME_BODY_MORE_FRAGMENTS BIT(7)
|
|
|
|
|
2018-08-22 15:46:19 +02:00
|
|
|
/* IEEE P802.11-REVmd/D2.0, 9.4.2.21.7 - Beacon report */
|
|
|
|
#define BEACON_REPORT_LAST_INDICATION_SUBELEM_LEN 3
|
|
|
|
|
2015-02-18 15:59:21 +01:00
|
|
|
/* IEEE Std 802.11ad-2012 - Multi-band element */
|
|
|
|
struct multi_band_ie {
|
|
|
|
u8 eid; /* WLAN_EID_MULTI_BAND */
|
|
|
|
u8 len;
|
|
|
|
u8 mb_ctrl;
|
|
|
|
u8 band_id;
|
|
|
|
u8 op_class;
|
|
|
|
u8 chan;
|
|
|
|
u8 bssid[ETH_ALEN];
|
|
|
|
le16 beacon_int;
|
|
|
|
u8 tsf_offs[8];
|
|
|
|
u8 mb_connection_capability;
|
|
|
|
u8 fst_session_tmout;
|
|
|
|
/* Optional:
|
|
|
|
* STA MAC Address
|
|
|
|
* Pairwise Cipher Suite Count
|
|
|
|
* Pairwise Cipher Suite List
|
|
|
|
*/
|
|
|
|
u8 variable[0];
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
enum mb_ctrl_sta_role {
|
|
|
|
MB_STA_ROLE_AP = 0,
|
|
|
|
MB_STA_ROLE_TDLS_STA = 1,
|
|
|
|
MB_STA_ROLE_IBSS_STA = 2,
|
|
|
|
MB_STA_ROLE_PCP = 3,
|
|
|
|
MB_STA_ROLE_NON_PCP_NON_AP = 4
|
|
|
|
};
|
|
|
|
|
FST: Add the Fast Session Transfer (FST) module
Fast Session Transfer (FST) is the transfer of a session from a channel
to another channel in a different frequency band. The term "session"
refers to non-physical layer state information kept by a pair of
stations (STAs) that communicate directly (i.e., excludes forwarding).
The FST is implemented in accordance with IEEE Std 802.11ad-2012.
Definitions
* FST interface - an interface for which FST functionality is enabled
* FST group - a bunch of FST interfaces representing single
multi-band STA
* FST peer - a multi-band capable STA connected
* FST module - multi-band operation functionality implemented in
accordance with IEEE Std 802.11ad-2012 (see 10.32
Multi-band operation) as a part of hostapd/wpa_supplicant
* FST manager - an external application that implements custom FST
related logic, using the FST module's interfaces
accessible via CLI or D-Bus
This commit introduces only the FST module. Integration of the FST
module into the hostapd/wpa_supplicant and corresponding CLI/D-Bus
interfaces and FST related tests are covered in separate commits.
FST manager application is out of scope of these commits.
As FST aggregates a few interfaces into FST group, the FST module uses
global CLI for both commands and notifications. It also exposes
alternative non-interface based D-Bus subtree for this purposes.
Configuration and Initialization
* FST functionality can enabled by compilation flag (CONFIG_FST)
* hostapd/wpa_supplicant controlling multiple interfaces are used for
FST
* once enabled by compilation, the FST can be enabled for specific
interfaces in the configuration files
* FST interfaces are aggregated in FST groups (fst_group_id config file
entry), where each FST group:
- represents one multi-band device
- should have two or more FST interfaces in it
* priority (fst_priority config file entry) must be configured for each
FST interface. FST interface with higher priority is the interface FST
will always try to switch to. Thus, for example, for the maximal
throughput, it should be the fastest FST interface in the FST setup.
* default Link Loss Timeout (LLT) value can be configured for each FST
interface (fst_llt config file entry). It represents LLT to be used
by FST when this interface is active.
* FST interfaces advertise the Multi-band capability by including the
Multi-band element in the corresponding frames
FST CLI commands:
* fst list_groups - list FST groups configured.
* fst list_ifaces - list FST interfaces which belong to specific group
* fst iface_peers - list Multi-Band STAs connected to specific interface
* fst list_sessions - list existing FST sessions
* fst session_get - get FST session info
* fst session_add - create FST session object
* fst session_set - set FST session parameters (old_iface, new_iface,
peer_addr, llt)
* fst session_initiate - initiate FST setup
* fst session_respond - respond to FST setup establishemnt attempt by
counterpart
* fst session_transfer - initiate FST switch
* fst session_teardown - tear down FST Setup but leave the session object
for reuse
* fst session_remove - remove FST session object
FST CLI notifications:
* FST-EVENT-PEER - peer state changed (CONNECT/DISCONNECT)
* FST-EVENT-SESSION - FST session level notification with following
sub-events:
- EVENT_FST_SESSION_STATE - FST session state changed
- EVENT_FST_ESTABLISHED - previously initiated FST session became
established
- EVENT_FST_SETUP - new FST session object created due to FST session
negotiation attempt by counterpart
All the FST CLI commands and notifications are also implemented on D-Bus
for wpa_supplicant.
IEEE 802.11 standard compliance
FST module implements FST setup statemachine in compliance with IEEE
802.11ad (P802.11-REVmc/D3.3), as it described in 10.32 Multi-band
operation (see also Figure 10-34 - States of the FST setup protocol).
Thus, for example, the FST module initiates FST switch automatically
when FST setup becomes established with LLT=0 in accordance with
10.32.2.2 Transitioning between states.
At the moment, FST module only supports non-transparent STA-based FST
(see 10.32.1 General).
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-02-18 15:59:21 +01:00
|
|
|
#define MB_CTRL_ROLE_MASK (BIT(0) | BIT(1) | BIT(2))
|
|
|
|
#define MB_CTRL_ROLE(ctrl) ((u8) ((ctrl) & MB_CTRL_ROLE_MASK))
|
2015-02-18 15:59:21 +01:00
|
|
|
#define MB_CTRL_STA_MAC_PRESENT ((u8) (BIT(3)))
|
|
|
|
#define MB_CTRL_PAIRWISE_CIPHER_SUITE_PRESENT ((u8) (BIT(4)))
|
|
|
|
|
|
|
|
enum mb_band_id {
|
|
|
|
MB_BAND_ID_WIFI_2_4GHZ = 2, /* 2.4 GHz */
|
|
|
|
MB_BAND_ID_WIFI_5GHZ = 4, /* 4.9 and 5 GHz */
|
|
|
|
MB_BAND_ID_WIFI_60GHZ = 5, /* 60 GHz */
|
|
|
|
};
|
|
|
|
|
|
|
|
#define MB_CONNECTION_CAPABILITY_AP ((u8) (BIT(0)))
|
|
|
|
#define MB_CONNECTION_CAPABILITY_PCP ((u8) (BIT(1)))
|
|
|
|
#define MB_CONNECTION_CAPABILITY_DLS ((u8) (BIT(2)))
|
|
|
|
#define MB_CONNECTION_CAPABILITY_TDLS ((u8) (BIT(3)))
|
|
|
|
#define MB_CONNECTION_CAPABILITY_IBSS ((u8) (BIT(4)))
|
|
|
|
|
|
|
|
/* IEEE Std 802.11ad-2014 - FST Action field */
|
|
|
|
enum fst_action {
|
|
|
|
FST_ACTION_SETUP_REQUEST = 0,
|
|
|
|
FST_ACTION_SETUP_RESPONSE = 1,
|
|
|
|
FST_ACTION_TEAR_DOWN = 2,
|
|
|
|
FST_ACTION_ACK_REQUEST = 3,
|
|
|
|
FST_ACTION_ACK_RESPONSE = 4,
|
|
|
|
FST_ACTION_ON_CHANNEL_TUNNEL = 5,
|
|
|
|
};
|
|
|
|
|
2016-02-15 15:53:40 +01:00
|
|
|
/* IEEE Std 802.11ac-2013, Annex C - dot11PHYType */
|
|
|
|
enum phy_type {
|
|
|
|
PHY_TYPE_UNSPECIFIED = 0,
|
|
|
|
PHY_TYPE_FHSS = 1,
|
|
|
|
PHY_TYPE_DSSS = 2,
|
|
|
|
PHY_TYPE_IRBASEBAND = 3,
|
|
|
|
PHY_TYPE_OFDM = 4,
|
|
|
|
PHY_TYPE_HRDSSS = 5,
|
|
|
|
PHY_TYPE_ERP = 6,
|
|
|
|
PHY_TYPE_HT = 7,
|
|
|
|
PHY_TYPE_DMG = 8,
|
|
|
|
PHY_TYPE_VHT = 9,
|
|
|
|
};
|
|
|
|
|
2016-04-06 18:42:03 +02:00
|
|
|
/* IEEE P802.11-REVmc/D5.0, 9.4.2.37 - Neighbor Report element */
|
2016-02-15 15:53:41 +01:00
|
|
|
/* BSSID Information Field */
|
|
|
|
#define NEI_REP_BSSID_INFO_AP_NOT_REACH BIT(0)
|
|
|
|
#define NEI_REP_BSSID_INFO_AP_UNKNOWN_REACH BIT(1)
|
|
|
|
#define NEI_REP_BSSID_INFO_AP_REACHABLE (BIT(0) | BIT(1))
|
|
|
|
#define NEI_REP_BSSID_INFO_SECURITY BIT(2)
|
|
|
|
#define NEI_REP_BSSID_INFO_KEY_SCOPE BIT(3)
|
|
|
|
#define NEI_REP_BSSID_INFO_SPECTRUM_MGMT BIT(4)
|
|
|
|
#define NEI_REP_BSSID_INFO_QOS BIT(5)
|
|
|
|
#define NEI_REP_BSSID_INFO_APSD BIT(6)
|
|
|
|
#define NEI_REP_BSSID_INFO_RM BIT(7)
|
|
|
|
#define NEI_REP_BSSID_INFO_DELAYED_BA BIT(8)
|
|
|
|
#define NEI_REP_BSSID_INFO_IMM_BA BIT(9)
|
|
|
|
#define NEI_REP_BSSID_INFO_MOBILITY_DOMAIN BIT(10)
|
|
|
|
#define NEI_REP_BSSID_INFO_HT BIT(11)
|
2016-04-06 18:42:03 +02:00
|
|
|
#define NEI_REP_BSSID_INFO_VHT BIT(12)
|
|
|
|
#define NEI_REP_BSSID_INFO_FTM BIT(13)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* IEEE P802.11-REVmc/D5.0 Table 9-152 - HT/VHT Operation Information
|
|
|
|
* subfields.
|
2019-05-20 09:55:06 +02:00
|
|
|
* Note: These definitions are not the same as other CHANWIDTH_*.
|
2016-04-06 18:42:03 +02:00
|
|
|
*/
|
|
|
|
enum nr_chan_width {
|
|
|
|
NR_CHAN_WIDTH_20 = 0,
|
|
|
|
NR_CHAN_WIDTH_40 = 1,
|
|
|
|
NR_CHAN_WIDTH_80 = 2,
|
|
|
|
NR_CHAN_WIDTH_160 = 3,
|
|
|
|
NR_CHAN_WIDTH_80P80 = 4,
|
|
|
|
};
|
2016-02-15 15:53:41 +01:00
|
|
|
|
2017-02-08 00:16:52 +01:00
|
|
|
struct ieee80211_he_capabilities {
|
2018-11-28 19:50:34 +01:00
|
|
|
u8 he_mac_capab_info[6];
|
|
|
|
u8 he_phy_capab_info[11];
|
2019-05-20 09:55:10 +02:00
|
|
|
/* Followed by 4, 8, or 12 octets of Supported HE-MCS And NSS Set field
|
|
|
|
* and optional variable length PPE Thresholds field. */
|
2019-08-13 15:10:46 +02:00
|
|
|
u8 optional[37];
|
2017-02-08 00:16:52 +01:00
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
struct ieee80211_he_operation {
|
2019-04-25 22:57:47 +02:00
|
|
|
le32 he_oper_params; /* HE Operation Parameters[3] and
|
|
|
|
* BSS Color Information[1] */
|
2019-05-20 09:55:04 +02:00
|
|
|
le16 he_mcs_nss_set;
|
2017-02-08 00:16:52 +01:00
|
|
|
u8 vht_op_info_chwidth;
|
|
|
|
u8 vht_op_info_chan_center_freq_seg0_idx;
|
|
|
|
u8 vht_op_info_chan_center_freq_seg1_idx;
|
2017-09-30 01:32:44 +02:00
|
|
|
/* Followed by conditional MaxBSSID Indicator subfield (u8) */
|
2017-02-08 00:16:52 +01:00
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2019-04-16 14:34:01 +02:00
|
|
|
/*
|
|
|
|
* IEEE P802.11ax/D4.0, 9.4.2.246 Spatial Reuse Parameter Set element
|
|
|
|
*/
|
|
|
|
struct ieee80211_spatial_reuse {
|
|
|
|
u8 sr_ctrl; /* SR Control */
|
|
|
|
/* Up to 19 octets of parameters:
|
|
|
|
* Non-SRG OBSS PD Max Offset[0 or 1]
|
|
|
|
* SRG OBSS PD Min Offset[0 or 1]
|
|
|
|
* SRG OBSS PD Max Offset[0 or 1]
|
|
|
|
* SRG BSS Color Bitmap[0 or 8]
|
|
|
|
* SRG Partial BSSID Bitmap[0 or 8]
|
|
|
|
*/
|
|
|
|
u8 params[19];
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
2017-02-08 00:16:52 +01:00
|
|
|
/* HE Capabilities Information defines */
|
2019-05-20 09:55:10 +02:00
|
|
|
|
|
|
|
#define HE_PHYCAP_CHANNEL_WIDTH_SET_IDX 0
|
|
|
|
#define HE_PHYCAP_CHANNEL_WIDTH_MASK ((u8) (BIT(1) | BIT(2) | \
|
|
|
|
BIT(3) | BIT(4)))
|
|
|
|
#define HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_IN_2G ((u8) BIT(1))
|
|
|
|
#define HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_80MHZ_IN_5G ((u8) BIT(2))
|
|
|
|
#define HE_PHYCAP_CHANNEL_WIDTH_SET_160MHZ_IN_5G ((u8) BIT(3))
|
|
|
|
#define HE_PHYCAP_CHANNEL_WIDTH_SET_80PLUS80MHZ_IN_5G ((u8) BIT(4))
|
|
|
|
|
2017-02-08 00:16:52 +01:00
|
|
|
#define HE_PHYCAP_SU_BEAMFORMER_CAPAB_IDX 3
|
|
|
|
#define HE_PHYCAP_SU_BEAMFORMER_CAPAB ((u8) BIT(7))
|
|
|
|
#define HE_PHYCAP_SU_BEAMFORMEE_CAPAB_IDX 4
|
|
|
|
#define HE_PHYCAP_SU_BEAMFORMEE_CAPAB ((u8) BIT(0))
|
|
|
|
#define HE_PHYCAP_MU_BEAMFORMER_CAPAB_IDX 4
|
|
|
|
#define HE_PHYCAP_MU_BEAMFORMER_CAPAB ((u8) BIT(1))
|
|
|
|
|
2019-05-20 09:55:10 +02:00
|
|
|
#define HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX 6
|
|
|
|
#define HE_PHYCAP_PPE_THRESHOLD_PRESENT ((u8) BIT(7))
|
|
|
|
|
|
|
|
/* HE PPE Threshold define */
|
|
|
|
#define HE_PPE_THRES_RU_INDEX_BITMASK_MASK 0xf
|
|
|
|
#define HE_PPE_THRES_RU_INDEX_BITMASK_SHIFT 3
|
|
|
|
#define HE_PPE_THRES_NSS_MASK 0x7
|
|
|
|
|
2017-02-08 00:16:52 +01:00
|
|
|
/* HE Operation defines */
|
2018-11-28 19:50:34 +01:00
|
|
|
/* HE Operation Parameters and BSS Color Information fields */
|
2019-04-16 14:33:59 +02:00
|
|
|
#define HE_OPERATION_DFLT_PE_DURATION_MASK ((u32) (BIT(0) | BIT(1) | \
|
|
|
|
BIT(2)))
|
|
|
|
#define HE_OPERATION_DFLT_PE_DURATION_OFFSET 0
|
|
|
|
#define HE_OPERATION_TWT_REQUIRED ((u32) BIT(3))
|
|
|
|
#define HE_OPERATION_RTS_THRESHOLD_MASK ((u32) (BIT(4) | BIT(5) | \
|
|
|
|
BIT(6) | BIT(7) | \
|
|
|
|
BIT(8) | BIT(9) | \
|
|
|
|
BIT(10) | BIT(11) | \
|
|
|
|
BIT(12) | BIT(13)))
|
|
|
|
#define HE_OPERATION_RTS_THRESHOLD_OFFSET 4
|
|
|
|
#define HE_OPERATION_BSS_COLOR_MASK ((u32) (BIT(24) | BIT(25) | \
|
|
|
|
BIT(26) | BIT(27) | \
|
|
|
|
BIT(28) | BIT(29)))
|
|
|
|
#define HE_OPERATION_PARTIAL_BSS_COLOR ((u32) BIT(30))
|
|
|
|
#define HE_OPERATION_BSS_COLOR_DISABLED ((u32) BIT(31))
|
|
|
|
#define HE_OPERATION_BSS_COLOR_OFFSET 24
|
2017-02-08 00:16:52 +01:00
|
|
|
|
2019-04-16 14:34:01 +02:00
|
|
|
/* Spatial Reuse defines */
|
|
|
|
#define SPATIAL_REUSE_SRP_DISALLOWED BIT(0)
|
|
|
|
#define SPATIAL_REUSE_NON_SRG_OBSS_PD_SR_DISALLOWED BIT(1)
|
|
|
|
#define SPATIAL_REUSE_NON_SRG_OFFSET_PRESENT BIT(2)
|
|
|
|
#define SPATIAL_REUSE_SRG_INFORMATION_PRESENT BIT(3)
|
|
|
|
#define SPATIAL_REUSE_HESIGA_SR_VAL15_ALLOWED BIT(4)
|
|
|
|
|
2019-01-07 10:26:24 +01:00
|
|
|
struct ieee80211_he_mu_edca_parameter_set {
|
|
|
|
u8 he_qos_info;
|
|
|
|
u8 he_mu_ac_be_param[3];
|
|
|
|
u8 he_mu_ac_bk_param[3];
|
|
|
|
u8 he_mu_ac_vi_param[3];
|
|
|
|
u8 he_mu_ac_vo_param[3];
|
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
/* HE MU AC parameter record field format */
|
|
|
|
/* ACI/AIFSN */
|
|
|
|
#define HE_MU_AC_PARAM_ACI_IDX 0
|
|
|
|
#define HE_MU_AC_PARAM_AIFSN ((u8) (BIT(0) | BIT(1) | BIT(2) | BIT(3)))
|
|
|
|
#define HE_MU_AC_PARAM_ACM ((u8) BIT(4))
|
|
|
|
#define HE_MU_AC_PARAM_ACI ((u8) (BIT(5) | BIT(6)))
|
|
|
|
/* B7: Reserved */
|
|
|
|
|
|
|
|
/* ECWmin/ECWmax */
|
|
|
|
#define HE_MU_AC_PARAM_ECW_IDX 1
|
|
|
|
#define HE_MU_AC_PARAM_ECWMIN ((u8) (BIT(0) | BIT(1) | BIT(2) | BIT(3)))
|
|
|
|
#define HE_MU_AC_PARAM_ECWMAX ((u8) (BIT(4) | BIT(5) | BIT(6) | BIT(7)))
|
|
|
|
|
|
|
|
/* MU EDCA Timer */
|
|
|
|
#define HE_MU_AC_PARAM_TIMER_IDX 2
|
|
|
|
|
|
|
|
/* HE QoS Info field */
|
|
|
|
#define HE_QOS_INFO_EDCA_PARAM_SET_COUNT ((u8) (BIT(0) | BIT(1) | \
|
|
|
|
BIT(2) | BIT(3)))
|
|
|
|
#define HE_QOS_INFO_Q_ACK ((u8) (BIT(4)))
|
|
|
|
#define HE_QOS_INFO_QUEUE_REQUEST ((u8) (BIT(5)))
|
|
|
|
#define HE_QOS_INFO_TXOP_REQUEST ((u8) (BIT(6)))
|
|
|
|
/* B7: Reserved if sent by an AP; More Data Ack if sent by a non-AP STA */
|
|
|
|
#define HE_QOS_INFO_MORE_DATA_ACK ((u8) (BIT(7)))
|
|
|
|
|
2019-09-10 09:26:01 +02:00
|
|
|
/* IEEE P802.11ay/D4.0, 9.4.2.251 - EDMG Operation element */
|
|
|
|
#define EDMG_BSS_OPERATING_CHANNELS_OFFSET 6
|
|
|
|
#define EDMG_OPERATING_CHANNEL_WIDTH_OFFSET 7
|
|
|
|
|
|
|
|
/* IEEE P802.11ay/D4.0, 29.3.4 - Channelization */
|
|
|
|
enum edmg_channel {
|
|
|
|
EDMG_CHANNEL_9 = 9,
|
|
|
|
EDMG_CHANNEL_10 = 10,
|
|
|
|
EDMG_CHANNEL_11 = 11,
|
|
|
|
EDMG_CHANNEL_12 = 12,
|
|
|
|
EDMG_CHANNEL_13 = 13,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Represent CB2 contiguous channels */
|
|
|
|
#define EDMG_CHANNEL_9_SUBCHANNELS (BIT(0) | BIT(1)) /* channels 1 and 2 */
|
|
|
|
#define EDMG_CHANNEL_10_SUBCHANNELS (BIT(1) | BIT(2)) /* channels 2 and 3 */
|
|
|
|
#define EDMG_CHANNEL_11_SUBCHANNELS (BIT(2) | BIT(3)) /* channels 3 and 4 */
|
|
|
|
#define EDMG_CHANNEL_12_SUBCHANNELS (BIT(3) | BIT(4)) /* channels 4 and 5 */
|
|
|
|
#define EDMG_CHANNEL_13_SUBCHANNELS (BIT(4) | BIT(5)) /* channels 5 and 6 */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* enum edmg_bw_config - Allowed channel bandwidth configurations
|
|
|
|
* @EDMG_BW_CONFIG_4: 2.16 GHz
|
|
|
|
* @EDMG_BW_CONFIG_5: 2.16 GHz and 4.32 GHz
|
|
|
|
*
|
|
|
|
* IEEE P802.11ay/D4.0, 9.4.2.251 (EDMG Operation element),
|
|
|
|
* Table 13 (Channel BW Configuration subfield definition)
|
|
|
|
*/
|
|
|
|
enum edmg_bw_config {
|
|
|
|
EDMG_BW_CONFIG_4 = 4,
|
|
|
|
EDMG_BW_CONFIG_5 = 5,
|
|
|
|
};
|
|
|
|
|
2017-07-05 20:25:07 +02:00
|
|
|
/* DPP Public Action frame identifiers - OUI_WFA */
|
|
|
|
#define DPP_OUI_TYPE 0x1A
|
|
|
|
|
2008-02-28 02:34:43 +01:00
|
|
|
#endif /* IEEE802_11_DEFS_H */
|