From 00b746a64d317d8e0c23a8f2bf6a276d123bfd56 Mon Sep 17 00:00:00 2001 From: Rakesh Pillai Date: Tue, 13 Dec 2022 04:17:02 -0800 Subject: [PATCH] qcacmn: Increase the field width of bandwidth for 320 MHz The current field width for bandwidth parsed from tx completion status is only 2-bits, which is not sufficient for 320 MHz and 240 MHz, since these enum values are 4 and 5 respectively, which needs a minimum field width of 3-bits to store. Increase the field width of bandwidth in the tx completion status data structure to account for 320 MHz and 240 MHz enum values. Change-Id: Ie108f31537607ab9ebf6510542b8967c0272e383 CRs-Fixed: 3359371 --- hal/wifi3.0/hal_tx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hal/wifi3.0/hal_tx.h b/hal/wifi3.0/hal_tx.h index 8812902a8b..048763ab4c 100644 --- a/hal/wifi3.0/hal_tx.h +++ b/hal/wifi3.0/hal_tx.h @@ -194,6 +194,8 @@ do { \ * * * + * + * * @pkt_type: Transmit Packet Type * @stbc: When set, STBC transmission rate was used * @ldpc: When set, use LDPC transmission rates @@ -220,7 +222,7 @@ struct hal_tx_completion_status { uint8_t first_msdu:1, last_msdu:1, msdu_part_of_amsdu:1; - uint32_t bw:2, + uint32_t bw:3, pkt_type:4, stbc:1, ldpc:1,