From: Ashok Ponnaiah Date: Tue, 30 Jan 2018 10:13:57 +0000 (+0530) Subject: atheros: Send correct SSID length to the driver X-Git-Tag: hostap_2_7~617 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f811cc83b3d308f4c0dba9d3d6596b1a5c23c0e2;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c index d4812461f..fff23f0a3 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",