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
Этот коммит содержится в:
Jeff Johnson
2018-04-14 15:58:24 -07:00
коммит произвёл Sandeep Puligilla
родитель 810f3aed05
Коммит df5d779c08
5 изменённых файлов: 56 добавлений и 41 удалений

3
Kbuild
Просмотреть файл

@@ -303,6 +303,7 @@ ifneq ($(TARGET_BUILD_VARIANT),user)
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 @@ ccflags-y += -DTRACE_RECORD \
-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)