Browse Source

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
Shailendra Singh 2 năm trước cách đây
mục cha
commit
584096fde4
2 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 2 0
      wmi/inc/wmi_unified_param.h
  2. 2 0
      wmi/src/wmi_unified_tlv.c

+ 2 - 0
wmi/inc/wmi_unified_param.h

@@ -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;
 };
 
 /**

+ 2 - 0
wmi/src/wmi_unified_tlv.c

@@ -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;