From: Vinicius Costa Gomes Date: Fri, 11 Feb 2011 01:38:52 +0000 (-0300) Subject: Bluetooth: Fix initiated LE connections X-Git-Tag: v3.0~349^2~16^2~578^2~196^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b92a62238ff2d3fb88cf0f6de454f3d1b4ae5d52;p=platform%2Fkernel%2Flinux-amlogic.git Bluetooth: Fix initiated LE connections Fix LE connections not being marked as master. Signed-off-by: Vinicius Costa Gomes Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- 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);