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