modules/admin-full: fix wireless bridging from within wifi config page
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 30 Jan 2011 01:30:22 +0000 (01:30 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 30 Jan 2011 01:30:22 +0000 (01:30 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua

index 62576ba..b9f9cd3 100644 (file)
@@ -322,7 +322,7 @@ function network.write(self, section, value)
                else
                        local n = nw:get_network(value)
                        if n then
-                               n:type("bridge")
+                               n:set("type", "bridge")
                                n:add_interface(i)
                        end
                end