qcacld-2.0: Pack CB structure in skb and enable packet trace
Add changes to enable packet tracing for debug build and pack
CB structure in sk_buff since it was crossing designated size of
CB.
Change-Id: I3959a1a118fcaafd708f03ce4ce00b9132bc69fe
CRs-Fixed: 993295
diff --git a/CORE/HDD/inc/wlan_hdd_cfg.h b/CORE/HDD/inc/wlan_hdd_cfg.h
index ea1c672..3f737e8 100644
--- a/CORE/HDD/inc/wlan_hdd_cfg.h
+++ b/CORE/HDD/inc/wlan_hdd_cfg.h
@@ -2669,7 +2669,7 @@
#define CFG_ENABLE_DEBUG_CONNECT_ISSUE "gEnableDebugLog"
#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MIN (0)
#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MAX (0xFF)
-#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_DEFAULT (0)
+#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_DEFAULT (6)
/*
* RX packet handling options
diff --git a/CORE/SERVICES/COMMON/adf/linux/adf_nbuf_pvt.h b/CORE/SERVICES/COMMON/adf/linux/adf_nbuf_pvt.h
index af7ed45..9ed1edb 100644
--- a/CORE/SERVICES/COMMON/adf/linux/adf_nbuf_pvt.h
+++ b/CORE/SERVICES/COMMON/adf/linux/adf_nbuf_pvt.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2014,2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2014, 2016 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -140,7 +140,7 @@
unsigned char tx_htt2_frm: 1;
unsigned char tx_htt2_reserved: 7;
#endif /* QCA_TX_HTT2_SUPPORT */
-};
+} __packed;
#ifdef QCA_ARP_SPOOFING_WAR
#define NBUF_CB_PTR(skb) \
diff --git a/CORE/VOSS/src/vos_api.c b/CORE/VOSS/src/vos_api.c
index 23c3181..4689507 100644
--- a/CORE/VOSS/src/vos_api.c
+++ b/CORE/VOSS/src/vos_api.c
@@ -2882,6 +2882,9 @@
if (dump_vos_trace)
vosTraceDumpAll(vos_context->pMACContext, 0, 0, 500, 0);
+#ifdef QCA_PKT_PROTO_TRACE
+ vos_pkt_trace_buf_dump();
+#endif
if (WLAN_LOG_INDICATOR_HOST_ONLY == indicator) {
vos_wlan_flush_host_logs_for_fatal();
return VOS_STATUS_SUCCESS;
diff --git a/Kbuild b/Kbuild
index b727e65..86ffb7f 100644
--- a/Kbuild
+++ b/Kbuild
@@ -1160,6 +1160,7 @@
ifneq ($(TARGET_BUILD_VARIANT),user)
CDEFINES += -DDEBUG_RX_RING_BUFFER
+CDEFINES += -DQCA_PKT_PROTO_TRACE
endif
# enable the MAC Address auto-generation feature