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

Commit f0f7b574 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun Committed by Automerger Merge Worker
Browse files

Merge "Use identity address in PanService" into main am: d2ef0653 am: 1182bb9f

parents 6bce3e83 1182bb9f
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -98,7 +98,11 @@ public class PanService extends ProfileService {
                        Log.e(TAG, "Error setting up tether interface: " + error);
                        for (Map.Entry device : mPanDevices.entrySet()) {
                            mNativeInterface.disconnect(
                                    Utils.getByteAddress((BluetoothDevice) device.getKey()));
                                    Flags.panUseIdentityAddress()
                                            ? Utils.getByteBrEdrAddress(
                                                    (BluetoothDevice) device.getKey())
                                            : Utils.getByteAddress(
                                                    (BluetoothDevice) device.getKey()));
                        }
                        mPanDevices.clear();
                        mIsTethering = false;
@@ -662,7 +666,10 @@ public class PanService extends ProfileService {
                            "handlePanDeviceStateChange BT tethering is off/Local role"
                                    + " is PANU drop the connection");
                    mPanDevices.remove(device);
                    mNativeInterface.disconnect(Utils.getByteAddress(device));
                    mNativeInterface.disconnect(
                            Flags.panUseIdentityAddress()
                                    ? Utils.getByteBrEdrAddress(device)
                                    : Utils.getByteAddress(device));
                    return;
                }
                Log.d(TAG, "handlePanDeviceStateChange LOCAL_NAP_ROLE:REMOTE_PANU_ROLE");