openwrt/package/network
Felix Fietkau 910eb0cc4e
Some checks failed
Build all core packages / Build all core packages for selected target (push) Has been cancelled
wifi-scripts: fix spurious teardown on config_change during setup
When config_change is set during an active setup (e.g. by a concurrent
reconf call), wdev_mark_up() attempted to call setup() while still in
"setup" state. Since setup() requires state "up" or "down", it silently
returned, leaving the state as "setup". The subsequent wdev_setup_cb()
then treated this as a setup failure, triggering an unnecessary
teardown+restart cycle.

Fix this by removing the config_change handling from wdev_mark_up() and
moving it to wdev_setup_cb() instead. wdev_mark_up() now always
transitions to "up" state. When wdev_setup_cb() runs afterwards and
finds the device already "up" with config_change set, it initiates a
clean re-setup from the "up" state where setup() can run.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 3553eda283)
2026-02-09 08:22:10 +01:00
..
config wifi-scripts: fix spurious teardown on config_change during setup 2026-02-09 08:22:10 +01:00
ipv6 odhcp6c: update to 25.12 Git HEAD (2026-01-25) 2026-01-27 08:14:41 +01:00
services odhcpd: update to 25.12 Git HEAD (2026-01-19) 2026-01-26 18:48:44 +01:00
utils wireguard-tools: fix script errors 2026-02-09 00:47:28 +01:00