modules/admin-{mini,full}: rename option "hwmode" to "mode" since hwmode is now used...
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Apr 2009 00:12:25 +0000 (00:12 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Apr 2009 00:12:25 +0000 (00:12 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
modules/admin-mini/luasrc/model/cbi/mini/wifi.lua

index 94a1c7743d9bf32d8fedd4dc731ba0f994b2ebff..079d89549d68472c0560f6ea89d0d9e2c7c9c97d 100644 (file)
@@ -65,7 +65,7 @@ end
 ------------------- Madwifi Device ------------------
 
 if hwtype == "atheros" then
-       mode = s:option(ListValue, "hwmode", translate("mode"))
+       mode = s:option(ListValue, "mode", translate("mode"))
        mode:value("", translate("wifi_auto"))
        mode:value("11b", "802.11b")
        mode:value("11g", "802.11g")
index 2a76a49f2c689053113da1445070a8fb7a9e5ef8..056b5ee4b6e1823ae53e5f6db8365e564bd28fff 100644 (file)
@@ -150,7 +150,7 @@ end
 local hwtype = m:get(wifidevs[1], "type")
 
 if hwtype == "atheros" then
-       mode = s:option(ListValue, "hwmode", translate("mode"))
+       mode = s:option(ListValue, "mode", translate("mode"))
        mode.override_values = true
        mode:value("", "auto")
        mode:value("11b", "802.11b")