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 <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2018-05-15 00:38:13 +03:00 committed by Jouni Malinen
parent 23c024b9c1
commit 79467d74fd

View 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)