diff options
Diffstat (limited to 'drivers/net/wireless/zd1201.c')
-rw-r--r-- | drivers/net/wireless/zd1201.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/zd1201.c b/drivers/net/wireless/zd1201.c index c52e9bcf8d02..a44dda952c67 100644 --- a/drivers/net/wireless/zd1201.c +++ b/drivers/net/wireless/zd1201.c | |||
@@ -1218,7 +1218,7 @@ static int zd1201_set_essid(struct net_device *dev, | |||
1218 | return -EINVAL; | 1218 | return -EINVAL; |
1219 | if (data->length < 1) | 1219 | if (data->length < 1) |
1220 | data->length = 1; | 1220 | data->length = 1; |
1221 | zd->essidlen = data->length-1; | 1221 | zd->essidlen = data->length; |
1222 | memset(zd->essid, 0, IW_ESSID_MAX_SIZE+1); | 1222 | memset(zd->essid, 0, IW_ESSID_MAX_SIZE+1); |
1223 | memcpy(zd->essid, essid, data->length); | 1223 | memcpy(zd->essid, essid, data->length); |
1224 | return zd1201_join(zd, zd->essid, zd->essidlen); | 1224 | return zd1201_join(zd, zd->essid, zd->essidlen); |