From 17d9f6753aa7a00af425fec2305ece5f8b367794 Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Sun, 30 Sep 2012 16:25:50 -0700 Subject: 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 --- wifi/java/android/net/wifi/WifiStateMachine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wifi') 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) { -- cgit v1.1