From f46fc73a3f8d0eeb1b43d17769464884f467ac47 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 12 Mar 2013 13:04:33 +0200 Subject: [PATCH] P2P: Add a peer entry based on Association Request frame It is possible for a P2P client to connect to an operating group without exchanging any Probe Request/Response frames that would allow the GO to discover the peer. To make sure there is a P2P peer entry at the GO, try to add the peer information based on P2P IE in (Re)Association Request frame. Signed-hostap: Jouni Malinen --- src/p2p/p2p_group.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p2p/p2p_group.c b/src/p2p/p2p_group.c index 9559e441c..edb8d721b 100644 --- a/src/p2p/p2p_group.c +++ b/src/p2p/p2p_group.c @@ -564,6 +564,8 @@ int p2p_group_notif_assoc(struct p2p_group *group, const u8 *addr, if (group == NULL) return -1; + p2p_add_device(group->p2p, addr, 0, NULL, 0, ie, len, 0); + m = os_zalloc(sizeof(*m)); if (m == NULL) return -1;