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
1 changed files with 7 additions and 0 deletions

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;