ath9k: fix spectral scan endless mode on AR9002
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Thu, 10 Jan 2013 10:45:14 +0000 (11:45 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 11 Jan 2013 19:49:59 +0000 (14:49 -0500)
There was a copy+paste error in ar9002 for the endless spectral mode,
fix that.

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/ar9002_phy.c

index 51b7c81..2cb665e 100644 (file)
@@ -581,7 +581,7 @@ void ar9002_hw_spectral_scan_config(struct ath_hw *ah,
         */
        count = param->count;
        if (param->endless)
-               count = 0;
+               count = 0x80;
        else if (count & 0x80)
                count = 0x7f;