From bdbf9523bb7f74381a89fcb1fa12e95ba75ac0f7 Mon Sep 17 00:00:00 2001 From: Vijay Raj Date: Tue, 20 Dec 2022 01:11:44 -0800 Subject: [PATCH] qcacmn: Add support for token and report number in Neighbor report In api extract_roam_11kv_stats_tlv(), request token, response token and report number are not extracted for neighbor report. Add support for request token, response token and report number for neighbor report. Change-Id: Iefe384fe760f25d6ce1870e52817c72577f0d5a9 CRs-Fixed: 3370856 --- wmi/inc/wmi_unified_param.h | 8 +++++++- wmi/src/wmi_unified_tlv.c | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 9e61c29415..bf2aa5c7de 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -8967,6 +8967,9 @@ struct wmi_roam_result { * @btm_query_token: BTM query dialog token. * @btm_query_reason: BTM query reasons as defined in * IEEE802.11v spec table 7-43x + * @req_token: Request token + * @resp_token: Response Token + * @num_rpt: Number of report element */ struct wmi_neighbor_report_data { bool present; @@ -8978,6 +8981,9 @@ struct wmi_neighbor_report_data { uint32_t freq[MAX_ROAM_SCAN_CHAN]; uint16_t btm_query_token; uint8_t btm_query_reason; + uint8_t req_token; + uint8_t resp_token; + uint8_t num_rpt; }; /** diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 1d9dbda6d5..ba84731039 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -18931,6 +18931,12 @@ extract_roam_11kv_stats_tlv(wmi_unified_t wmi_handle, void *evt_buf, dst->resp_time = src_data->neighbor_report_response_timestamp; dst->btm_query_token = src_data->btm_query_token; dst->btm_query_reason = src_data->btm_query_reason_code; + dst->req_token = + WMI_ROAM_NEIGHBOR_REPORT_INFO_REQUEST_TOKEN_GET(src_data->neighbor_report_detail); + dst->resp_token = + WMI_ROAM_NEIGHBOR_REPORT_INFO_RESPONSE_TOKEN_GET(src_data->neighbor_report_detail); + dst->num_rpt = + WMI_ROAM_NEIGHBOR_REPORT_INFO_NUM_OF_NRIE_GET(src_data->neighbor_report_detail); if (!dst->num_freq || !param_buf->num_roam_neighbor_report_chan_info || rpt_idx >= param_buf->num_roam_neighbor_report_chan_info)