Commit 4c7abe19 authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman

staging: wilc1000: rename pstrStaParams in wilc_edit_station

This patch renames pstrStaParams to sta_param to avoid camelcase.
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4208e663
...@@ -4351,7 +4351,7 @@ s32 wilc_del_allstation(struct wilc_vif *vif, u8 pu8MacAddr[][ETH_ALEN]) ...@@ -4351,7 +4351,7 @@ s32 wilc_del_allstation(struct wilc_vif *vif, u8 pu8MacAddr[][ETH_ALEN])
} }
int wilc_edit_station(struct wilc_vif *vif, int wilc_edit_station(struct wilc_vif *vif,
struct add_sta_param *pstrStaParams) struct add_sta_param *sta_param)
{ {
int result = 0; int result = 0;
struct host_if_msg msg; struct host_if_msg msg;
...@@ -4370,14 +4370,14 @@ int wilc_edit_station(struct wilc_vif *vif, ...@@ -4370,14 +4370,14 @@ int wilc_edit_station(struct wilc_vif *vif,
msg.id = HOST_IF_MSG_EDIT_STATION; msg.id = HOST_IF_MSG_EDIT_STATION;
msg.vif = vif; msg.vif = vif;
memcpy(pstrAddStationMsg, pstrStaParams, sizeof(struct add_sta_param)); memcpy(pstrAddStationMsg, sta_param, sizeof(struct add_sta_param));
if (pstrAddStationMsg->rates_len > 0) { if (pstrAddStationMsg->rates_len > 0) {
u8 *rates = kmalloc(pstrAddStationMsg->rates_len, GFP_KERNEL); u8 *rates = kmalloc(pstrAddStationMsg->rates_len, GFP_KERNEL);
if (!rates) if (!rates)
return -ENOMEM; return -ENOMEM;
memcpy(rates, pstrStaParams->rates, memcpy(rates, sta_param->rates,
pstrAddStationMsg->rates_len); pstrAddStationMsg->rates_len);
pstrAddStationMsg->rates = rates; pstrAddStationMsg->rates = rates;
} }
......
...@@ -350,7 +350,7 @@ int wilc_add_station(struct wilc_vif *vif, struct add_sta_param *sta_param); ...@@ -350,7 +350,7 @@ int wilc_add_station(struct wilc_vif *vif, struct add_sta_param *sta_param);
s32 wilc_del_allstation(struct wilc_vif *vif, u8 pu8MacAddr[][ETH_ALEN]); s32 wilc_del_allstation(struct wilc_vif *vif, u8 pu8MacAddr[][ETH_ALEN]);
int wilc_del_station(struct wilc_vif *vif, const u8 *mac_addr); int wilc_del_station(struct wilc_vif *vif, const u8 *mac_addr);
int wilc_edit_station(struct wilc_vif *vif, int wilc_edit_station(struct wilc_vif *vif,
struct add_sta_param *pstrStaParams); struct add_sta_param *sta_param);
int wilc_set_power_mgmt(struct wilc_vif *vif, bool enabled, u32 timeout); int wilc_set_power_mgmt(struct wilc_vif *vif, bool enabled, u32 timeout);
int wilc_setup_multicast_filter(struct wilc_vif *vif, bool enabled, int wilc_setup_multicast_filter(struct wilc_vif *vif, bool enabled,
u32 count); u32 count);
......
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