Re: Why is interleaved scan interleaved ? Can I fix that to do LE and classic at same time ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jakub,

> When I do interleaved scan on linux, it's doing LE first, for around
> 10 seconds, and then Classic scan for another few seconds on kernel
> level.
> 
> I was playing with Bluetooth on macbook, and noticed that they do both
> LE and Classic scan at once. So I tried modifying kernel, I triggered
> both LE and classic scan at once by queuing both
> HCI_OP_LE_SET_SCAN_ENABLE, and HCI_OP_INQUIRY and it just worked, both
> LE and Classic devices were reported.
> 
> I tested that with CSR, Broadcom and Atheros chips, and all behaved well.
> 
> Is there any reason why we do interleave instead of both scans at once ?

actually there are chips that do not support BR/EDR inquiry and LE scan at the same time. So for some chips we need this behavior. I think that all chips in platforms running Windows 8 will actually support simultaneous BR/EDR inquiry and LE scan since Microsoft mandated it. However in the embedded SoC world that might not be true actually.

And in the early days of LE, there was almost no chip that was able to handle BR/EDR inquiry and LE scan at the same time. That is why the interleaved behavior exists in the first place.

> I would be more than happy to modify 'interleaved' behaviour, to do
> both LE and classic scan at same time.

Introduce HCI_QUIRK_SIMULTAENOUS_DISCOVERY and allow for well know good behaving controller to set it. That way we can slowly move into that direction and keep interleaved behavior as a fallback.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux