]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Check mesh capability based on the modes capabilities list
authorJouni Malinen <j@w1.fi>
Sun, 11 Jan 2015 17:45:56 +0000 (19:45 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 11 Jan 2015 22:19:21 +0000 (00:19 +0200)
This is more robust than checking the driver capability because it is
also possible for the wpa_supplicant build to be configured without mesh
support regardless of whether the driver supports it.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_mesh.py

index 9140ef7c730ea8a149189ce68cc28b2845e6d50c..80b5c79a6db75d508c9f00e256e07d1d76ef9955 100644 (file)
@@ -15,8 +15,7 @@ from wpasupplicant import WpaSupplicant
 from utils import HwsimSkip
 
 def check_mesh_support(dev, secure=False):
-    flags = int(dev.get_driver_status_field('capa.flags'), 16)
-    if flags & 0x100000000 == 0:
+    if "MESH" not in dev.get_capability("modes"):
         raise HwsimSkip("Driver does not support mesh")
     if secure and "SAE" not in dev.get_capability("auth_alg"):
         raise HwsimSkip("SAE not supported")