ath9k_hw: partially revert "fix dma descriptor rx error bit parsing"
authorFelix Fietkau <nbd@openwrt.org>
Thu, 13 Jan 2011 23:06:27 +0000 (00:06 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 19 Jan 2011 16:36:09 +0000 (11:36 -0500)
commit115dad7a7f42e68840392767323ceb9306dbdb36
treee2ab014c925b9cfb0836aca470feac423755e553
parentdf6ba5d80d6c9b51471d5fa046c3c06988e5f62a
ath9k_hw: partially revert "fix dma descriptor rx error bit parsing"

The rx error bit parsing was changed to consider PHY errors and various
decryption errors separately. While correct according to the documentation,
this is causing spurious decryption error reports in some situations.

Fix this by restoring the original order of the checks in those places,
where the errors are meant to be mutually exclusive.

If a CRC error is reported, then MIC failure and decryption errors
are irrelevant, and a PHY error is unlikely.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_mac.c
drivers/net/wireless/ath/ath9k/mac.c