From b7e74905fa971db47dc1e7fd2fae8de43bafd814 Mon Sep 17 00:00:00 2001 From: Hai Shalom Date: Mon, 14 Sep 2020 16:15:00 -0700 Subject: [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) --- service/java/com/android/server/wifi/util/ScanResultUtil.java | 4 ++++ 1 file changed, 4 insertions(+) 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, -- cgit v1.2.3