qcacld-3.0: Add protection for type_specific_data in ath_pktlog_hdr

The member of type_specific_data is not valid for ROME module. 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: Icb8b95cef9a32732116522e4fc3b39067ff36037
CRs-Fixed: 2522277
This commit is contained in:
Tiger Yu
2019-09-09 12:46:22 +08:00
committed by nshrivas
vanhempi ac2b175b9b
commit bf14ba81a9
5 muutettua tiedostoa jossa 27 lisäystä ja 1 poistoa

Näytä tiedosto

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2019 The Linux Foundation. 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
@@ -61,7 +61,9 @@ struct ath_pktlog_hdr {
#endif
uint16_t size;
uint32_t timestamp;
#ifdef PKTLOG_HAS_SPECIFIC_DATA
uint32_t type_specific_data;
#endif
} __ATTRIB_PACK;
#define ATH_PKTLOG_HDR_FLAGS_MASK 0xffff