3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 10:39:23 +01:00

wsc: Check capability before adding interface

This commit is contained in:
Tim Kourt 2019-11-06 18:50:59 -05:00 committed by Denis Kenzior
parent df43470c32
commit 259a666a76

View File

@ -1108,6 +1108,13 @@ static void wsc_add_interface(struct netdev *netdev)
struct l_dbus *dbus = dbus_get_bus();
struct wsc *wsc;
if (!wiphy_get_max_scan_ie_len(netdev_get_wiphy(netdev))) {
l_debug("Simple Configuration isn't supported by ifindex %u",
netdev_get_ifindex(netdev));
return;
}
wsc = l_new(struct wsc, 1);
wsc->netdev = netdev;