fix(ble/bluedroid): disable read_local_name

(cherry picked from commit 5f9680e3a016b65698eebf5a23e91ee55a036386)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
This commit is contained in:
Zhi Wei Jian
2026-01-07 17:24:19 +08:00
parent ed58eaeb20
commit a8d0be7f2a
5 changed files with 25 additions and 2 deletions
@@ -536,7 +536,9 @@ static void bta_dm_sys_hw_cback( tBTA_SYS_HW_EVT status )
But then we have a few HCI commands being invoked above which were still in progress
when the ENABLE_EVT was sent. So modified this to fetch the local name which forces
the DM_ENABLE_EVT to be sent only after all the init steps are complete */
#if (CLASSIC_BT_INCLUDED == TRUE)
BTM_ReadLocalDeviceNameFromController((tBTM_CMPL_CB *)bta_dm_local_name_cback);
#endif // (CLASSIC_BT_INCLUDED == TRUE)
bta_sys_rm_register((tBTA_SYS_CONN_CBACK *)bta_dm_rm_cback);
@@ -551,6 +553,12 @@ static void bta_dm_sys_hw_cback( tBTA_SYS_HW_EVT status )
bta_dm_gattc_register();
#endif
#if (CLASSIC_BT_INCLUDED == TRUE)
// do nothing
#else
bta_dm_local_name_cback(NULL);
#endif
} else {
APPL_TRACE_DEBUG(" --- ignored event");
}