Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90eeecc3 authored by Amin Shaikh's avatar Amin Shaikh
Browse files

Reset soft AP state when tethering fails from QS.

Change-Id: I5584178240251eac0d139c3d696cc50f8e9da061
Fixes: 115615686
Test: manual
parent 2793aa84
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -205,6 +205,8 @@ public class HotspotControllerImpl implements HotspotController, WifiManager.Sof
        public void onTetheringFailed() {
            if (DEBUG) Log.d(TAG, "onTetheringFailed");
            mWaitingForCallback = false;
            // TODO(b/110697252): stopTethering must be called to reset soft ap state after failure
            mConnectivityManager.stopTethering(ConnectivityManager.TETHERING_WIFI);
            fireHotspotChangedCallback(isHotspotEnabled());
          // TODO: Show error.
        }