summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Brown <dustinb@codeaurora.org>2017-03-28 14:18:46 -0700
committerDustin Brown <dustinb@codeaurora.org>2017-03-28 14:34:56 -0700
commit5902468a9afa3f7b7bb2ff44588c657331bf46ec (patch)
tree67c4b0d6af99fa8a51c6c56c8a6337f5fb52adc7
parent60ff59a2025e4006600226f529ac1009ec3d02b2 (diff)
qcacld-3.0: Disallow crash recovery in FTM mode
FTM mode is purely a testing mode. As such, crashes in firmware should not be gracefully handled. Instead, crash the system to produce a crash dump to aid in the debugging process. Change-Id: Ie4098b02be39a25c00f839566d35456bad5834d6 CRs-Fixed: 2025877
-rw-r--r--core/hdd/src/wlan_hdd_driver_ops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c
index 2257741180f8..ff4aa493d0d1 100644
--- a/core/hdd/src/wlan_hdd_driver_ops.c
+++ b/core/hdd/src/wlan_hdd_driver_ops.c
@@ -462,6 +462,12 @@ static void wlan_hdd_shutdown(void)
{
void *hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
+ if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE) {
+ hdd_err("Crash recovery is not allowed in FTM mode");
+ QDF_BUG(0);
+ return;
+ }
+
if (cds_is_load_or_unload_in_progress()) {
hdd_err("Load/unload in progress, ignore SSR shutdown");
return;