diff options
-rw-r--r-- | net/bluetooth/hci_conn.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 7fc4c048b57b..dcdaa4be7847 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -416,6 +416,9 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type) | |||
416 | { | 416 | { |
417 | BT_DBG("conn %p", conn); | 417 | BT_DBG("conn %p", conn); |
418 | 418 | ||
419 | if (conn->auth_type == 0xff) | ||
420 | conn->auth_type = auth_type; | ||
421 | |||
419 | if (sec_level == BT_SECURITY_SDP) | 422 | if (sec_level == BT_SECURITY_SDP) |
420 | return 1; | 423 | return 1; |
421 | 424 | ||