mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
branches/luci-0.8: backport wifi and olsr fixes
rags/0.8.3: backport wifi and olsr fixes
This commit is contained in:
@@ -26,6 +26,7 @@ if arg[1] then
|
|||||||
ign = p:option(Flag, "ignore", "Enable")
|
ign = p:option(Flag, "ignore", "Enable")
|
||||||
ign.enabled = "0"
|
ign.enabled = "0"
|
||||||
ign.disabled = "1"
|
ign.disabled = "1"
|
||||||
|
ign.rmempty = false
|
||||||
function ign.cfgvalue(self, section)
|
function ign.cfgvalue(self, section)
|
||||||
return Flag.cfgvalue(self, section) or "0"
|
return Flag.cfgvalue(self, section) or "0"
|
||||||
end
|
end
|
||||||
@@ -230,8 +231,9 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
ign = t:option( Flag, "ignore", "Enabled" )
|
ign = t:option( Flag, "ignore", "Enabled" )
|
||||||
ign.enabled = "0"
|
ign.enabled = "0"
|
||||||
ign.disabled = "1"
|
ign.disabled = "1"
|
||||||
|
ign.rmempty = false
|
||||||
function ign.cfgvalue(self, section)
|
function ign.cfgvalue(self, section)
|
||||||
return Flag.cfgvalue(self, section) or "0"
|
return Flag.cfgvalue(self, section) or "0"
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ if hwtype == "atheros" then
|
|||||||
mode:value("11adt", "802.11adt")
|
mode:value("11adt", "802.11adt")
|
||||||
mode:value("fh", translate("wifi_fh"))
|
mode:value("fh", translate("wifi_fh"))
|
||||||
|
|
||||||
s:option(Flag, "diversity", translate("wifi_diversity"))
|
s:option(Flag, "diversity", translate("wifi_diversity")).rmempty = false
|
||||||
|
|
||||||
if not nsantenna then
|
if not nsantenna then
|
||||||
s:option(Value, "txantenna", translate("wifi_txantenna")).optional = true
|
s:option(Value, "txantenna", translate("wifi_txantenna")).optional = true
|
||||||
|
|||||||
Reference in New Issue
Block a user