Test case sequence 'scan_chan_switch ssid_utf8' was failing due to a
scan result surviving from the first test case to the second and the old
entry ended up breaking check for the UTF-8 flag. Fix this by explicitly
flushing old scan results.
Signed-off-by: Jouni Malinen <j@w1.fi>
run_scan(dev[0], bssid, 2412)
dev[0].dump_monitor()
+ dev[0].request("DISCONNECT")
+ dev[0].wait_disconnected()
+ hapd.disable()
+ dev[0].flush_scan_cache()
+
def test_scan_new_only(dev, apdev):
"""Scan and only_new=1 multiple times"""
dev[0].flush_scan_cache()
@remote_compatible
def test_ssid_utf8(dev, apdev):
"""SSID with UTF8 encoding"""
+ dev[0].flush_scan_cache()
hapd = hostapd.add_ap(apdev[0], {"ssid": 'testi-åäöÅÄÖ-testi',
"utf8_ssid": "1"})
dev[0].connect("testi-åäöÅÄÖ-testi", key_mgmt="NONE", scan_freq="2412")