FF-Wizard: assign matching network interface to wireless configuration
[project/luci.git] / applications / luci-ffwizard-leipzig / luasrc / model / cbi / ffwizard.lua
index 5245a92..dcde962 100644 (file)
@@ -156,6 +156,7 @@ function main.write(self, section, value)
        -- Create wifi iface
        local ifconfig = _strip_internals(uci:get_all("freifunk", "wifi_iface"))
        ifconfig.device = device
+       ifconfig.network = device
        uci:section("wireless", "wifi-iface", nil, ifconfig)
        
        -- Save wifi
@@ -178,6 +179,7 @@ function main.write(self, section, value)
        
        -- Crate network interface
        local netconfig = _strip_internals(uci:get_all("freifunk", "interface"))
+       netconfig.proto = "static"
        netconfig.ipaddr = ip
        uci:section("network", "interface", device, netconfig)