diff options
author | Xi Chen <xichen@qca.qualcomm.com> | 2012-02-26 17:20:00 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-05-03 18:08:19 +0300 |
commit | f2e03085d7f49f9455b25b2b9b0c628bd88e9606 (patch) | |
tree | 99043af410b20f9c7ff5c00038f16fc3ee34841b /src/common | |
parent | 1298c1459481d8d634b5b4f6982689c02e05fce4 (diff) | |
download | external_wpa_supplicant_8_ti-f2e03085d7f49f9455b25b2b9b0c628bd88e9606.zip external_wpa_supplicant_8_ti-f2e03085d7f49f9455b25b2b9b0c628bd88e9606.tar.gz external_wpa_supplicant_8_ti-f2e03085d7f49f9455b25b2b9b0c628bd88e9606.tar.bz2 |
WNM: Define IEEE 802.11v WNM-Sleep elements
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/ieee802_11_defs.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h index b66017c..b892832 100644 --- a/src/common/ieee802_11_defs.h +++ b/src/common/ieee802_11_defs.h @@ -228,6 +228,9 @@ #define WLAN_EID_20_40_BSS_INTOLERANT 73 #define WLAN_EID_OVERLAPPING_BSS_SCAN_PARAMS 74 #define WLAN_EID_MMIE 76 +#define WLAN_EID_TFS_REQ 91 +#define WLAN_EID_TFS_RESP 92 +#define WLAN_EID_WNMSLEEP 93 #define WLAN_EID_TIME_ZONE 98 #define WLAN_EID_LINK_ID 101 #define WLAN_EID_INTERWORKING 107 @@ -488,6 +491,17 @@ struct ieee80211_mgmt { } STRUCT_PACKED sa_query_resp; struct { u8 action; + u8 dialogtoken; + u8 variable[0]; + } STRUCT_PACKED wnm_sleep_req; + struct { + u8 action; + u8 dialogtoken; + le16 keydata_len; + u8 variable[0]; + } STRUCT_PACKED wnm_sleep_resp; + struct { + u8 action; u8 variable[0]; } STRUCT_PACKED public_action; struct { @@ -936,4 +950,28 @@ struct ieee80211_2040_intol_chan_report { u8 variable[0]; /* Channel List */ } STRUCT_PACKED; +/* IEEE 802.11v - WNM-Sleep Mode element */ +struct wnm_sleep_element { + u8 eid; /* WLAN_EID_WNMSLEEP */ + u8 len; + u8 action_type; /* WLAN_WNM_SLEEP_ENTER/EXIT */ + u8 status; + le16 intval; +} STRUCT_PACKED; + +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 +}; + #endif /* IEEE802_11_DEFS_H */ |