P2P: Use ssid instead of wpa_ssid to find GO iface
In order to find a GO interface, there has to be a comparison among two SSIDs, instead of a wpa_ssid and a ssid. Signed-off-by: Eduardo Abinader <eduardo.abinader@openbossa.org>
This commit is contained in:
parent
6c460eaf7e
commit
af65bc36bb
1 changed files with 1 additions and 1 deletions
|
@ -3712,7 +3712,7 @@ struct wpa_supplicant * wpas_get_p2p_go_iface(struct wpa_supplicant *wpa_s,
|
|||
s->mode != WPAS_MODE_P2P_GROUP_FORMATION)
|
||||
continue;
|
||||
if (s->ssid_len != ssid_len ||
|
||||
os_memcmp(s, s->ssid, ssid_len) != 0)
|
||||
os_memcmp(ssid, s->ssid, ssid_len) != 0)
|
||||
continue;
|
||||
return wpa_s;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue