[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:
Jean Tourrilhes 2006-08-29 18:07:11 -07:00 committed by John W. Linville
parent de9621bc56
commit 22b99262f5
1 changed files with 1 additions and 1 deletions

View File

@ -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);