Hi, On Tue, Jan 21, 2025 at 5:05 AM Yang Li via B4 Relay <devnull+yang.li.amlogic.com@xxxxxxxxxx> wrote: > > From: Yang Li <yang.li@xxxxxxxxxxx> > > Fixed the problem that Xiaomi K70 mobile phone takes too long to > connect to CIS. > > L2CAP CB Connection (PSM=0x0027, MTU=517 bytes, MPS=251 bytes, > Credits=255, Src=0x0056 › All Connections Refused – > Insufficient Authorization) > > Ref https://github.com/bluez/bluez/issues/1033 > > Signed-off-by: Yang Li <yang.li@xxxxxxxxxxx> > --- > src/main.c | 2 +- > src/main.conf | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/main.c b/src/main.c > index d13ada2af..e2243c824 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, 10); Afaik if we set it to 5 because that is the maximum one could request: BLUETOOTH CORE SPECIFICATION Version 5.4 | Vol 3, Part A page 1067 Destination CID – (2 to 10 octets) The Destination CID is an array of up to 5 two-octet values and represents the channel endpoints on the device sending the L2CAP_CREDIT_BASED_CONNECTION_RSP packet. > 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..95de56003 100644 > --- a/src/main.conf > +++ b/src/main.conf > @@ -264,7 +264,7 @@ > #ExchangeMTU = 517 > > # Number of ATT channels > -# Possible values: 1-5 (1 disables EATT) > +# Possible values: 1-10 (1 disables EATT) > # Default to 1 > #Channels = 1 > > > --- > base-commit: 2ee08ffd4d469781dc627fa50b4a015d9ad68007 > change-id: 20250121-upstream-fab070351ad3 > > Best regards, > -- > Yang Li <yang.li@xxxxxxxxxxx> > > > -- Luiz Augusto von Dentz