From e8a483c9a1ac3b7bc33b03a7b4d1fad92e4088ac Mon Sep 17 00:00:00 2001
From: Nils Schneider <nils@nilsschneider.net>
Date: Sat, 9 May 2015 22:10:32 +0200
Subject: [PATCH] luci-wifi-config: don't disable mesh interface

fixes #365
---
 .../files/usr/lib/lua/luci/model/cbi/admin/wifi-config.lua      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/gluon-luci-wifi-config/files/usr/lib/lua/luci/model/cbi/admin/wifi-config.lua b/package/gluon-luci-wifi-config/files/usr/lib/lua/luci/model/cbi/admin/wifi-config.lua
index 591e944e3..66393961e 100644
--- a/package/gluon-luci-wifi-config/files/usr/lib/lua/luci/model/cbi/admin/wifi-config.lua
+++ b/package/gluon-luci-wifi-config/files/usr/lib/lua/luci/model/cbi/admin/wifi-config.lua
@@ -127,7 +127,7 @@ function f.handle(self, state, data)
       uci:set('wireless', 'client_' .. radio, "disabled", clientdisabled)
 
       local meshdisabled = 0
-      if data[radio .. '_client_enabled'] == '0' then
+      if data[radio .. '_mesh_enabled'] == '0' then
         meshdisabled = 1
       end
       uci:set('wireless', 'mesh_' .. radio, "disabled", meshdisabled)
-- 
GitLab