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

Commit 3d0f66c7 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Jakub Pawłowski
Browse files

Fix bad flagging for le_ase_read_multiple_variable

When the flag is disabled, we would send separate reads, and should not
send the multi read after them.

Flag: le_ase_read_multiple_variable
Bug: 352085435
Bug: 296836982
Test: mma -j32
Test: bond with LE Audio capable device with flag disabled
Change-Id: Id96510eb885cccc90d7e1eb2b9124a8b6f4ed7ef
parent 1e01f541
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -386,7 +386,8 @@ public:
      multi_read.handles[i % GATT_MAX_READ_MULTI_HANDLES] = leAudioDevice->ases_[i].hdls.val_hdl;
    }

    if (ases_num % GATT_MAX_READ_MULTI_HANDLES != 0) {
    if (com::android::bluetooth::flags::le_ase_read_multiple_variable() &&
        (ases_num % GATT_MAX_READ_MULTI_HANDLES != 0)) {
      multi_read.num_attr = ases_num % GATT_MAX_READ_MULTI_HANDLES;
      BtaGattQueue::ReadMultiCharacteristic(leAudioDevice->conn_id_, multi_read,
                                            OnGattReadMultiRspStatic, notify_flag_ptr);