From c3365392494a985468ae9dfbadca5f2e142bd232 Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Fri, 10 Jan 2020 14:45:32 +0100 Subject: [PATCH] Bluetooth: host: Remove toggling advertiser on advertise data update Remove toggling the advertise enable state when the advertiser name has been updated. Advertise and scan response data should be used by the controller on subsequent advertising events. Signed-off-by: Joakim Andersson --- subsys/bluetooth/host/hci_core.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index 385d825b35b..0ee4a367119 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -5266,12 +5266,6 @@ int bt_set_name(const char *name) struct bt_ad sd = { data, ARRAY_SIZE(data) }; set_ad(BT_HCI_OP_LE_SET_SCAN_RSP_DATA, &sd, 1); - - /* Make sure the new name is set */ - if (atomic_test_bit(bt_dev.flags, BT_DEV_ADVERTISING)) { - set_advertise_enable(false); - set_advertise_enable(true); - } } if (IS_ENABLED(CONFIG_BT_SETTINGS)) {