summaryrefslogtreecommitdiff
path: root/openwrt
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-11-13 14:41:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-11-13 14:41:06 +0000
commit4763631d975f388817828293977cf4d4c361f2c5 (patch)
treeb578ee559577c0623e3043ee3c521eabd9e6c359 /openwrt
parent22aeff06e5614c04969dc8450f27767b21d920c8 (diff)
downloadmtk-20170518-4763631d975f388817828293977cf4d4c361f2c5.zip
mtk-20170518-4763631d975f388817828293977cf4d4c361f2c5.tar.gz
mtk-20170518-4763631d975f388817828293977cf4d4c361f2c5.tar.bz2
enable driver-internal supplicant only in wet mode and set psk2 mode if configured
SVN-Revision: 2472
Diffstat (limited to 'openwrt')
-rw-r--r--openwrt/package/wificonf/wificonf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c
index 1867ed0..1ca1e5e 100644
--- a/openwrt/package/wificonf/wificonf.c
+++ b/openwrt/package/wificonf/wificonf.c
@@ -406,14 +406,13 @@ static void setup_bcom(int skfd, char *ifname)
bcom_ioctl(skfd, ifname, WLC_SET_WSEC, &val, sizeof(val));
if (val && strstr(v, "psk")) {
+ val = (strstr(v, "psk2") ? 0x84 : 0x4);
v = nvram_safe_get(wl_var("wpa_psk"));
-
if ((strlen(v) >= 8) && (strlen(v) < 63)) {
- val = 4;
+
bcom_ioctl(skfd, ifname, WLC_SET_WPA_AUTH, &val, sizeof(val));
- bcom_ioctl(skfd, ifname, WLC_GET_AP, &val, sizeof(val));
- if (!val) {
+ if (!nvram_match(wl_var("mode"), "wet")) {
/* Enable in-driver WPA supplicant */
wsec_pmk_t pmk;