summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2021-09-23 15:40:42 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2021-09-23 15:40:42 +0000
commit80e5bb08b24231afc2727695c8cea078fd8668a2 (patch)
treefa740d9d769b3b36a42abca2a698a4eaff40fbbb
parente74b44688059860631e956b5ec93344ba2f5cfa8 (diff)
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).
-rw-r--r--sys/net80211/ieee80211_proto.c8
1 files changed, 1 insertions, 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])) {