projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a44003
)
enable driver-internal supplicant only in wet mode and set psk2 mode if configured
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Nov 2005 14:40:18 +0000
(14:40 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Nov 2005 14:40:18 +0000
(14:40 +0000)
SVN-Revision: 2471
openwrt/package/wificonf/wificonf.c
patch
|
blob
|
history
diff --git
a/openwrt/package/wificonf/wificonf.c
b/openwrt/package/wificonf/wificonf.c
index 1867ed03f8b4b1fe6eaac06459be93f78548abf1..1ca1e5eb58e68e4a5a49711d83cb5997e0ad8f75 100644
(file)
--- 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;