Files
openwrt/package
Felix Fietkau 762c707df2 netifd: parse_bool() accepts JSON booleans and numbers
parse_bool() compared its argument with the strings "1", "true", "0"
and "false" only. A service-injected wireless config arrives as JSON, so
a value of true, false, 1 or 0 gave null. wireless.uc then read
"mlo": true of such a wifi-iface as no MLO, and parse_attribute_list()
dropped every boolean attribute that came as JSON.

Accept true and 1 as true, and false and 0 as false. The result for the
UCI strings stays the same.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-08 09:50:39 +02:00
..
2026-10-08 02:12:17 +02:00