It was possible for BSS entries on the scanned channel (2412 MHz) to be
left behind after flush_scan_cache() call. Use a less likely channel
2417 MHz as the default channel to scan. This will hopefully get rid of
most problematic BSS entries from previous test cases. For example,
ap_hs20_oen followed by ap_hs20_random_mac could fail due to
INTERWORKING_CONNECT seeing non-RSN scan result from the previous test
case.
Signed-off-by: Jouni Malinen <j@w1.fi>
return
raise Exception("Could not find BSS " + bssid + " in scan")
- def flush_scan_cache(self):
+ def flush_scan_cache(self, freq=2417):
self.request("BSS_FLUSH 0")
- self.scan(freq=2412, only_new=True)
+ self.scan(freq=freq, only_new=True)
def roam(self, bssid, fail_test=False):
self.dump_monitor()