summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2012-09-18 12:39:22 -0700
committerIrfan Sheriff <isheriff@google.com>2012-09-18 15:17:56 -0700
commit5ef9c59fffce221fcfd3f2fcea8f45a41341fa42 (patch)
tree550317165dc29a16db748404b51abc3b4c639302 /wifi
parente0c28d5f1358fc2d4c464f910bd04fed4b283fef (diff)
downloadframeworks_base-5ef9c59fffce221fcfd3f2fcea8f45a41341fa42.zip
frameworks_base-5ef9c59fffce221fcfd3f2fcea8f45a41341fa42.tar.gz
frameworks_base-5ef9c59fffce221fcfd3f2fcea8f45a41341fa42.tar.bz2
send connection broadcast on client disconnect
Bug: 7188646 Change-Id: I69f2c2581004b08730407930fb056cc1fe54feec
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 58fcc55..75da2fe 100644
--- a/wifi/java/android/net/wifi/p2p/WifiP2pService.java
+++ b/wifi/java/android/net/wifi/p2p/WifiP2pService.java
@@ -1323,6 +1323,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);