summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Pan <zpan@google.com>2016-05-06 10:51:53 -0700
committerRandy Pan <zpan@google.com>2016-05-06 11:02:59 -0700
commit85c0f06d47e484e039e3ad1f584c7c9b8410c2b1 (patch)
treefbb1d5f392582e1e9a0894eb6eb068748a5bb666
parenta4da0a81a0a93faac3a8d9ef8d83b1a35c500073 (diff)
WifiStateMachine: fix setTargetBssid()
Always return when the current preferred BSSID is the same as the target one. This was done previously only if the DBG flag is set. While there, fixed the log message wording a bit. Bug: 28619076 Tests: Wifi unit tests, manual connection & roaming tests Change-Id: I109b57d54b1bcaccb00a148b488244b7d9358907
-rw-r--r--service/java/com/android/server/wifi/WifiStateMachine.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java
index 49d3033f4..498d1ea8b 100644
--- a/service/java/com/android/server/wifi/WifiStateMachine.java
+++ b/service/java/com/android/server/wifi/WifiStateMachine.java
@@ -463,9 +463,9 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss
.getNetworkSelectionBSSID();
if (networkSelectionBSSID != null && networkSelectionBSSID.equals(bssid)) {
if (DBG) {
- Log.d(TAG, "Current prefered BSSID is same as target");
- return false;
+ Log.d(TAG, "Current preferred BSSID is the same as the target one");
}
+ return false;
}
if (DBG) {