]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Avoid resetting pending_listen_freq if p2p_listen is pending
authorJithu Jance <jithu@broadcom.com>
Thu, 22 May 2014 06:55:53 +0000 (12:25 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 22 May 2014 13:29:36 +0000 (16:29 +0300)
commit5661bd0f706b542bdc3b35df5b2b391f277e1275
tree22d7ba757d2cc81ea800ed7a5c6c2a85aa311414
parent8802326ff95fc6b31d666f904bbb2e9253afb5cf
P2P: Avoid resetting pending_listen_freq if p2p_listen is pending

If p2p_listen is called while previous listen command's
remain_on_channel event is pending, the p2p_listen would fail
and it used to clear pending_listen_freq. Now when the remain-
on-channel event comes from the driver, the pending_listen_freq
doesn't match and gets ignored. This was leading to a case
where listen state was getting stuck (in case of WAIT_PEER_CONNECT
state).

Signed-off-by: Jithu Jance <jithu@broadcom.com>
src/p2p/p2p.c