From: Zhu Yi <yi.zhu@intel.com>
To: Michael Wu <flamingice@sourmilk.net>
Cc: netdev@vger.kernel.org, Jiri Benc <jbenc@suse.cz>,
John Linville <linville@tuxdriver.com>
Subject: Re: [PATCH 1/6] d80211: add IEEE802.11e/WMM MLMEs, Status Code and Reason Code
Date: Thu, 14 Dec 2006 13:24:21 +0800 [thread overview]
Message-ID: <1166073861.2929.67.camel@debian.sh.intel.com> (raw)
In-Reply-To: <200612132338.24077.flamingice@sourmilk.net>
On Wed, 2006-12-13 at 23:38 -0500, Michael Wu wrote:
> On Wednesday 13 December 2006 23:02, Zhu Yi wrote:
> > Signed-off-by: Zhu Yi <yi.zhu@intel.com>
> >
> You should probably have more in the description..
>
> > ---
> >
> > include/net/d80211_mgmt.h | 148
> > +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 148
> > insertions(+), 0 deletions(-)
> >
> d80211_mgmt.h was recently merged into include/linux/ieee80211.h.
>
> > d83f6236e756f5f0bb1484d991884444f06704de
> > diff --git a/include/net/d80211_mgmt.h b/include/net/d80211_mgmt.h
> > index 87141d4..450c0a2 100644
> > --- a/include/net/d80211_mgmt.h
> > +++ b/include/net/d80211_mgmt.h
> > @@ -14,6 +14,39 @@
> >
> > #include <linux/types.h>
> >
> > +struct ieee802_11_ts_info {
> > + __le16 traffic_type:1;
> > + __le16 tsid:4;
> > + __le16 direction:2;
> > + __le16 access_policy:2;
> > + __le16 aggregation:1;
> > + __le16 apsd:1;
> > + __le16 up:3;
> > + __le16 ack_policy:2;
> > + u8 schedule:1;
> > + u8 reserved:7;
> > +} __attribute__ ((packed));
> > +
> Mind eliminating the bitfields?
Yeah, I thought of it. But if it is defined something like below
struct ieee802_11_ts_info {
short field;
byte another_field;
} ts_info;
Then,
up = (ts_info.field1 & 0x3800) >> 11;
schedule = (ts_info.another_field & 0x01);
So if I want to use "schedule", I need to know more details (i.e. which
field it belongs to). Are these efficient?
Thanks,
-yi
next prev parent reply other threads:[~2006-12-14 5:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-14 4:02 [PATCH 1/6] d80211: add IEEE802.11e/WMM MLMEs, Status Code and Reason Code Zhu Yi
2006-12-14 4:38 ` Michael Wu
2006-12-14 5:24 ` Zhu Yi [this message]
2006-12-14 10:27 ` Jiri Benc
2006-12-15 3:18 ` Zhu Yi
2006-12-15 5:49 ` Simon Barber
2006-12-18 9:19 ` Zhu Yi
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=1166073861.2929.67.camel@debian.sh.intel.com \
--to=yi.zhu@intel.com \
--cc=flamingice@sourmilk.net \
--cc=jbenc@suse.cz \
--cc=linville@tuxdriver.com \
--cc=netdev@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).