]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix a logical error of workaround of extended listen failure
author朱海 <zhuhai.mail@163.com>
Thu, 11 Jan 2024 07:49:00 +0000 (15:49 +0800)
committerJouni Malinen <j@w1.fi>
Sun, 14 Jan 2024 19:13:24 +0000 (21:13 +0200)
commitaf6e21faa005220aacd26cd3f06adad0c3c9e44e
tree9c5c9436bca337daf16dd8d7ce9a2b34778aee22
parentabc239a0b0862155ba56dcec0b0766dd6c3832f7
P2P: Fix a logical error of workaround of extended listen failure

When p2p->state == P2P_LISTEN_ONLY, the statement before it
'p2p->cfg->is_p2p_in_progress(p2p->cfg->cb_ctx)' will be true, too, so
this function will print a message "Operation in progress" and return;
the workaround to handle listen failure will be never reached.

I met such an error when the 'remain-on-channel' command failed, then
the function p2p_ext_listen_timeout() just printed 'Operation in
progress' again and again, and the listen operation was not started
anymore.

Fixes: 0f1034e3889e ("P2P: Refrain from performing extended listen during P2P connection")
Signed-off-by: zhuhai <zhuhai.mail@163.com>
src/p2p/p2p.c