From 4752dac18590b7349f88263d42bf509cc56a134f Mon Sep 17 00:00:00 2001 From: liqigan Date: Tue, 26 Sep 2023 16:03:28 +0800 Subject: [PATCH] fix(bt/bluedroid): Fix the issue for HID congestion checking --- components/bt/host/bluedroid/btc/profile/std/hid/hidh_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/host/bluedroid/btc/profile/std/hid/hidh_conn.c b/components/bt/host/bluedroid/btc/profile/std/hid/hidh_conn.c index 83a4c484af..49f3ab1996 100644 --- a/components/bt/host/bluedroid/btc/profile/std/hid/hidh_conn.c +++ b/components/bt/host/bluedroid/btc/profile/std/hid/hidh_conn.c @@ -920,7 +920,7 @@ tHID_STATUS hidh_conn_snd_data (UINT8 dhandle, UINT8 trans_type, UINT8 param, data_size -= bytes_copied; /* Send the buffer through L2CAP */ - if ((p_hcon->conn_flags & HID_CONN_FLAGS_CONGESTED) || (!L2CA_DataWrite (cid, p_buf))) { + if (L2CA_DataWrite(cid, p_buf) == L2CAP_DW_FAILED) { return (HID_ERR_CONGESTED); }