Explorar o código

qcacmn: Fix rate of mu bar populated as zero

fix mu bar rate that populated as zero sometimes.

Change-Id: I382c351e923419b43ef9b5b497b1a10e401ee5d8
nobelj %!s(int64=5) %!d(string=hai) anos
pai
achega
f7dbc44dd9
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      dp/wifi3.0/dp_htt.c

+ 2 - 1
dp/wifi3.0/dp_htt.c

@@ -3038,7 +3038,7 @@ dp_process_ppdu_stats_sch_cmd_status_tlv(struct dp_pdev *pdev,
 	ppdu_desc = (struct cdp_tx_completion_ppdu *)
 				qdf_nbuf_data(ppdu_info->nbuf);
 
-	num_users = ppdu_desc->num_users;
+	num_users = ppdu_desc->bar_num_users;
 
 	if (ppdu_desc->frame_type == CDP_PPDU_FTYPE_BAR) {
 		for (i = 0; i < num_users; i++) {
@@ -3046,6 +3046,7 @@ dp_process_ppdu_stats_sch_cmd_status_tlv(struct dp_pdev *pdev,
 				/* update phy mode for bar frame */
 				ppdu_desc->phy_mode =
 					ppdu_desc->user[i].preamble;
+				ppdu_desc->user[0].mcs = ppdu_desc->user[i].mcs;
 				break;
 			}
 		}