From 80e5bb08b24231afc2727695c8cea078fd8668a2 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Thu, 23 Sep 2021 15:40:42 +0000 Subject: Revert ieee80211_proto.c r1.97 (cvs commit ID 8vKZsdvvkjTr5BG5). My assumption that frames which are buffered on the power save queue were already encrypted was wrong. And the issue which this change intended to fix is still present (reported by Mikolaj Kucharski). --- sys/net80211/ieee80211_proto.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index 17d3fb902d5..7e53f9eb8e1 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_proto.c,v 1.103 2021/09/23 15:13:47 stsp Exp $ */ +/* $OpenBSD: ieee80211_proto.c,v 1.104 2021/09/23 15:40:41 stsp Exp $ */ /* $NetBSD: ieee80211_proto.c,v 1.8 2004/04/30 23:58:20 dyoung Exp $ */ /*- @@ -471,12 +471,6 @@ ieee80211_setkeysdone(struct ieee80211com *ic) { u_int8_t kid; - /* - * Discard frames buffered for power-saving which were encrypted with - * the old group key. Clients are no longer able to decrypt them. - */ - mq_purge(&ic->ic_bss->ni_savedq); - /* install GTK */ kid = (ic->ic_def_txkey == 1) ? 2 : 1; switch ((*ic->ic_set_key)(ic, ic->ic_bss, &ic->ic_nw_keys[kid])) { -- cgit v1.2.3