WNM: Use Dialog Token value 1 in WNM-Sleep Mode Request
authorJouni Malinen <jouni@qca.qualcomm.com>
Sun, 16 Dec 2012 10:32:53 +0000 (12:32 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 16 Dec 2012 10:32:53 +0000 (12:32 +0200)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/wnm_sta.c

index bcd1d4a..becae96 100644 (file)
@@ -110,6 +110,7 @@ int ieee802_11_send_wnmsleep_req(struct wpa_supplicant *wpa_s,
                                           WLAN_FC_STYPE_ACTION);
        mgmt->u.action.category = WLAN_ACTION_WNM;
        mgmt->u.action.u.wnm_sleep_req.action = WNM_SLEEP_MODE_REQ;
+       mgmt->u.action.u.wnm_sleep_req.dialogtoken = 1;
        os_memcpy(mgmt->u.action.u.wnm_sleep_req.variable, wnmsleep_ie,
                  wnmsleep_ie_len);
        /* copy TFS IE here */