From 1b30b2d72bf7d270059e461c3d773dde0238f630 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Thu, 9 Jun 2011 18:50:50 -0300 Subject: [PATCH] --- yaml --- r: 255836 b: refs/heads/master c: 7b5c0d5242295a3b52e7161bf129e2f0e8c624cb h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/bluetooth/hci_conn.c | 1 + trunk/net/bluetooth/hci_event.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index cdced40b7bba..4247f1ad8efd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f1cb9af557dd8fb5d98fbcc4b5d3eb9d6d235af7 +refs/heads/master: 7b5c0d5242295a3b52e7161bf129e2f0e8c624cb diff --git a/trunk/net/bluetooth/hci_conn.c b/trunk/net/bluetooth/hci_conn.c index 18193831bbf1..2f5ae53057c7 100644 --- a/trunk/net/bluetooth/hci_conn.c +++ b/trunk/net/bluetooth/hci_conn.c @@ -53,6 +53,7 @@ static void hci_le_connect(struct hci_conn *conn) conn->state = BT_CONNECT; conn->out = 1; conn->link_mode |= HCI_LM_MASTER; + conn->sec_level = BT_SECURITY_LOW; memset(&cp, 0, sizeof(cp)); cp.scan_interval = cpu_to_le16(0x0004); diff --git a/trunk/net/bluetooth/hci_event.c b/trunk/net/bluetooth/hci_event.c index 166fa113721c..21d6055589ee 100644 --- a/trunk/net/bluetooth/hci_event.c +++ b/trunk/net/bluetooth/hci_event.c @@ -2753,6 +2753,7 @@ static inline void hci_le_conn_complete_evt(struct hci_dev *hdev, struct sk_buff mgmt_connected(hdev->id, &ev->bdaddr); + conn->sec_level = BT_SECURITY_LOW; conn->handle = __le16_to_cpu(ev->handle); conn->state = BT_CONNECTED;