FF-Wizard: assign matching network interface to wireless configuration
[project/luci.git] / applications / luci-ffwizard-leipzig / luasrc / model / cbi / ffwizard.lua
index cdace2b..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
        -- 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
        uci:section("wireless", "wifi-iface", nil, ifconfig)
        
        -- Save wifi