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:
Eduardo Abinader 2014-08-08 06:51:23 -04:00 committed by Jouni Malinen
parent 6c460eaf7e
commit af65bc36bb

View file

@ -3712,7 +3712,7 @@ struct wpa_supplicant * wpas_get_p2p_go_iface(struct wpa_supplicant *wpa_s,
s->mode != WPAS_MODE_P2P_GROUP_FORMATION) s->mode != WPAS_MODE_P2P_GROUP_FORMATION)
continue; continue;
if (s->ssid_len != ssid_len || if (s->ssid_len != ssid_len ||
os_memcmp(s, s->ssid, ssid_len) != 0) os_memcmp(ssid, s->ssid, ssid_len) != 0)
continue; continue;
return wpa_s; return wpa_s;
} }