summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2011-02-10 22:38:52 -0300
committerGustavo F. Padovan <padovan@profusion.mobi>2011-02-16 16:33:10 -0300
commitb92a62238ff2d3fb88cf0f6de454f3d1b4ae5d52 (patch)
tree36364edd86fbb3650fe453929ffa6e9d449aedc2 /net/bluetooth/hci_conn.c
parent5589fa9c2d2b8c134f44db36892ccc500aac3147 (diff)
downloadop-kernel-dev-b92a62238ff2d3fb88cf0f6de454f3d1b4ae5d52.zip
op-kernel-dev-b92a62238ff2d3fb88cf0f6de454f3d1b4ae5d52.tar.gz
Bluetooth: Fix initiated LE connections
Fix LE connections not being marked as master. Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r--net/bluetooth/hci_conn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index aecd78e..efcd2b5 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -52,6 +52,7 @@ static void hci_le_connect(struct hci_conn *conn)
conn->state = BT_CONNECT;
conn->out = 1;
+ conn->link_mode |= HCI_LM_MASTER;
memset(&cp, 0, sizeof(cp));
cp.scan_interval = cpu_to_le16(0x0004);
OpenPOWER on IntegriCloud