Re: [PATCH 2/2] Bluetooth: Pass desired connection role to hci_connect_le()

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

 



Hi Johan,

> If we have both LE scanning and advertising simultaneously enabled we
> need a way to tell hci_connect_le() in which role to initiate a
> connection. This patch adds a new parameter to the function to give it
> the necessary information. For auto-connect and mgmt_pair_device we
> always use master role, whereas for L2CAP users (in practice sockets) we
> use slave role whenever HCI_ADVERTISING is set and master role
> otherwise.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> include/net/bluetooth/hci_core.h | 3 ++-
> net/bluetooth/hci_conn.c         | 6 ++++--
> net/bluetooth/hci_event.c        | 3 ++-
> net/bluetooth/l2cap_core.c       | 6 +++++-
> net/bluetooth/mgmt.c             | 3 ++-
> 5 files changed, 15 insertions(+), 6 deletions(-)

patch has been applied to bluetooth-next tree.

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