kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/fix_ble_get_cur_pkt_num_crash_sometimes_when_bluetooth_is_disconnecting_v4.4' into 'release/v4.4'
Fixed calling esp_ble_get_cur_sendable_packets_num() sometimes crashes when bluetooth is disconnecting (backport v4.4) See merge request espressif/esp-idf!20042pull/9840/head
commit
224871784b
|
@ -1 +1 @@
|
||||||
Subproject commit c98341759b2c152c58878db6daf22d153a75fda4
|
Subproject commit d3a4f5bbc58a9bb9f2398862606153c13a3f4e54
|
|
@ -2342,7 +2342,15 @@ void l2ble_update_att_acl_pkt_num(UINT8 type, tl2c_buff_param_t *param)
|
||||||
xSemaphoreGive(buff_semaphore);
|
xSemaphoreGive(buff_semaphore);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
fixed_queue_t * queue = p_lcb->p_fixed_ccbs[L2CAP_ATT_CID - L2CAP_FIRST_FIXED_CHNL]->xmit_hold_q;
|
|
||||||
|
tL2C_CCB *p_ccb = p_lcb->p_fixed_ccbs[L2CAP_ATT_CID - L2CAP_FIRST_FIXED_CHNL];
|
||||||
|
if(p_ccb == NULL) {
|
||||||
|
L2CAP_TRACE_ERROR("%s not found p_ccb", __func__);
|
||||||
|
xSemaphoreGive(buff_semaphore);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
fixed_queue_t * queue = p_ccb->xmit_hold_q;
|
||||||
att_max_num = MIN(p_lcb->link_xmit_quota, L2CAP_CACHE_ATT_ACL_NUM);
|
att_max_num = MIN(p_lcb->link_xmit_quota, L2CAP_CACHE_ATT_ACL_NUM);
|
||||||
if (queue == NULL){
|
if (queue == NULL){
|
||||||
L2CAP_TRACE_ERROR("%s not found queue", __func__);
|
L2CAP_TRACE_ERROR("%s not found queue", __func__);
|
||||||
|
|
Ładowanie…
Reference in New Issue