]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ath9k_hw: set spectral scan enable bit on trigger for AR9003+
authorFelix Fietkau <nbd@nbd.name>
Mon, 30 Jul 2018 18:31:15 +0000 (21:31 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 31 Jul 2018 07:51:35 +0000 (10:51 +0300)
AR9002 code and the QCA AR9003+ reference code do the same.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/ar9003_phy.c

index fe5102ca5010c28dfdc04cf415cd035f7d47b9eb..98c5f524a360348e15e36751a173e620d715fd3f 100644 (file)
@@ -1800,6 +1800,8 @@ static void ar9003_hw_spectral_scan_config(struct ath_hw *ah,
 
 static void ar9003_hw_spectral_scan_trigger(struct ath_hw *ah)
 {
+       REG_SET_BIT(ah, AR_PHY_SPECTRAL_SCAN,
+                   AR_PHY_SPECTRAL_SCAN_ENABLE);
        /* Activate spectral scan */
        REG_SET_BIT(ah, AR_PHY_SPECTRAL_SCAN,
                    AR_PHY_SPECTRAL_SCAN_ACTIVE);