浏览代码

qcacld-3.0: Add a debug print for soft driver unload

Add a debug print in wlan_hdd_main.c to to differentiate
between hard and soft driver unload.

Change-Id: Ia1f2c7d90e86c03e94a2ef20d8d7eef5acc316f0
CRs-Fixed: 3266415
Aditya Kodukula 2 年之前
父节点
当前提交
3357aee444
共有 1 个文件被更改,包括 9 次插入3 次删除
  1. 9 3
      core/hdd/src/wlan_hdd_main.c

+ 9 - 3
core/hdd/src/wlan_hdd_main.c

@@ -17798,8 +17798,15 @@ void hdd_driver_unload(void)
 	void *hif_ctx;
 	bool soft_unload;
 
-	pr_info("%s: Unloading driver v%s\n", WLAN_MODULE_NAME,
-		QWLAN_VERSIONSTR);
+	soft_unload = hdd_get_wlan_driver_status();
+	if (soft_unload) {
+		pr_info("%s: Soft Unloading driver v%s\n", WLAN_MODULE_NAME,
+			QWLAN_VERSIONSTR);
+	} else {
+		pr_info("%s: Hard Unloading driver v%s\n", WLAN_MODULE_NAME,
+			QWLAN_VERSIONSTR);
+	}
+
 	hdd_place_marker(NULL, "START UNLOADING", NULL);
 
 	/*
@@ -17845,7 +17852,6 @@ void hdd_driver_unload(void)
 	 */
 	osif_driver_sync_trans_stop(driver_sync);
 
-	soft_unload = hdd_get_wlan_driver_status();
 	if (!soft_unload)
 		wlan_hdd_state_ctrl_param_destroy();