diff options
author | lucaslin <lucaslin@google.com> | 2021-03-30 16:54:45 +0800 |
---|---|---|
committer | lucaslin <lucaslin@google.com> | 2021-03-30 16:54:45 +0800 |
commit | 74e1e4309a8841fcd35ef33f7856f6ab3e94eb8f (patch) | |
tree | f2a7a22e088dc9d87104910acb5d508e8d1a55f8 | |
parent | 937d47a5084b4ba9ef278d1ccb3bd1ae81f3244a (diff) | |
download | ethernet-74e1e4309a8841fcd35ef33f7856f6ab3e94eb8f.tar.gz |
Add transport type in capabilities filter of EthernetNetworkFacotry
Bug: 167544279
Test: atest EthernetServiceTests
Change-Id: Ie64e3cff0ace413f14682736de7a1b65fa93e705
-rw-r--r-- | java/com/android/server/ethernet/EthernetNetworkFactory.java | 1 |
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()) { |