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

Commit 0b3c4f7a authored by Kihong Seong's avatar Kihong Seong
Browse files

Change GATT_ERROR to GATT_REQ_NOT_SUPPORTED

GATT_ERROR occurs in GATTC_ConfigureMTU when the link is not BLE, which
is covered by existing status code GATT_REQ_NOT_SUPPORTED. Thus changing
to correct status code.

Bug: 201571634
Test: m com.android.btservices
Flag: EXEMPT, no flow change
Change-Id: I141b826235c887b19334d7c389f533d7226a8d42
parent ed670559
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -706,7 +706,7 @@ tGATT_STATUS GATTC_ConfigureMTU(uint16_t conn_id, uint16_t mtu) {

  /* Validate that the link is BLE, not BR/EDR */
  if (p_tcb->transport != BT_TRANSPORT_LE) {
    return GATT_ERROR;
    return GATT_REQ_NOT_SUPPORTED;
  }

  tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id);