aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_atheros.c
diff options
context:
space:
mode:
authorAshok Ponnaiah <aponnaia@codeaurora.org>2018-01-30 10:13:57 (GMT)
committerJouni Malinen <j@w1.fi>2018-02-01 21:45:12 (GMT)
commitf811cc83b3d308f4c0dba9d3d6596b1a5c23c0e2 (patch)
tree9d50c44a1f203e61475822a35c3cf8b03c6740ed /src/drivers/driver_atheros.c
parente005725a69649005405b96512f385ffa0bed09a5 (diff)
downloadhostap-f811cc83b3d308f4c0dba9d3d6596b1a5c23c0e2.zip
hostap-f811cc83b3d308f4c0dba9d3d6596b1a5c23c0e2.tar.gz
hostap-f811cc83b3d308f4c0dba9d3d6596b1a5c23c0e2.tar.bz2
atheros: Send correct SSID length to the driver
Send the exact SSID length to the driver by removing the legacy +1 padding. Signed-off-by: Ashok Ponnaiah <aponnaia@codeaurora.org>
Diffstat (limited to 'src/drivers/driver_atheros.c')
-rw-r--r--src/drivers/driver_atheros.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index d481246..fff23f0 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -1861,7 +1861,7 @@ atheros_set_ssid(void *priv, const u8 *buf, int len)
os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ);
iwr.u.essid.flags = 1; /* SSID active */
iwr.u.essid.pointer = (caddr_t) buf;
- iwr.u.essid.length = len + 1;
+ iwr.u.essid.length = len;
if (ioctl(drv->ioctl_sock, SIOCSIWESSID, &iwr) < 0) {
wpa_printf(MSG_ERROR, "ioctl[SIOCSIWESSID,len=%d]: %s",