From ae6d5f8c297df61d38938f9312e547a9830a94d4 Mon Sep 17 00:00:00 2001 From: Zhang Hai Peng Date: Mon, 17 Feb 2025 11:14:37 +0800 Subject: [PATCH] fix(ble/bluedroid): Allow 0 length indications (cherry picked from commit 9b5a52e2f784a50c0e4c1a422a2b3d22ce5e9998) Co-authored-by: Nebojsa Cvetkovic --- components/bt/host/bluedroid/bta/gatt/bta_gatts_act.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/bt/host/bluedroid/bta/gatt/bta_gatts_act.c b/components/bt/host/bluedroid/bta/gatt/bta_gatts_act.c index 6795c00939..a5c2fc1f64 100644 --- a/components/bt/host/bluedroid/bta/gatt/bta_gatts_act.c +++ b/components/bt/host/bluedroid/bta/gatt/bta_gatts_act.c @@ -723,10 +723,6 @@ void bta_gatts_indicate_handle (tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg) } else { APPL_TRACE_ERROR("%s, malloc failed", __func__); } - } else { - if (p_msg->api_indicate.value) { - APPL_TRACE_ERROR("%s, incorrect length", __func__); - } } (*p_rcb->p_cback)(BTA_GATTS_CONF_EVT, &cb_data); if (cb_data.req_data.value != NULL) {