nvram: handle nvram at varying offsets within the eraseblock (fixes Edimax PS-1208mfg...
[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 @@ -713,6 +713,8 @@ int ath9k_hw_rxprocdesc(struct ath_hw *a
4 rs->rs_status |= ATH9K_RXERR_DECRYPT;
5 else if (ads.ds_rxstatus8 & AR_MichaelErr)
6 rs->rs_status |= ATH9K_RXERR_MIC;
7 + else if (ads.ds_rxstatus8 & AR_KeyMiss)
8 + rs->rs_status |= ATH9K_RXERR_DECRYPT;
9 }
10
11 return 0;
12 --- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c
13 +++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
14 @@ -589,7 +589,8 @@ int ath9k_hw_process_rxdesc_edma(struct
15 rxs->rs_status |= ATH9K_RXERR_DECRYPT;
16 } else if (rxsp->status11 & AR_MichaelErr) {
17 rxs->rs_status |= ATH9K_RXERR_MIC;
18 - }
19 + } else if (rxsp->status11 & AR_KeyMiss)
20 + rxs->rs_status |= ATH9K_RXERR_DECRYPT;
21 }
22
23 return 0;