mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-23 04:53:40 +00:00
rtl8188eu: Prevent crash when ssids is NULL
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
57bd21c563
commit
b5d64670e9
1 changed files with 1 additions and 1 deletions
|
@ -2285,7 +2285,7 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy
|
||||||
|
|
||||||
#ifdef CONFIG_P2P
|
#ifdef CONFIG_P2P
|
||||||
if (pwdinfo->driver_interface == DRIVER_CFG80211) {
|
if (pwdinfo->driver_interface == DRIVER_CFG80211) {
|
||||||
if (!memcmp(ssids->ssid, "DIRECT-", 7) &&
|
if (ssids && !memcmp(ssids->ssid, "DIRECT-", 7) &&
|
||||||
rtw_get_p2p_ie((u8 *)request->ie, request->ie_len, NULL, NULL)) {
|
rtw_get_p2p_ie((u8 *)request->ie, request->ie_len, NULL, NULL)) {
|
||||||
if (rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
|
if (rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
|
||||||
rtw_p2p_enable(padapter, P2P_ROLE_DEVICE);
|
rtw_p2p_enable(padapter, P2P_ROLE_DEVICE);
|
||||||
|
|
Loading…
Reference in a new issue