ath9k: don't trigger spectral scan when not enabled
authorZefir Kurtisi <zefir.kurtisi@neratec.com>
Mon, 27 Feb 2017 14:49:36 +0000 (15:49 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 16 Mar 2017 08:54:52 +0000 (10:54 +0200)
commit45c3d550b0684343b9d4b25aeec9b49c6effc1f9
treeafa0a0ebfc3070cae5b4ae5e09d1d22a79a69bd6
parent523f6701dbabbe63b35d16bb676d35212b22e204
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>
drivers/net/wireless/ath/ath9k/common-spectral.c