public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Fabio Aiuto <fabioaiuto83@gmail.com>
Cc: hdegoede@redhat.com, linux-staging@lists.linux.dev
Subject: Re: [bug report] staging: Add rtl8723bs sdio wifi driver
Date: Mon, 11 Oct 2021 15:50:46 +0300	[thread overview]
Message-ID: <20211011125046.GC8429@kadam> (raw)
In-Reply-To: <YWLEQcxMY3sX1soJ@agape.jhs>

On Sun, Oct 10, 2021 at 12:45:21PM +0200, Fabio Aiuto wrote:
> >     1406                 /* BIP packet number should bigger than previous BIP packet */
> >     1407                 if (temp_ipn <= pmlmeext->mgnt_80211w_IPN_rx)
> >     1408                         goto BIP_exit;
> >     1409 
> >     1410                 /* copy key index */
> >     1411                 memcpy(&le_tmp, p+2, 2);
> > 
> > But this part seems totally wrong again because we haven't incremented
> > p.  p + 10?
> 
> I don't know what you mean. I guess that you are adressing the code above
> (lines 1406-1411).
> 
> Anyway I think the code it's right. MMIE layout is:
> 
> 	1 byte element_id;
> 	1 byte length;
> 	2 byte key_id;
> 	6 byte IPN;
> 	8 byte MIC;
> 
> so to access key_id I have to increment p by 2.
> 

Oh, yes.  You're right.  I think I got confused because we are not
parsing the MMIE layout in order.  1, 2, 3 4.  It goes 4 then 2.

regards,
dan carpenter


      reply	other threads:[~2021-10-11 12:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-05  9:06 [bug report] staging: Add rtl8723bs sdio wifi driver Dan Carpenter
2021-10-10 10:45 ` Fabio Aiuto
2021-10-11 12:50   ` Dan Carpenter [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=20211011125046.GC8429@kadam \
    --to=dan.carpenter@oracle.com \
    --cc=fabioaiuto83@gmail.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-staging@lists.linux.dev \
    /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