From 1885d2c685851ec69fcea5dfed514bc752eec2b9 Mon Sep 17 00:00:00 2001 From: wadesong Date: Sat, 13 May 2017 20:02:35 +0800 Subject: [PATCH] qcacld-3.0: Add ipa_uc_rx_ring_elem_t for 32-bit platform ipa_uc_rx_ring_elem_t structure is platform specific and current definition cannot be used on 32-bit ARM platform where IPA 3.5 is attached. Add IPA 3.5 and 32-bit ARM compatible structure to avoid IPA crash when data traffic is running Change-Id: Ia5c141c9405675a64f59ba4c09f1ffd911158c9b CRs-Fixed: 2046905 --- core/dp/htt/htt_types.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/dp/htt/htt_types.h b/core/dp/htt/htt_types.h index e3f79fd3212c..ac5cc84db8d3 100644 --- a/core/dp/htt/htt_types.h +++ b/core/dp/htt/htt_types.h @@ -176,11 +176,19 @@ struct htt_ipa_uc_rx_resource_t { * @vdev_id: virtual interface id * @rx_packet_leng: packet length */ +#if HTT_PADDR64 struct ipa_uc_rx_ring_elem_t { target_paddr_t rx_packet_paddr; uint32_t vdev_id; uint32_t rx_packet_leng; }; +#else +struct ipa_uc_rx_ring_elem_t { + target_paddr_t rx_packet_paddr; + uint16_t vdev_id; + uint16_t rx_packet_leng; +}; +#endif struct htt_tx_credit_t { qdf_atomic_t bus_delta;