summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2012-09-30 16:25:50 -0700
committerIrfan Sheriff <isheriff@google.com>2012-09-30 16:25:50 -0700
commit17d9f6753aa7a00af425fec2305ece5f8b367794 (patch)
treeec86d454d681b10c35c1e92f319b7c1d6c32d251 /wifi
parentce6fc8d7a49d1b246e37c4e87fd5e715e408bca2 (diff)
downloadframeworks_base-17d9f6753aa7a00af425fec2305ece5f8b367794.zip
frameworks_base-17d9f6753aa7a00af425fec2305ece5f8b367794.tar.gz
frameworks_base-17d9f6753aa7a00af425fec2305ece5f8b367794.tar.bz2
Make rssi state change sticky
NetworkController misses the rssi state at boot. It gets the wifi connection status because it is sticky. The rssi state will remain out of sync until the wifi state machine sends another update which may not happen if rssi does not change significantly. Make rssi sticky as well to make sure NetworkController has the last known signal strength on wifi. Bug: 6916156 Change-Id: Id7dd621c6dbc35d7354757c61aa18a3b1ba90593
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiStateMachine.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java
index ab9db88..db539e4 100644
--- a/wifi/java/android/net/wifi/WifiStateMachine.java
+++ b/wifi/java/android/net/wifi/WifiStateMachine.java
@@ -1624,7 +1624,7 @@ public class WifiStateMachine extends StateMachine {
Intent intent = new Intent(WifiManager.RSSI_CHANGED_ACTION);
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
intent.putExtra(WifiManager.EXTRA_NEW_RSSI, newRssi);
- mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
+ mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL);
}
private void sendNetworkStateChangeBroadcast(String bssid) {