diff options
author | Jouni Malinen <jkmaline@cc.hut.fi> | 2006-03-25 00:24:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-27 11:40:32 -0500 |
commit | cfa146e4be274fd04bfdb26b3c96cdfe81a43dc2 (patch) | |
tree | cd6985cc7bdec3c90afbb59bf83d459ecc06931f /drivers/net/wireless/hostap | |
parent | 79058acaf5b6d4bcc3056382619de3ca9cebc62f (diff) |
[PATCH] hostap: Fix EAPOL frame encryption
Fixed encrypted of EAPOL frames from wlan#ap interface (hostapd). This
was broken when moving to use new frame control field defines in
net/ieee80211.h. hostapd uses Protected flag, not protocol version
(which was cleared in this function anyway). This fixes WPA group key
handshake and re-authentication.
http://hostap.epitest.fi/bugz/show_bug.cgi?id=126
Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_80211_tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_80211_tx.c b/drivers/net/wireless/hostap/hostap_80211_tx.c index a881212e1fae..06a5214145e3 100644 --- a/drivers/net/wireless/hostap/hostap_80211_tx.c +++ b/drivers/net/wireless/hostap/hostap_80211_tx.c | |||
@@ -469,7 +469,7 @@ int hostap_master_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
469 | } | 469 | } |
470 | 470 | ||
471 | if (local->ieee_802_1x && meta->ethertype == ETH_P_PAE && tx.crypt && | 471 | if (local->ieee_802_1x && meta->ethertype == ETH_P_PAE && tx.crypt && |
472 | !(fc & IEEE80211_FCTL_VERS)) { | 472 | !(fc & IEEE80211_FCTL_PROTECTED)) { |
473 | no_encrypt = 1; | 473 | no_encrypt = 1; |
474 | PDEBUG(DEBUG_EXTRA2, "%s: TX: IEEE 802.1X - passing " | 474 | PDEBUG(DEBUG_EXTRA2, "%s: TX: IEEE 802.1X - passing " |
475 | "unencrypted EAPOL frame\n", dev->name); | 475 | "unencrypted EAPOL frame\n", dev->name); |