]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.fixes/ath5k-5211-protected-fix.patch
Updated xen patches taken from suse.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / ath5k-5211-protected-fix.patch
CommitLineData
00e5a55c
BS
1From 0f9a52f34d44a985dd9db9a1c7bdea9a52d0fff7 Mon Sep 17 00:00:00 2001
2From: Jiri Slaby <jirislaby@gmail.com>
3Date: Sat, 25 Apr 2009 12:36:41 +0200
4Subject: ath5k: 5211, don't crypt every protected frame
5References: bnc#464360
6
7Set null key type even on ar5211, otherwise it en/decrypts every frame with
8protected bit set.
9
10Signed-off-by: Jiri Slaby <jslaby@suse.cz>
11Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
12Cc: Bob Copeland <me@bobcopeland.com>
13Acked-by: Nick Kossifidis <mickflemm@gmail.com>
14Signed-off-by: John W. Linville <linville@tuxdriver.com>
15---
16 drivers/net/wireless/ath5k/hw.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19--- a/drivers/net/wireless/ath5k/hw.c
20+++ b/drivers/net/wireless/ath5k/hw.c
21@@ -3134,7 +3134,7 @@ int ath5k_hw_reset_key(struct ath5k_hw *
22 * Note2: Windows driver (ndiswrapper) sets this to
23 * 0x00000714 instead of 0x00000007
24 */
25- if (ah->ah_version > AR5K_AR5211)
26+ if (ah->ah_version >= AR5K_AR5211)
27 ath5k_hw_reg_write(ah, AR5K_KEYTABLE_TYPE_NULL,
28 AR5K_KEYTABLE_TYPE(entry));
29