allow 63 chars in the wpa psk in wet mode (#556)
authorFelix Fietkau <nbd@openwrt.org>
Fri, 9 Jun 2006 00:32:29 +0000 (00:32 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 9 Jun 2006 00:32:29 +0000 (00:32 +0000)
SVN-Revision: 3917

openwrt/package/wificonf/wificonf.c

index f1a787402d582032cd432804cf2ab29805db965a..7f83a8f595f7d790d70fadafda7f9306d0f0e86f 100644 (file)
@@ -546,7 +546,7 @@ static void setup_bcom(int skfd, char *ifname)
                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)) {
+                       if ((strlen(v) >= 8) && (strlen(v) <= 63)) {
                                
                                bcom_ioctl(skfd, ifname, WLC_SET_WPA_AUTH, &val, sizeof(val));