Procházet zdrojové kódy

qcacld-3.0: Print signature on kernel logs when user triggers SSR by iwpriv

qcacld-2.0 to qcacld-3.0 propagation

Currently driver logs are routed as messages to CNSS_DIAG so the
Kernel does not print them into the Kernel log. Add a debug print
to display in kernel log when ever the SSR is triggered using iwpriv.

In dog-food testing, this print would help to separate out the
user-triggered SSR scenarios.

Change-Id: I58f247a26e802bced0c226ee92052ca0d69e1554
CRs-Fixed: 844938
DARAM SUDHA před 10 roky
rodič
revize
7e7e91b832
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      core/hdd/src/wlan_hdd_wext.c

+ 2 - 0
core/hdd/src/wlan_hdd_wext.c

@@ -9424,6 +9424,8 @@ static int __iw_set_two_ints_getnone(struct net_device *dev,
 	case WE_SET_FW_CRASH_INJECT:
 		hddLog(LOGE, "WE_SET_FW_CRASH_INJECT: %d %d",
 		       value[1], value[2]);
+		pr_err("SSR is triggered by iwpriv CRASH_INJECT: %d %d\n",
+			   value[1], value[2]);
 		ret = wma_cli_set2_command(pAdapter->sessionId,
 					   GEN_PARAM_CRASH_INJECT,
 					   value[1], value[2], GEN_CMD);