make wificonf set wl0_ifname on startup
authorFelix Fietkau <nbd@openwrt.org>
Mon, 5 Sep 2005 20:19:46 +0000 (20:19 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 5 Sep 2005 20:19:46 +0000 (20:19 +0000)
SVN-Revision: 1857

openwrt/package/wificonf/wificonf.c

index b76f697b84b89e980ce4aa31e6a1605e6ecf2439..61e0910f623bf2e9961e77aaa4272ecef9795d99 100644 (file)
@@ -176,6 +176,8 @@ void setup_bcom(int skfd, char *ifname)
        if (bcom_ioctl(skfd, ifname, WLC_GET_MAGIC, &val, sizeof(val)) < 0)
                return;
        
+       nvram_set(wl_var("ifname"), ifname);
+       
        stop_bcom(skfd, ifname);
 
        /* Set Country */