mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 20:43:40 +00:00
rtl8188eu: Return zero length output to SIOCGIWESSID when not connected
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
c5113ffec0
commit
e472b5d684
1 changed files with 6 additions and 11 deletions
|
@ -1611,21 +1611,16 @@ static int rtw_wx_get_essid(struct net_device *dev,
|
||||||
if ((check_fwstate(pmlmepriv, _FW_LINKED)) ||
|
if ((check_fwstate(pmlmepriv, _FW_LINKED)) ||
|
||||||
(check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE))) {
|
(check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE))) {
|
||||||
len = pcur_bss->Ssid.SsidLength;
|
len = pcur_bss->Ssid.SsidLength;
|
||||||
|
|
||||||
wrqu->essid.length = len;
|
|
||||||
|
|
||||||
memcpy(extra, pcur_bss->Ssid.Ssid, len);
|
|
||||||
|
|
||||||
wrqu->essid.flags = 1;
|
|
||||||
} else {
|
} else {
|
||||||
ret = -1;
|
len = 0;
|
||||||
goto exit;
|
|
||||||
}
|
}
|
||||||
|
wrqu->essid.length = len;
|
||||||
|
|
||||||
|
memcpy(extra, pcur_bss->Ssid.Ssid, len);
|
||||||
|
|
||||||
|
wrqu->essid.flags = 1;
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue