]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Clear p2p_auth_invite after each persistent group invitation
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 27 May 2014 09:09:25 +0000 (12:09 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 27 May 2014 09:09:25 +0000 (12:09 +0300)
This makes the operations more consistent when going through multiple
persistent group re-invocation sequences in a row. Each invitation needs
to be accepted separately if persistent reconnect is not enabled.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/p2p_supplicant.c

index bbe15d814635410d91ffc6ae73bc68b633f89b8c..393f13bb64f1766a353b724ebe44c97a4c41bbc8 100644 (file)
@@ -2977,6 +2977,7 @@ static u8 wpas_invitation_process(void *ctx, const u8 *sa, const u8 *bssid,
            os_memcmp(sa, wpa_s->p2p_auth_invite, ETH_ALEN) == 0) {
                wpa_printf(MSG_DEBUG, "P2P: Accept previously initiated "
                           "invitation to re-invoke a persistent group");
+               os_memset(wpa_s->p2p_auth_invite, 0, ETH_ALEN);
        } else if (!wpa_s->conf->persistent_reconnect)
                return P2P_SC_FAIL_INFO_CURRENTLY_UNAVAILABLE;