summaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2007-08-01 12:02:51 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2007-08-01 12:02:51 +0000
commite14e9b220951da0c6cecd7722bf8370e1c5f9664 (patch)
treec6fc414aff21bda12b08c5236ae985f49edd32fc /sys/net80211
parent4611d860f2964749c381bf404adef96d4bd062eb (diff)
KEYACK bit is not set for 4-way handshake messages 2 and 4.
it is set in message 3.
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c
index cd507a42539..c7e36edab47 100644
--- a/sys/net80211/ieee80211_input.c
+++ b/sys/net80211/ieee80211_input.c
@@ -1,5 +1,5 @@
/* $NetBSD: ieee80211_input.c,v 1.24 2004/05/31 11:12:24 dyoung Exp $ */
-/* $OpenBSD: ieee80211_input.c,v 1.46 2007/08/01 11:59:40 damien Exp $ */
+/* $OpenBSD: ieee80211_input.c,v 1.47 2007/08/01 12:02:50 damien Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
* Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
@@ -2420,7 +2420,7 @@ ieee80211_recv_eapol(struct ieee80211com *ic, struct mbuf *m0,
} else if (info & EAPOL_KEY_PAIRWISE) {
/* 4-Way Handshake */
if (info & EAPOL_KEY_KEYMIC) {
- if (info & EAPOL_KEY_KEYACK) {
+ if (!(info & EAPOL_KEY_KEYACK)) {
if (info & EAPOL_KEY_SECURE)
ieee80211_recv_4way_msg4(ic, key, ni);
else