From: Harvey Harrison <harvey.harrison@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: John Linville <linville@tuxdriver.com>,
linux-wireless <linux-wireless@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH 5/6v2] mac80211: rx.c/tx.c remove more users of tx/rx_data->fc
Date: Tue, 08 Jul 2008 16:13:07 -0700 [thread overview]
Message-ID: <1215558787.476.56.camel@brick> (raw)
In-Reply-To: <1215558277.3670.24.camel@johannes.berg>
On Wed, 2008-07-09 at 01:04 +0200, Johannes Berg wrote:
> On Tue, 2008-07-08 at 15:25 -0700, Harvey Harrison wrote:
> > Those functions that still use ieee80211_get_hdrlen are moved over
> > to use the little endian frame control.
>
> > - switch (fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) {
> > - case IEEE80211_FCTL_TODS:
> > - /* BSSID SA DA */
> > - memcpy(dst, hdr->addr3, ETH_ALEN);
> > - memcpy(src, hdr->addr2, ETH_ALEN);
> > -
> > + switch (hdr->frame_control &
> > + cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) {
> > + case __constant_cpu_to_le16(IEEE80211_FCTL_TODS):
> > if (unlikely(sdata->vif.type != IEEE80211_IF_TYPE_AP &&
> > sdata->vif.type != IEEE80211_IF_TYPE_VLAN))
> > return -1;
> > break;
>
> Looks good, but didn't you just lose all the memcpys?
>
See the three lines immediately before the part you quoted.
Harvey
next prev parent reply other threads:[~2008-07-08 23:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-08 20:47 [PATCH 5/6] mac80211: rx.c/tx.c remove more users of tx/rx_data->fc Harvey Harrison
2008-07-08 21:28 ` Johannes Berg
2008-07-08 21:45 ` Harvey Harrison
2008-07-08 22:06 ` Johannes Berg
2008-07-08 22:25 ` [PATCH 5/6v2] " Harvey Harrison
2008-07-08 23:04 ` Johannes Berg
2008-07-08 23:13 ` Harvey Harrison [this message]
2008-07-09 7:47 ` Johannes Berg
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=1215558787.476.56.camel@brick \
--to=harvey.harrison@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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).