mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
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
This commit is contained in:
parent
437b0f7fa9
commit
cd60132141
1 changed files with 6 additions and 0 deletions
|
|
@ -461,6 +461,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue