diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2005-11-13 14:41:06 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2005-11-13 14:41:06 +0000 |
| commit | 4b4f4bd925a683b33e3e7a99a6b5dee51e7b7bb8 (patch) | |
| tree | 0b0d81954a3f0aff198955cbde392196253171c7 | |
| parent | adaf84844200d4d04bbbe404710c8381c10b03c1 (diff) | |
| download | upstream-4b4f4bd925a683b33e3e7a99a6b5dee51e7b7bb8.tar.gz upstream-4b4f4bd925a683b33e3e7a99a6b5dee51e7b7bb8.tar.bz2 upstream-4b4f4bd925a683b33e3e7a99a6b5dee51e7b7bb8.zip | |
enable driver-internal supplicant only in wet mode and set psk2 mode if configured
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2472 3c298f89-4303-0410-b956-a3cf2f4a3e73
| -rw-r--r-- | openwrt/package/wificonf/wificonf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c index 1867ed03f8b..1ca1e5eb58e 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; |
