X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=blobdiff_plain;f=libeap%2Ftests%2Fhwsim%2Ftest_autoscan.py;fp=libeap%2Ftests%2Fhwsim%2Ftest_autoscan.py;h=25db6621257f90c3b3598a7b72620de5d2cee01b;hp=97d29e9d8112786acb970cd130383e57543804d4;hb=d1dd9aae6741e74f20bfc35e1db598652680279d;hpb=bd3bd69af16ab99706ba70ed11a3e291e968e5c6 diff --git a/libeap/tests/hwsim/test_autoscan.py b/libeap/tests/hwsim/test_autoscan.py index 97d29e9..25db662 100644 --- a/libeap/tests/hwsim/test_autoscan.py +++ b/libeap/tests/hwsim/test_autoscan.py @@ -4,6 +4,7 @@ # This software may be distributed under the terms of the BSD license. # See README for more details. +from remotehost import remote_compatible import time import logging logger = logging.getLogger() @@ -13,7 +14,7 @@ import hostapd def test_autoscan_periodic(dev, apdev): """autoscan_periodic""" - hostapd.add_ap(apdev[0]['ifname'], { "ssid": "autoscan" }) + hostapd.add_ap(apdev[0], { "ssid": "autoscan" }) try: if "OK" not in dev[0].request("AUTOSCAN periodic:1"): @@ -51,9 +52,10 @@ def test_autoscan_periodic(dev, apdev): finally: dev[0].request("AUTOSCAN ") +@remote_compatible def test_autoscan_exponential(dev, apdev): """autoscan_exponential""" - hostapd.add_ap(apdev[0]['ifname'], { "ssid": "autoscan" }) + hostapd.add_ap(apdev[0], { "ssid": "autoscan" }) try: if "OK" not in dev[0].request("AUTOSCAN exponential:2:10"):