]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
one more patch
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Apr 2006 22:17:45 +0000 (15:17 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Apr 2006 22:17:45 +0000 (15:17 -0700)
queue-2.6.16/hostap_fix_eapol_crypt.patch [new file with mode: 0644]
queue-2.6.16/series

diff --git a/queue-2.6.16/hostap_fix_eapol_crypt.patch b/queue-2.6.16/hostap_fix_eapol_crypt.patch
new file mode 100644 (file)
index 0000000..3ee111c
--- /dev/null
@@ -0,0 +1,34 @@
+From stable-bounces@linux.kernel.org Fri Mar 24 21:34:41 2006
+Message-Id: <20060325053114.138951000@localhost>
+Date: Fri, 24 Mar 2006 21:24:55 -0800
+From: Jouni Malinen <jkmaline@cc.hut.fi>
+To: "John W. Linville" <linville@tuxdriver.com>
+Content-Disposition: inline; filename=hostap_fix_eapol_crypt.diff
+Cc: netdev@vger.kernel.org, stable@kernel.org
+Subject: [stable] [PATCH 2/2] 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>
+
+
+---
+ drivers/net/wireless/hostap/hostap_80211_tx.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- linux-2.6.16.1.orig/drivers/net/wireless/hostap/hostap_80211_tx.c
++++ linux-2.6.16.1/drivers/net/wireless/hostap/hostap_80211_tx.c
+@@ -469,7 +469,7 @@ int hostap_master_start_xmit(struct sk_b
+       }
+       if (local->ieee_802_1x && meta->ethertype == ETH_P_PAE && tx.crypt &&
+-          !(fc & IEEE80211_FCTL_VERS)) {
++          !(fc & IEEE80211_FCTL_PROTECTED)) {
+               no_encrypt = 1;
+               PDEBUG(DEBUG_EXTRA2, "%s: TX: IEEE 802.1X - passing "
+                      "unencrypted EAPOL frame\n", dev->name);
index 72bd6763d85f52ceb9159fd7505aca61dc481cb1..5cee99ed6630ce0068f610d9310e4cd7e67cb8cb 100644 (file)
@@ -21,3 +21,4 @@ drivers-net-wireless-ipw2200.c-fix-an.patch
 clameter-sgi.com-re-fw-2.6.16-crashes-when-running.patch
 airo-_cs-crypto-fixes.patch
 add-default-entry-for-ctl-travel-master.patch
+hostap_fix_eapol_crypt.patch