Merge branch 'bugfix/fix_hid_congestion_v4.3' into 'release/v4.3'

Fix(bt/bluedroid): Fix the issue for HID congestion checking[backport 4.3]

See merge request espressif/esp-idf!26234
This commit is contained in:
Jiang Jiang Jian
2023-10-07 14:01:11 +08:00

View File

@ -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);
}