mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 12:21:37 +00:00
[PATCH] WE-21 for zd1201
Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
de9621bc56
commit
22b99262f5
@ -1218,7 +1218,7 @@ static int zd1201_set_essid(struct net_device *dev,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
if (data->length < 1)
|
if (data->length < 1)
|
||||||
data->length = 1;
|
data->length = 1;
|
||||||
zd->essidlen = data->length-1;
|
zd->essidlen = data->length;
|
||||||
memset(zd->essid, 0, IW_ESSID_MAX_SIZE+1);
|
memset(zd->essid, 0, IW_ESSID_MAX_SIZE+1);
|
||||||
memcpy(zd->essid, essid, data->length);
|
memcpy(zd->essid, essid, data->length);
|
||||||
return zd1201_join(zd, zd->essid, zd->essidlen);
|
return zd1201_join(zd, zd->essid, zd->essidlen);
|
||||||
|
Loading…
Reference in New Issue
Block a user