From b66cd055bc29a86af3e2317132bfb77be87c8543 Mon Sep 17 00:00:00 2001 From: xiewenxiang Date: Fri, 3 Apr 2020 19:08:52 +0800 Subject: [PATCH] component/bt: fix don't dequeue the command queue after process the read_by_type_req(backport v3.1) --- .gitlab-ci.yml | 6 ++++++ components/bt/bluedroid/stack/gatt/gatt_sr.c | 1 + 2 files changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c3a92facd..64625d458 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1586,3 +1586,9 @@ IT_015_01: tags: - ESP32_IDF - SSC_T2_4 + +UT_001_41: + <<: *unit_test_template + tags: + - ESP32_IDF + - UT_T1_1 diff --git a/components/bt/bluedroid/stack/gatt/gatt_sr.c b/components/bt/bluedroid/stack/gatt/gatt_sr.c index 24df5a4eb..f70b515df 100644 --- a/components/bt/bluedroid/stack/gatt/gatt_sr.c +++ b/components/bt/bluedroid/stack/gatt/gatt_sr.c @@ -1088,6 +1088,7 @@ void gatts_process_read_by_type_req(tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, } } else { attp_send_sr_msg(p_tcb, p_msg); + gatt_dequeue_sr_cmd(p_tcb); } }