modules/admin-full: fix usage of network model in network controller
[project/luci.git] / modules / admin-full / luasrc / controller / admin / network.lua
index 896b4be..950285d 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"))