File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
wifi/java/android/net/wifi/p2p Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1566,9 +1566,17 @@ public boolean processMessage(Message message) {
15661566 WifiP2pManager .ERROR );
15671567 }
15681568 break ;
1569- /* The supplicant misses the group removed event at times and just
1570- * sends a network disconnect event */
1571- case WifiMonitor .NETWORK_DISCONNECTION_EVENT :
1569+ /* We do not listen to NETWORK_DISCONNECTION_EVENT for group removal
1570+ * handling since supplicant actually tries to reconnect after a temporary
1571+ * disconnect until group idle time out. Eventually, a group removal event
1572+ * will come when group has been removed.
1573+ *
1574+ * When there are connectivity issues during temporary disconnect, the application
1575+ * will also just remove the group.
1576+ *
1577+ * Treating network disconnection as group removal causes race conditions since
1578+ * supplicant would still maintain the group at that stage.
1579+ */
15721580 case WifiMonitor .P2P_GROUP_REMOVED_EVENT :
15731581 if (DBG ) logd (getName () + " group removed" );
15741582 handleGroupRemoved ();
You can’t perform that action at this time.
0 commit comments