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

Commit eb05843f authored by Kihong Seong's avatar Kihong Seong
Browse files

Change GATT_ERROR to GATT_INVALID_PDU

GATT_ERROR occurs in bta_gattc_read_ext_prop_desc_cmpl when read
response is not 2 bytes. Thus changing to the correct status code
GATT_INVALID_PDU which describes this scenario.

Bug: 323309342
Test: m com.android.btservices
Flag: EXEMPT, no flow change
Change-Id: I623b2473ce841d2e289965f95b9c5ca8d29dd58a
parent 3a8de3f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -867,7 +867,7 @@ static void bta_gattc_read_ext_prop_desc_cmpl(
    // Just one Characteristic Extended Properties value at a time in Read
    // Response
    LOG(WARNING) << __func__ << " Read Response should be just 2 bytes!";
    bta_gattc_reset_discover_st(p_clcb->p_srcb, GATT_ERROR);
    bta_gattc_reset_discover_st(p_clcb->p_srcb, GATT_INVALID_PDU);
    return;
  }