]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/net/wireless/ath/ath9k/ar9003_mac.c
Merge branch 'master' into csb1725
[mv-sheeva.git] / drivers / net / wireless / ath / ath9k / ar9003_mac.c
index 5b995bee70ae4a931e6337c6723618edef4df725..3b424ca1ba844855b798e757e0d0727dd29e9e27 100644 (file)
@@ -185,7 +185,7 @@ static bool ar9003_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked)
                        ath_print(common, ATH_DBG_INTERRUPT,
                                  "AR_INTR_SYNC_LOCAL_TIMEOUT\n");
 
-                       REG_WRITE(ah, AR_INTR_SYNC_CAUSE_CLR, sync_cause);
+               REG_WRITE(ah, AR_INTR_SYNC_CAUSE_CLR, sync_cause);
                (void) REG_READ(ah, AR_INTR_SYNC_CAUSE_CLR);
 
        }
@@ -616,7 +616,8 @@ int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah, struct ath_rx_status *rxs,
                        rxs->rs_status |= ATH9K_RXERR_DECRYPT;
                } else if (rxsp->status11 & AR_MichaelErr) {
                        rxs->rs_status |= ATH9K_RXERR_MIC;
-               }
+               } else if (rxsp->status11 & AR_KeyMiss)
+                       rxs->rs_status |= ATH9K_RXERR_DECRYPT;
        }
 
        return 0;