aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2015-03-05 14:11:20 -0800
committerDmitry Shmidt <dimitrysh@google.com>2015-03-10 11:04:40 -0700
commit34c1202b3e71c63661a850aad81f663e40e48ca1 (patch)
treeb95d3481f5cf378426ff63dc9206332aaa3248d2 /src/p2p
parent7f65602d49069f96a7bb44da8bd79ffe8d4c6a98 (diff)
downloadandroid_external_wpa_supplicant_8-34c1202b3e71c63661a850aad81f663e40e48ca1.tar.gz
android_external_wpa_supplicant_8-34c1202b3e71c63661a850aad81f663e40e48ca1.tar.bz2
android_external_wpa_supplicant_8-34c1202b3e71c63661a850aad81f663e40e48ca1.zip
Revert "P2P: Clear the discovery state incase of deffered GO Neg response"
This reverts commit 1d57ba2e974d60c4b36b65c9d58f6ec7cebad0aa.
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/p2p.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c
index d9f97ed2..d62874ec 100644
--- a/src/p2p/p2p.c
+++ b/src/p2p/p2p.c
@@ -3512,17 +3512,8 @@ static void p2p_go_neg_resp_failure_cb(struct p2p_data *p2p, int success,
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);
- }
- }
}
}