netifd: send event after running wireless handler

This can be used by other services to trigger reconfiguration, or detect when
PHY renaming has been performed.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-10-02 11:04:36 +02:00
parent 42b5cf24a8
commit 915a57ccd9

View File

@ -17,7 +17,7 @@ let wdev_handler = {};
let wdev_script_task, wdev_script_timeout;
let handler_timer;
function supplicant_start_mlo()
function wireless_config_done()
{
ubus.call({
object: "wpa_supplicant",
@ -25,6 +25,16 @@ function supplicant_start_mlo()
return: "ignore",
data: { },
});
ubus.call({
object: "service",
method: "event",
return: "ignore",
data: {
type: "netifd.wireless.done",
data: {},
},
});
}
function delete_wdev(name)
@ -228,7 +238,7 @@ function run_next_handler()
__run_next_handler();
if (!wdev_cur && !length(wdev_handler))
supplicant_start_mlo();
wireless_config_done();
}
function run_handler(wdev, op, cb)