eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 87118959e61b783247de8c99b6d4615bf3a690ce
parent 8632b81397ba732cccf62e1c44fdf1f442bb7eed
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Mon, 24 Sep 2018 19:27:04 -0500

device: Obtain station using station_find

Since device object no longer creates / destroys station objects, use
station_find inside ap directed roam events to direct these to the
station interface.

Diffstat:
Msrc/device.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/device.c b/src/device.c @@ -52,7 +52,6 @@ struct device { struct wiphy *wiphy; struct netdev *netdev; - struct station *station; bool powered : 1; @@ -67,7 +66,10 @@ static void device_ap_roam_frame_event(struct netdev *netdev, void *user_data) { struct device *device = user_data; - struct station *station = device->station; + struct station *station = station_find(device->index); + + if (!station) + return; station_ap_directed_roam(station, hdr, body, body_len); }