summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRandy Pan <zpan@google.com>2017-05-19 17:11:24 -0700
committerRandy Pan <zpan@google.com>2017-05-19 17:11:24 -0700
commita8bea9aed9c0e8a16e51568541b90f0900edb9ef (patch)
treea5a028f4e034e8094958768a65f54e199d5294b0 /service
parent3a27fefe1b7643e56f0e61786714d219dfbe4b82 (diff)
WifiConfigManager: convert BSSID to lower case
When application specifies a particular BSSID for a WifiConfiguration, the passed in string can be in any format. When storing this BSSID field, we now always convert it lower case to match the format of how BSSID is presented in scan results. Bug: 38439640 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: Ic39d35694ee766cf83366fe7f00560684a18ac02
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiConfigManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index 87d7a100b..3f31c7ff8 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -720,7 +720,7 @@ public class WifiConfigManager {
internalConfig.SSID = externalConfig.SSID;
}
if (externalConfig.BSSID != null) {
- internalConfig.BSSID = externalConfig.BSSID;
+ internalConfig.BSSID = externalConfig.BSSID.toLowerCase();
}
internalConfig.hiddenSSID = externalConfig.hiddenSSID;
if (externalConfig.preSharedKey != null