aboutsummaryrefslogtreecommitdiffstats
path: root/driver/modules/hostap_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/modules/hostap_ioctl.c')
-rw-r--r--driver/modules/hostap_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/modules/hostap_ioctl.c b/driver/modules/hostap_ioctl.c
index 2f8b228..a45ea41 100644
--- a/driver/modules/hostap_ioctl.c
+++ b/driver/modules/hostap_ioctl.c
@@ -784,8 +784,8 @@ static int prism2_ioctl_siwessid(struct net_device *dev,
return -EINVAL;
}
- memcpy(local->essid, ssid, IW_ESSID_MAX_SIZE);
- local->essid[MAX_SSID_LEN] = '\0';
+ memcpy(local->essid, ssid, data->length);
+ local->essid[data->length] = '\0';
if ((!local->fw_ap &&
hostap_set_string(dev, HFA384X_RID_CNFDESIREDSSID, local->essid))