qcacld-3.0: Add flag CONNECTIVITY_PKTLOG
Add new flag CONNECTIVITY_PKTLOG to make independent of FEATURE_PKTLOG and REMOVE_PKT_LOG for packet logging. This is because 32 tx/rx pkt logging is connection related and this feature is independent of pkt log feature. Here driver will send first 32 tx/rx pkts consisting of mgmt and data pkts to userspace which can be used for debugging Change-Id: If987ac8b6cb10b464a4ec2ace1c55215c0aa3614 CRs-Fixed: 3222970
This commit is contained in:

committed by
Madan Koyyalamudi

parent
e769185d31
commit
a24510696e
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 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
|
||||
@@ -19,7 +20,7 @@
|
||||
#ifndef _PKTLOG_FMT_H_
|
||||
#define _PKTLOG_FMT_H_
|
||||
|
||||
#ifndef REMOVE_PKT_LOG
|
||||
#if defined(CONNECTIVITY_PKTLOG) || !defined(REMOVE_PKT_LOG)
|
||||
|
||||
#define CUR_PKTLOG_VER 10010 /* Packet log version */
|
||||
#define PKTLOG_MAGIC_NUM 7735225
|
||||
@@ -308,6 +309,7 @@ struct ath_pktlog_buf {
|
||||
* @TX_DATA_PKT: TX data Packet
|
||||
* @RX_MGMT_PKT: RX management Packet
|
||||
* @RX_DATA_PKT: RX data Packet
|
||||
* @INVALID_PKT: Invalid packet
|
||||
*
|
||||
* This enum has packet types
|
||||
*/
|
||||
@@ -318,6 +320,7 @@ enum pkt_type {
|
||||
TX_DATA_PKT,
|
||||
RX_MGMT_PKT,
|
||||
RX_DATA_PKT,
|
||||
INVALID_PKT,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user