Pass EthernetPort to updateInterfaceState
Test: TH Flag: EXEMPT mainline Bug: 1000001 Change-Id: Id0c9cc4fd054f4e7096e0bf45ee3ffb5a9085698
This commit is contained in:
parent
8191dd61c3
commit
ff317e73ef
1 changed files with 3 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ public class EthernetTracker {
|
|||
maybeTrackInterface(port);
|
||||
}
|
||||
Log.i(TAG, "interfaceLinkStateChanged: " + port + ", up: " + linkUp);
|
||||
updateInterfaceState(ifname, linkUp);
|
||||
updateInterfaceState(port, linkUp);
|
||||
}
|
||||
|
||||
private void onDelLink(EthernetPort port) {
|
||||
|
|
@ -736,7 +736,8 @@ public class EthernetTracker {
|
|||
cb.onResult(iface);
|
||||
}
|
||||
|
||||
private void updateInterfaceState(String iface, boolean up) {
|
||||
private void updateInterfaceState(EthernetPort port, boolean up) {
|
||||
final String iface = port.getInterfaceName();
|
||||
final int mode = getInterfaceMode(iface);
|
||||
if (mode == INTERFACE_MODE_SERVER) {
|
||||
// TODO: support tracking link state for interfaces in server mode.
|
||||
|
|
|
|||
Loading…
Reference in a new issue