Quick Backport of latest OpenWrt changes
[oweals/luci.git] / modules / admin-mini / luasrc / model / cbi / mini / wifi.lua
index 7327b9e1db6378e175eb418084a720ee6d793d2d..8b623090b781063ab818145db349eefee37935b1 100644 (file)
@@ -89,6 +89,7 @@ end
 t2 = m:section(Table, {}, translate("iwscan"), translate("iwscan1"))
 
 function scan.write(self, section)
+       m.autoapply = false
        t2.render = t2._render
        local ifname = self.map:get(section, "ifname")
        luci.util.update(t2.data, luci.sys.wifi.iwscan(ifname))
@@ -141,7 +142,7 @@ end
 local hwtype = m:get(wifidevs[1], "type")
 
 if hwtype == "atheros" then
-       mode = s:option(ListValue, "mode", translate("mode"))
+       mode = s:option(ListValue, "hwmode", translate("mode"))
        mode.override_values = true
        mode:value("", "auto")
        mode:value("11b", "802.11b")