P2P: Fix P2P_FIND while waiting for listen ROC to start in the driver
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 30 Dec 2015 22:35:21 +0000 (00:35 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 30 Dec 2015 22:35:21 +0000 (00:35 +0200)
commite79eb0c6602ae315b33cc7f4aa3cf7c296464a38
tree31320fea9e21a8f3f544843ac21bb9a26f7ca36d
parentce438369653a0a4b0ff2eda13cfea7ff706dd3ce
P2P: Fix P2P_FIND while waiting for listen ROC to start in the driver

It was possible for the p2p->pending_listen_freq to be left indicating
that there is a pending ROC for a listen operation if a P2P_FIND command
was timed to arrive suitably between a previous Listen operation issuing
a ROC request and the kernel code starting that request. This could
result in the P2P state machine getting stuck unable to continue the
find ("P2P: p2p_listen command pending already").

Fix this by clearing p2p->pending_listen_freq when starting P2P_FIND
command execution.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.c