From 21f7c0c06f19d68c942ea7fcb5c6d709e2231254 Mon Sep 17 00:00:00 2001 From: Pragaspathi Thilagaraj Date: Mon, 17 Feb 2020 15:48:13 +0530 Subject: [PATCH] qcacld-3.0: Refactor 11kv logging Add BTM Query/Request prefix for BTM debug prints and Neighbor Req/Resp prefix for Neighbor report logging. If the time received from the firmware is zero, it implies AP has not sent the response for the neighbor req/btm query. So log this info as well. When channel count is zero, log that no channel update from AP. Refactor 11kv logging for more details. Change-Id: I10bb731ce410215eb48322a2f8ad9ed8723e5270 CRs-Fixed: 2623418 --- core/wma/src/wma_scan_roam.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c index 38b6cfa0535e..badef8d00ca4 100644 --- a/core/wma/src/wma_scan_roam.c +++ b/core/wma/src/wma_scan_roam.c @@ -3546,13 +3546,20 @@ wma_rso_print_11kv_info(struct wmi_neighbor_report_data *neigh_rpt, buf_left -= buf_cons; tmp += buf_cons; } - mlme_get_converted_timestamp(neigh_rpt->req_time, time); - WMA_LOGI("%s [%s] RX: VDEV[%d] %s", time, - (type == 1) ? "BTM" : "NEIGH_RPT", vdev_id, buf); - mlme_get_converted_timestamp(neigh_rpt->resp_time, time1); - WMA_LOGI("%s [%s] TX: VDEV[%d]", time1, - (type == 1) ? "BTM" : "NEIGH_RPT", vdev_id); + mlme_get_converted_timestamp(neigh_rpt->req_time, time); + WMA_LOGI("%s [%s] VDEV[%d]", time, + (type == 1) ? "BTM_QUERY" : "NEIGH_RPT_REQ", vdev_id); + + if (neigh_rpt->resp_time) { + mlme_get_converted_timestamp(neigh_rpt->resp_time, time1); + WMA_LOGI("%s [%s] VDEV[%d] %s", time1, + (type == 1) ? "BTM_REQ" : "NEIGH_RPT_RSP", vdev_id, + (num_ch > 0) ? buf : "NO Ch update"); + } else { + WMA_LOGI("%s No response received from AP", + (type == 1) ? "BTM" : "NEIGH_RPT"); + } qdf_mem_free(buf); }