aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_acx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_acx.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_acx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_acx.c b/drivers/net/wireless/wl12xx/wl1271_acx.c
index b45ebbcf6c4a..bb245f05af49 100644
--- a/drivers/net/wireless/wl12xx/wl1271_acx.c
+++ b/drivers/net/wireless/wl12xx/wl1271_acx.c
@@ -1075,12 +1075,12 @@ out:
1075 return ret; 1075 return ret;
1076} 1076}
1077 1077
1078int wl1271_acx_arp_ip_filter(struct wl1271 *wl, u8 mode, u8 *address) 1078int wl1271_acx_arp_ip_filter(struct wl1271 *wl, bool enable, __be32 address)
1079{ 1079{
1080 struct wl1271_acx_arp_filter *acx; 1080 struct wl1271_acx_arp_filter *acx;
1081 int ret; 1081 int ret;
1082 1082
1083 wl1271_debug(DEBUG_ACX, "acx arp ip filter, mode: %d", mode); 1083 wl1271_debug(DEBUG_ACX, "acx arp ip filter, enable: %d", enable);
1084 1084
1085 acx = kzalloc(sizeof(*acx), GFP_KERNEL); 1085 acx = kzalloc(sizeof(*acx), GFP_KERNEL);
1086 if (!acx) { 1086 if (!acx) {
@@ -1089,10 +1089,10 @@ int wl1271_acx_arp_ip_filter(struct wl1271 *wl, u8 mode, u8 *address)
1089 } 1089 }
1090 1090
1091 acx->version = ACX_IPV4_VERSION; 1091 acx->version = ACX_IPV4_VERSION;
1092 acx->enable = mode; 1092 acx->enable = enable;
1093 1093
1094 if (mode != ACX_ARP_DISABLE) 1094 if (enable == true)
1095 memcpy(acx->address, address, ACX_IPV4_ADDR_SIZE); 1095 memcpy(acx->address, &address, ACX_IPV4_ADDR_SIZE);
1096 1096
1097 ret = wl1271_cmd_configure(wl, ACX_ARP_IP_FILTER, 1097 ret = wl1271_cmd_configure(wl, ACX_ARP_IP_FILTER,
1098 acx, sizeof(*acx)); 1098 acx, sizeof(*acx));