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 7327b9e..848130e 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))