From f1973b22d7339cee75b0e48d4f2d5ce57c5bedb2 Mon Sep 17 00:00:00 2001 From: Ruben Columbus Date: Wed, 12 Aug 2020 21:54:22 -0700 Subject: [PATCH] qcacmn: Add fix to support frame control for MU ctrl frame frame control for second and subsequent user are zero which overide the master frame control. Added fix to update master frame control from user position zero. Change-Id: Ic0331dd5d486fbffa44d29c74b4f1f15414d0a65 --- dp/wifi3.0/dp_htt.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dp/wifi3.0/dp_htt.c b/dp/wifi3.0/dp_htt.c index 421f04d366..5651e4ef86 100644 --- a/dp/wifi3.0/dp_htt.c +++ b/dp/wifi3.0/dp_htt.c @@ -3028,15 +3028,20 @@ dp_process_ppdu_stats_sch_cmd_status_tlv(struct dp_pdev *pdev, num_users = ppdu_desc->bar_num_users; - if (ppdu_desc->frame_type == CDP_PPDU_FTYPE_BAR) { - for (i = 0; i < num_users; i++) { - if (ppdu_desc->user[i].user_pos == 0) { + for (i = 0; i < num_users; i++) { + if (ppdu_desc->user[i].user_pos == 0) { + if (ppdu_desc->frame_type == CDP_PPDU_FTYPE_BAR) { /* 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; } + if (ppdu_desc->frame_type == CDP_PPDU_FTYPE_CTRL) { + ppdu_desc->frame_ctrl = + ppdu_desc->user[i].frame_ctrl; + break; + } } }