When a phy appears after setup has already been attempted, tell netifd
to retry setup for all failed wireless devices.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
[ "${ACTION}" = "add" ] && {
/sbin/wifi config
+ ubus call network.wireless retry
}
this.setup();
}
+
+function retry_setup()
+{
+ if (this.delete)
+ return;
+
+ if (this.state != "down" || !this.autostart)
+ return;
+
+ this.start();
+}
+
+
function stop()
{
this.dbg("stop, state=" + this.state);
const wdev_proto = {
update,
destroy,
+ retry_setup,
start,
stop,
setup,
});
}
},
+ retry: {
+ args: wdev_args,
+ call: function(req) {
+ hostapd_update_mlo();
+
+ return wdev_call(req, (dev) => {
+ dev.retry_setup();
+ return 0;
+ });
+ }
+ },
reconf: {
args: wdev_args,
call: function(req) {