wsc: fix station lookup by ifindex

The station was being lookup up using the wdev ID rather than the
interface index.
This commit is contained in:
James Prestwood 2019-08-01 15:18:09 -07:00 committed by Denis Kenzior
parent 43e9cce1dc
commit 8053152730
1 changed files with 1 additions and 1 deletions

View File

@ -903,7 +903,7 @@ static struct l_dbus_message *wsc_push_button(struct l_dbus *dbus,
if (wsc->pending)
return dbus_error_busy(message);
wsc->station = station_find(netdev_get_wdev_id(wsc->netdev));
wsc->station = station_find(netdev_get_ifindex(wsc->netdev));
if (!wsc->station)
return dbus_error_not_available(message);