diff --git a/luasrc/model/cbi/commotion/meshconfig.lua b/luasrc/model/cbi/commotion/meshconfig.lua index da20795..9484ac2 100644 --- a/luasrc/model/cbi/commotion/meshconfig.lua +++ b/luasrc/model/cbi/commotion/meshconfig.lua @@ -32,8 +32,28 @@ sctMesh.optional = true sctMesh:option(Value, "ssid", "Name (SSID)", "The public facing name of this interface") sctMesh:option(Value, "bssid", "Device Designation (BSSID)", "The device read name of this interface. (Letters A-F, and numbers 0-9 only)") - - +e = m:section(TypedSection, "wifi-device", translate("Network-wide Settings")) +e.anonymous = true + +protocol = uci.get("wireless", "wifi-device", "hwmode") + +if protocol == '11na' then + c = e:option(ListValue, "channel", translate("5GHz Channel"), translate("The 5GHz backhaul channel of the mesh network, if applicable.")) + c:value(36, "36 (5 GHz)") + c:value(40, "40 (5 GHz)") + c:value(44, "44 (5 GHz)") + c:value(48, "48 (5 GHz)") + c:value(149, "149 (5 GHz)") + c:value(153, "153 (5 GHz)") + c:value(157, "157 (5 GHz)") + c:value(161, "161 (5 GHz)") + c:value(165, "165 (5 GHz)") +else + c = e:option(ListValue, "channel", translate("2GHz Channel"), translate("The 2.4GHz backhaul channel of the mesh network, if applicable")) + for i=1, 11 do + c:value(i, i .. " (2.4 GHz)") + end +end m2 = Map("system") o = m2:section(TypedSection, "system", translate("Settings specific to this node"))