Răsfoiți Sursa

[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 ani în urmă
părinte
comite
4ced38ac48
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;
 		}
 		}