Bluetooth: Audio: Make codec_cap const

There is no reason why the capabilities
should be modified by the stack after registration,
nor any reason why a the unicast client application
needs to modify the reported remote capabilities, so
all have been marked as const.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2023-05-19 16:55:11 +02:00 committed by Fabio Baltieri
commit 53502cb417
15 changed files with 15 additions and 15 deletions

View file

@ -74,7 +74,7 @@ struct pac_records_build_data {
static bool build_pac_records(const struct bt_pacs_cap *cap, void *user_data)
{
struct pac_records_build_data *data = user_data;
struct bt_audio_codec_cap *codec_cap = cap->codec_cap;
const struct bt_audio_codec_cap *codec_cap = cap->codec_cap;
struct net_buf_simple *buf = data->buf;
struct net_buf_simple_state state;
struct bt_pac_codec *pac_codec;