]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Stop old listen radio work before go to WAIT_PEER_IDLE state
authorHu Wang <huw@codeaurora.org>
Wed, 29 Jul 2020 03:15:35 +0000 (11:15 +0800)
committerJouni Malinen <j@w1.fi>
Wed, 14 Oct 2020 20:16:16 +0000 (23:16 +0300)
commit13256b8cf3ed3965207e7dcc83435b2a13114a0a
treec835fe1bf8d82059e218791f81e476bd7c85af47
parent0f7989d8af726b5f4ee3741a45545fe890c83366
P2P: Stop old listen radio work before go to WAIT_PEER_IDLE state

P2P goes to Listen state while waiting for the peer to become ready for
GO Negotiation. If old listen radio work has not been completed, P2P
fails to go to listen state. This could happen in cases where P2P Action
frame transmission reused ongoing p2p-listen radio work.

p2p0: Add radio work 'p2p-listen'@0x
P2P-FIND-STOPPED
p2p0: Starting radio work 'p2p-listen'@0x after 0.010644 second wait
P2P: Use ongoing radio work for Action frame TX
P2P: Use ongoing radio work for Action frame TX
P2P: State CONNECT -> CONNECT
P2P: State CONNECT -> WAIT_PEER_IDLE
P2P: State WAIT_PEER_IDLE -> WAIT_PEER_CONNECT
P2P: Reject start_listen since p2p_listen_work already exists
P2P: Failed to start listen mode

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/p2p/p2p.c