mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/hfp_api_pkt_stat_nums_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix the judgment condition for packet transmission status statistics (backport v5.1) See merge request espressif/esp-idf!26169
This commit is contained in:
commit
f71eccb546
@ -379,7 +379,7 @@ static void btm_pkt_stat_send_nums_update(uint16_t sco_inx, uint8_t pkt_status)
|
|||||||
{
|
{
|
||||||
tSCO_CONN *p_ccb = &btm_cb.sco_cb.sco_db[sco_inx];
|
tSCO_CONN *p_ccb = &btm_cb.sco_cb.sco_db[sco_inx];
|
||||||
p_ccb->pkt_stat_nums.tx_total++;
|
p_ccb->pkt_stat_nums.tx_total++;
|
||||||
if (pkt_status != BTM_SUCCESS) {
|
if (pkt_status != BTM_SUCCESS && pkt_status != BTM_NO_RESOURCES && pkt_status != BTM_SCO_BAD_LENGTH) {
|
||||||
p_ccb->pkt_stat_nums.tx_discarded++;
|
p_ccb->pkt_stat_nums.tx_discarded++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -534,7 +534,7 @@ tBTM_STATUS BTM_WriteScoData (UINT16 sco_inx, BT_HDR *p_buf)
|
|||||||
status = BTM_UNKNOWN_ADDR;
|
status = BTM_UNKNOWN_ADDR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status != BTM_SUCCESS && status!= BTM_NO_RESOURCES) {
|
if (status != BTM_SUCCESS && status!= BTM_NO_RESOURCES && status != BTM_SCO_BAD_LENGTH) {
|
||||||
BTM_TRACE_WARNING ("stat %d", status);
|
BTM_TRACE_WARNING ("stat %d", status);
|
||||||
osi_free(p_buf);
|
osi_free(p_buf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user