mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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
This commit is contained in:
parent
810f3aed05
commit
df5d779c08
5 changed files with 56 additions and 41 deletions
3
Kbuild
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue