]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: detect more kinds of invalid descriptors
authorFelix Fietkau <nbd@openwrt.org>
Sun, 7 Apr 2013 22:04:12 +0000 (00:04 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Apr 2013 18:10:33 +0000 (14:10 -0400)
commit1bbb3198d6a1aad7f0d34ed2fd9ebda6a595a8b2
tree21a031787be78b7cc9e883355e96526e67bcd5dc
parent849aedee730d53f180bf944e20b73d4c117b2a83
ath9k: detect more kinds of invalid descriptors

If AR_CRCErr, AR_PHYErr, AR_DecryptCRCErr or AR_MichaelErr is indicated
in the rx status word, but AR_RxFrameOK is also set, the descriptor
contents are typically invalid. This can show up as a warning about
invalid MCS rates in a frame. Even with those checks in place, a
descriptor with invalid MCS rates can still sometimes make it through to
the driver (mostly on older hardware like AR91xx).

Detect such errors in the last descriptor of a frame and discard the
whole frame if present.

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