]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Stop wpa_supplicant AP at end of VHT 80 MHz (US) test
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 25 Dec 2023 10:21:02 +0000 (12:21 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Jan 2024 18:05:57 +0000 (20:05 +0200)
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>
tests/hwsim/test_wpas_ap.py

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