diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_mac.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net/wireless/ath/ath9k/ar9003_mac.c index 51687e3f63d8..8d1bca03bc0e 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c | |||
@@ -510,7 +510,11 @@ int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah, struct ath_rx_status *rxs, | |||
510 | */ | 510 | */ |
511 | if (rxsp->status11 & AR_CRCErr) | 511 | if (rxsp->status11 & AR_CRCErr) |
512 | rxs->rs_status |= ATH9K_RXERR_CRC; | 512 | rxs->rs_status |= ATH9K_RXERR_CRC; |
513 | else if (rxsp->status11 & AR_PHYErr) { | 513 | else if (rxsp->status11 & AR_DecryptCRCErr) |
514 | rxs->rs_status |= ATH9K_RXERR_DECRYPT; | ||
515 | else if (rxsp->status11 & AR_MichaelErr) | ||
516 | rxs->rs_status |= ATH9K_RXERR_MIC; | ||
517 | if (rxsp->status11 & AR_PHYErr) { | ||
514 | phyerr = MS(rxsp->status11, AR_PHYErrCode); | 518 | phyerr = MS(rxsp->status11, AR_PHYErrCode); |
515 | /* | 519 | /* |
516 | * If we reach a point here where AR_PostDelimCRCErr is | 520 | * If we reach a point here where AR_PostDelimCRCErr is |
@@ -532,11 +536,7 @@ int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah, struct ath_rx_status *rxs, | |||
532 | rxs->rs_status |= ATH9K_RXERR_PHY; | 536 | rxs->rs_status |= ATH9K_RXERR_PHY; |
533 | rxs->rs_phyerr = phyerr; | 537 | rxs->rs_phyerr = phyerr; |
534 | } | 538 | } |
535 | 539 | }; | |
536 | } else if (rxsp->status11 & AR_DecryptCRCErr) | ||
537 | rxs->rs_status |= ATH9K_RXERR_DECRYPT; | ||
538 | else if (rxsp->status11 & AR_MichaelErr) | ||
539 | rxs->rs_status |= ATH9K_RXERR_MIC; | ||
540 | } | 540 | } |
541 | 541 | ||
542 | if (rxsp->status11 & AR_KeyMiss) | 542 | if (rxsp->status11 & AR_KeyMiss) |