diff options
author | Quang Luong <qal@google.com> | 2021-02-23 09:14:42 -0800 |
---|---|---|
committer | Luca Stefani <luca.stefani.ge1@gmail.com> | 2021-10-12 21:15:50 +0200 |
commit | 0084b657557fdeb5165afd78ebac6fc1eacb27b4 (patch) | |
tree | d044691afb7390fbe59d6d1a582ef26ac40d1eb8 | |
parent | 47d398cc904fd02b699a0b613e10d7f5aceeefcf (diff) |
[WifiTrackerLib] Add wifi standard to WifiEntry.ConnectedInfo
Add wifi standard field to WifiEntry.ConnectedInfo for displaying in
Network Details page.
Bug: 117216087
Test: build
Change-Id: Ibd4a9b229abc83965c1d7186a4149937e8d2b118
-rw-r--r-- | libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java index 675c80d0a..92c2ed531 100644 --- a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java +++ b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java @@ -28,6 +28,7 @@ import android.net.NetworkCapabilities; import android.net.NetworkInfo; import android.net.NetworkUtils; import android.net.RouteInfo; +import android.net.wifi.ScanResult; import android.net.wifi.WifiConfiguration; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; @@ -371,6 +372,7 @@ public abstract class WifiEntry implements Comparable<WifiEntry> { public List<String> ipv6Addresses = new ArrayList<>(); public String gateway; public String subnetMask; + public int wifiStandard = ScanResult.WIFI_STANDARD_UNKNOWN; } // User actions on a network @@ -648,6 +650,7 @@ public abstract class WifiEntry implements Comparable<WifiEntry> { } mConnectedInfo.frequencyMhz = wifiInfo.getFrequency(); mConnectedInfo.linkSpeedMbps = wifiInfo.getLinkSpeed(); + mConnectedInfo.wifiStandard = wifiInfo.getWifiStandard(); } } else { // Connection info doesn't matched, so this network is disconnected mNetworkInfo = null; |