Commit bdb27e64 authored by Tahia Khan's avatar Tahia Khan Committed by Greg Kroah-Hartman

staging: wilc1000: Fixes camel-casing in wilc_network_info_received

Fixes checkpatch warning by renaming pu8Buffer to buffer
and u32Length to length in wilc_network_info_received.
Signed-off-by: default avatarTahia Khan <tahia.khan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dade3c62
...@@ -125,8 +125,7 @@ s32 wilc_parse_network_info(u8 *msg_buffer, ...@@ -125,8 +125,7 @@ s32 wilc_parse_network_info(u8 *msg_buffer,
s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len, s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len,
struct connect_resp_info **ret_connect_resp_info); struct connect_resp_info **ret_connect_resp_info);
void wilc_scan_complete_received(struct wilc *wilc, u8 *buffer, u32 length); void wilc_scan_complete_received(struct wilc *wilc, u8 *buffer, u32 length);
void wilc_network_info_received(struct wilc *wilc, u8 *pu8Buffer, void wilc_network_info_received(struct wilc *wilc, u8 *buffer, u32 length);
u32 u32Length);
void wilc_gnrl_async_info_received(struct wilc *wilc, u8 *pu8Buffer, void wilc_gnrl_async_info_received(struct wilc *wilc, u8 *pu8Buffer,
u32 u32Length); u32 u32Length);
#endif #endif
...@@ -3439,8 +3439,7 @@ int wilc_deinit(struct wilc_vif *vif) ...@@ -3439,8 +3439,7 @@ int wilc_deinit(struct wilc_vif *vif)
return result; return result;
} }
void wilc_network_info_received(struct wilc *wilc, u8 *pu8Buffer, void wilc_network_info_received(struct wilc *wilc, u8 *buffer, u32 length)
u32 u32Length)
{ {
s32 result = 0; s32 result = 0;
struct host_if_msg msg; struct host_if_msg msg;
...@@ -3448,7 +3447,7 @@ void wilc_network_info_received(struct wilc *wilc, u8 *pu8Buffer, ...@@ -3448,7 +3447,7 @@ void wilc_network_info_received(struct wilc *wilc, u8 *pu8Buffer,
struct host_if_drv *hif_drv = NULL; struct host_if_drv *hif_drv = NULL;
struct wilc_vif *vif; struct wilc_vif *vif;
id = ((pu8Buffer[u32Length - 4]) | (pu8Buffer[u32Length - 3] << 8) | (pu8Buffer[u32Length - 2] << 16) | (pu8Buffer[u32Length - 1] << 24)); id = ((buffer[length - 4]) | (buffer[length - 3] << 8) | (buffer[length - 2] << 16) | (buffer[length - 1] << 24));
vif = wilc_get_vif_from_idx(wilc, id); vif = wilc_get_vif_from_idx(wilc, id);
if (!vif) if (!vif)
return; return;
...@@ -3464,9 +3463,9 @@ void wilc_network_info_received(struct wilc *wilc, u8 *pu8Buffer, ...@@ -3464,9 +3463,9 @@ void wilc_network_info_received(struct wilc *wilc, u8 *pu8Buffer,
msg.id = HOST_IF_MSG_RCVD_NTWRK_INFO; msg.id = HOST_IF_MSG_RCVD_NTWRK_INFO;
msg.vif = vif; msg.vif = vif;
msg.body.net_info.len = u32Length; msg.body.net_info.len = length;
msg.body.net_info.buffer = kmalloc(u32Length, GFP_KERNEL); msg.body.net_info.buffer = kmalloc(length, GFP_KERNEL);
memcpy(msg.body.net_info.buffer, pu8Buffer, u32Length); memcpy(msg.body.net_info.buffer, buffer, length);
result = wilc_enqueue_cmd(&msg); result = wilc_enqueue_cmd(&msg);
if (result) if (result)
......
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