aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJonathan Afek <jonathan@wizery.com>2016-05-19 13:06:48 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-28 13:34:09 (GMT)
commit0335ff7f69046b1d0acfea2621d0311a19408646 (patch)
tree9883c361f4ad059699e594f3e427fde662637c1c /tests
parent93568233bc518bffb5680a0dbc42fb8fada87d1e (diff)
downloadhostap-0335ff7f69046b1d0acfea2621d0311a19408646.zip
hostap-0335ff7f69046b1d0acfea2621d0311a19408646.tar.gz
hostap-0335ff7f69046b1d0acfea2621d0311a19408646.tar.bz2
tests/remote: Fix usage of a non existing variable
In monitor.py in the remote tests code there is fucntion create() that creates standalone monitor interfaces. In this function there is an iteration of the ifaces of the host by using the ifaces variable but this variable is non-existing. This patch creates this variable before its usage. Signed-off-by: Jonathan Afek <jonathanx.afek@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/remote/monitor.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/remote/monitor.py b/tests/remote/monitor.py
index 22518e0..5071322 100644
--- a/tests/remote/monitor.py
+++ b/tests/remote/monitor.py
@@ -37,6 +37,7 @@ def create(devices, setup_params, refs, duts, monitors):
try:
host.execute(["iw", "reg", "set", setup_params['country']])
setup_hw = setup_params['setup_hw']
+ ifaces = re.split('; | |, ', host.ifname)
for iface in ifaces:
host.execute(setup_hw + " -I " + iface + " -R 1")
except: