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 <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
3d4622b4d4
commit
3ff3d8db2c
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ static uint16_t src_supported_contexts = BT_AUDIO_CONTEXT_TYPE_PROHIBITED;
|
||||||
#endif /* CONFIG_BT_PAC_SRC */
|
#endif /* CONFIG_BT_PAC_SRC */
|
||||||
|
|
||||||
static K_SEM_DEFINE(read_buf_sem, 1, 1);
|
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,
|
static ssize_t pac_data_add(struct net_buf_simple *buf, size_t count,
|
||||||
struct bt_codec_data *data)
|
struct bt_codec_data *data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue