提交 22b99262 编写于 作者: J Jean Tourrilhes 提交者: John W. Linville

[PATCH] WE-21 for zd1201

Signed-off-by: NJean Tourrilhes <jt@hpl.hp.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册