From: Jouni Malinen Date: Mon, 14 May 2018 21:38:13 +0000 (+0300) Subject: tests: Fix dbus_tdls_channel_switch with missing kernel support X-Git-Tag: hostap_2_7~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79467d74fd095923843e73726468b0c3b312bc60;p=thirdparty%2Fhostap.git 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 --- 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)