diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/recv.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/recv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 301ef3e57145..544e5490ca2e 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c | |||
@@ -812,6 +812,7 @@ static bool ath9k_rx_accept(struct ath_common *common, | |||
812 | is_valid_tkip = rx_stats->rs_keyix != ATH9K_RXKEYIX_INVALID && | 812 | is_valid_tkip = rx_stats->rs_keyix != ATH9K_RXKEYIX_INVALID && |
813 | test_bit(rx_stats->rs_keyix, common->tkip_keymap); | 813 | test_bit(rx_stats->rs_keyix, common->tkip_keymap); |
814 | strip_mic = is_valid_tkip && ieee80211_is_data(fc) && | 814 | strip_mic = is_valid_tkip && ieee80211_is_data(fc) && |
815 | ieee80211_has_protected(fc) && | ||
815 | !(rx_stats->rs_status & | 816 | !(rx_stats->rs_status & |
816 | (ATH9K_RXERR_DECRYPT | ATH9K_RXERR_CRC | ATH9K_RXERR_MIC | | 817 | (ATH9K_RXERR_DECRYPT | ATH9K_RXERR_CRC | ATH9K_RXERR_MIC | |
817 | ATH9K_RXERR_KEYMISS)); | 818 | ATH9K_RXERR_KEYMISS)); |
@@ -907,7 +908,7 @@ static int ath9k_process_rate(struct ath_common *common, | |||
907 | struct ieee80211_supported_band *sband; | 908 | struct ieee80211_supported_band *sband; |
908 | enum ieee80211_band band; | 909 | enum ieee80211_band band; |
909 | unsigned int i = 0; | 910 | unsigned int i = 0; |
910 | struct ath_softc *sc = (struct ath_softc *) common->priv; | 911 | struct ath_softc __maybe_unused *sc = common->priv; |
911 | 912 | ||
912 | band = hw->conf.channel->band; | 913 | band = hw->conf.channel->band; |
913 | sband = hw->wiphy->bands[band]; | 914 | sband = hw->wiphy->bands[band]; |