From 5c2c2dc36f6eac60212ccaaa591ce6db2edc493e Mon Sep 17 00:00:00 2001 From: Neelansh Mittal Date: Tue, 30 Sep 2014 20:51:43 +0530 Subject: P2P: p2p flush on a group remove event. On a group removal, the devise shall not be able to detect the peer with which the group was formed earlier, as the supplicant shall not give the P2P_DEV_FOUND indication for an already reported one. Hence,do a p2p_flush to have a better user experience in finding the p2p devices. This will get the device list entries in the framework in sync with the suplicant peer device list. CRs-Fixed: 732399 Change-Id: Ic3bc19b3591001a5237538dddb42851638e2b358 --- service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java b/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java index c15cd1502..ca13baa76 100644 --- a/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java +++ b/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java @@ -2011,6 +2011,7 @@ public final class WifiP2pServiceImpl extends IWifiP2pManager.Stub { case WifiMonitor.P2P_GROUP_REMOVED_EVENT: if (DBG) logd(getName() + " group removed"); handleGroupRemoved(); + mWifiNative.p2pFlush(); transitionTo(mInactiveState); break; case WifiMonitor.P2P_DEVICE_LOST_EVENT: -- cgit v1.2.3