From: Johannes Berg <johannes@sipsolutions.net>
To: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [RFC PATCHv3] mac80211: Add support for hardware ARP query filtering
Date: Thu, 27 May 2010 11:17:34 +0200 [thread overview]
Message-ID: <1274951854.3669.25.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1274951117.5277.3155.camel@wimaxnb.nmp.nokia.com>
On Thu, 2010-05-27 at 12:05 +0300, Juuso Oikarinen wrote:
> > > + /* We are concerned about IP addresses only when associated */
> > > + sdata = IEEE80211_DEV_TO_SUB_IF(ndev);
> > > + mutex_lock(&sdata->u.mgd.mtx);
> > > + ifmgd = &sdata->u.mgd;
> > > + if (ifmgd->associated)
> > > + ieee80211_set_arp_filter(sdata);
> > > + mutex_unlock(&sdata->u.mgd.mtx);
> >
> > I'm sure this will fail in interesting ways since nothing guarantees
> > that this interface is in managed mode.
>
> S***, I need a vacation. This is bound to fail even if the interface is
> in managed mode, as it's not protecting the right thing.
>
> I was already looking at the ifmgd->mtx but somehow managed to
> copy-paste this one :(
Hm? If you bail out on non-managed or something like that, it should be
fine? ifmgd->mtx is the same as sdata->u.mgd.mtx, you just don't need
the ifmgd variable here.
johannes
prev parent reply other threads:[~2010-05-27 9:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-27 6:04 [RFC PATCHv3] mac80211: Add support for hardware ARP query filtering Juuso Oikarinen
2010-05-27 8:24 ` Johannes Berg
2010-05-27 9:05 ` Juuso Oikarinen
2010-05-27 9:17 ` Johannes Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1274951854.3669.25.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=juuso.oikarinen@nokia.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).