mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
Merge branch 'bugfix/btdm_update_pktLen_have_no_callback' into 'master'
component/bt: Fix bug:update pktlen have no callback See merge request idf/esp-idf!1913 (cherry picked from commit17e8d49f26
)acdad323
component/bt: Fix bug:update pktlen have no callback
This commit is contained in:
committed by
Bao Hong De
parent
0e640c61bd
commit
e4fb19000a
@@ -4918,6 +4918,7 @@ void bta_dm_ble_set_data_length(tBTA_DM_MSG *p_data)
|
|||||||
p_data->ble_set_data_length.tx_data_length);
|
p_data->ble_set_data_length.tx_data_length);
|
||||||
if (status != BTM_SUCCESS) {
|
if (status != BTM_SUCCESS) {
|
||||||
APPL_TRACE_ERROR("%s failed\n", __FUNCTION__);
|
APPL_TRACE_ERROR("%s failed\n", __FUNCTION__);
|
||||||
|
}
|
||||||
if (p_data->ble_set_data_length.p_set_pkt_data_cback) {
|
if (p_data->ble_set_data_length.p_set_pkt_data_cback) {
|
||||||
if (p_acl_cb->data_length_params.tx_len == 0){
|
if (p_acl_cb->data_length_params.tx_len == 0){
|
||||||
uint16_t length = controller_get_interface()->get_acl_data_size_ble();
|
uint16_t length = controller_get_interface()->get_acl_data_size_ble();
|
||||||
@@ -4926,7 +4927,7 @@ void bta_dm_ble_set_data_length(tBTA_DM_MSG *p_data)
|
|||||||
}
|
}
|
||||||
(*p_data->ble_set_data_length.p_set_pkt_data_cback)(status, &p_acl_cb->data_length_params);
|
(*p_data->ble_set_data_length.p_set_pkt_data_cback)(status, &p_acl_cb->data_length_params);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
Reference in New Issue
Block a user