2015-06-17 13:16:21

by Chan-yeol Park

[permalink] [raw]
Subject: Query on how to use btmon/hcidump regarding FM packets on TI WiLink7 Driver

Hi

May I ask how to use btmon/hcidump when FM packet is over HCI uart in
Texas Instruments WiLink7 driver?

As far as I understand FM command and events are not captured in
btmon/hcidump.

I think RX is simple because FM packet could be copied to hci_core.c.
but I am not clear about TX.

Thanks in advance
Chanyeol


2015-06-19 00:56:02

by Marcel Holtmann

[permalink] [raw]
Subject: Re: Query on how to use btmon/hcidump regarding FM packets on TI WiLink7 Driver

Hi Chan-yeol,

> May I ask how to use btmon/hcidump when FM packet is over HCI uart in
> Texas Instruments WiLink7 driver?
>
> As far as I understand FM command and events are not captured in btmon/hcidump.
>
> I think RX is simple because FM packet could be copied to hci_core.c. but I am not clear about TX.

that is because of this crappy "shared transport" design. It is a design that should have never gotten upstream since it hacks things together. Instead of addressing the problem of FM over HCI, the guys from TI hacked around it.

Fundamentally they put a layer in between instead of making FM a slave platform device of the Bluetooth controller as it is suppose to be. Which means they require to stack line disciplines and implement another HCI processing engine for no apparent reasons.

Feel free to fix this for the WiLink7 driver. I am accepting patches for this since we will do exactly the same for the Intel chips as well. The FM side of things will be platform devices exposed by the Bluetooth driver.

Regards

Marcel