new file mode 100644
@@ -0,0 +1,36 @@
+/* SPDX-License-Identifier: MIT */
+/* Copyright(c) 2019-2021, Celeno Communications Ltd. */
+
+#ifndef CL_ENV_DET_H
+#define CL_ENV_DET_H
+
+#include "vendor_cmd.h"
+
+#define MAX_CCA_CLEAN_DEF 20000
+#define MAX_CCA_AVERAGE_DEF 300000
+#define MAX_CCA_NOISY_DEF 850000
+#define MIN_CCA_CLEAN_DEF 20000
+#define MIN_CCA_AVERAGE_DEF 100000
+#define MIN_CCA_NOISY_DEF 400000
+
+enum cl_env_type {
+ CL_ENV_TYPE_CLEAN,
+ CL_ENV_TYPE_AVERAGE,
+ CL_ENV_TYPE_NOISY,
+ CL_ENV_TYPE_VERY_NOISY,
+
+ CL_ENV_TYPE_MAX
+};
+
+struct cl_env_db {
+ enum cl_env_type type;
+};
+
+void cl_env_det_set_type(struct cl_hw *cl_hw, enum cl_env_type type);
+
+bool cl_env_det_is_clean(struct cl_hw *cl_hw);
+bool cl_env_det_is_average(struct cl_hw *cl_hw);
+bool cl_env_det_is_noisy(struct cl_hw *cl_hw);
+bool cl_env_det_is_very_noisy(struct cl_hw *cl_hw);
+
+#endif /* CL_ENV_DET_H */