qcacld-3.0: Fix BTM response ordering in connectivity logs

Currently for WTC BTM roam trigger, below order is followed:
[22:22:51.127105][BTM] RESP token=1 status=1 delay=0 [vdev_id=0
fw_time=00:53:58.350672]
[22:22:51.127129][BTM] WTC reason_code=6 [vdev_id=0
fw_time=00:53:58.350672]

But expected order is:
[22:22:51.127129][BTM] WTC reason_code=6 [vdev_id=0
fw_time=00:53:58.350672]
[22:22:51.127105][BTM] RESP token=1 status=1 delay=0 [vdev_id=0
fw_time=00:53:58.350672]

Fix this order issue and also ignore the BTM response TLV if
timestamp is 0.

Change-Id: I21fe268a3e3ea065482c1c2938d03b844cd387ea
CRs-Fixed: 3143297
This commit is contained in:
Pragaspathi Thilagaraj
2022-03-09 17:01:49 +05:30
committed by Madan Koyyalamudi
parent 7d27200269
commit f1dd1a7be4
3 changed files with 17 additions and 8 deletions

View File

@@ -3223,11 +3223,6 @@ cm_roam_stats_event_handler(struct wlan_objmgr_psoc *psoc,
cm_roam_btm_req_event(
&stats_info->trigger[0].btm_trig_data,
stats_info->vdev_id);
else if (stats_info->trigger[0].present &&
stats_info->trigger[0].trigger_reason ==
ROAM_TRIGGER_REASON_WTC_BTM)
cm_roam_btm_resp_event(&stats_info->trigger[0], NULL,
stats_info->vdev_id, true);
if (stats_info->data_11kv[0].present)
cm_roam_stats_print_11kv_info(&stats_info->data_11kv[0],
@@ -3245,6 +3240,17 @@ cm_roam_stats_event_handler(struct wlan_objmgr_psoc *psoc,
&stats_info->trigger[i],
&stats_info->btm_rsp[0],
stats_info->vdev_id, 0);
/*
* WTC BTM response with reason code
* WTC print should be after the normal BTM
* response print
*/
if (stats_info->trigger[0].present &&
stats_info->trigger[0].trigger_reason ==
ROAM_TRIGGER_REASON_WTC_BTM)
cm_roam_btm_resp_event(&stats_info->trigger[0], NULL,
stats_info->vdev_id, true);
}
if (stats_info->roam_msg_info && stats_info->num_roam_msg_info &&
stats_info->num_roam_msg_info - rem_tlv) {