P2P: Clear listen state during PD-in-FIND

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>
This commit is contained in:
Arik Nemtsov 2016-10-18 12:44:15 +03:00 committed by Jouni Malinen
parent 4cc0f909b2
commit f69939ede8

View file

@ -1581,7 +1581,7 @@ out:
report_config_methods); report_config_methods);
if (p2p->state == P2P_PD_DURING_FIND) { if (p2p->state == P2P_PD_DURING_FIND) {
p2p_clear_timeout(p2p); p2p_stop_listen_for_freq(p2p, 0);
p2p_continue_find(p2p); p2p_continue_find(p2p);
} }
} }