]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: reorder error codes for spectral
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Wed, 23 Jan 2013 16:38:06 +0000 (17:38 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Jan 2013 20:06:41 +0000 (15:06 -0500)
commite57b448b021583b9ab2cbb4d9828e5a755f33dc8
tree79628af144bab699a031bd13cbbf83fcb1e8ba35
parente26a2a2f5285e5aefd05ee04ff73133b88bdced8
ath9k: reorder error codes for spectral

When using the spectral scan feature, frames with phy errors are
returned for further processing to the driver. However, if the frames
also have an invalid CRC (which seems to happen quite often), the frame
is marked with bad CRC and not with the PHY error bit. The FFT
processing function will thus miss the frames.

Fix this by changing the precedence in error marking.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/mac.c