Don't apply network configuration if user clicks on "Scan" button
authorSteven Barth <steven@midlink.org>
Wed, 10 Dec 2008 20:31:09 +0000 (20:31 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 10 Dec 2008 20:31:09 +0000 (20:31 +0000)
modules/admin-mini/luasrc/model/cbi/mini/wifi.lua

index 7327b9e1db6378e175eb418084a720ee6d793d2d..848130e2ffb025e4e95cb777e7571b9d8475159e 100644 (file)
@@ -89,6 +89,7 @@ end
 t2 = m:section(Table, {}, translate("iwscan"), translate("iwscan1"))
 
 function scan.write(self, section)
+       self.map.autoapply = false
        t2.render = t2._render
        local ifname = self.map:get(section, "ifname")
        luci.util.update(t2.data, luci.sys.wifi.iwscan(ifname))