qcacmn: Add change to extract per vdev tx power

Add change to extract vdev tx power from vdev extended stats.

Change-Id: I929d642a649653cbbbd3911a11dbba92377f70d1
CRs-Fixed: 3496091
This commit is contained in:
Shailendra Singh
2023-06-08 10:16:04 +05:30
committed by Rahul Choudhary
parent a7af205870
commit 584096fde4
2 changed files with 4 additions and 0 deletions

View File

@@ -4787,6 +4787,7 @@ typedef struct {
* @unsolicited_prb_succ_cnt: Successful unsolicited probe response frames cnt
* @unsolicited_prb_fail_cnt: Failed unsolictied probe response frames cnt
* @is_mlo_vdev_active: is the mlo vdev currently active
* @vdev_tx_power: Tx power for vdev
*/
struct wmi_host_vdev_prb_fils_stats {
uint32_t vdev_id;
@@ -4795,6 +4796,7 @@ struct wmi_host_vdev_prb_fils_stats {
uint32_t unsolicited_prb_succ_cnt;
uint32_t unsolicited_prb_fail_cnt;
bool is_mlo_vdev_active;
uint32_t vdev_tx_power;
};
/**

View File

@@ -13878,10 +13878,12 @@ extract_vdev_prb_fils_stats_tlv(wmi_unified_t wmi_handle,
ev->unsolicited_prb_fail_cnt;
status = extract_mlo_vdev_status_info(param_buf, ev,
vdev_stats);
vdev_stats->vdev_tx_power = ev->vdev_tx_power;
wmi_debug("vdev: %d, fd_s: %d, fd_f: %d, prb_s: %d, prb_f: %d",
ev->vdev_id, ev->fd_succ_cnt, ev->fd_fail_cnt,
ev->unsolicited_prb_succ_cnt,
ev->unsolicited_prb_fail_cnt);
wmi_debug("vdev txpwr: %d", ev->vdev_tx_power);
}
return status;