modules/admin-full: fix usage of network model in network controller
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 30 Oct 2010 02:31:43 +0000 (02:31 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 30 Oct 2010 02:31:43 +0000 (02:31 +0000)
modules/admin-full/luasrc/controller/admin/network.lua

index 896b4be06a99020ceee6560d6d533d151fbf4428..950285d5888b65cd2815afe78b3955ad5d90e5b1 100644 (file)
@@ -156,7 +156,7 @@ end
 function wifi_delete(network)
        local ntm = require "luci.model.network".init()
 
-       ntm:del_network(network)
+       ntm:del_wifinet(network)
        ntm:save("wireless")
 
        luci.http.redirect(luci.dispatcher.build_url("admin/network/wireless"))