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 <jindong.yue@nxp.com>
This commit is contained in:
Jindong Yue 2022-04-14 16:22:20 +08:00
parent a8ad85af5b
commit 58e49e28b1

View file

@ -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)