diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 94c526669a4d..b44736782abd 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -756,12 +756,12 @@ static int ath_reserve_key_cache_slot(struct ath_softc *sc) | |||
756 | (test_bit(i , sc->sc_keymap) || | 756 | (test_bit(i , sc->sc_keymap) || |
757 | test_bit(i + 32, sc->sc_keymap) || | 757 | test_bit(i + 32, sc->sc_keymap) || |
758 | test_bit(i + 64 + 32, sc->sc_keymap))) | 758 | test_bit(i + 64 + 32, sc->sc_keymap))) |
759 | return i; | 759 | return i + 64; |
760 | if (!test_bit(i + 64 + 32, sc->sc_keymap) && | 760 | if (!test_bit(i + 64 + 32, sc->sc_keymap) && |
761 | (test_bit(i, sc->sc_keymap) || | 761 | (test_bit(i, sc->sc_keymap) || |
762 | test_bit(i + 32, sc->sc_keymap) || | 762 | test_bit(i + 32, sc->sc_keymap) || |
763 | test_bit(i + 64, sc->sc_keymap))) | 763 | test_bit(i + 64, sc->sc_keymap))) |
764 | return i; | 764 | return i + 64 + 32; |
765 | } | 765 | } |
766 | } else { | 766 | } else { |
767 | for (i = IEEE80211_WEP_NKID; i < sc->sc_keymax / 2; i++) { | 767 | for (i = IEEE80211_WEP_NKID; i < sc->sc_keymax / 2; i++) { |