rtl8723ds: Check ssids in cfg80211_rtw_scan()

This should be the fix for Issue #36

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2023-04-12 12:54:57 -05:00
parent ec85dc6b9f
commit 42fdd132e9

View File

@ -2358,7 +2358,7 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy
}
#ifdef CONFIG_P2P
if (pwdinfo->driver_interface == DRIVER_CFG80211) {
if (ssids && (pwdinfo->driver_interface == DRIVER_CFG80211)) {
if (_rtw_memcmp(ssids->ssid, "DIRECT-", 7) &&
rtw_get_p2p_ie((u8 *)request->ie, request->ie_len, NULL, NULL)) {
if (rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))