]> git.ipfire.org Git - thirdparty/openwrt.git/commit
wifi-scripts: fix nested config accumulation in wdev_set_data
authorFelix Fietkau <nbd@nbd.name>
Wed, 4 Feb 2026 10:34:55 +0000 (10:34 +0000)
committerFelix Fietkau <nbd@nbd.name>
Sat, 7 Feb 2026 09:23:22 +0000 (09:23 +0000)
commit68c2ab8f5fdf1c12966fa0cdf3c13d889beccdbe
treeabeea050687140d49b8676c2c6d11f0aee022d20
parent6e25c8bd785e72b8a03b1f1f6bacc21d077cc372
wifi-scripts: fix nested config accumulation in wdev_set_data

When storing device-level data, wdev_set_data() spread the entire wdev
object into handler_data. Since handler_config.data is set from the
previous handler_data[wdev.name] before each setup, this created
exponentially growing nesting with each reload, eventually causing
"nesting too deep" JSON parse errors.

Fix by initializing cur to a simple object containing only the device
name instead of the entire wdev object.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc