]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.fixes/ath5k-5211-protected-fix.patch
Updated xen patches taken from suse.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / ath5k-5211-protected-fix.patch
1 From 0f9a52f34d44a985dd9db9a1c7bdea9a52d0fff7 Mon Sep 17 00:00:00 2001
2 From: Jiri Slaby <jirislaby@gmail.com>
3 Date: Sat, 25 Apr 2009 12:36:41 +0200
4 Subject: ath5k: 5211, don't crypt every protected frame
5 References: bnc#464360
6
7 Set null key type even on ar5211, otherwise it en/decrypts every frame with
8 protected bit set.
9
10 Signed-off-by: Jiri Slaby <jslaby@suse.cz>
11 Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
12 Cc: Bob Copeland <me@bobcopeland.com>
13 Acked-by: Nick Kossifidis <mickflemm@gmail.com>
14 Signed-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