mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-06 03:57:11 +02:00
Do not always activate WPA
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1218 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f151030baa
commit
db71ae9666
@ -160,6 +160,8 @@ void setup_bcom(int skfd, char *ifname)
|
|||||||
val = AES_ENABLED;
|
val = AES_ENABLED;
|
||||||
else if (nvram_match(wl_var("crypto"), "tkip+aes"))
|
else if (nvram_match(wl_var("crypto"), "tkip+aes"))
|
||||||
val = TKIP_ENABLED | AES_ENABLED;
|
val = TKIP_ENABLED | AES_ENABLED;
|
||||||
|
else
|
||||||
|
val = 0;
|
||||||
bcom_ioctl(skfd, ifname, WLC_SET_WSEC, &val, sizeof(val));
|
bcom_ioctl(skfd, ifname, WLC_SET_WSEC, &val, sizeof(val));
|
||||||
|
|
||||||
if (val && nvram_get(wl_var("wpa_psk"))) {
|
if (val && nvram_get(wl_var("wpa_psk"))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user