]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AOSP: P2P find stopped ctrl_iface event of p2p_flush
authorJouni Malinen <j@w1.fi>
Thu, 9 Aug 2012 19:55:55 +0000 (22:55 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 9 Aug 2012 20:18:32 +0000 (23:18 +0300)
src/p2p/p2p.c

index f19b3f6bc11154ebce334b1c87532629b26c23a3..4feabc62636b779ebd49b86d021ee4acdb72a0c4 100644 (file)
@@ -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;