commit 8053152730eb91eeb1d79916071eba3fa49ac2be
parent 43e9cce1dc4d5efafe7de44269444d8c43d463ea
Author: James Prestwood <james.prestwood@linux.intel.com>
Date: Thu, 1 Aug 2019 15:18:09 -0700
wsc: fix station lookup by ifindex
The station was being lookup up using the wdev ID rather than the
interface index.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wsc.c b/src/wsc.c
@@ -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);