From faada83cd0cdc39fc805bc0ff5d67ac070802a0a Mon Sep 17 00:00:00 2001 From: c_rrajiv Date: Thu, 14 Jan 2016 17:23:01 +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: 962240 Change-Id: I13130f61120f7e9bd41824387364ca15535ea471 --- 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 ff814cd..2e86c3f 100644 --- a/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java +++ b/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java @@ -2047,6 +2047,7 @@ public final class WifiP2pServiceImpl extends IWifiP2pManager.Stub { */ enableBTCoex(); handleGroupRemoved(); + mWifiNative.p2pFlush(); transitionTo(mInactiveState); break; case WifiMonitor.P2P_DEVICE_LOST_EVENT: -- cgit v1.2.3