From 9f275d9bdb001065cdac4abfa804655d9c212070 Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Thu, 14 Sep 2017 16:58:41 -0700 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 0d2e4b5e2c12..34d480541e41 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/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) {