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

Commit 2128d27a authored by Stanley Tng's avatar Stanley Tng Committed by android-build-merger
Browse files

Merge "Fix PTS: TC_GATT_SR_UNS_BI_01_C sends unsupported opcode"

am: c513d653

Change-Id: I7e48817c7b29522b2912d48ef1282282e7e833a9
parents 15b54e85 c513d653
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -971,8 +971,11 @@ void gatt_data_process(tGATT_TCB& tcb, BT_HDR* p_buf) {
  pseudo_op_code = op_code & (~GATT_WRITE_CMD_MASK);

  if (pseudo_op_code >= GATT_OP_CODE_MAX) {
    LOG(ERROR) << "ATT - Rcvd L2CAP data, unknown cmd: 0x" << std::hex
               << op_code;
    /* Note: PTS: GATT/SR/UNS/BI-01-C mandates error on unsupported ATT request.
     */
    LOG(ERROR) << __func__
               << ": ATT - Rcvd L2CAP data, unknown cmd: " << loghex(op_code);
    gatt_send_error_rsp(tcb, GATT_REQ_NOT_SUPPORTED, op_code, 0, false);
    return;
  }