[package] 6in4: fix logic fail in previous commit
[openwrt.git] / package / mac80211 / patches / 510-ath9k_handle_keymiss.patch
index f4ff69b..c63ad3f 100644 (file)
@@ -1,8 +1,8 @@
 --- a/drivers/net/wireless/ath/ath9k/mac.c
 +++ b/drivers/net/wireless/ath/ath9k/mac.c
-@@ -713,6 +713,8 @@ int ath9k_hw_rxprocdesc(struct ath_hw *a
-                       rs->rs_status |= ATH9K_RXERR_DECRYPT;
-               else if (ads.ds_rxstatus8 & AR_MichaelErr)
+@@ -714,6 +714,8 @@ int ath9k_hw_rxprocdesc(struct ath_hw *a
+               else if ((ads.ds_rxstatus8 & AR_MichaelErr) &&
+                        rs->rs_keyix != ATH9K_RXKEYIX_INVALID)
                        rs->rs_status |= ATH9K_RXERR_MIC;
 +              else if (ads.ds_rxstatus8 & AR_KeyMiss)
 +                      rs->rs_status |= ATH9K_RXERR_DECRYPT;
This page took 0.019972 seconds and 4 git commands to generate.