mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Add support to simulate host driver initiated recovery
Expand crash_inject command so that it can be used to simulate host driver initiated recovery. Change-Id: Ia29a528c7153ea2ca62094909cb535f218f7bf88 CRs-fixed: 2068035
This commit is contained in:
parent
63d360abdc
commit
0615235c4c
2 changed files with 8 additions and 0 deletions
|
|
@ -2604,6 +2604,10 @@ static int __iw_softap_set_two_ints_getnone(struct net_device *dev,
|
|||
case QCSAP_IOCTL_SET_FW_CRASH_INJECT:
|
||||
hdd_err("WE_SET_FW_CRASH_INJECT: %d %d",
|
||||
value[1], value[2]);
|
||||
if (value[1] == 3) {
|
||||
cds_trigger_recovery(false);
|
||||
return 0;
|
||||
}
|
||||
ret = wma_cli_set2_command(adapter->sessionId,
|
||||
GEN_PARAM_CRASH_INJECT,
|
||||
value[1], value[2],
|
||||
|
|
|
|||
|
|
@ -12697,6 +12697,10 @@ static int __iw_set_two_ints_getnone(struct net_device *dev,
|
|||
value[1], value[2]);
|
||||
pr_err("SSR is triggered by iwpriv CRASH_INJECT: %d %d\n",
|
||||
value[1], value[2]);
|
||||
if (value[1] == 3) {
|
||||
cds_trigger_recovery(false);
|
||||
return 0;
|
||||
}
|
||||
ret = wma_cli_set2_command(pAdapter->sessionId,
|
||||
GEN_PARAM_CRASH_INJECT,
|
||||
value[1], value[2], GEN_CMD);
|
||||
|
|
|
|||
Loading…
Reference in a new issue