From 79467d74fd095923843e73726468b0c3b312bc60 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 15 May 2018 00:38:13 +0300 Subject: [PATCH] tests: Fix dbus_tdls_channel_switch with missing kernel support Check driver capabilities in the D-Bus TDLS case similarly to the non-D-Bus cases. Signed-off-by: Jouni Malinen --- tests/hwsim/test_dbus.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/hwsim/test_dbus.py b/tests/hwsim/test_dbus.py index 4257b2462..486cdc7cf 100644 --- a/tests/hwsim/test_dbus.py +++ b/tests/hwsim/test_dbus.py @@ -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)