]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Clear listen state during PD-in-FIND
authorArik Nemtsov <arik@wizery.com>
Tue, 18 Oct 2016 09:44:15 +0000 (12:44 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 28 Oct 2016 21:55:49 +0000 (00:55 +0300)
drv->in_listen should be cleared whenever the state timeout is cleared,
if they were set together. If the flag is not cleared, the
p2p_listen_end() called during cancel-remain-on-channel will not restart
the search, relying on the state timeout function to do it. Use the
p2p_stop_listen_for_freq() function to clear the listen state properly.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
src/p2p/p2p_pd.c

index 93a0535f873a0d5474b351ad75a6daaaa03f0072..54b2ab425828db0af0bd62b8606b3d03c7414721 100644 (file)
@@ -1581,7 +1581,7 @@ out:
                                         report_config_methods);
 
        if (p2p->state == P2P_PD_DURING_FIND) {
-               p2p_clear_timeout(p2p);
+               p2p_stop_listen_for_freq(p2p, 0);
                p2p_continue_find(p2p);
        }
 }