Skip to content

Commit 329b797

Browse files
isheriffAndroid (Google) Code Review
authored andcommitted
Merge "Reload STA firmware on start"
2 parents 1123de9 + e36fcea commit 329b797

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wifi/java/android/net/wifi/WifiStateMachine.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,6 +1911,12 @@ public boolean processMessage(Message message) {
19111911
transitionTo(mDriverUnloadingState);
19121912
break;
19131913
case CMD_START_SUPPLICANT:
1914+
try {
1915+
mNwService.wifiFirmwareReload(mInterfaceName, "STA");
1916+
} catch (Exception e) {
1917+
Log.e(TAG, "Failed to reload STA firmware " + e);
1918+
// continue
1919+
}
19141920
//A runtime crash can leave the interface up and
19151921
//this affects connectivity when supplicant starts up.
19161922
//Ensure interface is down before a supplicant start.

0 commit comments

Comments
 (0)