luci-0.9: fix last commit: swap back swapped values and swap the others instead
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 11 Dec 2009 15:57:15 +0000 (15:57 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 11 Dec 2009 15:57:15 +0000 (15:57 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua

index 7ff360502d05fa73efaf805f2d02f0877bbeadd0..ff6bf7057c61877cf3c50684d2829893b1ac2d00 100644 (file)
@@ -101,8 +101,8 @@ if hwtype == "broadcom" then
        mp = s:option(ListValue, "macfilter", translate("wifi_macpolicy"))
        mp.optional = true
        mp:value("")
-       mp:value("allow", translate("wifi_blacklist"))
-       mp:value("deny", translate("wifi_whitelist"))
+       mp:value("allow", translate("wifi_whitelist"))
+       mp:value("deny", translate("wifi_blacklist"))
        ml = s:option(DynamicList, "maclist", translate("wifi_maclist"))
        ml:depends({macfilter="allow"})
        ml:depends({macfilter="deny"})
@@ -222,8 +222,8 @@ if hwtype == "atheros" then
        mp = s:option(ListValue, "macpolicy", translate("wifi_macpolicy"))
        mp.optional = true
        mp:value("")
-       mp:value("deny", translate("wifi_whitelist"))
-       mp:value("allow", translate("wifi_blacklist"))
+       mp:value("allow", translate("wifi_whitelist"))
+       mp:value("deny", translate("wifi_blacklist"))
        ml = s:option(DynamicList, "maclist", translate("wifi_maclist"))
        ml:depends({macpolicy="allow"})
        ml:depends({macpolicy="deny"})
@@ -298,8 +298,8 @@ if hwtype == "prism2" then
        mp = s:option(ListValue, "macpolicy", translate("wifi_macpolicy"))
        mp.optional = true
        mp:value("")
-       mp:value("deny", translate("wifi_whitelist"))
-       mp:value("allow", translate("wifi_blacklist"))
+       mp:value("allow", translate("wifi_whitelist"))
+       mp:value("deny", translate("wifi_blacklist"))
        ml = s:option(DynamicList, "maclist", translate("wifi_maclist"))
        ml:depends({macpolicy="allow"})
        ml:depends({macpolicy="deny"})