From 22046183edef93b35e1297d163b5d96c12fdd142 Mon Sep 17 00:00:00 2001 From: Kiran Venkatappa Date: Thu, 10 Aug 2017 17:48:37 +0530 Subject: [PATCH] qcacmn: Update chaninfo extract API for TLV target FW implementation is updated to add more fields in chan info event. Update host implementation to extract these fields. Change-Id: I4935f3aa1c2e87d27a13a29651db8d8835cb4f91 CRs-Fixed: 2090787 --- wmi/inc/wmi_unified_param.h | 8 ++++++++ wmi/src/wmi_unified_tlv.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 3342a77e32b6..7a496ce3840e 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -6760,6 +6760,10 @@ typedef struct { * @chan_tx_pwr_tp: channel tx power per throughput * @rx_frame_count: rx frame count * @rx_11b_mode_data_duration: 11b mode data duration + * @my_bss_rx_cycle_count: BSS rx cycle count + * @tx_frame_cnt: tx frame count + * @mac_clk_mhz: mac clock + * @vdev_id: unique id identifying the VDEV */ typedef struct { uint32_t pdev_id; @@ -6773,6 +6777,10 @@ typedef struct { uint32_t chan_tx_pwr_tp; uint32_t rx_frame_count; uint32_t rx_11b_mode_data_duration; + uint32_t my_bss_rx_cycle_count; + uint32_t tx_frame_cnt; + uint32_t mac_clk_mhz; + uint32_t vdev_id; } wmi_host_chan_info_event; /** diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 7901d02f57d0..0bace7f029e0 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -16987,6 +16987,14 @@ static QDF_STATUS extract_chan_info_event_tlv(wmi_unified_t wmi_handle, chan_info->pdev_id = wlan_get_pdev_id_from_vdev_id( (struct wlan_objmgr_psoc *)wmi_handle->soc->wmi_psoc, ev->vdev_id, WLAN_SCAN_ID); + chan_info->chan_tx_pwr_range = ev->chan_tx_pwr_range; + chan_info->chan_tx_pwr_tp = ev->chan_tx_pwr_tp; + chan_info->my_bss_rx_cycle_count = ev->my_bss_rx_cycle_count; + chan_info->rx_11b_mode_data_duration = ev->rx_11b_mode_data_duration; + chan_info->tx_frame_cnt = ev->tx_frame_cnt; + chan_info->rx_frame_count = ev->rx_frame_count; + chan_info->mac_clk_mhz = ev->mac_clk_mhz; + chan_info->vdev_id = ev->vdev_id; return QDF_STATUS_SUCCESS; }