qcacld-3.0: Better featurize the SSR injection debug code
The driver supports a "SSR injection" feature that is used during
testing to validate certain recovery features. Currently this feature
is protected by a generic WLAN_DEBUG feature flag, and in addition
there are two separate debug ioctl handlers which have duplicate
code. In order to better support a finer level of configurability
introduce a new configuration flag and consolidate to a single
implementation of the feature under that flag.
Change-Id: I73e8dd4580ca53d129ae0181ffc46d011699f3dc
CRs-Fixed: 2224815
diff --git a/Kbuild b/Kbuild
index 965666e..372d9f0 100644
--- a/Kbuild
+++ b/Kbuild
@@ -303,6 +303,7 @@
else
CONFIG_FEATURE_PKTLOG := y
endif
+ CONFIG_WLAN_DEBUG_CRASH_INJECT := y
endif
#Enable WLAN/Power debugfs feature only if debug_fs is enabled
@@ -2063,7 +2064,7 @@
-DHDD_TRACE_RECORD
endif
endif
-
+ccflags-$(CONFIG_WLAN_DEBUG_CRASH_INJECT) += -DCONFIG_WLAN_DEBUG_CRASH_INJECT
ccflags-$(CONFIG_FEATURE_UNIT_TEST_SUSPEND) += -DWLAN_SUSPEND_RESUME_TEST
ifeq ($(CONFIG_LEAK_DETECTION), y)