diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2021-03-21 15:26:37 +0000 |
---|---|---|
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | 2021-03-21 15:26:37 +0000 |
commit | 5e7b3f81dac40ec9c8dbba837f438abfd76d7f86 (patch) | |
tree | b160721d03b5b41210a8c53821b0c0161cd60a83 | |
parent | 61f8c4357404879838e6fee0d1c498e314d7f615 (diff) | |
parent | cd06f06a463acfabc931dfa8371a48f0d36138db (diff) | |
download | wifi-platform-tools-31.0.2.tar.gz |
Snap for 7224597 from cd06f06a463acfabc931dfa8371a48f0d36138db to sdk-releaseplatform-tools-31.0.2
Change-Id: I3e68e910946e7ed712925af5daa1928b8a496f71
-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; } |