diff options
author | c_rrajiv <rrajiv@codeaurora.org> | 2016-01-14 17:23:01 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2016-08-24 08:07:53 -0600 |
commit | 538ab9c513e579211401453b87a14866ecd77f67 (patch) | |
tree | 8432ef15c926d855f448fb10395d0df11a7ada83 | |
parent | bb05f62dcc54b263107585cadd9bcd5c894b504a (diff) | |
download | android_frameworks_opt_net_wifi-538ab9c513e579211401453b87a14866ecd77f67.tar.gz android_frameworks_opt_net_wifi-538ab9c513e579211401453b87a14866ecd77f67.tar.bz2 android_frameworks_opt_net_wifi-538ab9c513e579211401453b87a14866ecd77f67.zip |
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
-rw-r--r-- | service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java b/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java index ae75a370e..04a7f50ee 100644 --- a/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java +++ b/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java @@ -2048,6 +2048,7 @@ public 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: |