From: Felix Fietkau Date: Thu, 2 Oct 2025 09:04:36 +0000 (+0200) Subject: netifd: send event after running wireless handler X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=915a57ccd9086db88ee74cfa531ff13f8652a447;p=openwrt%2Fstaging%2Fwigyori.git 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 --- diff --git a/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc b/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc index 36ec3e7d35..e982338737 100644 --- a/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc +++ b/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc @@ -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)