From: Johannes Berg <johannes@sipsolutions.net>
To: Marek Lindner <lindner_marek@yahoo.de>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: don't allow zero mac bssid to be configured
Date: Fri, 16 Sep 2011 13:41:41 +0200 [thread overview]
Message-ID: <1316173301.4130.12.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <201109161327.50915.lindner_marek@yahoo.de>
On Fri, 2011-09-16 at 13:27 +0200, Marek Lindner wrote:
> > Right. So that means you shouldn't be rejecting the configuration when
> > actually using it. You should be rejecting it when it's actually set.
>
> I'd like to remind you that it was not me who designed the original check (my
> patch does not add anything new). If you are looking for somebody to beautify
> your code you'll have to look somewhere else.
If you're looking to fix a problem, I told you how to fix it.
If you're just reporting a bug along with "this is what I think the fix
might be" then maybe you shouldn't take rejection of the proposal so
badly.
I was, maybe erroneously, assuming that you wanted to fix the issue.
> As I said: Feel free to propose an alternative patch. I certainly won't.
Fair enough. I take it you're just reporting a bug then.
> > Also, this patch is wrong -- at that point, checking for zero address serves
> > a difference purpose I think, it means more something along the lines of
> > "did we previously find an IBSS".
>
> Can't agree here. This check was conceived to hinder a fixed-bssid
> configuration of 00:00:00:00:00:00.
You just said that you didn't originally design it so how do you know
the design intent? :-)
FWIW, I think the check there pre-dates the current cfg80211/mac80211
design. The current assumption in mac80211 clearly is that ifibss->bssid
is *always* valid since it's set to a random address when asked to join.
Hence the only way it can be invalid is the bug case you reported (join
fixed zeroes BSSID).
Anyway. The right fix remains in cfg80211, and the is_zero_ether_addr()
check in mac80211 can be deleted as it is completely pointless since
it'll never be false.
johannes
next prev parent reply other threads:[~2011-09-16 11:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-15 16:07 [PATCH] mac80211: don't allow zero mac bssid to be configured Marek Lindner
2011-09-15 16:21 ` Johannes Berg
2011-09-16 3:14 ` Marek Lindner
2011-09-16 6:19 ` Johannes Berg
2011-09-16 11:27 ` Marek Lindner
2011-09-16 11:41 ` Johannes Berg [this message]
2011-09-16 11:49 ` Johannes Berg
2011-09-16 12:12 ` Marek Lindner
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=1316173301.4130.12.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=lindner_marek@yahoo.de \
--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).