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

Commit e3b79ca1 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Fix PAN bugs.

1. The interface was null for reverse tethering.
2. When disconnecting the server, we were passing the address instead of the
interface.

Change-Id: I6004cdf1eed000211cddc6b120e0aded5758eb1e
parent 0a779813
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ final class BluetoothPanProfileHandler {

                if (!mBluetoothService.disconnectPanServerDeviceNative(objectPath,
                        device.getAddress(),
                        panDevice.mIfaceAddr)) {
                        panDevice.mIface)) {
                    errorLog("could not disconnect Pan Server Device "+device.getAddress());

                    // Restore prev state
@@ -291,6 +291,7 @@ final class BluetoothPanProfileHandler {
            panDevice.mState = state;
            panDevice.mIfaceAddr = ifaceAddr;
            panDevice.mLocalRole = role;
            panDevice.mIface = iface;
        }

        Intent intent = new Intent(BluetoothPan.ACTION_CONNECTION_STATE_CHANGED);