From 3a6eb5f502bf712ce0a29e1f02ea6c21812cca4f Mon Sep 17 00:00:00 2001 From: luoxu Date: Wed, 19 Mar 2025 14:11:43 +0800 Subject: [PATCH] fix(ble_mesh): fixed issue where private beacon used incorrect adv type --- components/bt/esp_ble_mesh/lib/ext.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/components/bt/esp_ble_mesh/lib/ext.c b/components/bt/esp_ble_mesh/lib/ext.c index 3b09c04406..b09e152c13 100644 --- a/components/bt/esp_ble_mesh/lib/ext.c +++ b/components/bt/esp_ble_mesh/lib/ext.c @@ -81,6 +81,22 @@ #define RPL(a) ((struct bt_mesh_rpl *)(a)) #define VOID(a) ((void *)(a)) +/* Declare Lib Variables */ +uint8_t __meshlib_var_BLE_MESH_ADV_PROV = BLE_MESH_ADV_PROV; +uint8_t __meshlib_var_BLE_MESH_ADV_DATA = BLE_MESH_ADV_DATA; +#if CONFIG_BLE_MESH_FRIEND +uint8_t __meshlib_var_BLE_MESH_ADV_FRIEND = BLE_MESH_ADV_FRIEND; +#endif +#if CONFIG_BLE_MESH_RELAY_ADV_BUF +uint8_t __meshlib_var_BLE_MESH_ADV_RELAY_DATA = BLE_MESH_ADV_RELAY_DATA; +#endif +uint8_t __meshlib_var_BLE_MESH_ADV_BEACON = BLE_MESH_ADV_BEACON; +uint8_t __meshlib_var_BLE_MESH_ADV_URI = BLE_MESH_ADV_URI; +#if CONFIG_BLE_MESH_SUPPORT_BLE_ADV +uint8_t __meshlib_var_BLE_MESH_ADV_BLE = BLE_MESH_ADV_BLE; +#endif +uint8_t __meshlib_var_BLE_MESH_ADV_TYPES_NUM = BLE_MESH_ADV_TYPES_NUM; + /* Sys utilities */ void bt_mesh_ext_put_be16(uint16_t val, uint8_t dst[2]) {