]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Update find_start timer only when p2p_scan is started.
authorPurushottam Kushwaha <pkushwah@codeaurora.org>
Fri, 1 Feb 2019 11:46:40 +0000 (17:16 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 7 Feb 2019 09:56:35 +0000 (11:56 +0200)
commitf2a6ac63eeea09b56df3539f7e554974c1e8a326
treecb8f2d3f3bb2622f4d2f6f6915b9ecad16cca73e
parent3281c1590ddbd73da5e8fa25d2408bcb1577795a
P2P: Update find_start timer only when p2p_scan is started.

p2p->find_start timer was updated on each p2p_find call irrespective of
p2p_find being successful/failed/rejected. For cases where p2p_find was
in progress/pending, another call to p2p_find would be rejected but
p2p->find_start timer would still be updated.

p2p->find_start is maintained in wpa_supplicant to reject the kernel
scan entries before the p2p->find_start time. In above scenario, some of
the scan entries could be discarded even if the Probe Respons frame(s)
were received during the last scan/p2p_find.

This commit changes this to update the p2p->find_start timer only when
call to p2p_find is successful, i.e., a new scan is actually started.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/p2p/p2p.c