linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "John W. Linville" <linville@tuxdriver.com>
To: Bing Zhao <bzhao@marvell.com>
Cc: Tobias Waldekranz <tobias@waldekranz.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] mwifiex: add missing endian conversions
Date: Mon, 26 Aug 2013 15:56:55 -0400	[thread overview]
Message-ID: <20130826195655.GD1923@tuxdriver.com> (raw)
In-Reply-To: <477F20668A386D41ADCC57781B1F70430EAF1FEDA3@SC-VEXCH1.marvell.com>

On Mon, Aug 26, 2013 at 12:27:06PM -0700, Bing Zhao wrote:
> Hi Tobias,
> 
> > Fixes multiple locations where a little endian host is assumed during
> > ser/des of messages sent to/received from the chip.
> 
> Thanks for your patch.
> It doesn't apply to wireless or wireless-next trees.
> 
> Which git tree are you using?

I got it to apply with a little trying.

> > 
> > Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
> > ---
> >  drivers/net/wireless/mwifiex/11n_aggr.c    | 2 +-
> >  drivers/net/wireless/mwifiex/main.h        | 2 +-
> >  drivers/net/wireless/mwifiex/sdio.c        | 6 +++---
> >  drivers/net/wireless/mwifiex/sta_cmdresp.c | 2 +-
> >  4 files changed, 6 insertions(+), 6 deletions(-)
> > 
> > diff --git a/drivers/net/wireless/mwifiex/11n_aggr.c b/drivers/net/wireless/mwifiex/11n_aggr.c
> > index a78e065..b53c73c 100644
> > --- a/drivers/net/wireless/mwifiex/11n_aggr.c
> > +++ b/drivers/net/wireless/mwifiex/11n_aggr.c
> > @@ -69,7 +69,7 @@ mwifiex_11n_form_amsdu_pkt(struct sk_buff *skb_aggr,
> >  	memcpy(&tx_header->eth803_hdr, skb_src->data, dt_offset);
> > 
> >  	/* Copy SNAP header */
> > -	snap.snap_type = *(u16 *) ((u8 *)skb_src->data + dt_offset);
> > +	snap.snap_type = le16_to_cpu(*(__le16 *) ((u8 *)skb_src->data + dt_offset));
> 
> This line exceeds 80 characters. Please break it to two lines.

Please submit a new patch to fix this.

-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

      parent reply	other threads:[~2013-08-26 20:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-26  7:18 [PATCH] mwifiex: add missing endian conversions Tobias Waldekranz
2013-08-26 19:27 ` Bing Zhao
2013-08-26 19:49   ` Bing Zhao
2013-08-27  5:52     ` Tobias Waldekranz
2013-08-26 19:56   ` John W. Linville [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=20130826195655.GD1923@tuxdriver.com \
    --to=linville@tuxdriver.com \
    --cc=bzhao@marvell.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=tobias@waldekranz.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).