aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-09 19:55:55 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-09 20:18:32 (GMT)
commit3aed10f3b7f643f288f6aa1c5aef223c5c679b9e (patch)
tree5e99b349b6d445238dbe3c7ab91e38f467e2efcf
parentab9ff376956757de6175cce27f6f95c61c79a951 (diff)
downloadhostap-3aed10f3b7f643f288f6aa1c5aef223c5c679b9e.zip
hostap-3aed10f3b7f643f288f6aa1c5aef223c5c679b9e.tar.gz
hostap-3aed10f3b7f643f288f6aa1c5aef223c5c679b9e.tar.bz2
AOSP: P2P find stopped ctrl_iface event of p2p_flush
-rw-r--r--src/p2p/p2p.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c
index f19b3f6..4feabc6 100644
--- a/src/p2p/p2p.c
+++ b/src/p2p/p2p.c
@@ -2311,6 +2311,11 @@ void p2p_flush(struct p2p_data *p2p)
{
struct p2p_device *dev, *prev;
p2p_clear_timeout(p2p);
+#ifdef ANDROID_P2P
+ if (p2p->state == P2P_SEARCH)
+ wpa_msg(p2p->cfg->msg_ctx, MSG_INFO,
+ P2P_EVENT_FIND_STOPPED);
+#endif
p2p_set_state(p2p, P2P_IDLE);
p2p->start_after_scan = P2P_AFTER_SCAN_NOTHING;
p2p->go_neg_peer = NULL;