Don't apply network configuration if user clicks on "Scan" button

This commit is contained in:
Steven Barth 2008-12-10 20:34:11 +00:00
parent 741acaec8f
commit c78457ff89

View 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))