[openwrt/openwrt] wpa_supplicant: do not wait for notify completion

LEDE Commits lede-commits at lists.infradead.org
Wed Oct 1 01:09:06 PDT 2025


nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/5e7113b3db50adcbdbf76650da3e5ccfeabfff19

commit 5e7113b3db50adcbdbf76650da3e5ccfeabfff19
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed Oct 1 05:33:52 2025 +0200

    wpa_supplicant: do not wait for notify completion
    
    There is no callback, so no use tracking the request status.
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 package/network/services/hostapd/files/wpa_supplicant.uc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/package/network/services/hostapd/files/wpa_supplicant.uc b/package/network/services/hostapd/files/wpa_supplicant.uc
index 215aa62012..062c4b088a 100644
--- a/package/network/services/hostapd/files/wpa_supplicant.uc
+++ b/package/network/services/hostapd/files/wpa_supplicant.uc
@@ -614,7 +614,10 @@ function iface_event(type, name, data) {
 
 	data ??= {};
 	data.name = name;
-	wpas.data.obj.notify(`iface.${type}`, data, null, null, null, -1);
+	let req = wpas.data.obj.notify(`iface.${type}`, data, null, null, null, -1);
+	if (req)
+		req.abort();
+
 	ubus.call("service", "event", { type: `wpa_supplicant.${name}.${type}`, data: {} });
 }
 




More information about the lede-commits mailing list