summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSourav Mohapatra <mohapatr@codeaurora.org>2019-02-19 15:21:24 +0530
committerSourav Mohapatra <mohapatr@codeaurora.org>2019-03-08 10:49:58 +0530
commited7be1c2df821537975d6e9632b69f75862919cc (patch)
tree7ccf5633660ca3c2096f9aec626f237c4c43d05d
parentf149fbd7a0931a6453b5f327f4c91f4aa28a91e7 (diff)
qcacmn: Add pdev_id for stats request command
Currently the driver doesnot fill the pdev_id in the command for the stats request. This causes the value sent to firmware to be 0. As per the logic in firmware, if the value is zero then the stats for all the pdevs are sent. To get only stats for a single pdev, send the pdev_id along with the vdev_id in the stats request command. Change-Id: Ic7c033c4deee7490c5f22de9b956f0b3b5c94de3 CRs-Fixed: 2404382
-rw-r--r--wmi/inc/wmi_unified_param.h2
-rw-r--r--wmi/src/wmi_unified_tlv.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h
index f8fefa8f2896..d6895160d87d 100644
--- a/wmi/inc/wmi_unified_param.h
+++ b/wmi/inc/wmi_unified_param.h
@@ -2881,6 +2881,7 @@ struct ll_stats_get_params {
* @sta_id: Per STA stats request must contain valid
* @stats_mask: categories of stats requested
* @session_id: wsm ts spec flag
+ * @pdev_id: PDEV id
*/
struct pe_stats_req {
/* Common for all types are requests */
@@ -2890,6 +2891,7 @@ struct pe_stats_req {
/* categories of stats requested. look at ePEStatsMask */
uint32_t stats_mask;
uint8_t session_id;
+ uint8_t pdev_id;
};
/**
diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c
index 346879f9865b..af9039b0a282 100644
--- a/wmi/src/wmi_unified_tlv.c
+++ b/wmi/src/wmi_unified_tlv.c
@@ -7372,6 +7372,7 @@ QDF_STATUS send_get_stats_cmd_tlv(wmi_unified_t wmi_handle,
WMI_REQUEST_PEER_STAT | WMI_REQUEST_PDEV_STAT |
WMI_REQUEST_VDEV_STAT | WMI_REQUEST_RSSI_PER_CHAIN_STAT;
cmd->vdev_id = get_stats_param->session_id;
+ cmd->pdev_id = get_stats_param->pdev_id;
WMI_CHAR_ARRAY_TO_MAC_ADDR(addr, &cmd->peer_macaddr);
WMI_LOGD("STATS REQ VDEV_ID:%d-->", cmd->vdev_id);
if (wmi_unified_cmd_send(wmi_handle, buf, len,