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:
parent
64f75848da
commit
bffd263617
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user