eiwd

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

commit c2ad0006ebac2718adc752c7f4d0dcf15e092599
parent 5fcfb430b2d75a269a9c3216089d76749ee28856
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 29 Feb 2024 10:12:17 -0800

ap: bail in ap_del_station if AP is going down

Caught by static analysis, if this condition is met the AP is going
down so we cannot continue further accessing the ap object.

Diffstat:
Msrc/ap.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ap.c b/src/ap.c @@ -455,7 +455,8 @@ static void ap_del_station(struct sta_state *sta, uint16_t reason, sta->ip_alloc_lease = NULL; l_dhcp_server_expire_by_mac(ap->netconfig_dhcp, sta->addr); - ap_event_done(ap, prev); + if (ap_event_done(ap, prev)) + return; } /*