Browse Source

qcacld-3.0: Assign correct preamble type for OFDM packets

Presently, OFDM packets are assigned preamble type of
LONG_PREAMBLE when the type should be SHORT_PREAMBLE.

Assign the preamble type correctly.

Change-Id: Ie16936ba54cb8e1dfa5e96ccc52f3fc6693a5d48
CRs-Fixed: 2159511
Himanshu Agarwal 7 years ago
parent
commit
b956c03cb0
1 changed files with 1 additions and 3 deletions
  1. 1 3
      core/dp/htt/htt_rx.c

+ 1 - 3
core/dp/htt/htt_rx.c

@@ -1752,7 +1752,7 @@ static unsigned char htt_rx_get_rate(uint32_t l_sig_rate_select,
 					uint32_t l_sig_rate, uint8_t *preamble)
 {
 	char ret = 0x0;
-	*preamble = LONG_PREAMBLE;
+	*preamble = SHORT_PREAMBLE;
 	if (l_sig_rate_select == 0) {
 		switch (l_sig_rate) {
 		case 0x8:
@@ -1802,14 +1802,12 @@ static unsigned char htt_rx_get_rate(uint32_t l_sig_rate_select,
 			break;
 		case 0x5:
 			ret = 0x4;
-			*preamble = SHORT_PREAMBLE;
 			break;
 		case 0x6:
 			ret = 0xB;
 			break;
 		case 0x7:
 			ret = 0x16;
-			*preamble = SHORT_PREAMBLE;
 			break;
 		default:
 			break;