Fix transport override

The EthernetConfigParser was adding the transportType on top of the
TRANSPORT_ETHERNET of DEFAULT_CAPABILITIES, causing multiple transport
types to be added.

This was causing an IllegalStateException when trying to set the
NetworkSpecifier within the EthernetNetworkFactory.

This only applies for when isAtLeastB && capabilitiesString.equals("*")
is true (as the parsed capability is equal to DEFAULT_CAPABILITIES).

Flag: TEST_ONLY
Bug: 405172885
Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.ethernet.EthernetTrackerTest
(cherry picked from https://android-review.googlesource.com/q/commit:65a26519c00bfb9b45bec30153cb2306577d2fc1)
Merged-In: I6678a52ddc87b8ad66c602c68335f3e2073d7231
Change-Id: I6678a52ddc87b8ad66c602c68335f3e2073d7231
2 files changed