From ed56cc7b9f7d0f2803524d433f53e0d7906acf41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Ga=C5=82at?= Date: Thu, 14 Nov 2024 14:26:12 +0000 Subject: [PATCH] ble: Avoid using the same BLE name for SMP and app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit define new name for BLE ADV for Sidewalk services. Signed-off-by: Robert Gałat --- Kconfig.dependencies | 4 ++++ subsys/config/common/src/app_ble_config.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Kconfig.dependencies b/Kconfig.dependencies index 9e1c1f5a04..88c0462ef2 100644 --- a/Kconfig.dependencies +++ b/Kconfig.dependencies @@ -38,6 +38,10 @@ config SIDEWALK_BLE help Sidewalk Bluetooth Low Energy (BLE) module +config SIDEWALK_BLE_NAME + string "BLE name adverticed for Sidewalk" + default "SID_APP" + config BT_ID_MAX default 3 if SIDEWALK_DFU default 2 diff --git a/subsys/config/common/src/app_ble_config.c b/subsys/config/common/src/app_ble_config.c index 5eef7dbe42..6fc6087a97 100644 --- a/subsys/config/common/src/app_ble_config.c +++ b/subsys/config/common/src/app_ble_config.c @@ -105,7 +105,7 @@ static const sid_ble_cfg_gatt_profile_t ble_profile[] = { }; static const sid_ble_config_t ble_cfg = { - .name = CONFIG_BT_DEVICE_NAME, + .name = CONFIG_SIDEWALK_BLE_NAME, .mtu = CONFIG_BT_L2CAP_TX_MTU, .is_adv_available = true, .mac_addr_type = SID_BLE_CFG_MAC_ADDRESS_TYPE_STATIC_RANDOM,