Skip to content
Snippets Groups Projects
Commit bffd2636 authored by David Bauer's avatar David Bauer
Browse files

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: default avatarDavid Bauer <mail@david-bauer.net>
parent 64f75848
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ function M.foreach_radio(uci, f)
end
function M.preserve_channels(uci)
return uci:get('gluon', 'wireless', 'preserve_channels')
return uci:get_bool('gluon', 'wireless', 'preserve_channels')
end
function M.device_supports_wpa3()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment