Merge "Handle group tear down only at group removed event" into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4e7f2ffe17
@@ -1566,9 +1566,17 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
|
|||||||
WifiP2pManager.ERROR);
|
WifiP2pManager.ERROR);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
/* The supplicant misses the group removed event at times and just
|
/* We do not listen to NETWORK_DISCONNECTION_EVENT for group removal
|
||||||
* sends a network disconnect event */
|
* handling since supplicant actually tries to reconnect after a temporary
|
||||||
case WifiMonitor.NETWORK_DISCONNECTION_EVENT:
|
* disconnect until group idle time out. Eventually, a group removal event
|
||||||
|
* will come when group has been removed.
|
||||||
|
*
|
||||||
|
* When there are connectivity issues during temporary disconnect, the application
|
||||||
|
* will also just remove the group.
|
||||||
|
*
|
||||||
|
* Treating network disconnection as group removal causes race conditions since
|
||||||
|
* supplicant would still maintain the group at that stage.
|
||||||
|
*/
|
||||||
case WifiMonitor.P2P_GROUP_REMOVED_EVENT:
|
case WifiMonitor.P2P_GROUP_REMOVED_EVENT:
|
||||||
if (DBG) logd(getName() + " group removed");
|
if (DBG) logd(getName() + " group removed");
|
||||||
handleGroupRemoved();
|
handleGroupRemoved();
|
||||||
|
|||||||
Reference in New Issue
Block a user