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 94a1c77..079d895 100644 (file)
@@ -65,7 +65,7 @@ end
 ------------------- Madwifi Device ------------------
 
 if hwtype == "atheros" then
 ------------------- 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")
        mode:value("", translate("wifi_auto"))
        mode:value("11b", "802.11b")
        mode:value("11g", "802.11g")
index 2a76a49..056b5ee 100644 (file)
@@ -150,7 +150,7 @@ end
 local hwtype = m:get(wifidevs[1], "type")
 
 if hwtype == "atheros" then
 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")
        mode.override_values = true
        mode:value("", "auto")
        mode:value("11b", "802.11b")