summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorlucaslin <lucaslin@google.com>2021-03-30 16:54:45 +0800
committerLucas Lin <lucaslin@google.com>2021-05-05 05:11:49 +0000
commit992c783b7d8188a91ac2f8e2b81437ff11179ab9 (patch)
treeddb628dbc97c4daa346328af81b22a3ac69d9cff /java
parent7375da20cd7a8876808c9a55a8a23c57a1f9133c (diff)
downloadethernet-992c783b7d8188a91ac2f8e2b81437ff11179ab9.tar.gz
Add transport type in capabilities filter of EthernetNetworkFacotry
Bug: 167544279 Test: atest EthernetServiceTests Change-Id: Ie64e3cff0ace413f14682736de7a1b65fa93e705 Merged-In: Ie64e3cff0ace413f14682736de7a1b65fa93e705 (Cherry-picked from ag/14031548)
Diffstat (limited to 'java')
-rw-r--r--java/com/android/server/ethernet/EthernetNetworkFactory.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/android/server/ethernet/EthernetNetworkFactory.java b/java/com/android/server/ethernet/EthernetNetworkFactory.java
index 75e77b9..f9e8b00 100644
--- a/java/com/android/server/ethernet/EthernetNetworkFactory.java
+++ b/java/com/android/server/ethernet/EthernetNetworkFactory.java
@@ -169,6 +169,7 @@ public class EthernetNetworkFactory extends NetworkFactory {
private void updateCapabilityFilter() {
NetworkCapabilities capabilitiesFilter = new NetworkCapabilities.Builder()
.clearAll()
+ .addTransportType(NetworkCapabilities.TRANSPORT_ETHERNET)
.build();
for (NetworkInterfaceState iface: mTrackingInterfaces.values()) {