From e10bb3bd77570ef578fa90d607edd1e876273cca Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 16 Sep 2021 13:49:25 -0700 Subject: [PATCH] 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. --- src/station.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/station.c b/src/station.c index 2bd9ecfe..93f60303 100644 --- 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; }