]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 May 2011 16:19:41 +0000 (09:19 -0700)
commit5002397e6c6f9c2f5fb92d8990eb2663e43a3012
tree3e14d7558fa18695b417cafb1ec2009c905a6e45
parent36d08a041f93f2c5370f95f9611c9065bb79e4fb
ath9k_hw: partially revert "fix dma descriptor rx error bit parsing"

commit 115dad7a7f42e68840392767323ceb9306dbdb36 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/ar9003_mac.c
drivers/net/wireless/ath/ath9k/mac.c