Re: [PATCH 03/11] Bluetooth: Split HCI init sequence into three stages

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

 



Hi Johan,

On Mon, Mar 4, 2013 at 7:35 AM, Johan Hedberg <johan.hedberg@xxxxxxxxx> wrote:
>> > +       /* AMP controllers do not need stage 2/3 init */
>> > +       if (hdev->dev_type != HCI_BREDR)
>> > +               return 0;
>>
>> What about checking for "dev_type == HCI_AMP" instead? I had to check
>> net/bluetooth/hci.h because for a moment I thought Dual mode and
>> single mode LE devices were being left out as well. I then realized
>> you can only have BREDR vs. AMP controller types.
>
> This logic is a direct copy-paste from the beginning of the existing
> hci_setup() function in net/bluetooth/hci_event.c. I could change it to
> test specifically for AMP, but then what happens if we add more dev_type
> values that also shouldn't have more than the stage 1 init? In that case
> a stricter != HCI_BREDR test is safer than a looser == HCI_AMP test.

My concern is that the "HCI_BREDR" name is a bit misleading, specially
if it matches a single mode LE device (is that the case?)

If changing the macro name is not an option, can it be clarified on the comment?

Best Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
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