Browse Source

qcacld-3.0: Add debug print for wlan_hdd_validate_context

It can help to trace what is happening during load/unload and
avoid just exiting silently.

Change-Id: I61a451058a7846d3627500db2c9d8d5998e8210e
CRs-fixed: 2123331
Yue Ma 7 years ago
parent
commit
9f275d9bdb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      core/hdd/src/wlan_hdd_main.c

+ 4 - 1
core/hdd/src/wlan_hdd_main.c

@@ -745,8 +745,11 @@ int wlan_hdd_validate_context(struct hdd_context *hdd_ctx)
 		return -EAGAIN;
 	}
 
-	if (cds_is_load_or_unload_in_progress())
+	if (cds_is_load_or_unload_in_progress()) {
+		hdd_debug("%pS Load or unload in progress, state: 0x%x, ignore!",
+			  (void *)_RET_IP_, cds_get_driver_state());
 		return -EAGAIN;
+	}
 
 	if (hdd_ctx->start_modules_in_progress ||
 	    hdd_ctx->stop_modules_in_progress) {