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

Commit 6d1dd39c authored by JohnLai's avatar JohnLai
Browse files

Floss: Add request_exec_write_cb in to server_context_map

Some requests don't include a handle as their parameter but
we still need to reply to them with send_response. Give them a
default handle 0 to align with send_response call.

Bug: 269079739
Test: Manually
Tag: #floss
Change-Id: Ibcf8598becc7c163acce56eecf06ad99a9762c37
parent 9c4974d1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3417,6 +3417,8 @@ impl BtifGattServerCallbacks for BluetoothGatt {
        addr: RawAddress,
        exec_write: i32,
    ) {
        self.server_context_map.add_request(trans_id, 0);

        if let Some(cbid) =
            self.server_context_map.get_by_conn_id(conn_id).map(|server| server.cbid)
        {