2010-02-08 09:26:00

by Liang Bao

[permalink] [raw]
Subject: Read default link policy from main.conf

Hi,

We noticed that currently BlueZ doesn't read link policy settings from
main.conf as it does for other things such as General.Name or
General.Class. It just enable everything in parse_config()
(src/main.c). Is this just due to lack of use case or BlueZ does this
intentionally for some reason? Thanks.


86 static void parse_config(GKeyFile *config)
87 {
.....
206 main_opts.link_policy = HCI_LP_RSWITCH | HCI_LP_SNIFF |
207 HCI_LP_HOLD | HCI_LP_PARK;
208 }


2010-02-10 02:17:07

by Liang Bao

[permalink] [raw]
Subject: Re: Read default link policy from main.conf

Anyone could advice? Thanks.

2010/2/8 Liang Bao <[email protected]>:
> Hi,
>
> We noticed that currently BlueZ doesn't read link policy settings from
> main.conf as it does for other things such as General.Name or
> General.Class. It just enable everything in parse_config()
> (src/main.c). Is this just due to lack of use case or BlueZ does this
> intentionally for some reason? Thanks.
>
>
> 86 static void parse_config(GKeyFile *config)
> 87 {
> .....
> 206 ? ? ? ? main_opts.link_policy = HCI_LP_RSWITCH | HCI_LP_SNIFF |
> 207 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? HCI_LP_HOLD | HCI_LP_PARK;
> 208 }
>