Merge "Do not stop IpServer when recieve wifi ap disabling state." into rvc-dev am: b28fd19f26

Change-Id: Ie0dbdea250cf31a4877e5b94fdf61e8f37705090
This commit is contained in:
Mark Chien
2020-04-16 03:26:36 +00:00
committed by Automerger Merge Worker

View File

@@ -922,8 +922,10 @@ public class Tethering {
case WifiManager.WIFI_AP_STATE_ENABLED:
enableWifiIpServingLocked(ifname, ipmode);
break;
case WifiManager.WIFI_AP_STATE_DISABLED:
case WifiManager.WIFI_AP_STATE_DISABLING:
// We can see this state on the way to disabled.
break;
case WifiManager.WIFI_AP_STATE_DISABLED:
case WifiManager.WIFI_AP_STATE_FAILED:
default:
disableWifiIpServingLocked(ifname, curState);