From: Zefir Kurtisi Date: Mon, 27 Feb 2017 14:49:36 +0000 (+0100) Subject: ath9k: don't trigger spectral scan when not enabled X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45c3d550b0684343b9d4b25aeec9b49c6effc1f9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ath9k: don't trigger spectral scan when not enabled 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath9k/common-spectral.c b/drivers/net/wireless/ath/ath9k/common-spectral.c index 0ffa23a61568..5e77fe1f5b0d 100644 --- a/drivers/net/wireless/ath/ath9k/common-spectral.c +++ b/drivers/net/wireless/ath/ath9k/common-spectral.c @@ -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 |