X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=blobdiff_plain;f=libeap%2Ftests%2Fhwsim%2Ftest_radio_work.py;h=1369cf27d71fd84f9711fde90835f2ad352d74d2;hp=83eb8f41bf46352a1504c30588da5641414406e0;hb=d1dd9aae6741e74f20bfc35e1db598652680279d;hpb=bd3bd69af16ab99706ba70ed11a3e291e968e5c6 diff --git a/libeap/tests/hwsim/test_radio_work.py b/libeap/tests/hwsim/test_radio_work.py index 83eb8f4..1369cf2 100644 --- a/libeap/tests/hwsim/test_radio_work.py +++ b/libeap/tests/hwsim/test_radio_work.py @@ -7,7 +7,6 @@ import time import logging logger = logging.getLogger() -import subprocess import hostapd from wpasupplicant import WpaSupplicant @@ -71,9 +70,9 @@ def test_ext_radio_work(dev, apdev): if ev is None: raise Exception("Timeout while waiting radio work to start") if "FAIL" not in dev[0].request("RADIO_WORK done 12345678"): - raise Exception("Invalid RADIO_WORK done accepted"); + raise Exception("Invalid RADIO_WORK done accepted") if "FAIL" not in dev[0].request("RADIO_WORK foo"): - raise Exception("Invalid RADIO_WORK accepted"); + raise Exception("Invalid RADIO_WORK accepted") dev[0].request("FLUSH") items = dev[0].request("RADIO_WORK show") if items != "": @@ -82,7 +81,7 @@ def test_ext_radio_work(dev, apdev): def test_radio_work_cancel(dev, apdev): """Radio work items cancelled on interface removal""" params = hostapd.wpa2_params(ssid="radio", passphrase="12345678") - hostapd.add_ap(apdev[0]['ifname'], params) + hostapd.add_ap(apdev[0], params) wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5') wpas.interface_add("wlan5") wpas.scan(freq="2412")