Commit 40d96e1d authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: remove typedef from tstrConnectRespInfo

This patch removes typedef from the struct tstrConnectRespInfo and
renames it to connect_resp_info.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5f79c2ae
...@@ -354,14 +354,14 @@ s32 wilc_parse_network_info(u8 *msg_buffer, tstrNetworkInfo **ret_network_info) ...@@ -354,14 +354,14 @@ s32 wilc_parse_network_info(u8 *msg_buffer, tstrNetworkInfo **ret_network_info)
} }
s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len, s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len,
tstrConnectRespInfo **ret_connect_resp_info) struct connect_resp_info **ret_connect_resp_info)
{ {
tstrConnectRespInfo *connect_resp_info = NULL; struct connect_resp_info *connect_resp_info = NULL;
u16 assoc_resp_len = 0; u16 assoc_resp_len = 0;
u8 *ies = NULL; u8 *ies = NULL;
u16 ies_len = 0; u16 ies_len = 0;
connect_resp_info = kzalloc(sizeof(tstrConnectRespInfo), GFP_KERNEL); connect_resp_info = kzalloc(sizeof(*connect_resp_info), GFP_KERNEL);
if (!connect_resp_info) if (!connect_resp_info)
return -ENOMEM; return -ENOMEM;
......
...@@ -97,13 +97,13 @@ typedef struct { ...@@ -97,13 +97,13 @@ typedef struct {
u64 u64Tsf; u64 u64Tsf;
} tstrNetworkInfo; } tstrNetworkInfo;
typedef struct { struct connect_resp_info {
u16 u16capability; u16 u16capability;
u16 u16ConnectStatus; u16 u16ConnectStatus;
u16 u16AssocID; u16 u16AssocID;
u8 *pu8RespIEs; u8 *pu8RespIEs;
u16 u16RespIEsLen; u16 u16RespIEsLen;
} tstrConnectRespInfo; };
typedef struct { typedef struct {
u8 au8bssid[6]; u8 au8bssid[6];
...@@ -122,7 +122,7 @@ typedef struct { ...@@ -122,7 +122,7 @@ typedef struct {
s32 wilc_parse_network_info(u8 *msg_buffer, tstrNetworkInfo **ret_network_info); s32 wilc_parse_network_info(u8 *msg_buffer, tstrNetworkInfo **ret_network_info);
s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len, s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len,
tstrConnectRespInfo **ret_connect_resp_info); struct connect_resp_info **ret_connect_resp_info);
void wilc_scan_complete_received(struct wilc *wilc, u8 *pu8Buffer, void wilc_scan_complete_received(struct wilc *wilc, u8 *pu8Buffer,
u32 u32Length); u32 u32Length);
void wilc_network_info_received(struct wilc *wilc, u8 *pu8Buffer, void wilc_network_info_received(struct wilc *wilc, u8 *pu8Buffer,
......
...@@ -1471,7 +1471,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, ...@@ -1471,7 +1471,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
u8MacStatusAdditionalInfo = pstrRcvdGnrlAsyncInfo->buffer[9]; u8MacStatusAdditionalInfo = pstrRcvdGnrlAsyncInfo->buffer[9];
if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP) { if (hif_drv->hif_state == HOST_IF_WAITING_CONN_RESP) {
u32 u32RcvdAssocRespInfoLen = 0; u32 u32RcvdAssocRespInfoLen = 0;
tstrConnectRespInfo *pstrConnectRespInfo = NULL; struct connect_resp_info *pstrConnectRespInfo = NULL;
memset(&strConnectInfo, 0, sizeof(tstrConnectInfo)); memset(&strConnectInfo, 0, sizeof(tstrConnectInfo));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment