WPS: Check BSS table against current BSSID if credential does not match
The credential MAC address is not necessarily that of the AP, i.e., it is more likely to be that of the Enrollee. Check the scan results against the current BSSID as well if match is not found otherwise when going through the mixed mode workaround. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
402c8e00b7
commit
5f481b6fdb
1 changed files with 3 additions and 0 deletions
|
@ -203,6 +203,9 @@ static void wpas_wps_security_workaround(struct wpa_supplicant *wpa_s,
|
|||
if (ssid->ssid == NULL)
|
||||
return;
|
||||
bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len);
|
||||
if (!bss)
|
||||
bss = wpa_bss_get(wpa_s, wpa_s->bssid,
|
||||
ssid->ssid, ssid->ssid_len);
|
||||
if (bss == NULL) {
|
||||
wpa_printf(MSG_DEBUG, "WPS: The AP was not found from BSS "
|
||||
"table - use credential as-is");
|
||||
|
|
Loading…
Reference in a new issue