From dd5316091c71c0cb3141a5f44580d973d3770eed Mon Sep 17 00:00:00 2001 From: Yang Li Date: Thu, 6 Feb 2025 10:56:47 +0800 Subject: [PATCH] gatt: expanded maximum GATT channels to 6 The maximum value of GATT channels should be 6, including ATT fixed channel(1) and EATT L2CAP CoC(2-6). Fixes: https://github.com/bluez/bluez/issues/1033 --- src/main.c | 2 +- src/main.conf | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index d13ada2af..50346abbb 100644 --- a/src/main.c +++ b/src/main.c @@ -1119,7 +1119,7 @@ static void parse_gatt(GKeyFile *config) parse_config_u16(config, "GATT", "ExchangeMTU", &btd_opts.gatt_mtu, BT_ATT_DEFAULT_LE_MTU, BT_ATT_MAX_LE_MTU); parse_config_u8(config, "GATT", "Channels", &btd_opts.gatt_channels, - 1, 5); + 1, 6); parse_config_bool(config, "GATT", "Client", &btd_opts.gatt_client); parse_gatt_export(config); } diff --git a/src/main.conf b/src/main.conf index 60ab60edc..e9c7552a2 100644 --- a/src/main.conf +++ b/src/main.conf @@ -263,8 +263,9 @@ # Defaults to 517 #ExchangeMTU = 517 -# Number of ATT channels -# Possible values: 1-5 (1 disables EATT) +# Number of ATT channels, 1 is mandatory since it is used for ATT fixed channel +# index 2-6 are used for EATT which is optional. +# Possible values: 1-6 (1 disables EATT) # Default to 1 #Channels = 1 -- 2.47.3