[PATCH] mesh: pass in dev instead of ifname to connectivity tests

Bob Copeland me
Tue Oct 21 21:05:13 PDT 2014


This patch fixes up test_wpas_mesh.py to pass the dev into
hwsim_utils.test_connectivity instead of the ifname, in order to
fix this error with the mesh tests:

2014-10-20 12:38:41,972 INFO 'str' object has no attribute 'own_addr'

Signed-off-by: Bob Copeland <me at bobcopeland.com>
---
 tests/hwsim/test_wpas_mesh.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py
index 84ef00d..c5eea72 100644
--- a/tests/hwsim/test_wpas_mesh.py
+++ b/tests/hwsim/test_wpas_mesh.py
@@ -191,7 +191,7 @@ def wrap_wpas_mesh_test(test, dev, apdev):
     import hwsim_utils
 
     def _test_connectivity(dev1, dev2):
-        return hwsim_utils.test_connectivity(dev1.ifname, dev2.ifname)
+        return hwsim_utils.test_connectivity(dev1, dev2)
 
     return test(dev, apdev, _test_connectivity)
 
-- 
2.1.0.rc1




More information about the Hostap mailing list