wifi: ath9k: reset survey of current channel after a scan started
authorHancheng Yang <hyang@freebox.fr>
Tue, 5 Dec 2023 17:06:23 +0000 (18:06 +0100)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 13 Dec 2023 10:42:34 +0000 (12:42 +0200)
commit4fadce88cb9fe95cfa7000c4ec041acf47b67447
treecb625736dfb916286c5d3ce7d2e43b398e20edca
parent7133b072dfbfac8763ffb017642c9c894894c50d
wifi: ath9k: reset survey of current channel after a scan started

In the `ath_set_channel()` function, we only reset surveys that are not
from the current channel. This leads to the accumulation of survey data for
the current channel indefinitely. This may not be the most optimal
approach, as we want the ACS to rely on the most recent survey.
So reset the survey data for the current channel at the start of each scan.

Signed-off-by: Hancheng Yang <hyang@freebox.fr>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20231205170623.3029689-1-hyang@freebox.fr
drivers/net/wireless/ath/ath9k/main.c