Bluetooth: Fix initiated LE connections
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Fri, 11 Feb 2011 01:38:52 +0000 (22:38 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 16 Feb 2011 19:33:10 +0000 (16:33 -0300)
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>
net/bluetooth/hci_conn.c

index aecd78e6cceb06ca163e7de53d660dec51eb2e0d..efcd2b508f5d996764b87e81cb7c133b1364171b 100644 (file)
@@ -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);