Commit 22b99262 authored by Jean Tourrilhes's avatar Jean Tourrilhes Committed by John W. Linville

[PATCH] WE-21 for zd1201

Signed-off-by: default avatarJean Tourrilhes <jt@hpl.hp.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent de9621bc
...@@ -1218,7 +1218,7 @@ static int zd1201_set_essid(struct net_device *dev, ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment