Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 602123a1 authored by Rebecca Silberstein's avatar Rebecca Silberstein Committed by Android (Google) Code Review
Browse files

Merge "handle wifi interface changes with interfaceRemoved" into nyc-dev

parents 6e379cdd 908c5df3
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -255,6 +255,9 @@ public class Tethering extends BaseNetworkObserver {
                    // ignore usb0 down after enabling RNDIS
                    // ignore usb0 down after enabling RNDIS
                    // we will handle disconnect in interfaceRemoved instead
                    // we will handle disconnect in interfaceRemoved instead
                    if (VDBG) Log.d(TAG, "ignore interface down for " + iface);
                    if (VDBG) Log.d(TAG, "ignore interface down for " + iface);
                } else if (isWifi(iface)) {
                    // handle disconnect in interfaceRemoved
                    if (VDBG) Log.d(TAG, "ignore interface down for " + iface);
                } else if (sm != null) {
                } else if (sm != null) {
                    sm.sendMessage(TetherInterfaceSM.CMD_INTERFACE_DOWN);
                    sm.sendMessage(TetherInterfaceSM.CMD_INTERFACE_DOWN);
                    mIfaces.remove(iface);
                    mIfaces.remove(iface);