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
This commit is contained in:
Himanshu Agarwal 2017-12-14 15:16:37 +05:30 • committed by snandini
commit b956c03cb0

View file

@ -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;