[PATCH] P2P: Use ssid instead of wpa_ssid to find GO iface
Eduardo Abinader
eduardo.abinader
Fri Aug 8 03:51:23 PDT 2014
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 at openbossa.org>
---
wpa_supplicant/p2p_supplicant.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index f1269ad..5e2d49b 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -3706,7 +3706,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;
}
--
1.9.1
More information about the Hostap
mailing list