]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/bluetooth/hci_conn.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth...
[linux.git] / net / bluetooth / hci_conn.c
index 59f0344406c81762cc27fdeadfb6d318b417f8bc..b9196a44f7598bf33b0c2bff6d0764eeeba8fc11 100644 (file)
@@ -29,6 +29,7 @@
 #include <net/bluetooth/bluetooth.h>
 #include <net/bluetooth/hci_core.h>
 #include <net/bluetooth/a2mp.h>
+#include <net/bluetooth/smp.h>
 
 static void hci_le_create_connection(struct hci_conn *conn)
 {
@@ -645,6 +646,9 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
 {
        BT_DBG("hcon %p", conn);
 
+       if (conn->type == LE_LINK)
+               return smp_conn_security(conn, sec_level);
+
        /* For sdp we don't need the link key. */
        if (sec_level == BT_SECURITY_SDP)
                return 1;