[kernel] r18696 - in dists/trunk/linux-2.6/debian: . patches/bugfix/all patches/series

Ben Hutchings benh at alioth.debian.org
Thu Feb 16 02:36:25 UTC 2012


Author: benh
Date: Thu Feb 16 02:36:23 2012
New Revision: 18696

Log:
ath9k: fix a WEP crypto related regression (Closes: #659484)

Added:
   dists/trunk/linux-2.6/debian/patches/bugfix/all/ath9k-fix-a-wep-crypto-related-regression.patch
Modified:
   dists/trunk/linux-2.6/debian/changelog
   dists/trunk/linux-2.6/debian/patches/series/base

Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog	Wed Feb 15 15:36:57 2012	(r18695)
+++ dists/trunk/linux-2.6/debian/changelog	Thu Feb 16 02:36:23 2012	(r18696)
@@ -30,6 +30,7 @@
     module-init-tools
   * relay: prevent integer overflow in relay_open()
   * builddeb: Don't create files in /tmp with predictable names
+  * ath9k: fix a WEP crypto related regression (Closes: #659484)
 
  -- Bastian Blank <waldi at debian.org>  Mon, 06 Feb 2012 11:22:07 +0100
 

Added: dists/trunk/linux-2.6/debian/patches/bugfix/all/ath9k-fix-a-wep-crypto-related-regression.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/trunk/linux-2.6/debian/patches/bugfix/all/ath9k-fix-a-wep-crypto-related-regression.patch	Thu Feb 16 02:36:23 2012	(r18696)
@@ -0,0 +1,43 @@
+From f88373fa47f3ce6590fdfaa742d0ddacc2ae017f Mon Sep 17 00:00:00 2001
+From: Felix Fietkau <nbd at openwrt.org>
+Date: Sun, 5 Feb 2012 21:15:17 +0100
+Subject: ath9k: fix a WEP crypto related regression
+
+From: Felix Fietkau <nbd at openwrt.org>
+
+commit f88373fa47f3ce6590fdfaa742d0ddacc2ae017f upstream.
+
+commit b4a82a0 "ath9k_hw: fix interpretation of the rx KeyMiss flag"
+fixed the interpretation of the KeyMiss flag for keycache based lookups,
+however WEP encryption uses a static index, so KeyMiss is always asserted
+for it, even though frames are decrypted properly.
+Fix this by clearing the ATH9K_RXERR_KEYMISS flag if no keycache based
+lookup was performed.
+
+Signed-off-by: Felix Fietkau <nbd at openwrt.org>
+Reported-by: Laurent Bonnans <bonnans.l at gmail.com>
+Reported-by: Jurica Vukadin <u.ra604 at googlemail.com>
+Signed-off-by: John W. Linville <linville at tuxdriver.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
+
+---
+ drivers/net/wireless/ath/ath9k/recv.c |    8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+--- a/drivers/net/wireless/ath/ath9k/recv.c
++++ b/drivers/net/wireless/ath/ath9k/recv.c
+@@ -824,6 +824,14 @@ static bool ath9k_rx_accept(struct ath_c
+ 		(ATH9K_RXERR_DECRYPT | ATH9K_RXERR_CRC | ATH9K_RXERR_MIC |
+ 		 ATH9K_RXERR_KEYMISS));
+ 
++	/*
++	 * Key miss events are only relevant for pairwise keys where the
++	 * descriptor does contain a valid key index. This has been observed
++	 * mostly with CCMP encryption.
++	 */
++	if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID)
++		rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS;
++
+ 	if (!rx_stats->rs_datalen)
+ 		return false;
+         /*

Modified: dists/trunk/linux-2.6/debian/patches/series/base
==============================================================================
--- dists/trunk/linux-2.6/debian/patches/series/base	Wed Feb 15 15:36:57 2012	(r18695)
+++ dists/trunk/linux-2.6/debian/patches/series/base	Thu Feb 16 02:36:23 2012	(r18696)
@@ -79,3 +79,4 @@
 
 + bugfix/all/relay-prevent-integer-overflow-in-relay_open.patch
 + bugfix/all/builddeb-Don-t-create-files-in-tmp-with-predictable-.patch
++ bugfix/all/ath9k-fix-a-wep-crypto-related-regression.patch



More information about the Kernel-svn-changes mailing list