mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-15 17:12:10 -05:00
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:
parent
42b5cf24a8
commit
915a57ccd9
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user