Skip to content

Commit

Permalink
applications: nrf5340_audio: Enable CONFIG_BT_AUDIO_USE_BROADCAST_NAM…
Browse files Browse the repository at this point in the history
…E_ALT

- Replace missing code for setting alternate name for broadcaster

Signed-off-by: Alexander Svensen <[email protected]>
  • Loading branch information
alexsven authored and nordicjm committed Jan 31, 2024
1 parent 8fa88b5 commit 168bdf8
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,15 @@ static int adv_create(void)
broadcast_id = CONFIG_BT_AUDIO_BROADCAST_ID_FIXED;
}

ext_ad[0] = (struct bt_data)BT_DATA(BT_DATA_BROADCAST_NAME, CONFIG_BT_AUDIO_BROADCAST_NAME,
sizeof(CONFIG_BT_AUDIO_BROADCAST_NAME) - 1);
if (IS_ENABLED(CONFIG_BT_AUDIO_USE_BROADCAST_NAME_ALT)) {
ext_ad[0] = (struct bt_data)BT_DATA(BT_DATA_BROADCAST_NAME,
CONFIG_BT_AUDIO_BROADCAST_NAME_ALT,
sizeof(CONFIG_BT_AUDIO_BROADCAST_NAME_ALT) - 1);
} else {
ext_ad[0] = (struct bt_data)BT_DATA(BT_DATA_BROADCAST_NAME,
CONFIG_BT_AUDIO_BROADCAST_NAME,
sizeof(CONFIG_BT_AUDIO_BROADCAST_NAME) - 1);
}

/* Setup extended advertising data */
net_buf_simple_add_le16(&brdcst_id_buf, BT_UUID_BROADCAST_AUDIO_VAL);
Expand Down

0 comments on commit 168bdf8

Please sign in to comment.