X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=tests%2Fhwsim%2Ftest_ap_psk.py;h=9cf0c00f5f1db01d27bbd3f94bd0eaf45ea981ee;hb=10e09d83167d292f620c4ce8a870868f8864722d;hp=55f3eda2a81d50342523a1747ef22215b11cb38b;hpb=137fd0509955060aeac62c5a17f02ae44307b496;p=mech_eap.git diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index 55f3eda..9cf0c00 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -1888,13 +1888,13 @@ def test_ap_wpa2_psk_ifdown(dev, apdev): bssid = apdev[0]['bssid'] dev[0].connect(ssid, psk=passphrase, scan_freq="2412") - subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'], 'down']) + hapd.cmd_execute(['ip', 'link', 'set', 'dev', apdev[0]['ifname'], 'down']) ev = hapd.wait_event(["INTERFACE-DISABLED"], timeout=10) if ev is None: raise Exception("No INTERFACE-DISABLED event") # this wait tests beacon loss detection in mac80211 dev[0].wait_disconnected() - subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'], 'up']) + hapd.cmd_execute(['ip', 'link', 'set', 'dev', apdev[0]['ifname'], 'up']) ev = hapd.wait_event(["INTERFACE-ENABLED"], timeout=10) if ev is None: raise Exception("No INTERFACE-ENABLED event")