gluon-core: move preserve_channels setting to /etc/config/gluon

/etc/config/gluon-core is used for nothing else.

As /etc/config/gluon uses a named wireless section, also change the
get_first() to get().
This commit is contained in:
Matthias Schiffer 2022-01-05 18:41:05 +01:00
parent b68a07e930
commit 12127813c5
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

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