]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Iterate through all peers in pending pre-find operation
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 Oct 2014 18:30:32 +0000 (21:30 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 23 Oct 2014 18:30:32 +0000 (21:30 +0300)
commite706b8c8e5da0c6456e3b52f84585193232e79aa
tree140b057c3fae60395338d29df02b61a8f82ae121
parentb41f26845aaa7cf8aed6e4889e7041debc476ef9
P2P: Iterate through all peers in pending pre-find operation

Commit 7139cf4a4f1fecfd03d0daff9bb33adb80cc3530 ('P2P: Decrement
sd_pending_bcast_queries when sd returns success') changed P2P SD
behavior in a way that the P2P search loop ended up in continuing with
the first peer entry until it acknowledged receipt of a pending
broadcast SD request while the previous design went through all peers
once. While it is reasonable to retry SD, getting stuck with the first
peer is not really desirable. Change the p2p_continue_find() loop to
continue from the next peer in each iteration to allow progress through
all peers that have pending operations if any other peer is not
acknowledging frames (e.g., due to not being on Listen channel).

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