]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Add a peer entry based on Association Request frame
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 12 Mar 2013 11:04:33 +0000 (13:04 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 12 Mar 2013 11:04:33 +0000 (13:04 +0200)
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 <jouni@qca.qualcomm.com>

src/p2p/p2p_group.c

index 9559e441ce49616f1f94fa860a196a433f31eb0c..edb8d721b226e4a84af1157a2911b74353d50f6a 100644 (file)
@@ -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;