Quellcode durchsuchen

qcacld-3.0: Enable qdf_periodic_work

Enable the qdf_periodic_work type, recently added in
Iedf5486474fccadb35e146e6d289c27a7c1002d3.

Change-Id: I030db4e25684e4aad7b17fb7d6e41849c05d3857
CRs-Fixed: 2410006
Dustin Brown vor 6 Jahren
Ursprung
Commit
9c49a33a7b
2 geänderte Dateien mit 9 neuen und 3 gelöschten Zeilen
  1. 3 0
      Kbuild
  2. 6 3
      core/hdd/src/wlan_hdd_wext.c

+ 3 - 0
Kbuild

@@ -564,6 +564,7 @@ QDF_OBJS := \
 	$(QDF_LINUX_OBJ_DIR)/qdf_mc_timer.o \
 	$(QDF_LINUX_OBJ_DIR)/qdf_mem.o \
 	$(QDF_LINUX_OBJ_DIR)/qdf_nbuf.o \
+	$(QDF_LINUX_OBJ_DIR)/qdf_periodic_work.o \
 	$(QDF_LINUX_OBJ_DIR)/qdf_status.o \
 	$(QDF_LINUX_OBJ_DIR)/qdf_threads.o \
 	$(QDF_LINUX_OBJ_DIR)/qdf_trace.o \
@@ -594,12 +595,14 @@ endif
 
 ifeq ($(CONFIG_QDF_TEST), y)
 	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_hashtable_test.o
+	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_periodic_work_test.o
 	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_talloc_test.o
 	QDF_OBJS += $(QDF_TEST_OBJ_DIR)/qdf_types_test.o
 endif
 
 cppflags-$(CONFIG_TALLOC_DEBUG) += -DWLAN_TALLOC_DEBUG
 cppflags-$(CONFIG_QDF_TEST) += -DWLAN_HASHTABLE_TEST
+cppflags-$(CONFIG_QDF_TEST) += -DWLAN_PERIODIC_WORK_TEST
 cppflags-$(CONFIG_QDF_TEST) += -DWLAN_TALLOC_TEST
 cppflags-$(CONFIG_QDF_TEST) += -DWLAN_TYPES_TEST
 

+ 6 - 3
core/hdd/src/wlan_hdd_wext.c

@@ -68,6 +68,7 @@
 #include "sme_api.h"
 #include "wma_types.h"
 #include "qdf_hashtable_test.h"
+#include "qdf_periodic_work_test.h"
 #include "qdf_talloc_test.h"
 #include "qdf_str.h"
 #include "qdf_trace.h"
@@ -5861,9 +5862,11 @@ struct hdd_ut_entry {
 
 struct hdd_ut_entry hdd_ut_entries[] = {
 	{ .name = "dsc", .callback = dsc_unit_test },
-	{ .name = "ht", .callback = qdf_ht_unit_test },
-	{ .name = "talloc", .callback = qdf_talloc_unit_test },
-	{ .name = "types", .callback = qdf_types_unit_test },
+	{ .name = "qdf_ht", .callback = qdf_ht_unit_test },
+	{ .name = "qdf_periodic_work",
+	  .callback = qdf_periodic_work_unit_test },
+	{ .name = "qdf_talloc", .callback = qdf_talloc_unit_test },
+	{ .name = "qdf_types", .callback = qdf_types_unit_test },
 };
 
 #define hdd_for_each_ut_entry(cursor) \