modules/admin-full: fix reversed allow/deny macfilter logic (#105)
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 25 Jun 2011 22:34:46 +0000 (22:34 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 25 Jun 2011 22:34:46 +0000 (22:34 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua

index 002041911d3c0ef6b90b2abac2a81d88296c70c1..cc534f5c935b5b57f25495d64b7e471c9fced305 100644 (file)
@@ -436,8 +436,8 @@ if hwtype == "atheros" then
 
        mp = s:taboption("macfilter", ListValue, "macpolicy", translate("MAC-Address Filter"))
        mp:value("", translate("disable"))
-       mp:value("deny", translate("Allow listed only"))
-       mp:value("allow", translate("Allow all except listed"))
+       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"
@@ -511,8 +511,8 @@ if hwtype == "prism2" then
 
        mp = s:taboption("macfilter", ListValue, "macpolicy", translate("MAC-Address Filter"))
        mp:value("", translate("disable"))
-       mp:value("deny", translate("Allow listed only"))
-       mp:value("allow", translate("Allow all except listed"))
+       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:depends({macpolicy="allow"})
        ml:depends({macpolicy="deny"})