summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/java/com/android/server/wifi/ScanDetailCache.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/ScanDetailCache.java b/service/java/com/android/server/wifi/ScanDetailCache.java
index f3cbc95ab..c8490a5bc 100644
--- a/service/java/com/android/server/wifi/ScanDetailCache.java
+++ b/service/java/com/android/server/wifi/ScanDetailCache.java
@@ -20,6 +20,8 @@ import android.annotation.NonNull;
import android.net.wifi.ScanResult;
import android.net.wifi.WifiConfiguration;
+import com.android.server.wifi.hotspot2.NetworkDetail;
+
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
@@ -196,6 +198,11 @@ public class ScanDetailCache {
sbuf.append(String.format(",%4d.%02d.%02d.%02d.%03dms", ageDay,
ageHour, ageMin, ageSec, ageMilli));
}
+ NetworkDetail networkDetail = scanDetail.getNetworkDetail();
+ if (networkDetail != null && networkDetail.isInterworking()) {
+ sbuf.append(",Ant=").append(networkDetail.getAnt()).append(",Internet=")
+ .append(networkDetail.isInternet());
+ }
sbuf.append("} ");
}
sbuf.append('\n');