diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2021-03-18 01:18:59 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-03-18 01:18:59 +0000 |
commit | 1ac8eb0a6c1d3d65b556bce89a4246be79d7a7d7 (patch) | |
tree | b160721d03b5b41210a8c53821b0c0161cd60a83 | |
parent | 582d9632397a238fa62838d458cf455aa67c1fea (diff) | |
parent | e914d845a233dc8a6a06c98a37ab39d7ff8392fd (diff) | |
download | frameworks_opt_net_wifi-1ac8eb0a6c1d3d65b556bce89a4246be79d7a7d7.tar.gz frameworks_opt_net_wifi-1ac8eb0a6c1d3d65b556bce89a4246be79d7a7d7.tar.bz2 frameworks_opt_net_wifi-1ac8eb0a6c1d3d65b556bce89a4246be79d7a7d7.zip |
Remove WifiEntry usage of hidden connectivity API am: cd06f06a46 am: e914d845a2
Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/wifi/+/1639979
Change-Id: I65c0d158983aa87370581c02650d0c27e15bee16
-rw-r--r-- | libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java index 09a2a3ffe..982ef888a 100644 --- a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java +++ b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java @@ -703,7 +703,8 @@ public abstract class WifiEntry implements Comparable<WifiEntry> { // Find IPv4 default gateway. for (RouteInfo routeInfo : linkProperties.getRoutes()) { - if (routeInfo.isIPv4Default() && routeInfo.hasGateway()) { + if (routeInfo.isDefaultRoute() && routeInfo.getDestination().getAddress() + instanceof Inet4Address && routeInfo.hasGateway()) { mConnectedInfo.gateway = routeInfo.getGateway().getHostAddress(); break; } |