From: Pavel Machek Subject: Re: [PATCH v2 04/16] wl1251: implement hardware ARP filtering Date: Tue, 10 Dec 2013 10:29:16 +0100 Message-ID: <20131210092916.GD22756@amd.pavel.ucw.cz> References: <1382819655-30430-1-git-send-email-pali.rohar@gmail.com> <1386494714-21070-1-git-send-email-pali.rohar@gmail.com> <1386494714-21070-5-git-send-email-pali.rohar@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Luciano Coelho , "John W. Linville" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, freemangordon@abv.bg, aaro.koskinen@iki.fi, sre@ring0.de, joni.lapilainen@gmail.com, Johannes Berg , Felipe Contreras , David Gnedt To: Pali =?iso-8859-1?Q?Roh=E1r?= Return-path: Content-Disposition: inline In-Reply-To: <1386494714-21070-5-git-send-email-pali.rohar@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Hi! > Update hardware ARP filter configuration on BSS_CHANGED_ARP_FILTER > notification from mac80211. > Ported from wl1271 driver. >=20 > Signed-off-by: David Gnedt > Signed-off-by: Pali Roh=E1r > --- > drivers/net/wireless/ti/wl1251/acx.c | 26 +++++++++++++++++++++++= +++ > drivers/net/wireless/ti/wl1251/acx.h | 15 +++++++++++++++ > drivers/net/wireless/ti/wl1251/main.c | 12 ++++++++++++ > 3 files changed, 53 insertions(+) >=20 > diff --git a/drivers/net/wireless/ti/wl1251/acx.c b/drivers/net/wirel= ess/ti/wl1251/acx.c > index cce50e2..5f4a552 100644 > --- a/drivers/net/wireless/ti/wl1251/acx.c > +++ b/drivers/net/wireless/ti/wl1251/acx.c > @@ -1062,6 +1062,32 @@ out: > return ret; > } > =20 > +int wl1251_acx_arp_ip_filter(struct wl1251 *wl, bool enable, __be32 = address) > +{ > + struct wl1251_acx_arp_filter *acx; > + int ret; Is it good idea to use be32 for IP address? AFAICT IPv4 addresses really don't have edianity. Perhaps u32 is better? > + if (enable) > + memcpy(acx->address, &address, ACX_IPV4_ADDR_SIZE); acx->address is an array of u8, so no endianity there, either. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses= /blog.html