ath9k: avoid ANI restart if no trigger
authorMiaoqing Pan <miaoqing@codeaurora.org>
Mon, 18 Jan 2016 01:33:46 +0000 (09:33 +0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 26 Jan 2016 14:47:38 +0000 (16:47 +0200)
commitc1cab1df9b651d999922e0f04d01dc046121a237
tree5e2ab8f47fa5d2f0628347b8d8bc488131e73a17
parent344cd850b55e9dfd4f3ec1ba564f8edbc8136aca
ath9k: avoid ANI restart if no trigger

Fixes commit 54da20d83f0e ("ath9k_hw: improve ANI processing and rx desensitizing parameters")

Call ath9k_ani_restart() only when the phy error rate reach the
ANI immunity threshold. Sync the logic with internal code base.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/ani.c