summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-11-18 19:06:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-11-18 19:06:58 +0000
commitf8773d7e3b5bda7236c355d64751abb4eedba023 (patch)
tree0d98fc8f8562e635f673e777e71085a58ba6dede /service
parent908eda596c7d233b5ef234837b2e41cf4e8872f5 (diff)
parent503e557a87d364b725fd4b7a45a452d5fcb37163 (diff)
Merge "Only report L2KeyAndGroupHint when connected"
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiScoreCard.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiScoreCard.java b/service/java/com/android/server/wifi/WifiScoreCard.java
index e7a8715cf..22bd1b1ba 100644
--- a/service/java/com/android/server/wifi/WifiScoreCard.java
+++ b/service/java/com/android/server/wifi/WifiScoreCard.java
@@ -549,6 +549,9 @@ public class WifiScoreCard {
} catch (IllegalArgumentException e) {
return mDummyPerBssid;
}
+ if (mac.equals(mDummyPerBssid.bssid)) {
+ return mDummyPerBssid;
+ }
PerBssid ans = mApForBssid.get(mac);
if (ans == null || !ans.ssid.equals(ssid)) {
ans = new PerBssid(ssid, mac);