restore wl0_auth functionality (fixes: #123)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 13 Dec 2005 17:40:52 +0000 (17:40 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 13 Dec 2005 17:40:52 +0000 (17:40 +0000)
SVN-Revision: 2658

openwrt/package/wificonf/wificonf.c

index f5dfabb31af650587d2f79b875c843a9329022ce..5e7b200ed721679c45ba440d9cf7dcf4c877db27 100644 (file)
@@ -530,6 +530,11 @@ static void setup_bcom(int skfd, char *ifname)
                bcom_ioctl(skfd, ifname, WLC_SET_EAP_RESTRICT, &val, sizeof(val));
                bcom_set_int(skfd, ifname, "sup_wpa", 0);
        }
+
+       if (v = nvram_get(wl_var("auth"))) {
+               val = atoi(v);
+               bcom_ioctl(skfd, ifname, WLC_SET_AUTH, &val, sizeof(val));
+       }
 }
 
 static void set_wext_ssid(int skfd, char *ifname)