From d39418e7917ef95c67569f5e4dbe43e3fc1c995d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 6 Feb 2009 19:45:36 +0100 Subject: [PATCH] --- yaml --- r: 134731 b: refs/heads/master c: 657e17b03c80bec817975984d221bef716f83558 h: refs/heads/master i: 134729: 1bf9ba249cce51c47fab3934585ca9a4cffdd81a 134727: 39b1a2426e2bf11e7b1082e82dc22411fa160f21 v: v3 --- [refs] | 2 +- trunk/net/bluetooth/hci_conn.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a8f4dfdffc8f..55089bf04377 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0684e5f9fb9e3f7e168ab831dfca693bcb44805b +refs/heads/master: 657e17b03c80bec817975984d221bef716f83558 diff --git a/trunk/net/bluetooth/hci_conn.c b/trunk/net/bluetooth/hci_conn.c index 7fc4c048b57b..dcdaa4be7847 100644 --- a/trunk/net/bluetooth/hci_conn.c +++ b/trunk/net/bluetooth/hci_conn.c @@ -416,6 +416,9 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type) { BT_DBG("conn %p", conn); + if (conn->auth_type == 0xff) + conn->auth_type = auth_type; + if (sec_level == BT_SECURITY_SDP) return 1;