modules/admin-full: relocate mac80211 mac filter settings to wifi-iface (#247)
This commit is contained in:
parent
54e834f003
commit
2d28a55a53
1 changed files with 10 additions and 20 deletions
|
@ -135,16 +135,6 @@ if hwtype == "mac80211" then
|
||||||
--htcapab:depends("hwmode", "11ng")
|
--htcapab:depends("hwmode", "11ng")
|
||||||
end
|
end
|
||||||
|
|
||||||
mp = s:taboption("macfilter", ListValue, "macfilter", translate("MAC-Address Filter"))
|
|
||||||
mp:value("", translate("disable"))
|
|
||||||
mp:value("allow", translate("Allow listed only"))
|
|
||||||
mp:value("deny", translate("Allow all except listed"))
|
|
||||||
|
|
||||||
ml = s:taboption("macfilter", DynamicList, "maclist", translate("MAC-List"))
|
|
||||||
ml.datatype = "macaddr"
|
|
||||||
ml:depends({macfilter="allow"})
|
|
||||||
ml:depends({macfilter="deny"})
|
|
||||||
|
|
||||||
local cl = iw and iw.countrylist
|
local cl = iw and iw.countrylist
|
||||||
if cl and #cl > 0 then
|
if cl and #cl > 0 then
|
||||||
cc = s:taboption("advanced", ListValue, "country", translate("Country Code"), translate("Use ISO/IEC 3166 alpha2 country codes."))
|
cc = s:taboption("advanced", ListValue, "country", translate("Country Code"), translate("Use ISO/IEC 3166 alpha2 country codes."))
|
||||||
|
@ -241,16 +231,6 @@ if hwtype == "broadcom" then
|
||||||
mode:value("11g", "802.11g")
|
mode:value("11g", "802.11g")
|
||||||
mode:value("11gst", "802.11g + Turbo")
|
mode:value("11gst", "802.11g + Turbo")
|
||||||
|
|
||||||
mp = s:taboption("macfilter", ListValue, "macfilter", translate("MAC-Address Filter"))
|
|
||||||
mp:value("", translate("disable"))
|
|
||||||
mp:value("allow", translate("Allow listed only"))
|
|
||||||
mp:value("deny", translate("Allow all except listed"))
|
|
||||||
|
|
||||||
ml = s:taboption("macfilter", DynamicList, "maclist", translate("MAC-List"))
|
|
||||||
ml.datatype = "macaddr"
|
|
||||||
ml:depends({macfilter="allow"})
|
|
||||||
ml:depends({macfilter="deny"})
|
|
||||||
|
|
||||||
ant1 = s:taboption("advanced", ListValue, "txantenna", translate("Transmitter Antenna"))
|
ant1 = s:taboption("advanced", ListValue, "txantenna", translate("Transmitter Antenna"))
|
||||||
ant1.widget = "radio"
|
ant1.widget = "radio"
|
||||||
ant1:depends("diversity", "")
|
ant1:depends("diversity", "")
|
||||||
|
@ -355,6 +335,16 @@ if hwtype == "mac80211" then
|
||||||
s:taboption("advanced", Value, "frag", translate("Fragmentation Threshold"))
|
s:taboption("advanced", Value, "frag", translate("Fragmentation Threshold"))
|
||||||
s:taboption("advanced", Value, "rts", translate("RTS/CTS Threshold"))
|
s:taboption("advanced", Value, "rts", translate("RTS/CTS Threshold"))
|
||||||
|
|
||||||
|
mp = s:taboption("macfilter", ListValue, "macfilter", translate("MAC-Address Filter"))
|
||||||
|
mp:value("", translate("disable"))
|
||||||
|
mp:value("allow", translate("Allow listed only"))
|
||||||
|
mp:value("deny", translate("Allow all except listed"))
|
||||||
|
|
||||||
|
ml = s:taboption("macfilter", DynamicList, "maclist", translate("MAC-List"))
|
||||||
|
ml.datatype = "macaddr"
|
||||||
|
ml:depends({macfilter="allow"})
|
||||||
|
ml:depends({macfilter="deny"})
|
||||||
|
|
||||||
mode:value("ap-wds", "%s (%s)" % {translate("Access Point"), translate("WDS")})
|
mode:value("ap-wds", "%s (%s)" % {translate("Access Point"), translate("WDS")})
|
||||||
mode:value("sta-wds", "%s (%s)" % {translate("Client"), translate("WDS")})
|
mode:value("sta-wds", "%s (%s)" % {translate("Client"), translate("WDS")})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue