Преглед изворни кода

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
Rakesh Pillai пре 2 година
родитељ
комит
00b746a64d
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      hal/wifi3.0/hal_tx.h

+ 3 - 1
hal/wifi3.0/hal_tx.h

@@ -194,6 +194,8 @@ do {                                            \
  *       <enum 1 transmit_bw_40_MHz>
  *       <enum 2 transmit_bw_80_MHz>
  *       <enum 3 transmit_bw_160_MHz>
+ *       <enum 4 transmit_bw_320_MHz>
+ *       <enum 5 transmit_bw_240_MHz>
  * @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,