[PATCH 2/2] atheros: set essid length field only once
Baruch Siach
baruch
Tue May 29 07:18:52 PDT 2012
Signed-hostap: Baruch Siach <baruch at tkos.co.il>
---
src/drivers/driver_atheros.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index db2b3ff..1f31ed1 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -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;
--
1.7.10
More information about the Hostap
mailing list