From: Jouni Malinen Date: Thu, 9 Aug 2012 19:55:55 +0000 (+0300) Subject: AOSP: P2P find stopped ctrl_iface event of p2p_flush X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3aed10f3b7f643f288f6aa1c5aef223c5c679b9e;p=thirdparty%2Fhostap.git AOSP: P2P find stopped ctrl_iface event of p2p_flush --- diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index f19b3f6bc..4feabc626 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;