From 3ff3d8db2c22de04a0da07ab842a4db7ace2f45a Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Mon, 30 Jan 2023 16:49:57 +0100 Subject: [PATCH] Bluetooth: PACS: Set PACS read_buf size to BT_ATT_MAX_ATTRIBUTE_LEN The maximum size of the characteristic is BT_ATT_MAX_ATTRIBUTE_LEN. The previous size limited the size of the characteristic to the maximum possible MTU, thus not utlizing support for the Read Long procedure. Signed-off-by: Emil Gydesen --- subsys/bluetooth/audio/pacs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/audio/pacs.c b/subsys/bluetooth/audio/pacs.c index 982895be00b..ce8144d1b2f 100644 --- a/subsys/bluetooth/audio/pacs.c +++ b/subsys/bluetooth/audio/pacs.c @@ -73,7 +73,7 @@ static uint16_t src_supported_contexts = BT_AUDIO_CONTEXT_TYPE_PROHIBITED; #endif /* CONFIG_BT_PAC_SRC */ static K_SEM_DEFINE(read_buf_sem, 1, 1); -NET_BUF_SIMPLE_DEFINE_STATIC(read_buf, CONFIG_BT_L2CAP_TX_MTU); +NET_BUF_SIMPLE_DEFINE_STATIC(read_buf, BT_ATT_MAX_ATTRIBUTE_LEN); static ssize_t pac_data_add(struct net_buf_simple *buf, size_t count, struct bt_codec_data *data)