diff options
-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; |