summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorHai Shalom <haishalom@google.com>2020-09-14 16:15:00 -0700
committerHai Shalom <haishalom@google.com>2020-09-15 20:46:36 +0000
commitb7e74905fa971db47dc1e7fd2fae8de43bafd814 (patch)
tree9dfd3b803c9a656cfe98e37ef25736c96c7f49b9 /service
parent21130f070cd84f847b2efd59c099b86068733347 (diff)
[Passpoint] Add indication flag to wifiscanner logs
Add [PASSPOINT] flag to wifiscanner logs. Provides information about which networks advertise Passpoint capability in their IEs. Bug: 168493053 Test: dumpsys wifiscanner, verify output AndroidWiFiPasspoint [WPA2-EAP-CCMP][RSN-EAP-CCMP][ESS][PASSPOINT] Change-Id: I0dd03d0fa242d536662b62ff649e64e92303b04c Merged-In: I0dd03d0fa242d536662b62ff649e64e92303b04c (cherry picked from commit 37f793e7ff2a2c4851651e654596a5e6fdbdb350)
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/util/ScanResultUtil.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/util/ScanResultUtil.java b/service/java/com/android/server/wifi/util/ScanResultUtil.java
index dc2281ad2..4085045b5 100644
--- a/service/java/com/android/server/wifi/util/ScanResultUtil.java
+++ b/service/java/com/android/server/wifi/util/ScanResultUtil.java
@@ -233,6 +233,10 @@ public class ScanResultUtil {
} else {
rssiInfo = String.format("%9d ", r.level);
}
+ if ((r.flags & ScanResult.FLAG_PASSPOINT_NETWORK)
+ == ScanResult.FLAG_PASSPOINT_NETWORK) {
+ r.capabilities += "[PASSPOINT]";
+ }
pw.printf(" %17s %9d %18s %7s %-32s %s\n",
r.BSSID,
r.frequency,