]> err.no Git - linux-2.6/commitdiff
[PATCH] WE-21 for ray_cs
authorJean Tourrilhes <jt@hpl.hp.com>
Wed, 30 Aug 2006 01:04:09 +0000 (18:04 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Sep 2006 20:52:15 +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/ray_cs.c

index 4574290f971fe0aeb6f39b81d83dde7684f15936..e82548ea609ac100f7310e81c8e7acdb4a946840 100644 (file)
@@ -1173,7 +1173,7 @@ static int ray_set_essid(struct net_device *dev,
                return -EOPNOTSUPP;
        } else {
                /* Check the size of the string */
-               if(dwrq->length > IW_ESSID_MAX_SIZE + 1) {
+               if(dwrq->length > IW_ESSID_MAX_SIZE) {
                        return -E2BIG;
                }