From: Felix Fietkau Date: Sun, 7 Apr 2013 22:04:12 +0000 (+0200) Subject: ath9k: detect more kinds of invalid descriptors X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~43^2^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3747c3eef6df9bf936fc571ab64122e651db6137;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed