from remotehost import remote_compatible
import hostapd
import hwsim_utils
+from utils import clear_regdom
@remote_compatible
def test_wep_open_auth(dev, apdev):
raise Exception("Unexpected STATUS secondary_channel value")
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_wep_ifdown(dev, apdev):
"""AP with WEP and external ifconfig down"""