eiwd

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

commit f6f5570bc83eb1004dacbe3c369d2a546a76e4d3
parent cf950f6d3f9321db05fc125677ca904d36ed4922
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Fri, 28 May 2021 22:34:39 -0500

netdev: Notify EVENT_DEL earlier

If we're going down, make sure to notify any watches about EVENT_DEL
earlier.  Not doing so might result in us not cleaning up requests that
might have been started as the result of this event.

Diffstat:
Msrc/netdev.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/netdev.c b/src/netdev.c @@ -802,6 +802,10 @@ static void netdev_free(void *data) l_debug("Freeing netdev %s[%d]", netdev->name, netdev->index); + if (netdev->events_ready) + WATCHLIST_NOTIFY(&netdev_watches, netdev_watch_func_t, + netdev, NETDEV_WATCH_EVENT_DEL); + if (netdev->neighbor_report_cb) { netdev->neighbor_report_cb(netdev, -ENODEV, NULL, 0, netdev->user_data); @@ -870,10 +874,6 @@ static void netdev_free(void *data) netdev->ft_ds_list = NULL; } - if (netdev->events_ready) - WATCHLIST_NOTIFY(&netdev_watches, netdev_watch_func_t, - netdev, NETDEV_WATCH_EVENT_DEL); - scan_wdev_remove(netdev->wdev_id); watchlist_destroy(&netdev->station_watches);