diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2008-08-12 19:34:36 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2008-08-12 19:34:36 +0000 |
commit | 37147c1ecbdb7abd4af0ea64a4a8330770d81b71 (patch) | |
tree | 0f8cc9cf9a24feaf16b591323cf157c410030d37 /sys/net80211/ieee80211_pae_output.c | |
parent | 8972bfc0d22e8b7c5ba29982fdd4256f124523f9 (diff) |
v3 descriptors use AES Key Wrap too.
Diffstat (limited to 'sys/net80211/ieee80211_pae_output.c')
-rw-r--r-- | sys/net80211/ieee80211_pae_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_pae_output.c b/sys/net80211/ieee80211_pae_output.c index f86e5ac4e9f..2d1f5bc4173 100644 --- a/sys/net80211/ieee80211_pae_output.c +++ b/sys/net80211/ieee80211_pae_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_pae_output.c,v 1.9 2008/08/12 19:29:07 damien Exp $ */ +/* $OpenBSD: ieee80211_pae_output.c,v 1.10 2008/08/12 19:34:35 damien Exp $ */ /*- * Copyright (c) 2007,2008 Damien Bergamini <damien.bergamini@free.fr> @@ -112,7 +112,7 @@ ieee80211_send_eapol_key(struct ieee80211com *ic, struct mbuf *m, } ieee80211_eapol_key_encrypt(ic, key, ptk->kek); - if ((info & EAPOL_KEY_VERSION_MASK) == EAPOL_KEY_DESC_V2) { + if ((info & EAPOL_KEY_VERSION_MASK) != EAPOL_KEY_DESC_V1) { /* AES Key Wrap adds 8 bytes + padding */ m->m_pkthdr.len = m->m_len = sizeof(*eh) + 4 + BE_READ_2(key->len); |