From 1c792fe57dbcc981caced596549740576450f9f1 Mon Sep 17 00:00:00 2001 From: Yang Zhao Date: Thu, 11 Nov 2021 11:30:14 +0800 Subject: [PATCH 1/2] Fix the issue of device name len limited --- .../common/include/common/bluedroid_user_config.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/bt/host/bluedroid/common/include/common/bluedroid_user_config.h b/components/bt/host/bluedroid/common/include/common/bluedroid_user_config.h index 5e94a03403..3d7fdf0fb3 100644 --- a/components/bt/host/bluedroid/common/include/common/bluedroid_user_config.h +++ b/components/bt/host/bluedroid/common/include/common/bluedroid_user_config.h @@ -162,7 +162,15 @@ #define UC_BT_SMP_SLAVE_CON_PARAMS_UPD_ENABLE FALSE #endif +//Device Nane Maximum Length +#ifdef CONFIG_BT_MAX_DEVICE_NAME_LEN +#define UC_MAX_LOC_BD_NAME_LEN CONFIG_BT_MAX_DEVICE_NAME_LEN +#else +#define UC_MAX_LOC_BD_NAME_LEN 64 +#endif + #if CONFIG_IDF_TARGET_ESP32 + //BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP #ifdef CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP #define UC_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP From 9b450e19dae013095519e2df3aae6545d6867797 Mon Sep 17 00:00:00 2001 From: Yang Zhao Date: Fri, 19 Nov 2021 15:54:20 +0800 Subject: [PATCH 2/2] It is abnormal when getting the deep sleep state bit. So we need to check the state again and run the "ble_master_soft_rst()" if neesed. --- components/bt/controller/lib_esp32 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/controller/lib_esp32 b/components/bt/controller/lib_esp32 index 26c296e018..edbb3cb0c0 160000 --- a/components/bt/controller/lib_esp32 +++ b/components/bt/controller/lib_esp32 @@ -1 +1 @@ -Subproject commit 26c296e0185d1c9cdad0457ab59c59c13cc09fbb +Subproject commit edbb3cb0c000716fc8ff71a7a2e2d7e21b4fc881