diff options
author | lucaslin <lucaslin@google.com> | 2021-03-30 16:54:45 +0800 |
---|---|---|
committer | Lucas Lin <lucaslin@google.com> | 2021-05-05 05:11:49 +0000 |
commit | 992c783b7d8188a91ac2f8e2b81437ff11179ab9 (patch) | |
tree | ddb628dbc97c4daa346328af81b22a3ac69d9cff /java | |
parent | 7375da20cd7a8876808c9a55a8a23c57a1f9133c (diff) | |
download | ethernet-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.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()) { |