BUG when transmition big data from host to esp32 var L2CAP layer (IDFGH-12886) #13847
Closed
3 tasks done
Labels
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
esp32 v5.1.3
Espressif SoC revision.
ESP32-pico
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
CMD
Development Kit.
ESP32-pico-mini-02
Power Supply used.
USB
What is the expected behavior?
I found a bug when using l2cap to communication for big data transimit.
here is the diff result:
void btc_l2cap_cb_handler(btc_msg_t *msg)
{
esp_bt_l2cap_cb_param_t param;
@@ -922,6 +923,7 @@ void btc_l2cap_cb_handler(btc_msg_t *msg)
}
}
osi_mutex_unlock(&l2cap_local_param.l2cap_slot_mutex);
osi_mutex_lock(&l2cap_local_param.l2cap_slot_mutex, OSI_MUTEX_MAX_TIMEOUT);
@@ -957,7 +959,7 @@ void btc_l2cap_cb_handler(btc_msg_t *msg)
break; // to do disconnect
}
memset(p_data_buf, 0, count + sizeof(BT_HDR));
@@ -966,6 +968,7 @@ void btc_l2cap_cb_handler(btc_msg_t *msg)
}
}
osi_mutex_unlock(&l2cap_local_param.l2cap_slot_mutex);
osi_mutex_lock(&l2cap_local_param.l2cap_slot_mutex, OSI_MUTEX_MAX_TIMEOUT);
I think it should use p_data->l2c_read.handle instead of p_data->data_ind.handle for the BTA_JV_L2CAP_READ_EVT event
please confirm!!.
thanks
What is the actual behavior?
when transition big data from host to esp32. p_data_buf->len is negative number and data is wrong.
Steps to reproduce.
...
Debug Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: