[openwrt/openwrt] netifd: send event after running wireless handler
LEDE Commits
lede-commits at lists.infradead.org
Thu Oct 2 02:05:33 PDT 2025
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/915a57ccd9086db88ee74cfa531ff13f8652a447
commit 915a57ccd9086db88ee74cfa531ff13f8652a447
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Oct 2 11:04:36 2025 +0200
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 at nbd.name>
---
.../wifi-scripts/files/lib/netifd/wireless-device.uc | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
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)
More information about the lede-commits
mailing list