diff options
author | sam <sam@FreeBSD.org> | 2008-05-28 23:25:36 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-05-28 23:25:36 +0000 |
commit | 6be5c5b31dc02a4f03bf8981291eaf6adfce5882 (patch) | |
tree | 8042ceac97a9aac2ac2cceebf3b970b1516b38de /sys/net80211/ieee80211_crypto_wep.c | |
parent | fae2bc824640ef5fee38c4fe973c7764f0ea12cb (diff) | |
download | FreeBSD-src-6be5c5b31dc02a4f03bf8981291eaf6adfce5882.zip FreeBSD-src-6be5c5b31dc02a4f03bf8981291eaf6adfce5882.tar.gz |
Split s/w crypt/mic attributes to allow future hackery; this change
should be a noop.
Diffstat (limited to 'sys/net80211/ieee80211_crypto_wep.c')
-rw-r--r-- | sys/net80211/ieee80211_crypto_wep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_crypto_wep.c b/sys/net80211/ieee80211_crypto_wep.c index df988a6..7eade59 100644 --- a/sys/net80211/ieee80211_crypto_wep.c +++ b/sys/net80211/ieee80211_crypto_wep.c @@ -186,7 +186,7 @@ wep_encap(struct ieee80211_key *k, struct mbuf *m, uint8_t keyid) /* * Finally, do software encrypt if neeed. */ - if ((k->wk_flags & IEEE80211_KEY_SWCRYPT) && + if ((k->wk_flags & IEEE80211_KEY_SWENCRYPT) && !wep_encrypt(k, m, hdrlen)) return 0; @@ -222,7 +222,7 @@ wep_decap(struct ieee80211_key *k, struct mbuf *m, int hdrlen) * If so we just strip the header; otherwise we need to * handle the decrypt in software. */ - if ((k->wk_flags & IEEE80211_KEY_SWCRYPT) && + if ((k->wk_flags & IEEE80211_KEY_SWDECRYPT) && !wep_decrypt(k, m, hdrlen)) { IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, "%s", "WEP ICV mismatch on decrypt"); |