summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-02-03 16:21:07 +0000
committersam <sam@FreeBSD.org>2005-02-03 16:21:07 +0000
commita1edfec034f2234b245ae11324271d376a93396e (patch)
tree25b84017e8cbc088ddd898d43a40c6d4ddf1d2bc
parente110a325c42abb1fe49c7a2de80dce8ececf4afa (diff)
downloadFreeBSD-src-a1edfec034f2234b245ae11324271d376a93396e.zip
FreeBSD-src-a1edfec034f2234b245ae11324271d376a93396e.tar.gz
correct check for unicast key being setup; wpa_supplicant in particular
uses only the global key state so looking in the per-node key slot is wrong Submitted by: Tai-hwa Liang
-rw-r--r--sys/net80211/ieee80211_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index e82c866..ef5cbd0 100644
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -563,7 +563,7 @@ ieee80211_encap(struct ieee80211com *ic, struct mbuf *m,
*/
if (eh.ether_type != htons(ETHERTYPE_PAE) ||
((ic->ic_flags & IEEE80211_F_WPA) &&
- !KEY_UNDEFINED(ni->ni_ucastkey))) {
+ !KEY_UNDEFINED(*key))) {
wh->i_fc[1] |= IEEE80211_FC1_WEP;
/* XXX do fragmentation */
if (!ieee80211_crypto_enmic(ic, key, m)) {
OpenPOWER on IntegriCloud