]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Only schedule a single p2p_go_neg_start timeout at a time
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 26 Feb 2013 16:07:17 +0000 (18:07 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 26 Feb 2013 16:07:17 +0000 (18:07 +0200)
commit8cee87ab139e52516ee4185789b40a0459fa7406
treebf9bbe999b7bec0b51ea26a5f2c0b0d79ca808b3
parentc03e2113b6a3eca097fba2a5a947dcec8c0bd168
P2P: Only schedule a single p2p_go_neg_start timeout at a time

It is possible for the driver to indicate multiple Probe Request frames
that would be processed in a single loop. If those frames happen to be
from a peer which with we are trying to start GO Negotiation, multiple
timeouts to start GO Negotiation (p2p_go_neg_start) could end up being
scheduled. This would result in confusing burst of multiple GO
Negotiation Request frames being sent once the RX loop finally
concludes. Avoid this by scheduling only a single eloop timeout to
trigger GO Negotiation regardless of how many Probe Request frames from
the peer is received. In addition, make sure this timeout gets canceled
in p2p_deinit().

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.c