main.conf: use correct key for BREDR configuration
PATCH 1/1 main.conf: use correct key for BREDR configuration
From: Ronan Pigott <[email protected]>
---
There is a mismtach between the "BREDR" group name in the config and the valid group name "BR" accepted in main.c. This changes main.conf, but I'm not certain if it's main.c that should be changed instead.
src/main.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/main.conf +1 -1
@@ -86,7 +86,7 @@ # profile is connected. Defaults to true. #RefreshDiscovery = true -[BREDR] +[BR] # The following values are used to load default adapter parameters for BR/EDR. # BlueZ loads the values into the kernel before the adapter is powered if the # kernel supports the MGMT_LOAD_DEFAULT_PARAMETERS command. If a value isn't
Signature · 1 line
2.29.2
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=390539
---Test result---
##############################
Test: CheckPatch - PASS
##############################
Test: CheckGitLint - PASS
##############################
Test: CheckBuild - PASS
##############################
Test: MakeCheck - PASS
---
Regards,
Linux Bluetooth
Hi Ronan,
Quoted 20 lines · On Tue, Nov 24, 2020 at 4:07 PM <[email protected]> wrote:
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=390539---Test result---
##############################
Test: CheckPatch - PASS##############################
Test: CheckGitLint - PASS##############################
Test: CheckBuild - PASS
Quoted 8 lines
##############################
Test: MakeCheck - PASS---
Regards,
Linux Bluetooth
Applied, thanks.
Signature · 1 line
Luiz Augusto von Dentz
Hi Luiz/Ronan,
This appears to have been an incorrect fix since parse_mode_config(config, "BREDR", params, ARRAY_SIZE(params)); will attempt to read from the BREDR section. My suggestion would be to update the group table entry instead:
static const struct group_table {
const char *name;
const char **options;
} valid_groups[] = {
{ "General", supported_options },
{ "BREDR", br_options }, //<------
{ "LE", le_options },
{ "Policy", policy_options },
{ "GATT", gatt_options },
{ "AVDTP", avdtp_options },
{ }
};
Thanks,
Alain
Quoted 38 lines · Luiz Augusto von Dentz
Hi Ronan,
Quoted 20 lines · On Tue, Nov 24, 2020 at 4:07 PM <[email protected]> wrote:
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=390539---Test result---
##############################
Test: CheckPatch - PASS##############################
Test: CheckGitLint - PASS##############################
Test: CheckBuild - PASSQuoted 8 lines
##############################
Test: MakeCheck - PASS---
Regards,
Linux BluetoothApplied, thanks.
--
Luiz Augusto von Dentz
Quoted 6 lines · Alain Michaud
Hi Luiz/Ronan,
This appears to have been an incorrect fix since
parse_mode_config(config, "BREDR", params, ARRAY_SIZE(params)); will attempt to read from the BREDR section. My suggestion would be to update the group table entry instead:
Oh, that's right. Whoops.
Updating the group table sounds good to me.
I likely won't get to it for a little while, but if someone will be fixing this, we also noticed this issue while reviewing the related patch:
{ "PageTimeout",
&btd_opts.defaults.br.page_timeout, sizeof(btd_opts.defaults.br.page_scan_win), //<-- this should also be page_timeout rather than page_scan_win0x0001,0xFFFF},
Thanks!
Alain
Quoted 12 lines · Ronan Pigott
Quoted 6 lines · Alain Michaud
Hi Luiz/Ronan,
This appears to have been an incorrect fix since
parse_mode_config(config, "BREDR", params, ARRAY_SIZE(params)); will attempt to read from the BREDR section. My suggestion would be to update the group table entry instead:Oh, that's right. Whoops.
Updating the group table sounds good to me.
Luiz Augusto von Dentz
maintainerHi Alain,
Quoted 11 lines · Alain Michaud
I likely won't get to it for a little while, but if someone will be fixing this, we also noticed this issue while reviewing the related patch:
{ "PageTimeout",
&btd_opts.defaults.br.page_timeout,sizeof(btd_opts.defaults.br.page_scan_win), //<-- this should also bepage_timeoutrather thanpage_scan_win0x0001,0xFFFF},
Nice catch:
Quoted 16 lines
Thanks!
AlainQuoted 12 lines · Ronan Pigott
Quoted 6 lines · Alain Michaud
Hi Luiz/Ronan,
This appears to have been an incorrect fix since
parse_mode_config(config, "BREDR", params, ARRAY_SIZE(params)); will attempt to read from the BREDR section. My suggestion would be to update the group table entry instead:Oh, that's right. Whoops.
Updating the group table sounds good to me.
So now everything should be using BR as group name.
Signature · 1 line
Luiz Augusto von Dentz
Thanks for the quick turnaround Luiz. Converging onto BR instead of BREDR also works.
Quoted 44 lines · Luiz Augusto von Dentz
Hi Alain,
Quoted 11 lines · Alain Michaud
I likely won't get to it for a little while, but if someone will be fixing this, we also noticed this issue while reviewing the related patch:
{ "PageTimeout",
&btd_opts.defaults.br.page_timeout,sizeof(btd_opts.defaults.br.page_scan_win), //<-- this should also bepage_timeoutrather thanpage_scan_win0x0001,0xFFFF},Nice catch:
Quoted 16 lines
Thanks!
AlainQuoted 12 lines · Ronan Pigott
Quoted 6 lines · Alain Michaud
Hi Luiz/Ronan,
This appears to have been an incorrect fix since
parse_mode_config(config, "BREDR", params, ARRAY_SIZE(params)); will attempt to read from the BREDR section. My suggestion would be to update the group table entry instead:Oh, that's right. Whoops.
Updating the group table sounds good to me.
So now everything should be using BR as group name.
--
Luiz Augusto von Dentz