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-Tag: v4.12-rc1~108^2~193^2~25^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45c3d550b0684343b9d4b25aeec9b49c6effc1f9;p=thirdparty%2Fkernel%2Flinux.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 0ffa23a615682..5e77fe1f5b0db 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 |