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

login
register
mail settings
Submitter Baruch Siach
Date May 29, 2012, 2:18 p.m.
Message ID <9bfe071bc6046225b7b92ff69f0bc81bf4ddf1dc.1338301025.git.baruch@tkos.co.il>
Download mbox | patch
Permalink /patch/161754/
State Accepted
Commit 3947ed96e8864399af41ff0357f615de04dccb0f
Headers show

Comments

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

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;