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

Commit c3ef6aa8 authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

Bass: Fix reversed broadcast code

Reversing the brodcast code is redundant.

Bug: 240927590
Fixes: 240927590
Tag: #feature
Test: atest BluetoothInstrumentationTests
Change-Id: I8afaaf1c884879e11fb38fa735ec4b59d2362576
Merged-In: I8afaaf1c884879e11fb38fa735ec4b59d2362576
(cherry picked from commit 8e2502ab)
parent f4c788c0
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -1402,10 +1402,8 @@ public class BassClientStateMachine extends StateMachine {
                    + recvState.getSourceId());
                    + recvState.getSourceId());
            return null;
            return null;
        }
        }
        // Can Keep as ASCII as is
        // Broadcast Code
        String reversePIN = new StringBuffer(new String(metaData.getBroadcastCode()))
        byte[] actualPIN = metaData.getBroadcastCode();
                .reverse().toString();
        byte[] actualPIN = reversePIN.getBytes();
        if (actualPIN == null) {
        if (actualPIN == null) {
            Log.e(TAG, "actual PIN is null");
            Log.e(TAG, "actual PIN is null");
            return null;
            return null;