summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZefir Kurtisi2017-02-27 15:49:36 +0100
committerKalle Valo2017-03-16 09:54:52 +0100
commit45c3d550b0684343b9d4b25aeec9b49c6effc1f9 (patch)
treeafa0a0ebfc3070cae5b4ae5e09d1d22a79a69bd6
parentath10k: update available channel list for 5G radio (diff)
downloadkernel-qcow2-linux-45c3d550b0684343b9d4b25aeec9b49c6effc1f9.tar.gz
kernel-qcow2-linux-45c3d550b0684343b9d4b25aeec9b49c6effc1f9.tar.xz
kernel-qcow2-linux-45c3d550b0684343b9d4b25aeec9b49c6effc1f9.zip
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>
-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 |