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
This commit is contained in:
Yue Ma 2017-09-14 16:58:41 -07:00 • committed by snandini
commit 9f275d9bdb

View file

@ -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) {