|
@@ -92,7 +92,7 @@
|
|
|
#define WLAN_CAPABILITY_SHORT_SLOT_TIME BIT(10)
|
|
|
#define WLAN_CAPABILITY_DSSS_OFDM BIT(13)
|
|
|
|
|
|
-/* Status codes */
|
|
|
+/* Status codes (IEEE 802.11-2007, 7.3.1.9, Table 7-23) */
|
|
|
#define WLAN_STATUS_SUCCESS 0
|
|
|
#define WLAN_STATUS_UNSPECIFIED_FAILURE 1
|
|
|
#define WLAN_STATUS_CAPS_UNSUPPORTED 10
|
|
@@ -112,10 +112,12 @@
|
|
|
#define WLAN_STATUS_SPEC_MGMT_REQUIRED 22
|
|
|
#define WLAN_STATUS_PWR_CAPABILITY_NOT_VALID 23
|
|
|
#define WLAN_STATUS_SUPPORTED_CHANNEL_NOT_VALID 24
|
|
|
-/* 802.11g */
|
|
|
+/* IEEE 802.11g */
|
|
|
#define WLAN_STATUS_ASSOC_DENIED_NO_SHORT_SLOT_TIME 25
|
|
|
#define WLAN_STATUS_ASSOC_DENIED_NO_ER_PBCC 26
|
|
|
#define WLAN_STATUS_ASSOC_DENIED_NO_DSSS_OFDM 27
|
|
|
+/* IEEE 802.11w */
|
|
|
+#define WLAN_STATUS_ASSOC_REJECTED_TEMPORARILY 30
|
|
|
/* IEEE 802.11i */
|
|
|
#define WLAN_STATUS_INVALID_IE 40
|
|
|
#define WLAN_STATUS_GROUP_CIPHER_NOT_VALID 41
|
|
@@ -136,7 +138,7 @@
|
|
|
#define WLAN_STATUS_INVALID_MDIE 55
|
|
|
#define WLAN_STATUS_INVALID_FTIE 56
|
|
|
|
|
|
-/* Reason codes */
|
|
|
+/* Reason codes (IEEE 802.11-2007, 7.3.1.7, Table 7-22) */
|
|
|
#define WLAN_REASON_UNSPECIFIED 1
|
|
|
#define WLAN_REASON_PREV_AUTH_NOT_VALID 2
|
|
|
#define WLAN_REASON_DEAUTH_LEAVING 3
|
|
@@ -146,7 +148,7 @@
|
|
|
#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
|
|
|
-/* 802.11h */
|
|
|
+/* IEEE 802.11h */
|
|
|
#define WLAN_REASON_PWR_CAPABILITY_NOT_VALID 10
|
|
|
#define WLAN_REASON_SUPPORTED_CHANNEL_NOT_VALID 11
|
|
|
/* IEEE 802.11i */
|
|
@@ -162,6 +164,9 @@
|
|
|
#define WLAN_REASON_INVALID_RSN_IE_CAPAB 22
|
|
|
#define WLAN_REASON_IEEE_802_1X_AUTH_FAILED 23
|
|
|
#define WLAN_REASON_CIPHER_SUITE_REJECTED 24
|
|
|
+/* IEEE 802.11w */
|
|
|
+#define WLAN_REASON_INVALID_GROUP_MGMT_CIPHER 25
|
|
|
+#define WLAN_REASON_ROBUST_MGMT_FRAME_POLICY_VIOLATION 26
|
|
|
|
|
|
|
|
|
/* Information Element IDs */
|
|
@@ -199,16 +204,19 @@
|
|
|
#define WLAN_EID_20_40_BSS_COEXISTENCE 72
|
|
|
#define WLAN_EID_20_40_BSS_INTOLERANT 73
|
|
|
#define WLAN_EID_OVERLAPPING_BSS_SCAN_PARAMS 74
|
|
|
+#define WLAN_EID_MMIE 76
|
|
|
+#define WLAN_EID_ASSOC_COMEBACK_TIME 77
|
|
|
#define WLAN_EID_VENDOR_SPECIFIC 221
|
|
|
|
|
|
|
|
|
-/* Action frame categories */
|
|
|
+/* Action frame categories (IEEE 802.11-2007, 7.3.1.11, Table 7-24) */
|
|
|
#define WLAN_ACTION_SPECTRUM_MGMT 0
|
|
|
#define WLAN_ACTION_QOS 1
|
|
|
#define WLAN_ACTION_DLS 2
|
|
|
#define WLAN_ACTION_BLOCK_ACK 3
|
|
|
#define WLAN_ACTION_RADIO_MEASUREMENT 5
|
|
|
#define WLAN_ACTION_FT 6
|
|
|
+#define WLAN_ACTION_PING 8
|
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
@@ -306,6 +314,14 @@ struct ieee80211_mgmt {
|
|
|
le16 status_code;
|
|
|
u8 variable[0]; /* FT Request */
|
|
|
} STRUCT_PACKED ft_action_resp;
|
|
|
+ struct {
|
|
|
+ u8 action;
|
|
|
+ u8 transaction_id[16];
|
|
|
+ } STRUCT_PACKED ping_req;
|
|
|
+ struct {
|
|
|
+ u8 action;
|
|
|
+ u8 transaction_id[16];
|
|
|
+ } STRUCT_PACKED ping_resp;
|
|
|
} u;
|
|
|
} STRUCT_PACKED action;
|
|
|
} u;
|