qcacld-3.0: Add more debug logs in scan dequeue API

Add more logs in scan dequeue logic.

Change-Id: I79d6157fbfc407be33d8135774ff8ee407475cfc
CRs-Fixed: 1047332
This commit is contained in:
Sandeep Puligilla 2016-07-28 11:59:58 -07:00 • committed by Vishwajith Upendra
commit ee0e41dbcc

View file

@ -531,6 +531,7 @@ static bool wlan_hdd_is_scan_pending(hdd_adapter_t *adapter)
/* Any scan pending on the adapter */
if (adapter == hdd_scan_req->adapter) {
qdf_spin_unlock(&hdd_ctx->hdd_scan_req_q_lock);
hdd_info("pending scan id %d", hdd_scan_req->scan_id);
return true;
}
} while (QDF_STATUS_SUCCESS ==
@ -635,13 +636,15 @@ QDF_STATUS wlan_hdd_scan_request_dequeue(hdd_context_t *hdd_ctx,
*timestamp = hdd_scan_req->timestamp;
qdf_mem_free(hdd_scan_req);
qdf_spin_unlock(&hdd_ctx->hdd_scan_req_q_lock);
hdd_info("removed Scan id: %d, req = %p",
scan_id, req);
hdd_info("removed Scan id: %d, req = %p, pending scans %d",
scan_id, req,
qdf_list_size(&hdd_ctx->hdd_scan_req_q));
return QDF_STATUS_SUCCESS;
} else {
qdf_spin_unlock(&hdd_ctx->hdd_scan_req_q_lock);
hdd_err("Failed to remove node scan id %d",
scan_id);
hdd_err("Failed to remove node scan id %d, pending scans %d",
scan_id,
qdf_list_size(&hdd_ctx->hdd_scan_req_q));
return status;
}
}