mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-12 16:45:31 +03:00
restore wl0_auth functionality (fixes: #123)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2657 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2e1c8a5f24
commit
335401bc5a
@ -550,7 +550,7 @@ static void setup_bcom_vif_sec(int skfd, char *ifname, int vif)
|
|||||||
wep = 1;
|
wep = 1;
|
||||||
bcom_set_bss_int(skfd, ifname, vif, "wsec", WEP_ENABLED);
|
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, "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 {
|
} else {
|
||||||
wep = 0;
|
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_ioctl(skfd, ifname, WLC_SET_EAP_RESTRICT, &val, sizeof(val));
|
||||||
bcom_set_int(skfd, ifname, "sup_wpa", 0);
|
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)
|
static void set_wext_ssid(int skfd, char *ifname)
|
||||||
{
|
{
|
||||||
char *buffer;
|
char *buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user