mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
qcacld-3.0: Fix ofdm and cck flag info for mon mode data packets
Currently cck and ofdm flags are filled wrongly for monitor mode data packets based on preamble and wireshark deriving incorrect phy type for 11G & 11B. This change is to update cck and ofdm flags based on packet type. Change-Id: I5fcdc463ea2a6d83253e39cc377a2471aeb4e144 CRs-Fixed: 3447567
This commit is contained in:
parent
03d81c87db
commit
92151b69be
2 changed files with 7 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021, 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -42,6 +43,8 @@
|
|||
#define IEEE80211_RADIOTAP_HE_DATA1_STBC_KNOWN 0x0200
|
||||
#endif
|
||||
|
||||
#define HAL_TX_PKT_TYPE_11B 1
|
||||
|
||||
/**
|
||||
* pkt_capture_data_process_type - data pkt types to process
|
||||
* for packet capture mode
|
||||
|
|
|
|||
|
|
@ -207,9 +207,9 @@ static void pkt_capture_tx_get_phy_info(
|
|||
break;
|
||||
}
|
||||
|
||||
if (preamble == 0)
|
||||
if (preamble_type != HAL_TX_PKT_TYPE_11B)
|
||||
tx_status->ofdm_flag = 1;
|
||||
else if (preamble == 1)
|
||||
else
|
||||
tx_status->cck_flag = 1;
|
||||
|
||||
tx_status->mcs = mcs;
|
||||
|
|
@ -729,9 +729,9 @@ static void pkt_capture_rx_get_phy_info(void *context, void *psoc,
|
|||
break;
|
||||
}
|
||||
|
||||
if (preamble == 0)
|
||||
if (preamble_type != HAL_RX_PKT_TYPE_11B)
|
||||
rx_status->ofdm_flag = 1;
|
||||
else if (preamble == 1)
|
||||
else
|
||||
rx_status->cck_flag = 1;
|
||||
|
||||
rx_status->bw = bw;
|
||||
|
|
|
|||
Loading…
Reference in a new issue