diff --git a/umac/cmn_services/inc/wlan_cmn.h b/umac/cmn_services/inc/wlan_cmn.h index db926a93bd..df64e31583 100644 --- a/umac/cmn_services/inc/wlan_cmn.h +++ b/umac/cmn_services/inc/wlan_cmn.h @@ -78,6 +78,9 @@ /* Invalid free descriptor count */ #define WLAN_INVALID_MGMT_DESC_COUNT 0xFFFFFFFF +/* Max fw report pdev id */ +#define WLAN_UMAC_MAX_RP_PID 2 + /* 802.11 cap info */ #define WLAN_CAPINFO_ESS 0x0001 #define WLAN_CAPINFO_IBSS 0x0002 diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 47a8c87ffe..365437c295 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -4012,6 +4012,7 @@ typedef struct { * @fcsBad: * @noBeacons: * @mib_int_count: + * @pdev_id: pdev id */ typedef struct { int32_t chan_nf; @@ -4028,6 +4029,7 @@ typedef struct { uint32_t fcsBad; uint32_t noBeacons; uint32_t mib_int_count; + uint32_t pdev_id; } wmi_host_pdev_stats; /** diff --git a/wmi/src/wmi_unified_cp_stats_tlv.c b/wmi/src/wmi_unified_cp_stats_tlv.c index 8569f96f95..46d1f9408e 100644 --- a/wmi/src/wmi_unified_cp_stats_tlv.c +++ b/wmi/src/wmi_unified_cp_stats_tlv.c @@ -684,6 +684,9 @@ extract_pdev_stats_tlv(wmi_unified_t wmi_handle, void *evt_buf, uint32_t index, param_buf = (WMI_UPDATE_STATS_EVENTID_param_tlvs *) evt_buf; ev_param = (wmi_stats_event_fixed_param *) param_buf->fixed_param; + pdev_stats->pdev_id = + wmi_handle->ops->convert_pdev_id_target_to_host(wmi_handle, + ev_param->pdev_id); data = param_buf->data;