[2/2] atheros: set essid length field only once

Submitted by Baruch Siach on May 29, 2012, 2:18 p.m.

Details

Message ID 9bfe071bc6046225b7b92ff69f0bc81bf4ddf1dc.1338301025.git.baruch@tkos.co.il
State Accepted
Commit 3947ed96e8864399af41ff0357f615de04dccb0f
Headers show

Commit Message

Baruch Siach May 29, 2012, 2:18 p.m.
Signed-hostap: Baruch Siach <baruch@tkos.co.il>
---
 src/drivers/driver_atheros.c |    1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

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;