diff options
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_conn.c | 1 | ||||
-rw-r--r-- | net/bluetooth/hci_event.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 18193831bbf1..2f5ae53057c7 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -53,6 +53,7 @@ static void hci_le_connect(struct hci_conn *conn) | |||
53 | conn->state = BT_CONNECT; | 53 | conn->state = BT_CONNECT; |
54 | conn->out = 1; | 54 | conn->out = 1; |
55 | conn->link_mode |= HCI_LM_MASTER; | 55 | conn->link_mode |= HCI_LM_MASTER; |
56 | conn->sec_level = BT_SECURITY_LOW; | ||
56 | 57 | ||
57 | memset(&cp, 0, sizeof(cp)); | 58 | memset(&cp, 0, sizeof(cp)); |
58 | cp.scan_interval = cpu_to_le16(0x0004); | 59 | cp.scan_interval = cpu_to_le16(0x0004); |
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 166fa113721c..21d6055589ee 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -2753,6 +2753,7 @@ static inline void hci_le_conn_complete_evt(struct hci_dev *hdev, struct sk_buff | |||
2753 | 2753 | ||
2754 | mgmt_connected(hdev->id, &ev->bdaddr); | 2754 | mgmt_connected(hdev->id, &ev->bdaddr); |
2755 | 2755 | ||
2756 | conn->sec_level = BT_SECURITY_LOW; | ||
2756 | conn->handle = __le16_to_cpu(ev->handle); | 2757 | conn->handle = __le16_to_cpu(ev->handle); |
2757 | conn->state = BT_CONNECTED; | 2758 | conn->state = BT_CONNECTED; |
2758 | 2759 | ||