summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2012-09-18 15:26:15 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-18 15:26:16 -0700
commit7d0882be6d7e2a434072cb0bb63cb117e73491cb (patch)
treefd6c31e655d0710a3f5097aab843db6d361e4996 /wifi
parent6281d7cf32bdc624a9d70b2b4f5abce342558c27 (diff)
parent5ef9c59fffce221fcfd3f2fcea8f45a41341fa42 (diff)
downloadframeworks_base-7d0882be6d7e2a434072cb0bb63cb117e73491cb.zip
frameworks_base-7d0882be6d7e2a434072cb0bb63cb117e73491cb.tar.gz
frameworks_base-7d0882be6d7e2a434072cb0bb63cb117e73491cb.tar.bz2
Merge "send connection broadcast on client disconnect" into jb-mr1-dev
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/p2p/WifiP2pService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pService.java b/wifi/java/android/net/wifi/p2p/WifiP2pService.java
index dfe1297..13abb79 100644
--- a/wifi/java/android/net/wifi/p2p/WifiP2pService.java
+++ b/wifi/java/android/net/wifi/p2p/WifiP2pService.java
@@ -1314,6 +1314,11 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
if (!mAutonomousGroup && mGroup.isClientListEmpty()) {
Slog.d(TAG, "Client list empty, remove non-persistent p2p group");
mWifiNative.p2pGroupRemove(mGroup.getInterface());
+ // We end up sending connection changed broadcast
+ // when this happens at exit()
+ } else {
+ // Notify when a client disconnects from group
+ sendP2pConnectionChangedBroadcast();
}
} else {
if (DBG) logd("Failed to remove client " + deviceAddress);