aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/wificonf/wificonf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/wificonf/wificonf.c b/package/wificonf/wificonf.c
index eb09769e46..f96ef1524b 100644
--- a/package/wificonf/wificonf.c
+++ b/package/wificonf/wificonf.c
@@ -160,6 +160,8 @@ void setup_bcom(int skfd, char *ifname)
val = AES_ENABLED;
else if (nvram_match(wl_var("crypto"), "tkip+aes"))
val = TKIP_ENABLED | AES_ENABLED;
+ else
+ val = 0;
bcom_ioctl(skfd, ifname, WLC_SET_WSEC, &val, sizeof(val));
if (val && nvram_get(wl_var("wpa_psk"))) {