qcacld-3.0: Fill validity timer in BTM Request event

Validity timer value is printed wrongly in logcat
logs for BTM request event. This is because the value
is filled from disassociation timer instead of the
validity timer field.
Also the neighbor report related prints are seen
only if the roam msg info TLV is present, which is
not correct.

Fill validity timer in BTM Request event and print the
neighbor report related prints on receiving 11kv
TLV.

Change-Id: I59606f27b0836ea567fed561bbe19f600377d3ed
CRs-Fixed: 3069855
This commit is contained in:
Pragaspathi Thilagaraj
2021-11-09 17:01:30 +05:30
committed by Madan Koyyalamudi
orang tua 4a48e7ab4e
melakukan 13e26a9179
3 mengubah file dengan 18 tambahan dan 20 penghapusan

Melihat File

@@ -3044,6 +3044,19 @@ extract_roam_stats_event_tlv(wmi_unified_t wmi_handle, uint8_t *evt_buf,
goto err;
}
/* BTM req/resp or Neighbor report/response info */
status = wmi_unified_extract_roam_11kv_stats(
wmi_handle,
evt_buf,
&stats_info->data_11kv[i],
i, num_rpt);
if (QDF_IS_STATUS_ERROR(status))
wmi_debug_rl("Roam 11kv stats extract fail vdev %d iter %d",
vdev_id, i);
if (stats_info->data_11kv[i].present)
num_rpt += stats_info->data_11kv[i].num_freq;
/* BTM resp info */
status = wmi_unified_extract_roam_btm_response(wmi_handle,
evt_buf,
@@ -3086,21 +3099,6 @@ extract_roam_stats_event_tlv(wmi_unified_t wmi_handle, uint8_t *evt_buf,
status = QDF_STATUS_E_INVAL;
goto err;
}
if (roam_msg_info[i].present && i < num_tlv) {
/* BTM req/resp or Neighbor report/response info */
status = wmi_unified_extract_roam_11kv_stats(
wmi_handle,
evt_buf,
&stats_info->data_11kv[i],
i, num_rpt);
if (QDF_IS_STATUS_ERROR(status)) {
wmi_debug_rl("Roam 11kv stats extract fail vdev %d iter %d",
vdev_id, i);
status = QDF_STATUS_E_INVAL;
goto err;
}
num_rpt += stats_info->data_11kv[i].num_freq;
}
}
}
return QDF_STATUS_SUCCESS;