linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Lamparter <chunkeey@googlemail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: David Miller <davem@davemloft.net>,
	linville@tuxdriver.com, linux-wireless@vger.kernel.org
Subject: Re: pull request: wireless-next-2.6 2010-09-21
Date: Wed, 22 Sep 2010 12:27:48 +0200	[thread overview]
Message-ID: <201009221227.48500.chunkeey@googlemail.com> (raw)
In-Reply-To: <1285149677.3684.12.camel@jlt3.sipsolutions.net>

On Wednesday 22 September 2010 12:01:17 Johannes Berg wrote:
> On Wed, 2010-09-22 at 11:58 +0200, Christian Lamparter wrote:
> > On Wednesday 22 September 2010 03:36:14 David Miller wrote:
> > > From: "John W. Linville" <linville@tuxdriver.com>
> > > Date: Tue, 21 Sep 2010 16:17:05 -0400
> > > 
> > > Pulled, but I suspect the 'packed' attribute usage is wrong in
> > > ath/carl9170 and can just be deleted.
> > 
> > which __packed do you think can be removed?
> 
> Well, there are bitfields in packed structs, which is either completely
> wrong (think endianness ... never use them to interface with something
> outside your own CPU), or needn't be packed.

ah,

the header files (eeprom.h, wlan.h, hw.h, version.h, phy.h, fwcmd.h, fwdesc.h)
are shared with the firmware, firmware tools and the userspace testbench.

The structs in question are all #ifdef __CARL9170FW__,
they are exclusively used by the firmware to make things
look nice:

e.g.:
super->f.hdr.mac = ((super->s.ri[super->s.rix] & CARL9170_TX_SUPER_RI_ERP_PROT) >>
	CARL9170_TX_SUPER_RI_ERP_PROT_S) << AR9170_TX_MAC_PROT_S;

super->f.hdr.mac = ((super->s.ri[super->s.rix] & CARL9170_TX_SUPER_RI_AMPDU) ?
	AR9170_TX_MAC_AGGR : 0;

becomes:
super->f.hdr.mac.erp_prot = super->s.ri[super->s.rix].erp_prot;
super->f.hdr.mac.ampdu = super->s.ri[super->s.rix].ampdu;  

  reply	other threads:[~2010-09-22 10:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-21 20:17 pull request: wireless-next-2.6 2010-09-21 John W. Linville
2010-09-22  1:36 ` David Miller
2010-09-22  9:58   ` Christian Lamparter
2010-09-22 10:01     ` Johannes Berg
2010-09-22 10:27       ` Christian Lamparter [this message]
2010-09-22 10:34         ` Johannes Berg
2010-09-22 11:09           ` Christian Lamparter
2010-09-22 16:22     ` David Miller
2010-09-22 18:54       ` Christian Lamparter
2010-09-22 19:19         ` David Miller
2010-09-22 20:46           ` Christian Lamparter
2010-09-22 20:57             ` David Miller

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=201009221227.48500.chunkeey@googlemail.com \
    --to=chunkeey@googlemail.com \
    --cc=davem@davemloft.net \
    --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).