From: Jo-Philipp Wich Date: Mon, 27 Apr 2009 00:12:25 +0000 (+0000) Subject: modules/admin-{mini,full}: rename option "hwmode" to "mode" since hwmode is now used... X-Git-Tag: 0.9.0~503 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9cc54c7f15d4a11a1eab5136a255896559511df6;p=oweals%2Fluci.git modules/admin-{mini,full}: rename option "hwmode" to "mode" since hwmode is now used for hostapd and mode for madwifi... --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua index 94a1c7743..079d89549 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -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") diff --git a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua index 2a76a49f2..056b5ee4b 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua @@ -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")