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

Commit d2ef0653 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun Committed by Gerrit Code Review
Browse files

Merge "Use identity address in PanService" into main

parents fea93458 5d1604ce
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");