|
@@ -613,9 +613,9 @@ int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah, struct ath_rx_status *rxs,
|
|
* possibly be reviewing the last subframe. AR_CRCErr
|
|
* possibly be reviewing the last subframe. AR_CRCErr
|
|
* is the CRC of the actual data.
|
|
* is the CRC of the actual data.
|
|
*/
|
|
*/
|
|
- if (rxsp->status11 & AR_CRCErr) {
|
|
|
|
|
|
+ if (rxsp->status11 & AR_CRCErr)
|
|
rxs->rs_status |= ATH9K_RXERR_CRC;
|
|
rxs->rs_status |= ATH9K_RXERR_CRC;
|
|
- } else if (rxsp->status11 & AR_PHYErr) {
|
|
|
|
|
|
+ if (rxsp->status11 & AR_PHYErr) {
|
|
phyerr = MS(rxsp->status11, AR_PHYErrCode);
|
|
phyerr = MS(rxsp->status11, AR_PHYErrCode);
|
|
/*
|
|
/*
|
|
* If we reach a point here where AR_PostDelimCRCErr is
|
|
* If we reach a point here where AR_PostDelimCRCErr is
|
|
@@ -638,11 +638,12 @@ int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah, struct ath_rx_status *rxs,
|
|
rxs->rs_phyerr = phyerr;
|
|
rxs->rs_phyerr = phyerr;
|
|
}
|
|
}
|
|
|
|
|
|
- } else if (rxsp->status11 & AR_DecryptCRCErr) {
|
|
|
|
|
|
+ }
|
|
|
|
+ if (rxsp->status11 & AR_DecryptCRCErr)
|
|
rxs->rs_status |= ATH9K_RXERR_DECRYPT;
|
|
rxs->rs_status |= ATH9K_RXERR_DECRYPT;
|
|
- } else if (rxsp->status11 & AR_MichaelErr) {
|
|
|
|
|
|
+ if (rxsp->status11 & AR_MichaelErr)
|
|
rxs->rs_status |= ATH9K_RXERR_MIC;
|
|
rxs->rs_status |= ATH9K_RXERR_MIC;
|
|
- } else if (rxsp->status11 & AR_KeyMiss)
|
|
|
|
|
|
+ if (rxsp->status11 & AR_KeyMiss)
|
|
rxs->rs_status |= ATH9K_RXERR_DECRYPT;
|
|
rxs->rs_status |= ATH9K_RXERR_DECRYPT;
|
|
}
|
|
}
|
|
|
|
|