aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-20 09:38:43 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-20 09:52:25 (GMT)
commiteb92d389a8c3c5d84b4af2513f6e5908ecdec1e5 (patch)
treed22cc459c501eb978b073a41fea5fdb5970a8b09 /tests
parent5f797376f26664d29c359568ac225cad4f19d83a (diff)
downloadhostap-eb92d389a8c3c5d84b4af2513f6e5908ecdec1e5.zip
hostap-eb92d389a8c3c5d84b4af2513f6e5908ecdec1e5.tar.gz
hostap-eb92d389a8c3c5d84b4af2513f6e5908ecdec1e5.tar.bz2
tests: Remove wlan5-related interfaces based on list
Instead of hardcoding reset_devs() to remove wlan5, remove all wlan* interfaces renaming in the wpa_supplicant process to support the case of dynamically added hwsim phy. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/hwsim/run-tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py
index 8bd16f8..ad02160 100755
--- a/tests/hwsim/run-tests.py
+++ b/tests/hwsim/run-tests.py
@@ -36,7 +36,10 @@ def reset_devs(dev, apdev):
try:
wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
- wpas.interface_remove("wlan5")
+ ifaces = wpas.global_request("INTERFACES").splitlines()
+ for iface in ifaces:
+ if iface.startswith("wlan"):
+ wpas.interface_remove(iface)
except Exception, e:
pass