浏览代码

[PATCH] WE-21 for ray_cs

Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Jean Tourrilhes 19 年之前
父节点
当前提交
4ced38ac48
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/net/wireless/ray_cs.c

+ 1 - 1
drivers/net/wireless/ray_cs.c

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