summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRockchip2015-08-28 17:14:16 +0800
committerRockchip2015-08-28 17:14:16 +0800
commitc9548ebbca2d81b32d55d573fefdfa79cc22488e (patch)
tree4b309b4a2c2dc3d82489beb555364ccd7da17076
parent0339ff3ccf7aec6556cc347216c980828660b75f (diff)
wlan: disable auto join to save new config just match first 3 characters of SSID. Hooliganism.
Signed-off-by: Rockchip <service@rock-chips.com>
-rw-r--r--service/java/com/android/server/wifi/WifiConfigStore.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigStore.java b/service/java/com/android/server/wifi/WifiConfigStore.java
index 94752d3..4bbb8fb 100644
--- a/service/java/com/android/server/wifi/WifiConfigStore.java
+++ b/service/java/com/android/server/wifi/WifiConfigStore.java
@@ -3151,7 +3151,8 @@ public class WifiConfigStore extends IpConfigStore {
if (!doNotAdd && (link.scanResultCache != null) && (link.scanResultCache.size() <= 6)) {
for (String bssid : link.scanResultCache.keySet()) {
if (result.BSSID.regionMatches(true, 0, bssid, 0, 16)
- && SSID.regionMatches(false, 0, link.SSID, 0, 4)) {
+ && SSID.equals(link.SSID)) {
+ //&& SSID.regionMatches(false, 0, link.SSID, 0, 4)) {
// If first 16 ascii characters of BSSID matches, and first 3
// characters of SSID match, we assume this is a home setup
// and thus we will try to transfer the password from the known