]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Limit number of SD retries during find
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 Oct 2014 18:49:42 +0000 (21:49 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 23 Oct 2014 18:51:48 +0000 (21:51 +0300)
commit44abecbf0256c78f33bd0e87a7ce264ebbc70cf8
treebccb3ddad45a473328313f3ff2df16e3f9c59321
parente706b8c8e5da0c6456e3b52f84585193232e79aa
P2P: Limit number of SD retries during find

Commit 7139cf4a4f1fecfd03d0daff9bb33adb80cc3530 ('P2P: Decrement
sd_pending_bcast_queries when sd returns success') added support for
retrying P2P SD queries. However, it did this without limiting how many
retries are allowed. This can result in excessive number of retries if a
peer device does not show up on its Listen channel and there is a
pending SD query to it. Limit the maximum number of SD retries to 100
per p2p_find operation for each peer to avoid unlimited retries.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.c
src/p2p/p2p_i.h
src/p2p/p2p_sd.c