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.
This commit is contained in:
James Prestwood 2021-09-16 13:49:25 -07:00 committed by Denis Kenzior
parent 4b7138b05c
commit e10bb3bd77
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}