[PATCH] WE-21 for zd1201
authorJean Tourrilhes <jt@hpl.hp.com>
Wed, 30 Aug 2006 01:07:11 +0000 (18:07 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Sep 2006 20:52:16 +0000 (16:52 -0400)
Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/zd1201.c

index c52e9bc..a44dda9 100644 (file)
@@ -1218,7 +1218,7 @@ static int zd1201_set_essid(struct net_device *dev,
                return -EINVAL;
        if (data->length < 1)
                data->length = 1;
-       zd->essidlen = data->length-1;
+       zd->essidlen = data->length;
        memset(zd->essid, 0, IW_ESSID_MAX_SIZE+1);
        memcpy(zd->essid, essid, data->length);
        return zd1201_join(zd, zd->essid, zd->essidlen);