]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Stop driver listen in p2p_state_timeout()
authorConstantin Musca <constantin.musca@intel.com>
Fri, 12 Sep 2014 07:22:19 +0000 (10:22 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 25 Oct 2014 18:37:18 +0000 (21:37 +0300)
commita902d5a64b825a778992e26c0add98479e9c3b39
treec04b0ef13bd9f87d8e38256f2e3c97848293dad7
parent431dd8bb118dacfb19320c08d5a8d829277dbc12
P2P: Stop driver listen in p2p_state_timeout()

When a P2P timeout occurs and p2p_state_timeout is executed, the
stop_listen function can be called besides setting in_listen to zero in
cases where the driver is still in ROC. That should not really happen in
normal cases, but it is possible for some drivers to extend the ROC
duration. If that happens, the next start_listen request may get
rejected with "P2P: Reject start_listen since p2p_listen_work already
exists".

Signed-off-by: Constantin Musca <constantin.musca@intel.com>
src/p2p/p2p.c