Bluetooth: Avoid calling undefined smp_conn_security()
[pandora-kernel.git] / net / bluetooth / hci_conn.c
index 1fb1aec..aa12649 100644 (file)
@@ -642,8 +642,10 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
 {
        BT_DBG("conn %p", conn);
 
+#ifdef CONFIG_BT_L2CAP
        if (conn->type == LE_LINK)
                return smp_conn_security(conn, sec_level);
+#endif
 
        /* For sdp we don't need the link key. */
        if (sec_level == BT_SECURITY_SDP)