atheros: Set essid length field only once
Signed-hostap: Baruch Siach <baruch@tkos.co.il>
This commit is contained in:
parent
7aa4251f2f
commit
3947ed96e8
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue