From 8053152730eb91eeb1d79916071eba3fa49ac2be Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 1 Aug 2019 15:18:09 -0700 Subject: [PATCH] wsc: fix station lookup by ifindex The station was being lookup up using the wdev ID rather than the interface index. --- src/wsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wsc.c b/src/wsc.c index d238388f..bc8ee04b 100644 --- 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);