mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Drop offload packets in PE component
Offload packets should be processed only in packet capture mode, so drop them in PE component if packet capture mode is set. Change-Id: I45c373b02bd4ad70c9a02528239f0ddf9c22343e CRs-Fixed: 2664553
This commit is contained in:
parent
3e9ad37068
commit
2871bc677b
1 changed files with 8 additions and 0 deletions
|
|
@ -77,6 +77,7 @@
|
|||
#include "wlan_scan_utils_api.h"
|
||||
#include <qdf_hang_event_notifier.h>
|
||||
#include <qdf_notifier.h>
|
||||
#include "wlan_pkt_capture_ucfg_api.h"
|
||||
|
||||
struct pe_hang_event_fixed_param {
|
||||
uint32_t tlv_header;
|
||||
|
|
@ -1236,6 +1237,13 @@ static QDF_STATUS pe_handle_mgmt_frame(struct wlan_objmgr_psoc *psoc,
|
|||
uint8_t *pRxPacketInfo;
|
||||
int ret;
|
||||
|
||||
/* skip offload packets */
|
||||
if (ucfg_pkt_capture_get_mode(psoc) &&
|
||||
mgmt_rx_params->status & WMI_RX_OFFLOAD_MON_MODE) {
|
||||
qdf_nbuf_free(buf);
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
mac = cds_get_context(QDF_MODULE_ID_PE);
|
||||
if (!mac) {
|
||||
/* cannot log a failure without a valid mac */
|
||||
|
|
|
|||
Loading…
Reference in a new issue