qcacmn: 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: 2518400
This commit is contained in:
Tiger Yu
2019-09-09 12:44:03 +08:00
committed by nshrivas
parent 5a962e6c4c
commit f28f88bcdd
2 changed files with 75 additions and 6 deletions

View File

@@ -48,7 +48,9 @@ struct ath_pktlog_arg {
#endif
size_t log_size;
uint16_t timestamp;
#ifdef PKTLOG_HAS_SPECIFIC_DATA
uint32_t type_specific_data;
#endif
char *buf;
};