summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k
diff options
context:
space:
mode:
authorZefir Kurtisi <zefir.kurtisi@neratec.com>2017-02-27 15:49:36 +0100
committerKalle Valo <kvalo@qca.qualcomm.com>2017-03-16 10:54:52 +0200
commit45c3d550b0684343b9d4b25aeec9b49c6effc1f9 (patch)
treeafa0a0ebfc3070cae5b4ae5e09d1d22a79a69bd6 /drivers/net/wireless/ath/ath9k
parent523f6701dbabbe63b35d16bb676d35212b22e204 (diff)
downloadlinux-45c3d550b0684343b9d4b25aeec9b49c6effc1f9.tar.bz2
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 <zefir.kurtisi@neratec.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r--drivers/net/wireless/ath/ath9k/common-spectral.c3
1 files changed, 3 insertions, 0 deletions
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 |