diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-12-13 17:40:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-12-13 17:40:51 +0000 |
commit | b649fba6018e0ff622d0485fd0cde534514ff301 (patch) | |
tree | 986a4ab86bb029ccfc9947342e34335cce6dd715 /package/wificonf/wificonf.c | |
parent | ff9773937679f2c16d856765cb6c4fdf7258f1c3 (diff) | |
download | master-187ad058-b649fba6018e0ff622d0485fd0cde534514ff301.tar.gz master-187ad058-b649fba6018e0ff622d0485fd0cde534514ff301.tar.bz2 master-187ad058-b649fba6018e0ff622d0485fd0cde534514ff301.zip |
restore wl0_auth functionality (fixes: #123)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2657 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/wificonf/wificonf.c')
-rw-r--r-- | package/wificonf/wificonf.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/package/wificonf/wificonf.c b/package/wificonf/wificonf.c index 60ffd900aa..4096617edd 100644 --- a/package/wificonf/wificonf.c +++ b/package/wificonf/wificonf.c @@ -550,7 +550,7 @@ static void setup_bcom_vif_sec(int skfd, char *ifname, int vif) wep = 1; bcom_set_bss_int(skfd, ifname, vif, "wsec", WEP_ENABLED); bcom_set_bss_int(skfd, ifname, vif, "wsec_restrict", 1); - bcom_set_bss_int(skfd, ifname, vif, "auth", 1); + bcom_set_bss_int(skfd, ifname, vif, "auth", nvram_enabled(vif_var(vif, "auth"))); } else { wep = 0; } @@ -867,8 +867,14 @@ static void setup_bcom_old(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) { char *buffer; |