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>
This commit is contained in:
parent
e005725a69
commit
f811cc83b3
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue