summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ray_cs.c
diff options
context:
space:
mode:
authorJean Tourrilhes <jt@hpl.hp.com>2006-08-30 05:04:09 +0400
committerJohn W. Linville <linville@tuxdriver.com>2006-09-26 00:52:15 +0400
commit4ced38ac48137e1928dd40de3cdc074ec31c059d (patch)
tree70210914c3a67be2f4b26b1a4ed0eb4367574714 /drivers/net/wireless/ray_cs.c
parentbad04f2ce00da5aaa6c8e97b1b80ad2ebd755b8b (diff)
downloadlinux-4ced38ac48137e1928dd40de3cdc074ec31c059d.tar.xz
[PATCH] WE-21 for ray_cs
Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ray_cs.c')
-rw-r--r--drivers/net/wireless/ray_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index 4574290f971f..e82548ea609a 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -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;
}