wok diff wpa_supplicant/stuff/rebased-v2.6-0007-WNM-Ignore-WNM-Sleep-Mode-Response-without-pending-r.patch @ rev 22244

updated xorg-setxkbmap (1.3.0 -> 1.3.2)
author Hans-G?nter Theisgen
date Tue Nov 12 16:00:11 2019 +0100 (2019-11-12)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wpa_supplicant/stuff/rebased-v2.6-0007-WNM-Ignore-WNM-Sleep-Mode-Response-without-pending-r.patch	Tue Nov 12 16:00:11 2019 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +From 53c5eb58e95004f86e65ee9fbfccbc291b139057 Mon Sep 17 00:00:00 2001
     1.5 +From: Jouni Malinen <j@w1.fi>
     1.6 +Date: Fri, 22 Sep 2017 11:25:02 +0300
     1.7 +Subject: [PATCH 7/8] WNM: Ignore WNM-Sleep Mode Response without pending
     1.8 + request
     1.9 +
    1.10 +Commit 03ed0a52393710be6bdae657d1b36efa146520e5 ('WNM: Ignore WNM-Sleep
    1.11 +Mode Response if WNM-Sleep Mode has not been used') started ignoring the
    1.12 +response when no WNM-Sleep Mode Request had been used during the
    1.13 +association. This can be made tighter by clearing the used flag when
    1.14 +successfully processing a response. This adds an additional layer of
    1.15 +protection against unexpected retransmissions of the response frame.
    1.16 +
    1.17 +Signed-off-by: Jouni Malinen <j@w1.fi>
    1.18 +---
    1.19 + wpa_supplicant/wnm_sta.c | 4 +++-
    1.20 + 1 file changed, 3 insertions(+), 1 deletion(-)
    1.21 +
    1.22 +diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
    1.23 +index 1b3409c..67a07ff 100644
    1.24 +--- a/wpa_supplicant/wnm_sta.c
    1.25 ++++ b/wpa_supplicant/wnm_sta.c
    1.26 +@@ -260,7 +260,7 @@ static void ieee802_11_rx_wnmsleep_resp(struct wpa_supplicant *wpa_s,
    1.27 + 
    1.28 + 	if (!wpa_s->wnmsleep_used) {
    1.29 + 		wpa_printf(MSG_DEBUG,
    1.30 +-			   "WNM: Ignore WNM-Sleep Mode Response frame since WNM-Sleep Mode has not been used in this association");
    1.31 ++			   "WNM: Ignore WNM-Sleep Mode Response frame since WNM-Sleep Mode operation has not been requested");
    1.32 + 		return;
    1.33 + 	}
    1.34 + 
    1.35 +@@ -299,6 +299,8 @@ static void ieee802_11_rx_wnmsleep_resp(struct wpa_supplicant *wpa_s,
    1.36 + 		return;
    1.37 + 	}
    1.38 + 
    1.39 ++	wpa_s->wnmsleep_used = 0;
    1.40 ++
    1.41 + 	if (wnmsleep_ie->status == WNM_STATUS_SLEEP_ACCEPT ||
    1.42 + 	    wnmsleep_ie->status == WNM_STATUS_SLEEP_EXIT_ACCEPT_GTK_UPDATE) {
    1.43 + 		wpa_printf(MSG_DEBUG, "Successfully recv WNM-Sleep Response "
    1.44 +-- 
    1.45 +2.7.4
    1.46 +