diff --git a/tests/hwsim/test_ap_vht.py b/tests/hwsim/test_ap_vht.py index 5f82a256b..6e6843208 100644 --- a/tests/hwsim/test_ap_vht.py +++ b/tests/hwsim/test_ap_vht.py @@ -82,10 +82,7 @@ def test_ap_vht80(dev, apdev): raise finally: dev[0].request("DISCONNECT") - if hapd: - hapd.request("DISABLE") - subprocess.call(['iw', 'reg', 'set', '00']) - dev[0].flush_scan_cache() + clear_regdom(hapd, dev) def test_ap_vht_wifi_generation(dev, apdev): """VHT and wifi_generation"""