gluon-core: return boolean from preserve_channels

This method previously returned the string literal of the config key,
leading to checks evaluating to true even in case this option was
disabled.

Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer 2022-08-15 00:37:32 +02:00
parent 64f75848da
commit bffd263617

View File

@ -123,7 +123,7 @@ function M.foreach_radio(uci, f)
end end
function M.preserve_channels(uci) function M.preserve_channels(uci)
return uci:get('gluon', 'wireless', 'preserve_channels') return uci:get_bool('gluon', 'wireless', 'preserve_channels')
end end
function M.device_supports_wpa3() function M.device_supports_wpa3()