mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 17:38:48 +04:00
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>