summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorDavid Su <dysu@google.com>2020-08-06 21:55:03 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-08-06 21:55:03 +0000
commitcc45059e81a75488313073896dd9de0e25379a5f (patch)
tree46187cdbc5d4e75bac4b3abcc9014687992694d9 /service
parent4de00278dc6cab03b4dd96c0bc8bab549646b5ec (diff)
parent845d825ad15fe0f6088ac975ad69f483f7b0baa6 (diff)
Merge "ClientModeImpl: remove redundant comparison" into rvc-qpr-dev
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/ClientModeImpl.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java
index 3f6ef8601..bf11e3cb0 100644
--- a/service/java/com/android/server/wifi/ClientModeImpl.java
+++ b/service/java/com/android/server/wifi/ClientModeImpl.java
@@ -4907,9 +4907,7 @@ public class ClientModeImpl extends StateMachine {
mLastNetworkId = message.arg1;
mWifiInfo.setNetworkId(mLastNetworkId);
mWifiInfo.setMacAddress(mWifiNative.getMacAddress(mInterfaceName));
- if (!mLastBssid.equals(message.obj)) {
- mLastBssid = (String) message.obj;
- }
+ mLastBssid = (String) message.obj;
break;
case CMD_ONESHOT_RSSI_POLL:
if (!mEnableRssiPolling) {