From: Michael Buesch <mb@bu3sch.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "Björn Smedman" <bjorn.smedman@venatech.se>,
linville@tuxdriver.com, linux-wireless@vger.kernel.org,
"Jouni Malinen" <j@w1.fi>, "Joerg Pommnitz" <pommnitz@yahoo.com>,
"Will Dyson" <will.dyson@gmail.com>
Subject: Re: [PATCH] mac80211: fix for incorrect sequence number on hostapd injected frames
Date: Mon, 26 Oct 2009 13:18:50 +0100 [thread overview]
Message-ID: <200910261318.52570.mb@bu3sch.de> (raw)
In-Reply-To: <1256497156.28230.0.camel@johannes.local>
On Sunday 25 October 2009 19:59:16 Johannes Berg wrote:
> On Sat, 2009-10-24 at 20:55 +0200, Björn Smedman wrote:
> > When hostapd injects a frame, e.g. an authentication or association
> > response, mac80211 looks for a suitable access point virtual interface
> > to associate the frame with based on its source address. This makes it
> > possible e.g. to correctly assign sequence numbers to the frames.
> >
> > A small typo in the ethernet address comparison statement caused a
> > failure to find a suitable ap interface. Sequence numbers on such
> > frames where therefore left unassigned causing some clients
> > (especially windows-based 11b/g clients) to reject them and fail to
> > authenticate or associate with the access point. This patch fixes the
> > typo in the address comparison statement.
> >
> > Signed-off-by: Björn Smedman <bjorn.smedman@venatech.se>
>
> Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
>
> and Cc: stable@kernel.org I think
>
> > ---
> > diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
> > index db4bda6..eaa4118 100644
> > --- a/net/mac80211/tx.c
> > +++ b/net/mac80211/tx.c
> > @@ -1445,7 +1445,7 @@ static void ieee80211_xmit(struct
> > ieee80211_sub_if_data *sdata,
> > if (tmp_sdata->vif.type != NL80211_IFTYPE_AP)
> > continue;
> > if (compare_ether_addr(tmp_sdata->dev->dev_addr,
> > - hdr->addr2)) {
> > + hdr->addr2) == 0) {
> > dev_hold(tmp_sdata->dev);
> > dev_put(sdata->dev);
> > sdata = tmp_sdata;
> >
>
>
The following patch cleanly applies to 2.6.31.5-stable and is tested.
Index: linux-2.6.31/net/mac80211/tx.c
===================================================================
--- linux-2.6.31.orig/net/mac80211/tx.c 2009-10-26 09:15:20.000000000 +0100
+++ linux-2.6.31/net/mac80211/tx.c 2009-10-26 09:16:35.000000000 +0100
@@ -1478,7 +1478,7 @@
if (sdata->vif.type != NL80211_IFTYPE_AP)
continue;
if (compare_ether_addr(sdata->dev->dev_addr,
- hdr->addr2)) {
+ hdr->addr2) == 0) {
dev_hold(sdata->dev);
dev_put(odev);
osdata = sdata;
--
Greetings, Michael.
next prev parent reply other threads:[~2009-10-26 12:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-24 18:55 [PATCH] mac80211: fix for incorrect sequence number on hostapd injected frames Björn Smedman
2009-10-25 18:59 ` Johannes Berg
2009-10-26 12:18 ` Michael Buesch [this message]
2009-10-27 11:09 ` AW: " Joerg Pommnitz
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=200910261318.52570.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=bjorn.smedman@venatech.se \
--cc=j@w1.fi \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=pommnitz@yahoo.com \
--cc=will.dyson@gmail.com \
/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).