summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-10-01 03:33:52 +0000
committerFelix Fietkau2025-10-01 08:08:54 +0000
commit5e7113b3db50adcbdbf76650da3e5ccfeabfff19 (patch)
tree37b30f670e211aba02ae6c03b6e1dc2d1baaa204
parent263721dd0ae14587703f328500c39b887774e6b3 (diff)
downloadopenwrt-5e7113b3db50adcbdbf76650da3e5ccfeabfff19.tar.gz
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@nbd.name>
-rw-r--r--package/network/services/hostapd/files/wpa_supplicant.uc5
1 files changed, 4 insertions, 1 deletions
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: {} });
}