commit | fbade325c06f3c6b1c2f74fb35030bd532795812 | [log] [tgz] |
---|---|---|
author | markchien <markchien@google.com> | Sun Sep 27 16:56:38 2020 +0800 |
committer | markchien <markchien@google.com> | Sun Sep 27 17:11:20 2020 +0800 |
tree | a234fbdc364643a595f540be5d17820f8258b5fb | |
parent | 90b0d3f83e4b4f3081f40f87ff628251b71aa4ce [diff] |
Remove double check interface by NetworkInterface NetworkInterface#getByName can not get the interface without IP addresses. When setIncludeTestInterfaces(true) is called, the interface will be placed in client mode, which will delete the link-local address. So calling NetworkInterface#getByName to get test interface may not work before switching to server mode. Bug: 168215721 Test: atest CtsTethering Change-Id: Ice8adcce1c4b2c86bd219c701b2afa9ba2339f24