diff --git a/tests/hwsim/test_ap_vht.py b/tests/hwsim/test_ap_vht.py index 2d8b2e336..fde32489c 100644 --- a/tests/hwsim/test_ap_vht.py +++ b/tests/hwsim/test_ap_vht.py @@ -551,12 +551,7 @@ def run_ap_vht160_no_dfs(dev, apdev, channel, ht_capab): raise HwsimSkip("80/160 MHz channel not supported in regulatory information") raise finally: - if hapd: - hapd.request("DISABLE") - dev[0].disconnect_and_stop_scan() - subprocess.call(['iw', 'reg', 'set', '00']) - dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=0.5) - dev[0].flush_scan_cache() + clear_regdom(hapd, dev) def test_ap_vht160_no_ht40(dev, apdev): """VHT with 160 MHz channel width and HT40 disabled"""