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

Commit b630b7e4 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Fix tether restart on settings change

Bug: 8320043
Change-Id: I35d84c5b0ff2b9cc62d77b7fb6a9b9076f2cb695
parent e6db500b
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -3544,7 +3544,8 @@ public class WifiStateMachine extends StateMachine {
                    if (message.arg1 == mTetherToken) {
                        loge("Failed to get tether update, shutdown soft access point");
                        transitionTo(mSoftApStartedState);
                        sendMessage(CMD_STOP_AP);
                        // Needs to be first thing handled
                        sendMessageAtFrontOfQueue(CMD_STOP_AP);
                    }
                    break;
                case CMD_START_SUPPLICANT:
@@ -3609,13 +3610,15 @@ public class WifiStateMachine extends StateMachine {
                    if (isWifiTethered(stateChange.active)) break;

                    transitionTo(mSoftApStartedState);
                    sendMessage(CMD_STOP_AP);
                    // Needs to be first thing handled
                    sendMessageAtFrontOfQueue(CMD_STOP_AP);
                    break;
                case CMD_TETHER_NOTIFICATION_TIMED_OUT:
                    if (message.arg1 == mTetherToken) {
                        loge("Failed to get tether update, force stop access point");
                        transitionTo(mSoftApStartedState);
                        sendMessage(CMD_STOP_AP);
                        // Needs to be first thing handled
                        sendMessageAtFrontOfQueue(CMD_STOP_AP);
                    }
                    break;
                case CMD_START_SUPPLICANT: