* Fixed Freifunk wizard again
[project/luci.git] / module / admin-core / src / controller / admin / index.lua
index ba582cf..e6b39f8 100644 (file)
@@ -109,7 +109,7 @@ function configure_freifunk()
        local wcfg = uci:show("wireless")
        if type(wifi) == "table" and wcfg then
                for iface, v in pairs(wifi) do
-                       if wcfg[iface] then
+                       if wcfg.wireless[iface] then
                                -- Cleanup
                                for k, v in pairs(wcfg.wireless) do
                                        if v[".type"] == "wifi-iface" and v.device == iface then