issue with BSS_FLUSH - cache not cleaned
Antonio Prcela
antonio.prcela at gmail.com
Tue Jan 9 08:32:26 PST 2024
The results of the first scan are still available when scanning for all networks
and within 10 seconds scanning again but for specific frequencie(s).
Even if 'BSS_FLUSH' used in between. See exaple:
> SCAN
OK
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>CTRL-EVENT-NETWORK-NOT-FOUND
> SCAN_RESULTS
bssid / frequency / signal level / flags / ssid
aa:aa:aa:aa:aa:aa 5180 -42 [WPA2-PSK+SAE-CCMP][WPS][ESS] AP1
bb:bb:bb:bb:bb:bb 5180 -66 [WPA2-PSK+SAE-CCMP][ESS] AP2
cc:cc:cc:cc:cc:cc 2437 -56 [WPA2-PSK-CCMP][ESS] AP3
dd:dd:dd:dd:dd:dd 2462 -91 [WPA2-PSK-CCMP][ESS] AP4
// so far all ok. now flush cache and scan only one frequency
> BSS_FLUSH
OK
> SCAN only_new=1 freq=2462
OK
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>CTRL-EVENT-NETWORK-NOT-FOUND
> SCAN_RESULTS
bssid / frequency / signal level / flags / ssid
aa:aa:aa:aa:aa:aa 5180 -42 [WPA2-PSK+SAE-CCMP][WPS][ESS] AP1
bb:bb:bb:bb:bb:bb 5180 -66 [WPA2-PSK+SAE-CCMP][ESS] AP2
cc:cc:cc:cc:cc:cc 2437 -56 [WPA2-PSK-CCMP][ESS] AP3
dd:dd:dd:dd:dd:dd 2462 -90 [WPA2-PSK-CCMP][ESS] AP4
// it replies with same results as if no 'freq=' was set
// if checking with 'BSS ID-0' -> same result, nothing flushed
// flush again, or wait 10s, scan again
> BSS_FLUSH
OK
> SCAN only_new=1 freq=2462
OK
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>CTRL-EVENT-NETWORK-NOT-FOUND
> SCAN_RESULTS
bssid / frequency / signal level / flags / ssid
dd:dd:dd:dd:dd:dd 2462 -88 [WPA2-PSK-CCMP][ESS] AP4
// works now
Anyone got an idea what am I doing or what's going wrong?
More information about the Hostap
mailing list