]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/common/ieee802_11_defs.h
WNM: Use defined macros for WNM-Sleep Mode Action Type values
[thirdparty/hostap.git] / src / common / ieee802_11_defs.h
index 07c85807aa493ecd754a1563e77bff50abd841bf..484a5b9c48b331d72ad76bade10a0196a9ed1769 100644 (file)
@@ -1048,11 +1048,14 @@ struct ieee80211_2040_intol_chan_report {
 struct wnm_sleep_element {
        u8 eid;     /* WLAN_EID_WNMSLEEP */
        u8 len;
-       u8 action_type; /* WLAN_WNM_SLEEP_ENTER/EXIT */
+       u8 action_type; /* WNM_SLEEP_ENTER/WNM_SLEEP_MODE_EXIT */
        u8 status;
        le16 intval;
 } STRUCT_PACKED;
 
+#define WNM_SLEEP_MODE_ENTER 0
+#define WNM_SLEEP_MODE_EXIT 1
+
 enum wnm_sleep_mode_response_status {
        WNM_STATUS_SLEEP_ACCEPT = 0,
        WNM_STATUS_SLEEP_EXIT_ACCEPT_GTK_UPDATE = 1,