diff options
author | Irfan Sheriff <isheriff@google.com> | 2011-08-31 10:07:59 -0700 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2011-08-31 10:07:59 -0700 |
commit | e36fcea8cdad6ed654079a34104795b2fbf5d2a2 (patch) | |
tree | 641efda1777e0c98cec179101f23ec19b56ffda8 | |
parent | d56b3c952469a63aa9d4fc860be24b80a4b0e3b6 (diff) | |
download | frameworks_base-e36fcea8cdad6ed654079a34104795b2fbf5d2a2.zip frameworks_base-e36fcea8cdad6ed654079a34104795b2fbf5d2a2.tar.gz frameworks_base-e36fcea8cdad6ed654079a34104795b2fbf5d2a2.tar.bz2 |
Reload STA firmware on start
Bug: 5242253
Change-Id: If8e07bc96b46a0e5022cc9d12191de2e4dbec212
-rw-r--r-- | wifi/java/android/net/wifi/WifiStateMachine.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java index 4fc5e08..d116e5b 100644 --- a/wifi/java/android/net/wifi/WifiStateMachine.java +++ b/wifi/java/android/net/wifi/WifiStateMachine.java @@ -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. |