wpa_supplicant: do not wait for notify completion
authorFelix Fietkau <[email protected]>
Wed, 1 Oct 2025 03:33:52 +0000 (05:33 +0200)
committerFelix Fietkau <[email protected]>
Wed, 1 Oct 2025 08:08:54 +0000 (10:08 +0200)
There is no callback, so no use tracking the request status.

Signed-off-by: Felix Fietkau <[email protected]>
package/network/services/hostapd/files/wpa_supplicant.uc

index 215aa62012731ce16db1bbf1451b0065570adace..062c4b088a9aa195b3876b4b7bc86b16c8b5a5a2 100644 (file)
@@ -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: {} });
 }