aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2016-04-07 05:38:04 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-24 13:18:50 (GMT)
commitfb1a7dccbf1a1d045515b8c8297328fb695998f3 (patch)
treeb4d1d106ff13117c46983de152389578cb2de3e1 /tests
parent625bf74436db9cefbff575804fb430a68d7d8cee (diff)
downloadhostap-fb1a7dccbf1a1d045515b8c8297328fb695998f3.zip
hostap-fb1a7dccbf1a1d045515b8c8297328fb695998f3.tar.gz
hostap-fb1a7dccbf1a1d045515b8c8297328fb695998f3.tar.bz2
tests: Return hapd when add_bss() and add_iface() are used
Return hapd from add_bss() and add_iface() while we can next use it. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/hostapd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hwsim/hostapd.py b/tests/hwsim/hostapd.py
index 6c6cba6..a6d4cad 100644
--- a/tests/hwsim/hostapd.py
+++ b/tests/hwsim/hostapd.py
@@ -412,6 +412,7 @@ def add_bss(apdev, ifname, confname, ignore_error=False):
hapd = Hostapd(ifname, hostname=hostname, port=port)
if not hapd.ping():
raise Exception("Could not ping hostapd")
+ return hapd
def add_iface(apdev, confname):
ifname = apdev['ifname']
@@ -429,6 +430,7 @@ def add_iface(apdev, confname):
hapd = Hostapd(ifname, hostname=hostname, port=port)
if not hapd.ping():
raise Exception("Could not ping hostapd")
+ return hapd
def remove_bss(apdev, ifname=None):
if ifname == None: