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 | 6db7170690d0b03292ac7cd6960287a3dafd53fe (patch) | |
tree | 4548ad2783394ff68cf69ed80d8077aba2560374 /openwrt/package | |
parent | f0193353928ef963297938ead8150a6c6b8f622b (diff) | |
download | mtk-20170518-6db7170690d0b03292ac7cd6960287a3dafd53fe.zip mtk-20170518-6db7170690d0b03292ac7cd6960287a3dafd53fe.tar.gz mtk-20170518-6db7170690d0b03292ac7cd6960287a3dafd53fe.tar.bz2 |
restore wl0_auth functionality (fixes: #123)
SVN-Revision: 2657
Diffstat (limited to 'openwrt/package')
-rw-r--r-- | openwrt/package/wificonf/wificonf.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c index 60ffd90..4096617 100644 --- a/openwrt/package/wificonf/wificonf.c +++ b/openwrt/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; |