mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
Merge branch 'bugfix/fix_ble_adv_start_fail' into 'master'
fix(ble/bluedroid): Fixed BLE adv start fail Closes BLERP-1152, BLERP-1153, BLERP-1156, and BLERP-1157 See merge request espressif/esp-idf!34258
This commit is contained in:
@@ -4617,6 +4617,12 @@ void btm_ble_free (void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool enable_topology_check_flag = true;
|
||||||
|
void esp_qa_enable_topology_check(bool enable)
|
||||||
|
{
|
||||||
|
// This is a workaround: If the topology check is disabled, the 'Supported States' will not be checked.
|
||||||
|
enable_topology_check_flag = enable;
|
||||||
|
}
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
**
|
**
|
||||||
** Function btm_ble_topology_check
|
** Function btm_ble_topology_check
|
||||||
@@ -4629,6 +4635,7 @@ void btm_ble_free (void)
|
|||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
BOOLEAN btm_ble_topology_check(tBTM_BLE_STATE_MASK request_state_mask)
|
BOOLEAN btm_ble_topology_check(tBTM_BLE_STATE_MASK request_state_mask)
|
||||||
{
|
{
|
||||||
|
if(!enable_topology_check_flag) return TRUE;
|
||||||
BOOLEAN rt = FALSE;
|
BOOLEAN rt = FALSE;
|
||||||
|
|
||||||
UINT8 state_offset = 0;
|
UINT8 state_offset = 0;
|
||||||
|
Reference in New Issue
Block a user