Revert "P2P: Clear the discovery state incase of deffered GO Neg response"
This reverts commit 1d57ba2e974d60c4b36b65c9d58f6ec7cebad0aa.
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c
index d9f97ed..d62874e 100644
--- a/src/p2p/p2p.c
+++ b/src/p2p/p2p.c
@@ -3512,17 +3512,8 @@
struct p2p_device *dev;
dev = p2p_get_device(p2p, addr);
if (dev &&
- dev->status == P2P_SC_FAIL_INFO_CURRENTLY_UNAVAILABLE) {
+ dev->status == P2P_SC_FAIL_INFO_CURRENTLY_UNAVAILABLE)
dev->flags |= P2P_DEV_PEER_WAITING_RESPONSE;
- if ((p2p->state == P2P_SEARCH) ||
- (p2p->state == P2P_LISTEN_ONLY)) {
- /* Clear our search state or Listen state since
- * now peer is awaiting response from our side.
- */
- p2p_dbg(p2p, "Clear the P2P discovery state");
- p2p_stop_find(p2p);
- }
- }
}
}