From: Johannes Berg <johannes@sipsolutions.net>
To: Michael Braun <michael-dev@fami-braun.de>
Cc: linux-wireless@vger.kernel.org, projekt-wlan@fem.tu-ilmenau.de,
Felix Fietkau <nbd@openwrt.org>
Subject: Re: [PATCH v2] mac80211: fix A-MSDU outer SA/DA
Date: Wed, 12 Oct 2016 14:25:21 +0200 [thread overview]
Message-ID: <1476275121.5271.28.camel@sipsolutions.net> (raw)
In-Reply-To: <1476269870-32007-1-git-send-email-michael-dev@fami-braun.de>
On Wed, 2016-10-12 at 12:57 +0200, Michael Braun wrote:
> According to IEEE 802.11-2012 section 8.3.2 table 8-19, the outer
> SA/DA of A-MSDU frames need to be changed depending on FromDS/ToDS
> values.
actually ...
> struct ieee80211_hdr *hdr;
802.11 header
> - struct ethhdr amsdu_hdr;
> + struct ethhdr *amsdu_hdr;
> int hdr_len = fast_tx->hdr_len - sizeof(rfc1042_header);
802.11 header length
> + data = skb_push(skb, sizeof(*amsdu_hdr));
push ethernet header in
> + memmove(data, data + sizeof(*amsdu_hdr), hdr_len);
move 802.11 header from back to front
> + hdr = data;
hdr is at the beginning of the frame
> + amsdu_hdr = data + hdr_len;
amsdu_hdr is actually the *inner* header after all.
So, I actually think my first instinct that you were erroneously
changing the inner header *was* right.
Seems like this code should be inserted towards the end of
ieee80211_amsdu_aggregate() instead, where it's adding the RFC 1042
header?
Need Felix to take a look, I guess.
johannes
next prev parent reply other threads:[~2016-10-12 12:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-12 10:57 [PATCH v2] mac80211: fix A-MSDU outer SA/DA Michael Braun
2016-10-12 12:25 ` Johannes Berg [this message]
2016-10-12 16:31 ` michael-dev
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=1476275121.5271.28.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=michael-dev@fami-braun.de \
--cc=nbd@openwrt.org \
--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