]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Indicate GO Negotiation failure on peer expiration
authorJithu Jance <jithu@broadcom.com>
Fri, 18 Nov 2011 21:13:03 +0000 (23:13 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 18 Nov 2011 21:13:03 +0000 (23:13 +0200)
commit5cfda25e444b4144551d5320d3b1831339914439
tree7dc2295d978256927507194442f82c604c5754d1
parent1966e3d1b798984e38b6ea1c2a24f6e5d6205125
P2P: Indicate GO Negotiation failure on peer expiration

If P2P device expires while a GO Negotiation is in progress, currently
p2p->go_neg_peer is cleared without indicating GO Nego failure. This
will result in pending group interfaces to be left over. This patch will
indicate GO Negotiation failure and will remove any pending group
interfaces.

This patch addresses a corner case in GO-Negotiation case. Consider the
scenario where two devices A and B are in discovery stage and Device B
vanishes [moves out of range] when a connect is issued on the Device A.
Then Device A keeps on retrying the GO Negotiation Request till the
retry limit is reached. On reaching retry limit, the pending group
interface is removed. But suppose if the peer entry in the device list
expires before the retry limit is reached, then pending group interface
was not removed.

Signed-off-by: Jithu Jance <jithu@broadcom.com>
src/p2p/p2p.c