From 9df1112a613aa44fd8a1284f434495fedebdcb98 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 13 Dec 2005 17:40:52 +0000 Subject: [PATCH] restore wl0_auth functionality (fixes: #123) SVN-Revision: 2658 --- openwrt/package/wificonf/wificonf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c index f5dfabb31a..5e7b200ed7 100644 --- a/openwrt/package/wificonf/wificonf.c +++ b/openwrt/package/wificonf/wificonf.c @@ -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) -- 2.30.2