]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix dbus_tdls_channel_switch with missing kernel support
authorJouni Malinen <jouni@codeaurora.org>
Mon, 14 May 2018 21:38:13 +0000 (00:38 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 14 May 2018 21:38:13 +0000 (00:38 +0300)
Check driver capabilities in the D-Bus TDLS case similarly to the
non-D-Bus cases.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_dbus.py

index 4257b2462e3792cc65c30cb63e29a0dde27c0bd5..486cdc7cf6fb404e072b2d7f44bb766f3dbd528b 100644 (file)
@@ -2173,6 +2173,10 @@ def test_dbus_tdls(dev, apdev):
 
 def test_dbus_tdls_channel_switch(dev, apdev):
     """D-Bus TDLS channel switch configuration"""
+    flags = int(dev[0].get_driver_status_field('capa.flags'), 16)
+    if flags & 0x800000000 == 0:
+        raise HwsimSkip("Driver does not support TDLS channel switching")
+
     (bus,wpas_obj,path,if_obj) = prepare_dbus(dev[0])
     iface = dbus.Interface(if_obj, WPAS_DBUS_IFACE)