mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
P2P: Do not filter BSSes based on SSID during P2P Provisioning
TODO: Use group id from GO Neg instead(?)
This commit is contained in:
parent
9fa243b295
commit
b2c5a4a3df
@ -607,12 +607,20 @@ static struct wpa_ssid * wpas_wps_add_network(struct wpa_supplicant *wpa_s,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bssid) {
|
if (bssid) {
|
||||||
|
#ifndef CONFIG_P2P
|
||||||
struct wpa_bss *bss;
|
struct wpa_bss *bss;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
#endif /* CONFIG_P2P */
|
||||||
|
|
||||||
os_memcpy(ssid->bssid, bssid, ETH_ALEN);
|
os_memcpy(ssid->bssid, bssid, ETH_ALEN);
|
||||||
ssid->bssid_set = 1;
|
ssid->bssid_set = 1;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Note: With P2P, the SSID may change at the time the WPS
|
||||||
|
* provisioning is started, so better not filter the AP based
|
||||||
|
* on the current SSID in the scan results.
|
||||||
|
*/
|
||||||
|
#ifndef CONFIG_P2P
|
||||||
dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) {
|
dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) {
|
||||||
if (os_memcmp(bssid, bss->bssid, ETH_ALEN) != 0)
|
if (os_memcmp(bssid, bss->bssid, ETH_ALEN) != 0)
|
||||||
continue;
|
continue;
|
||||||
@ -636,6 +644,7 @@ static struct wpa_ssid * wpas_wps_add_network(struct wpa_supplicant *wpa_s,
|
|||||||
ssid->ssid = NULL;
|
ssid->ssid = NULL;
|
||||||
ssid->ssid_len = 0;
|
ssid->ssid_len = 0;
|
||||||
}
|
}
|
||||||
|
#endif /* CONFIG_P2P */
|
||||||
}
|
}
|
||||||
|
|
||||||
return ssid;
|
return ssid;
|
||||||
|
Loading…
Reference in New Issue
Block a user