tests: Stop wpa_supplicant AP at end of VHT 80 MHz (US) test

The regulatory domain cannot be reset while the AP is still active. Add
the appropriate commands to bring down the AP after the test, which will
also make resetting the regulatory domain work.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
This commit is contained in:
Benjamin Berg 2023-12-25 12:21:02 +02:00 committed by Jouni Malinen
parent 6278ab7a06
commit ab98ad397b

View file

@ -795,6 +795,8 @@ def run_wpas_ap_open_vht80_us(dev, freq, center_freq, ht40):
if "WIDTH=80 MHz" not in sig: if "WIDTH=80 MHz" not in sig:
raise Exception("Unexpected SIGNAL_POLL value(2): " + str(sig)) raise Exception("Unexpected SIGNAL_POLL value(2): " + str(sig))
finally: finally:
dev[0].request("REMOVE_NETWORK all")
dev[0].wait_disconnected()
set_country("00") set_country("00")
dev[0].set("country", "00") dev[0].set("country", "00")
dev[1].flush_scan_cache() dev[1].flush_scan_cache()