FF-Wizard: assign matching network interface to wireless configuration
authorSteven Barth <steven@midlink.org>
Sun, 14 Sep 2008 00:14:36 +0000 (00:14 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 14 Sep 2008 00:14:36 +0000 (00:14 +0000)
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