mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 08:47:51 +04:00
wifi-scripts: reset the retry counter on successful setup
retry was only reset on config change/start, never on a successful setup, so occasional transient setup failures accumulated over a device lifetime and latched retry_setup_failed after three cumulative failures. Reset it when the device comes up. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
1 parent
5379d034e0
commit
fedefbf50f
1 file changed
+2
@@ -459,6 +459,8 @@ function wdev_mark_up(wdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
wdev_reset(wdev);
|
||||
|
||||
for (let section, data in wdev.handler_data) {
|
||||
if (data.ifname)
|
||||
handle_link(data.ifname, data, true);
|
||||
|
||||
Reference in new issue
Block a user