From: Vinicius Costa Gomes Date: Fri, 11 Feb 2011 01:38:52 +0000 (-0300) Subject: Bluetooth: Fix initiated LE connections X-Git-Tag: firefly_0821_release~7613^2~967^2~16^2~578^2~196^2~17 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b92a62238ff2d3fb88cf0f6de454f3d1b4ae5d52;p=firefly-linux-kernel-4.4.55.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 aecd78e6cceb..efcd2b508f5d 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);