]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Limit the retransmission of GO Negotiation request to 120
authorFabien Marotte <fabienx.marotte@linux.intel.com>
Tue, 28 Dec 2010 09:48:58 +0000 (11:48 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 28 Dec 2010 09:48:58 +0000 (11:48 +0200)
commit9dac8c3eaf8f89ead16dfe63f086cf5be7117a7f
tree010e8cef0e9af905a1ae07b87b892f8640fe119c
parentcc5e390d28ec9ee1ca94fac94629d0529d07dd60
P2P: Limit the retransmission of GO Negotiation request to 120

If the peer you want to connect to is no longer available (does not
acknowledge frames) when wpa_supplicant sends GO Negotition Request
frames, retransmission of this frame is done until the associated
p2p_device  structure is removed on timeout. In that case, no signal
is emitted to  inform the GO Negotiation has failed.

When sending an Invitation Request frame, the same retransmission
mechanism is in place but limit the transmission to 100 and hitting
the limit generates an event.

This patch adds the same mechanism as the one in place for Invitation
Request, but with limit of 120 to match the existing wait_count for
for GO Negotiation.
src/p2p/p2p.c
src/p2p/p2p_go_neg.c
src/p2p/p2p_i.h