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

Commit 8ac785e3 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Automerger Merge Worker
Browse files

Merge "gattc: Fix uninitialized memory issue which could lead to crash" am:...

Merge "gattc: Fix uninitialized memory issue which could lead to crash" am: 57f4c54f am: 295dff33

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1556264

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4ff7a54836ab5589c7c3a75c6d816ab220be1be6
parents 599ff6a1 295dff33
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -203,16 +203,11 @@ void BTA_GATTC_Close(uint16_t conn_id) {
 * Returns          void
 *
 ******************************************************************************/
void BTA_GATTC_ConfigureMTU(uint16_t conn_id, uint16_t mtu) {
  tBTA_GATTC_API_CFG_MTU* p_buf =
      (tBTA_GATTC_API_CFG_MTU*)osi_malloc(sizeof(tBTA_GATTC_API_CFG_MTU));

  p_buf->hdr.event = BTA_GATTC_API_CFG_MTU_EVT;
  p_buf->hdr.layer_specific = conn_id;
  p_buf->mtu = mtu;

  bta_sys_sendmsg(p_buf);
void BTA_GATTC_ConfigureMTU(uint16_t conn_id, uint16_t mtu) {
  BTA_GATTC_ConfigureMTU(conn_id, mtu, NULL, NULL);
}

void BTA_GATTC_ConfigureMTU(uint16_t conn_id, uint16_t mtu,
                            GATT_CONFIGURE_MTU_OP_CB callback, void* cb_data) {
  tBTA_GATTC_API_CFG_MTU* p_buf =