commit e10bb3bd77570ef578fa90d607edd1e876273cca
parent 4b7138b05c43014927417322ac64438d59d6a097
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 16 Sep 2021 13:49:25 -0700
station: Do not re-process cached entries for anqp
If the frequency of the bss is not in the list of frequencies for the
current scan, then this is a cached bss. It was likely already
processed for ANQP before, so skip it.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/station.c b/src/station.c
@@ -699,6 +699,10 @@ void station_set_scan_results(struct station *station,
if (!network)
continue;
+ /* Cached BSS entry, this should have been processed already */
+ if (!scan_freq_set_contains(freqs, bss->frequency))
+ continue;
+
if (station_start_anqp(station, network, bss))
wait_for_anqp = true;
}