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

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

Reload STA firmware on start

Bug: 5242253
Change-Id: If8e07bc96b46a0e5022cc9d12191de2e4dbec212
parent d56b3c95
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1911,6 +1911,12 @@ public class WifiStateMachine extends StateMachine {
                    transitionTo(mDriverUnloadingState);
                    break;
                case CMD_START_SUPPLICANT:
                    try {
                        mNwService.wifiFirmwareReload(mInterfaceName, "STA");
                    } catch (Exception e) {
                        Log.e(TAG, "Failed to reload STA firmware " + e);
                        // continue
                    }
                    //A runtime crash can leave the interface up and
                    //this affects connectivity when supplicant starts up.
                    //Ensure interface is down before a supplicant start.