eiwd

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

commit 0531e9ab083431e9bc3ba51073e799b8e7800735
parent 3b3f6d33fe52fe85ec73a26c55fce558e7878193
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed, 28 Apr 2021 12:40:12 -0700

station: remove diagnostic interface on station_free

If station gets removed ungracefully (e.g. rfkill/hotplug) it
may not have a chance to disconnect, meaning the diagnostic
interface would remain up.

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

diff --git a/src/station.c b/src/station.c @@ -3496,6 +3496,10 @@ static void station_free(struct station *station) if (station->connected_bss) netdev_disconnect(station->netdev, NULL, NULL); + l_dbus_object_remove_interface(dbus_get_bus(), + netdev_get_path(station->netdev), + IWD_STATION_DIAGNOSTIC_INTERFACE); + if (station->netconfig) { netconfig_destroy(station->netconfig); station->netconfig = NULL;