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
此提交包含在:
Tiger Yu
2018-03-13 15:43:46 +08:00
提交者 nshrivas
父節點 1a265ecb16
當前提交 bf57c2c31e

查看文件

@@ -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. * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
* *
@@ -69,7 +69,9 @@ struct ath_pktlog_hdr {
#endif #endif
uint16_t size; uint16_t size;
uint32_t timestamp; uint32_t timestamp;
#ifdef HELIUMPLUS
uint32_t type_specific_data; uint32_t type_specific_data;
#endif
} __ATTRIB_PACK; } __ATTRIB_PACK;
/** /**