hostapd/src/p2p
朱海 af6e21faa0 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: 0f1034e388 ("P2P: Refrain from performing extended listen during P2P connection")
Signed-off-by: zhuhai <zhuhai.mail@163.com>
2024-01-14 21:13:24 +02:00
..
Makefile build: Make more library things common 2020-10-12 20:20:35 +03:00
p2p.c P2P: Fix a logical error of workaround of extended listen failure 2024-01-14 21:13:24 +02:00
p2p.h P2P: Use only PSC for P2P group in the 6 GHz band 2022-09-14 23:54:20 +03:00
p2p_build.c P2P: Use weighted preferred channel list for channel selection 2022-06-02 17:09:10 +03:00
p2p_dev_disc.c Use ether_addr_equal() to compare whether two MAC addresses are equal 2024-01-13 23:47:21 +02:00
p2p_go_neg.c Use ether_addr_equal() to compare whether two MAC addresses are equal 2024-01-13 23:47:21 +02:00
p2p_group.c Use ether_addr_equal() to compare whether two MAC addresses are equal 2024-01-13 23:47:21 +02:00
p2p_i.h P2P: Recover from successfully requested, but not started, listen 2023-12-10 19:30:44 +02:00
p2p_invitation.c Use ether_addr_equal() to compare whether two MAC addresses are equal 2024-01-13 23:47:21 +02:00
p2p_parse.c Check whether element parsing has failed 2023-07-18 16:05:17 +03:00
p2p_pd.c Use ether_addr_equal() to compare whether two MAC addresses are equal 2024-01-13 23:47:21 +02:00
p2p_sd.c Use ether_addr_equal() to compare whether two MAC addresses are equal 2024-01-13 23:47:21 +02:00
p2p_utils.c P2P: Use weighted preferred channel list for channel selection 2022-06-02 17:09:10 +03:00