Skip to content

Commit

Permalink
Merge pull request #110 from opentechinstitute/5ghz-config
Browse files Browse the repository at this point in the history
Fixed uci get for 5ghz devices
  • Loading branch information
Dan Staples committed Dec 2, 2013
2 parents 2a63833 + 70c5355 commit 31ebf8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions luasrc/model/cbi/commotion/meshconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ sctMesh:option(Value, "bssid", translate("Device Designation (BSSID)"), translat
e = m:section(TypedSection, "wifi-device", translate("Network-wide Settings"))
e.anonymous = true

protocol = uci.get("wireless", "wifi-device", "hwmode")
local fiveghz = {'11a', '11adt', '11na'}
protocol = uci:get_first("wireless", "wifi-device", "hwmode")

if protocol == '11na' then
if util.contains(fiveghz, protocol) then
c = e:option(ListValue, "channel", translate("5GHz Channel"), translate("The 5GHz backhaul channel of the mesh network, if applicable."))
c:value(36, "Channel 36 (5.180 GHz)")
c:value(40, "Channel 40 (5.200 GHz)")
Expand Down

0 comments on commit 31ebf8d

Please sign in to comment.