ath9k: don't trigger spectral scan when not enabled
authorZefir Kurtisi <zefir.kurtisi@neratec.com>
Mon, 27 Feb 2017 14:49:36 +0000 (15:49 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 16 Mar 2017 08:54:52 +0000 (10:54 +0200)
Doing so enables the FFT generation without prior
configuration, leading to an IRQ storm caused by
invalid (or at least unwanted) PHY errors.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/common-spectral.c

index 0ffa23a615682400905bf31f22b5c9942a8ce282..5e77fe1f5b0db41eb6e6226c454f8b3d7d201894 100644 (file)
@@ -742,6 +742,9 @@ void ath9k_cmn_spectral_scan_trigger(struct ath_common *common,
                return;
        }
 
+       if (!spec_priv->spec_config.enabled)
+               return;
+
        ath_ps_ops(common)->wakeup(common);
        rxfilter = ath9k_hw_getrxfilter(ah);
        ath9k_hw_setrxfilter(ah, rxfilter |