mirror of https://gitee.com/openkylin/linux.git
[PATCH] WE-21 for ray_cs
Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
bad04f2ce0
commit
4ced38ac48
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue