From: Johannes Berg <johannes@sipsolutions.net>
To: Michael Braun <michael-dev@fami-braun.de>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
projekt-wlan@fem.tu-ilmenau.de
Subject: Re: [konusllaptop] [PATCH 1/1] Fix WPA with VLAN on AP side with ps client
Date: Tue, 12 Feb 2013 16:59:14 +0100 [thread overview]
Message-ID: <1360684754.29913.2.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <1360684532.29913.1.camel@jlt4.sipsolutions.net> (sfid-20130212_165543_919575_FBCCF880)
On Tue, 2013-02-12 at 16:55 +0100, Johannes Berg wrote:
> On Tue, 2013-02-12 at 16:43 +0100, Michael Braun wrote:
> > When sending a broadcast while at least on of the connected stations is
> > sleeping, it gets queued and send after a DTIM beacon is sent.
> > If the packet was to be sent on a vlan interface, the vif used for dequeing
> > from the per-bss queue does not hold the per-vlan sdata. The correct sdata is
> > required to use the correct per-vlan broadcast/multicast key.
> >
> > This patch fixes this by restoring the per-vlan sdata using the skb->dev entry.
> > ---
> > net/mac80211/tx.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
> > index 2ef0e19..93681f5 100644
> > --- a/net/mac80211/tx.c
> > +++ b/net/mac80211/tx.c
> > @@ -2770,7 +2770,8 @@ ieee80211_get_buffered_bc(struct ieee80211_hw *hw,
> > cpu_to_le16(IEEE80211_FCTL_MOREDATA);
> > }
> >
> > - if (!ieee80211_tx_prepare(sdata, &tx, skb))
> > + struct ieee80211_sub_if_data *frame_sdata = IEEE80211_DEV_TO_SUB_IF(skb->dev);
> > + if (!ieee80211_tx_prepare(frame_sdata, &tx, skb))
>
> Please make your code warning-free and adhere to CodingStyle.
Also please provide a proper patch subject (i.e. "mac80211: fix ...")
johannes
prev parent reply other threads:[~2013-02-12 15:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 15:43 [konusllaptop] [PATCH 0/1] Fix VLAN support on AP with ps-sta Michael Braun
2013-02-12 15:43 ` [konusllaptop] [PATCH 1/1] Fix WPA with VLAN on AP side with ps client Michael Braun
2013-02-12 15:55 ` Johannes Berg
2013-02-12 15:59 ` 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=1360684754.29913.2.camel@jlt4.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=michael-dev@fami-braun.de \
--cc=projekt-wlan@fem.tu-ilmenau.de \
/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).