mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
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:
parent
43e9cce1dc
commit
8053152730
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user