Re: [PATCH] Don't set LE flags in mgmt_start_discovery()

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

 



Hi Johan/Lizardo,

On Nov 24, 2011, at 3:29 PM, Anderson Lizardo wrote:

> Hi,
> 
> On Thu, Nov 24, 2011 at 2:22 PM, Johan Hedberg <johan.hedberg@xxxxxxxxx> wrote:
>>> Or do we expect it does a kind of "best effort" and runs the inquiry
>>> only?
>> 
>> Yes, I think that would make most sense from user-space perspective
>> "find all devices you can". As for BR/EDR specific discovery (with no LE
>> bits) or LE specific discovery (BR/EDR bit not set) if the hardware
>> doesn't support the request then in this case I think it would in fact
>> make sense to return an error.
> 
> So in summary, it should fail only if "requested_mask & supported_mask" is 0.

To keep things simpler, IMO we should have some sort of this:

DISCOV_AUTO:     The kernel choose the discovery procedure based on the
                 hardware capabilities.
DISCOV_BREDR:    The kernel runs the BR/EDR discovery procedure
DISCOV_LE:       The kernel runs the LE-Only discovery procedure

BR,

Andre--
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