qcacld-3.0: Add protection for type_specific_data in ath_pktlog_hdr
The member of type_specific_data is only valid for HELIUMPLUS.
Add macro protection for type_specific_data in the ath_pktlog_hdr to
avoid offset error when getting the msdu id info during processing
pktlog TX info.
Change-Id: I426e24db073e080d20cd5963ef89c521d0bfb106
CRs-Fixed: 2185588
diff --git a/uapi/linux/pktlog_ac_fmt.h b/uapi/linux/pktlog_ac_fmt.h
index 826577e..8e949d8 100644
--- a/uapi/linux/pktlog_ac_fmt.h
+++ b/uapi/linux/pktlog_ac_fmt.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -69,7 +69,9 @@
#endif
uint16_t size;
uint32_t timestamp;
+#ifdef HELIUMPLUS
uint32_t type_specific_data;
+#endif
} __ATTRIB_PACK;
/**