atheros: Set essid length field only once

Signed-hostap: Baruch Siach <baruch@tkos.co.il>
This commit is contained in:
Baruch Siach 2012-06-08 20:28:23 +03:00 committed by Jouni Malinen
parent 7aa4251f2f
commit 3947ed96e8

View file

@ -1572,7 +1572,6 @@ atheros_get_ssid(void *priv, u8 *buf, int len)
memset(&iwr, 0, sizeof(iwr));
os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ);
iwr.u.essid.pointer = (caddr_t) buf;
iwr.u.essid.length = len;
iwr.u.essid.length = (len > IW_ESSID_MAX_SIZE) ?
IW_ESSID_MAX_SIZE : len;