From 58e49e28b14201625e0c16f74e107c075f45dac0 Mon Sep 17 00:00:00 2001 From: Jindong Yue Date: Thu, 14 Apr 2022 16:22:20 +0800 Subject: [PATCH] MA-20217 Remove redefinition of typedef mlan_adapter and pmlan_adapter Fix below build warnings: nxp-mwifiex/mxm_wifiex/wlan_src/mlan/mlan_main.h:2794:3: warning: redefinition of typedef 'mlan_adapter' is a C11 feature [-Wtypedef-redefinition] } mlan_adapter, *pmlan_adapter; ^ nxp-mwifiex/mxm_wifiex/wlan_src/mlan/mlan_main.h:2249:30: note: previous definition is here typedef struct _mlan_adapter mlan_adapter, *pmlan_adapter; ^ nxp-mwifiex/mxm_wifiex/wlan_src/mlan/mlan_main.h:2794:18: warning: redefinition of typedef 'pmlan_adapter' is a C11 feature [-Wtypedef-redefinition] } mlan_adapter, *pmlan_adapter; ^ nxp-mwifiex/mxm_wifiex/wlan_src/mlan/mlan_main.h:2249:45: note: previous definition is here typedef struct _mlan_adapter mlan_adapter, *pmlan_adapter; Signed-off-by: Jindong Yue --- mxm_wifiex/wlan_src/mlan/mlan_main.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mxm_wifiex/wlan_src/mlan/mlan_main.h b/mxm_wifiex/wlan_src/mlan/mlan_main.h index 9d0da97..a800e7a 100644 --- a/mxm_wifiex/wlan_src/mlan/mlan_main.h +++ b/mxm_wifiex/wlan_src/mlan/mlan_main.h @@ -2287,7 +2287,7 @@ typedef struct _adapter_operations { } mlan_adapter_operations; /** Adapter data structure for MLAN */ -typedef struct _mlan_adapter { +struct _mlan_adapter { /** MOAL handle structure */ t_void *pmoal_handle; /** BSS Attributes */ @@ -2791,7 +2791,7 @@ typedef struct _mlan_adapter { t_u32 tp_state_on; /** Packet drop point */ t_u32 tp_state_drop_point; -} mlan_adapter, *pmlan_adapter; +}; /** Check if stream 2X2 enabled */ #define IS_STREAM_2X2(x) ((x)&FEATURE_CTRL_STREAM_2X2)