diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2010-07-08 10:50:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-08 16:35:51 -0400 |
commit | ca52a5ebbb7caff2995214a6ca41a36c5210b0bd (patch) | |
tree | c48e2df660fe2bcf187dc6d818c406ce1221ab2a /drivers/net/wireless/wl12xx/wl1271_acx.c | |
parent | e6b190ff3c2f4e4859502c41fa17b5c595e82000 (diff) |
wl1271: Update hardware ARP filtering configuration handling
The interface for hardware ARP configuration changed in the mac80211. Change
driver accordingly.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_acx.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_acx.c | 10 |
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 | ||
1078 | int wl1271_acx_arp_ip_filter(struct wl1271 *wl, u8 mode, u8 *address) | 1078 | int 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)); |