if (bcom_ioctl(skfd, ifname, WLC_GET_MAGIC, &val, sizeof(val)) < 0)
return;
+ nvram_set(wl_var("ifname"), ifname);
+
stop_bcom(skfd, ifname);
/* Set Country */
val = TKIP_ENABLED;
else if (nvram_match(wl_var("crypto"), "aes"))
val = AES_ENABLED;
- else if (nvram_match(wl_var("crypto"), "tkip+aes"))
+ else if (nvram_match(wl_var("crypto"), "tkip+aes") || nvram_match(wl_var("crypto"), "aes+tkip"))
val = TKIP_ENABLED | AES_ENABLED;
else
val = 0;