Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed7be1c2 authored by Sourav Mohapatra's avatar Sourav Mohapatra
Browse files

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
parent f149fbd7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
};

/**
+1 −0
Original line number Diff line number Diff line
@@ -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,