From: Felix Fietkau Date: Fri, 26 Jun 2026 17:00:36 +0000 (+0200) Subject: wifi-scripts: fix disabled vif tracking using wrong dictionary key X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dd477918368b013f241ae9e0b0bda15f2a0f83a;p=thirdparty%2Fopenwrt.git wifi-scripts: fix disabled vif tracking using wrong dictionary key wdev_update_disabled_vifs() indexed the disabled_vifs map with the wdev object instead of the vif name. The map is read back via disabled_vifs[vif.name], so disabled vifs were never matched, and coercing the wdev object into a string key triggered an infinite escaping loop in ucv_to_string_json_encoded() during state output, causing OOM on reboot. Suggested-by: Shayne Chen (陳軒丞) Reported-by: Michael-cy Lee (李峻宇) Signed-off-by: Felix Fietkau --- diff --git a/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc b/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc index 768a421480c..f55fc311890 100644 --- a/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc +++ b/package/network/config/wifi-scripts/files/lib/netifd/wireless-device.uc @@ -353,7 +353,7 @@ function wdev_update_disabled_vifs(wdev) let name = vif.name; if (enabled == false) - disabled[wdev] = true; + disabled[name] = true; else if (ifindex != cache[name]) changed = true;