P2P: Fix provision discovery retries during p2p_find
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 23 Jul 2012 18:59:01 +0000 (21:59 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 23 Jul 2012 18:59:01 +0000 (21:59 +0300)
commit488f4a7108e021be97fc1841fff9042d2b7d737f
tree5c1e06c2d632a08afa0091965aedc83fb5cdbc23
parenta5ed45586c63ffd8f9d2b44e27c251d7bacbeaf4
P2P: Fix provision discovery retries during p2p_find

Commit 6b56cc2d97fe9efd1feea8d418714b4658b056f1 added retries of
provision discovery request frames in IDLE state. However, it did not
make the p2p_find case behave consistently with the new limitied retry
behavior. This can result in way too many and frequent PD retries. Fix
this by extending the previous commit to address PD retries and maximum
retry limit consistently regardless of whether p2p_find is running.

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