From 12127813c556d4ad1df69495a1184fd71a3275c4 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 5 Jan 2022 18:41:05 +0100 Subject: [PATCH] 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(). --- package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua index 3e0696aa..62fe3228 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua +++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua @@ -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()