* Compatible Kernels of a certain BlueZ version
@ 2013-08-31 9:53 wei junping
2013-09-01 15:01 ` Gustavo Padovan
0 siblings, 1 reply; 7+ messages in thread
From: wei junping @ 2013-08-31 9:53 UTC (permalink / raw)
To: linux-bluetooth
Who can tell me how I know which kernel is compatible with which BlueZ
version, for example, BlueZ 5.7? I didn't find any info in the doc
folder of the package.
Thank you and Best Regards,
Tim Wei
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Compatible Kernels of a certain BlueZ version
2013-08-31 9:53 Compatible Kernels of a certain BlueZ version wei junping
@ 2013-09-01 15:01 ` Gustavo Padovan
2013-09-02 3:11 ` wei junping
0 siblings, 1 reply; 7+ messages in thread
From: Gustavo Padovan @ 2013-09-01 15:01 UTC (permalink / raw)
To: wei junping; +Cc: linux-bluetooth
Hi Tim,
2013-08-31 wei junping <junping.wei@gmail.com>:
> Who can tell me how I know which kernel is compatible with which BlueZ
> version, for example, BlueZ 5.7? I didn't find any info in the doc
> folder of the package.
Any BlueZ 5 version works with an 3.4 kernel or newer. The old BlueZ 4 works
with any kernel out there.
Gustavo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Compatible Kernels of a certain BlueZ version
2013-09-01 15:01 ` Gustavo Padovan
@ 2013-09-02 3:11 ` wei junping
2013-09-02 6:06 ` Marcel Holtmann
0 siblings, 1 reply; 7+ messages in thread
From: wei junping @ 2013-09-02 3:11 UTC (permalink / raw)
To: Gustavo Padovan, wei junping, linux-bluetooth
Hi Gustavo,
Thank you for your reply.
I am trying to make 4.93 come with Android 3.0.8 work with Kernel
3.9.6, and I found that values of some mgmt macros in user mode are
different from those in kernel.
For example:
In user mode mgmt.h
#define MGMT_OP_READ_FEATURES 0x0002
struct mgmt_rp_read_features {
uint8_t features[8];
} __packed;
but in kernel mode mgmt.h
#define MGMT_OP_READ_COMMANDS 0x0002
#define MGMT_READ_COMMANDS_SIZE 0
struct mgmt_rp_read_commands {
__le16 num_commands;
__le16 num_events;
__le16 opcodes[0];
} __packed;
I haven't tried it, but I would think the meaning of the same value in
user and kernel should be the same. Is it?
Best Regards,
Tim Wei
2013/9/1 Gustavo Padovan <gustavo@padovan.org>:
> Hi Tim,
>
> 2013-08-31 wei junping <junping.wei@gmail.com>:
>
>> Who can tell me how I know which kernel is compatible with which BlueZ
>> version, for example, BlueZ 5.7? I didn't find any info in the doc
>> folder of the package.
>
> Any BlueZ 5 version works with an 3.4 kernel or newer. The old BlueZ 4 works
> with any kernel out there.
>
> Gustavo
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Compatible Kernels of a certain BlueZ version
2013-09-02 3:11 ` wei junping
@ 2013-09-02 6:06 ` Marcel Holtmann
2013-09-02 7:59 ` wei junping
0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2013-09-02 6:06 UTC (permalink / raw)
To: wei junping; +Cc: Gustavo Padovan, linux-bluetooth
Hi Wei,
please refrain from top posting on this mailing list.
> Thank you for your reply.
> I am trying to make 4.93 come with Android 3.0.8 work with Kernel
> 3.9.6, and I found that values of some mgmt macros in user mode are
> different from those in kernel.
> For example:
> In user mode mgmt.h
> #define MGMT_OP_READ_FEATURES 0x0002
> struct mgmt_rp_read_features {
> uint8_t features[8];
> } __packed;
>
> but in kernel mode mgmt.h
> #define MGMT_OP_READ_COMMANDS 0x0002
> #define MGMT_READ_COMMANDS_SIZE 0
> struct mgmt_rp_read_commands {
> __le16 num_commands;
> __le16 num_events;
> __le16 opcodes[0];
> } __packed;
>
> I haven't tried it, but I would think the meaning of the same value in
> user and kernel should be the same. Is it?
Before Linux 3.4, the mgmt interface was not official and disabled by default. So values and structs changed. Only with Linux 3.4 they became official. And BlueZ 5.x contains the official values as well.
And version before BlueZ 5.0 will use the raw HCI interface and duplicate all the handling in user space.
Regards
Marcel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Compatible Kernels of a certain BlueZ version
2013-09-02 6:06 ` Marcel Holtmann
@ 2013-09-02 7:59 ` wei junping
2013-09-02 20:27 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 7+ messages in thread
From: wei junping @ 2013-09-02 7:59 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: Gustavo Padovan, linux-bluetooth
Hi Marcel,
Thank you for your reply.
But what do you mean by "refrain from top posting on this mailing
list"? Do you mean I should not have posted this question here? If so,
where should new comers of BlueZ ask for help?
Best Regards,
Tim Wei
2013/9/2 Marcel Holtmann <marcel@holtmann.org>:
> Hi Wei,
>
> please refrain from top posting on this mailing list.
>
>> Thank you for your reply.
>> I am trying to make 4.93 come with Android 3.0.8 work with Kernel
>> 3.9.6, and I found that values of some mgmt macros in user mode are
>> different from those in kernel.
>> For example:
>> In user mode mgmt.h
>> #define MGMT_OP_READ_FEATURES 0x0002
>> struct mgmt_rp_read_features {
>> uint8_t features[8];
>> } __packed;
>>
>> but in kernel mode mgmt.h
>> #define MGMT_OP_READ_COMMANDS 0x0002
>> #define MGMT_READ_COMMANDS_SIZE 0
>> struct mgmt_rp_read_commands {
>> __le16 num_commands;
>> __le16 num_events;
>> __le16 opcodes[0];
>> } __packed;
>>
>> I haven't tried it, but I would think the meaning of the same value in
>> user and kernel should be the same. Is it?
>
> Before Linux 3.4, the mgmt interface was not official and disabled by default. So values and structs changed. Only with Linux 3.4 they became official. And BlueZ 5.x contains the official values as well.
>
> And version before BlueZ 5.0 will use the raw HCI interface and duplicate all the handling in user space.
>
> Regards
>
> Marcel
>
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Compatible Kernels of a certain BlueZ version
2013-09-02 7:59 ` wei junping
@ 2013-09-02 20:27 ` Luiz Augusto von Dentz
2013-09-03 3:14 ` wei junping
0 siblings, 1 reply; 7+ messages in thread
From: Luiz Augusto von Dentz @ 2013-09-02 20:27 UTC (permalink / raw)
To: wei junping
Cc: Marcel Holtmann, Gustavo Padovan, linux-bluetooth@vger.kernel.org
Hi wei,
On Mon, Sep 2, 2013 at 10:59 AM, wei junping <junping.wei@gmail.com> wrote:
> Hi Marcel,
>
> Thank you for your reply.
>
> But what do you mean by "refrain from top posting on this mailing
> list"? Do you mean I should not have posted this question here? If so,
> where should new comers of BlueZ ask for help?
He was referring to post style: http://en.wikipedia.org/wiki/Posting_style
Please use inline/interleaved like Im doing right now.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Compatible Kernels of a certain BlueZ version
2013-09-02 20:27 ` Luiz Augusto von Dentz
@ 2013-09-03 3:14 ` wei junping
0 siblings, 0 replies; 7+ messages in thread
From: wei junping @ 2013-09-03 3:14 UTC (permalink / raw)
To: Luiz Augusto von Dentz
Cc: Marcel Holtmann, Gustavo Padovan, linux-bluetooth@vger.kernel.org
Hi Luiz,
2013/9/3 Luiz Augusto von Dentz <luiz.dentz@gmail.com>:
> Hi wei,
>
> On Mon, Sep 2, 2013 at 10:59 AM, wei junping <junping.wei@gmail.com> wrote:
>> Hi Marcel,
>>
>> Thank you for your reply.
>>
>> But what do you mean by "refrain from top posting on this mailing
>> list"? Do you mean I should not have posted this question here? If so,
>> where should new comers of BlueZ ask for help?
>
> He was referring to post style: http://en.wikipedia.org/wiki/Posting_style
>
> Please use inline/interleaved like Im doing right now.
Thank you for your reply. So it should be like this?
Best Regards,
Tim Wei
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-09-03 3:14 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-31 9:53 Compatible Kernels of a certain BlueZ version wei junping
2013-09-01 15:01 ` Gustavo Padovan
2013-09-02 3:11 ` wei junping
2013-09-02 6:06 ` Marcel Holtmann
2013-09-02 7:59 ` wei junping
2013-09-02 20:27 ` Luiz Augusto von Dentz
2013-09-03 3:14 ` wei junping
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox