diff options
author | Zefir Kurtisi <zefir.kurtisi@neratec.com> | 2017-02-27 15:49:36 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2017-03-16 10:54:52 +0200 |
commit | 45c3d550b0684343b9d4b25aeec9b49c6effc1f9 (patch) | |
tree | afa0a0ebfc3070cae5b4ae5e09d1d22a79a69bd6 /drivers/net/wireless/ath/ath9k | |
parent | 523f6701dbabbe63b35d16bb676d35212b22e204 (diff) | |
download | linux-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.c | 3 |
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 | |