wok view wpa_supplicant/stuff/rebased-v2.6-0007-WNM-Ignore-WNM-Sleep-Mode-Response-without-pending-r.patch @ rev 20935
updated fpm2 again (0.76.1 -> 0.79)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 02 16:24:09 2019 +0100 (2019-03-02) |
parents | |
children |
line source
1 From 53c5eb58e95004f86e65ee9fbfccbc291b139057 Mon Sep 17 00:00:00 2001
2 From: Jouni Malinen <j@w1.fi>
3 Date: Fri, 22 Sep 2017 11:25:02 +0300
4 Subject: [PATCH 7/8] WNM: Ignore WNM-Sleep Mode Response without pending
5 request
7 Commit 03ed0a52393710be6bdae657d1b36efa146520e5 ('WNM: Ignore WNM-Sleep
8 Mode Response if WNM-Sleep Mode has not been used') started ignoring the
9 response when no WNM-Sleep Mode Request had been used during the
10 association. This can be made tighter by clearing the used flag when
11 successfully processing a response. This adds an additional layer of
12 protection against unexpected retransmissions of the response frame.
14 Signed-off-by: Jouni Malinen <j@w1.fi>
15 ---
16 wpa_supplicant/wnm_sta.c | 4 +++-
17 1 file changed, 3 insertions(+), 1 deletion(-)
19 diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
20 index 1b3409c..67a07ff 100644
21 --- a/wpa_supplicant/wnm_sta.c
22 +++ b/wpa_supplicant/wnm_sta.c
23 @@ -260,7 +260,7 @@ static void ieee802_11_rx_wnmsleep_resp(struct wpa_supplicant *wpa_s,
25 if (!wpa_s->wnmsleep_used) {
26 wpa_printf(MSG_DEBUG,
27 - "WNM: Ignore WNM-Sleep Mode Response frame since WNM-Sleep Mode has not been used in this association");
28 + "WNM: Ignore WNM-Sleep Mode Response frame since WNM-Sleep Mode operation has not been requested");
29 return;
30 }
32 @@ -299,6 +299,8 @@ static void ieee802_11_rx_wnmsleep_resp(struct wpa_supplicant *wpa_s,
33 return;
34 }
36 + wpa_s->wnmsleep_used = 0;
37 +
38 if (wnmsleep_ie->status == WNM_STATUS_SLEEP_ACCEPT ||
39 wnmsleep_ie->status == WNM_STATUS_SLEEP_EXIT_ACCEPT_GTK_UPDATE) {
40 wpa_printf(MSG_DEBUG, "Successfully recv WNM-Sleep Response "
41 --
42 2.7.4