P2P: Retry provision discovery requests in IDLE state
authorJayant Sane <jayant.sane@intel.com>
Sun, 12 Jun 2011 21:20:39 +0000 (14:20 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 12 Jun 2011 21:20:39 +0000 (14:20 -0700)
commit6b56cc2d97fe9efd1feea8d418714b4658b056f1
treef76a6322dc87674808eafc9e7375ef960d5907ef
parent6b98a33c86159812a324e7c6cb3c237c4dae3293
P2P: Retry provision discovery requests in IDLE state

Since the peer may not be in Listen state when the provision discovery
request is sent, try to send the request again number of times when in
IDLE state. This was already done when p2p_find is in progress, but this
commit adds retries to the case where no other P2P operations are in
progress.

Signed-off-by: Jayant Sane <jayant.sane@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
src/p2p/p2p.c
src/p2p/p2p_i.h
src/p2p/p2p_pd.c