ath5k: 5211, don't crypt every protected frame
authorJiri Slaby <[email protected]>
Sat, 25 Apr 2009 12:09:23 +0000 (14:09 +0200)
committerJohn W. Linville <[email protected]>
Wed, 6 May 2009 19:14:41 +0000 (15:14 -0400)
Set null key type even on ar5211, otherwise it en/decrypts every frame with
protected bit set which renders the card unusable on encrypted networks.

Signed-off-by: Jiri Slaby <[email protected]>
Cc: Luis R. Rodriguez <[email protected]>
Cc: Bob Copeland <[email protected]>
Acked-by: Nick Kossifidis <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/ath/ath5k/pcu.c

index 55122f1e1986b49ab00f9a6625559580a1b41d8a..5f07e876d4bd131bceb9e30924f752c0d243c7fb 100644 (file)
@@ -1003,7 +1003,7 @@ int ath5k_hw_reset_key(struct ath5k_hw *ah, u16 entry)
         * Note2: Windows driver (ndiswrapper) sets this to
         *        0x00000714 instead of 0x00000007
         */
-       if (ah->ah_version > AR5K_AR5211) {
+       if (ah->ah_version >= AR5K_AR5211) {
                ath5k_hw_reg_write(ah, AR5K_KEYTABLE_TYPE_NULL,
                                AR5K_KEYTABLE_TYPE(entry));