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 <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
311b31d9f4
commit
c336539249
1 changed files with 0 additions and 6 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue