ath9k: add another batch of stability updates and misc fixes
[openwrt/openwrt.git] / package / mac80211 / patches / 525-ath9k_handle_keymiss.patch
1 --- a/drivers/net/wireless/ath/ath9k/mac.c
2 +++ b/drivers/net/wireless/ath/ath9k/mac.c
3 @@ -701,6 +701,8 @@ int ath9k_hw_rxprocdesc(struct ath_hw *a
4 rs->rs_flags |= ATH9K_RX_DELIM_CRC_POST;
5 if (ads.ds_rxstatus8 & AR_DecryptBusyErr)
6 rs->rs_flags |= ATH9K_RX_DECRYPT_BUSY;
7 + if (ads.ds_rxstatus8 & AR_KeyMiss)
8 + rs->rs_keyix = ATH9K_RXKEYIX_INVALID;
9
10 if ((ads.ds_rxstatus8 & AR_RxFrameOK) == 0) {
11 if (ads.ds_rxstatus8 & AR_CRCErr)
12 --- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c
13 +++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
14 @@ -578,6 +578,9 @@ int ath9k_hw_process_rxdesc_edma(struct
15 if (rxsp->status11 & AR_DecryptBusyErr)
16 rxs->rs_flags |= ATH9K_RX_DECRYPT_BUSY;
17
18 + if (rxsp->status11 & AR_KeyMiss)
19 + rxs->rs_keyix = ATH9K_RXKEYIX_INVALID;
20 +
21 if ((rxsp->status11 & AR_RxFrameOK) == 0) {
22 if (rxsp->status11 & AR_CRCErr) {
23 rxs->rs_status |= ATH9K_RXERR_CRC;