diff --git a/qdf/inc/qdf_types.h b/qdf/inc/qdf_types.h index ca1ee495cbf5..10304506de33 100644 --- a/qdf/inc/qdf_types.h +++ b/qdf/inc/qdf_types.h @@ -143,6 +143,11 @@ typedef __qdf_dma_size_t qdf_dma_size_t; */ typedef __qdf_dma_context_t qdf_dma_context_t; +/** + * pointer to net device + */ +typedef __qdf_netdev_t qdf_netdev_t; + /** * struct qdf_dma_map_info - Information inside a DMA map. * @nsegs: total number mapped segments diff --git a/qdf/linux/src/i_qdf_types.h b/qdf/linux/src/i_qdf_types.h index f915d0a9bcf2..b7bcc77c490b 100644 --- a/qdf/linux/src/i_qdf_types.h +++ b/qdf/linux/src/i_qdf_types.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -127,6 +127,7 @@ typedef int (*__qdf_os_intr)(void *); typedef dma_addr_t __qdf_dma_addr_t; typedef size_t __qdf_dma_size_t; typedef dma_addr_t __qdf_dma_context_t; +typedef struct net_device *__qdf_netdev_t; #define qdf_dma_mem_context(context) dma_addr_t context #define qdf_get_dma_mem_context(var, field) ((qdf_dma_context_t)(var->field))