All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] main.conf: use correct key for BREDR configuration
@ 2020-11-24 22:46 Ronan Pigott
  2020-11-24 23:28 ` [BlueZ] " bluez.test.bot
  0 siblings, 1 reply; 8+ messages in thread
From: Ronan Pigott @ 2020-11-24 22:46 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Ronan Pigott

From: Ronan Pigott <rpigott@berkeley.edu>

Signed-off-by: Ronan Pigott <rpigott@berkeley.edu>
---

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(-)

diff --git a/src/main.conf b/src/main.conf
index d3bc61441..ad36638b7 100644
--- a/src/main.conf
+++ b/src/main.conf
@@ -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
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* RE: [BlueZ] main.conf: use correct key for BREDR configuration
  2020-11-24 22:46 [PATCH BlueZ] main.conf: use correct key for BREDR configuration Ronan Pigott
@ 2020-11-24 23:28 ` bluez.test.bot
  2020-11-25  1:19   ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 8+ messages in thread
From: bluez.test.bot @ 2020-11-24 23:28 UTC (permalink / raw)
  To: linux-bluetooth, rpigott314

[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [BlueZ] main.conf: use correct key for BREDR configuration
  2020-11-24 23:28 ` [BlueZ] " bluez.test.bot
@ 2020-11-25  1:19   ` Luiz Augusto von Dentz
  2020-12-01 20:33     ` Alain Michaud
  0 siblings, 1 reply; 8+ messages in thread
From: Luiz Augusto von Dentz @ 2020-11-25  1:19 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Ronan Pigott

Hi Ronan,

On Tue, Nov 24, 2020 at 4:07 PM <bluez.test.bot@gmail.com> 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
>
> ##############################
> Test: MakeCheck - PASS
>
>
>
> ---
> Regards,
> Linux Bluetooth

Applied, thanks.


-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [BlueZ] main.conf: use correct key for BREDR configuration
  2020-11-25  1:19   ` Luiz Augusto von Dentz
@ 2020-12-01 20:33     ` Alain Michaud
  2020-12-01 22:51       ` Ronan Pigott
  0 siblings, 1 reply; 8+ messages in thread
From: Alain Michaud @ 2020-12-01 20:33 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth, Ronan Pigott

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


On Tue, Nov 24, 2020 at 8:21 PM Luiz Augusto von Dentz
<luiz.dentz@gmail.com> wrote:
>
> Hi Ronan,
>
> On Tue, Nov 24, 2020 at 4:07 PM <bluez.test.bot@gmail.com> 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
> >
> > ##############################
> > Test: MakeCheck - PASS
> >
> >
> >
> > ---
> > Regards,
> > Linux Bluetooth
>
> Applied, thanks.
>
>
> --
> Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [BlueZ] main.conf: use correct key for BREDR configuration
  2020-12-01 20:33     ` Alain Michaud
@ 2020-12-01 22:51       ` Ronan Pigott
  2020-12-01 23:03         ` Alain Michaud
  0 siblings, 1 reply; 8+ messages in thread
From: Ronan Pigott @ 2020-12-01 22:51 UTC (permalink / raw)
  To: Alain Michaud, Luiz Augusto von Dentz; +Cc: linux-bluetooth, Ronan Pigott

On Tue Dec 1, 2020 at 8:33 AM MST, Alain Michaud wrote:
> 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [BlueZ] main.conf: use correct key for BREDR configuration
  2020-12-01 22:51       ` Ronan Pigott
@ 2020-12-01 23:03         ` Alain Michaud
  2020-12-01 23:13           ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 8+ messages in thread
From: Alain Michaud @ 2020-12-01 23:03 UTC (permalink / raw)
  To: Ronan Pigott; +Cc: Luiz Augusto von Dentz, linux-bluetooth

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_win
0x0001,
0xFFFF},

Thanks!
Alain

On Tue, Dec 1, 2020 at 5:53 PM Ronan Pigott <rpigott314@gmail.com> wrote:
>
> On Tue Dec 1, 2020 at 8:33 AM MST, Alain Michaud wrote:
> > 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [BlueZ] main.conf: use correct key for BREDR configuration
  2020-12-01 23:03         ` Alain Michaud
@ 2020-12-01 23:13           ` Luiz Augusto von Dentz
  2020-12-01 23:16             ` Alain Michaud
  0 siblings, 1 reply; 8+ messages in thread
From: Luiz Augusto von Dentz @ 2020-12-01 23:13 UTC (permalink / raw)
  To: Alain Michaud; +Cc: Ronan Pigott, linux-bluetooth

Hi Alain,

On Tue, Dec 1, 2020 at 3:03 PM Alain Michaud <alainmichaud@google.com> wrote:
>
> 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_win
> 0x0001,
> 0xFFFF},

Nice catch:

https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=a37d53db9ae7d21a8f812925303d767d3f03e597

> Thanks!
> Alain
>
> On Tue, Dec 1, 2020 at 5:53 PM Ronan Pigott <rpigott314@gmail.com> wrote:
> >
> > On Tue Dec 1, 2020 at 8:33 AM MST, Alain Michaud wrote:
> > > 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.

https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=e2863c003c8e65b386a981ef6037518beb605795

So now everything should be using BR as group name.


-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [BlueZ] main.conf: use correct key for BREDR configuration
  2020-12-01 23:13           ` Luiz Augusto von Dentz
@ 2020-12-01 23:16             ` Alain Michaud
  0 siblings, 0 replies; 8+ messages in thread
From: Alain Michaud @ 2020-12-01 23:16 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: Ronan Pigott, linux-bluetooth

Thanks for the quick turnaround Luiz.  Converging onto BR instead of
BREDR also works.

On Tue, Dec 1, 2020 at 6:13 PM Luiz Augusto von Dentz
<luiz.dentz@gmail.com> wrote:
>
> Hi Alain,
>
> On Tue, Dec 1, 2020 at 3:03 PM Alain Michaud <alainmichaud@google.com> wrote:
> >
> > 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_win
> > 0x0001,
> > 0xFFFF},
>
> Nice catch:
>
> https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=a37d53db9ae7d21a8f812925303d767d3f03e597
>
> > Thanks!
> > Alain
> >
> > On Tue, Dec 1, 2020 at 5:53 PM Ronan Pigott <rpigott314@gmail.com> wrote:
> > >
> > > On Tue Dec 1, 2020 at 8:33 AM MST, Alain Michaud wrote:
> > > > 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.
>
> https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=e2863c003c8e65b386a981ef6037518beb605795
>
> So now everything should be using BR as group name.
>
>
> --
> Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-12-01 23:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 22:46 [PATCH BlueZ] main.conf: use correct key for BREDR configuration Ronan Pigott
2020-11-24 23:28 ` [BlueZ] " bluez.test.bot
2020-11-25  1:19   ` Luiz Augusto von Dentz
2020-12-01 20:33     ` Alain Michaud
2020-12-01 22:51       ` Ronan Pigott
2020-12-01 23:03         ` Alain Michaud
2020-12-01 23:13           ` Luiz Augusto von Dentz
2020-12-01 23:16             ` Alain Michaud

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.