Skip to content

Commit 17d9f67

Browse files
committed
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
1 parent ce6fc8d commit 17d9f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,7 @@ private void sendRssiChangeBroadcast(final int newRssi) {
16241624
Intent intent = new Intent(WifiManager.RSSI_CHANGED_ACTION);
16251625
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
16261626
intent.putExtra(WifiManager.EXTRA_NEW_RSSI, newRssi);
1627-
mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
1627+
mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL);
16281628
}
16291629

16301630
private void sendNetworkStateChangeBroadcast(String bssid) {

0 commit comments

Comments
 (0)