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
This commit is contained in:
@@ -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 @@ struct ath_pktlog_hdr {
|
||||
#endif
|
||||
uint16_t size;
|
||||
uint32_t timestamp;
|
||||
#ifdef HELIUMPLUS
|
||||
uint32_t type_specific_data;
|
||||
#endif
|
||||
} __ATTRIB_PACK;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user