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

Commit ae5fbb0b authored by Arek Lichwa's avatar Arek Lichwa Committed by christian bejram
Browse files

BT: Wrong publishing result of bonding error code.



During bonding bluez stack publish the error code over dbus.
JNI gets the error, in this ER case:
org.bluez.Error.AuthenticationFailed (Authentication Failed),
and then wrong call to overloaded setBondState() is made on
callstack using default result code parameter as 0 (BOND_SUCCESS).

Change-Id: I6f743cedc76e63d0c2a35e89d3aa48267b89c06e
Signed-off-by: default avatarChristian Bejram <christian.bejram@stericsson.com>
parent eb8171bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1351,7 +1351,7 @@ public class BluetoothService extends IBluetooth.Stub {
    }

    /*package*/ synchronized boolean setBondState(String address, int state, int reason) {
        mBondState.setBondState(address.toUpperCase(), state);
        mBondState.setBondState(address.toUpperCase(), state, reason);
        return true;
    }