Re: [PATCH BlueZ] core/device: Make it more clear random addresses can only be used with LE

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

 



Hi,

On Tue, Sep 6, 2016 at 2:04 PM, Luiz Augusto von Dentz
<luiz.dentz@xxxxxxxxx> wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
>
> Any random address type can only be connected over LE as BR/EDR only
> support public addresses.
> ---
>  src/device.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/device.c b/src/device.c
> index b8556f1..9586022 100644
> --- a/src/device.c
> +++ b/src/device.c
> @@ -1748,8 +1748,8 @@ static uint8_t select_conn_bearer(struct btd_device *dev)
>         else if (!dev->bredr_state.bonded && dev->le_state.bonded)
>                 return dev->bdaddr_type;
>
> -       /* If the address is private it can only be connected over LE */
> -       if (device_address_is_private(dev))
> +       /* If the address is random it can only be connected over LE */
> +       if (dev->bdaddr_type == BDADDR_LE_RANDOM)
>                 return dev->bdaddr_type;
>
>         if (dev->bredr_seen) {
> --
> 2.7.4

Applied.


-- 
Luiz Augusto von Dentz
--
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