All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jes Sorensen <Jes.Sorensen@redhat.com>
To: Michael Braun <michael-dev@fami-braun.de>
Cc: johannes@sipsolutions.net, kvalo@codeaurora.org,
	akarwar@marvell.com, nishants@marvell.com,
	Larry.Finger@lwfinger.net, linux-wireless@vger.kernel.org,
	projekt-wlan@fem.tu-ilmenau.de
Subject: Re: [PATCHv3] wireless: check A-MSDU inner frame source address on AP interfaces
Date: Wed, 28 Sep 2016 11:19:16 -0400	[thread overview]
Message-ID: <wrfja8esdpcb.fsf@redhat.com> (raw)
In-Reply-To: <1475075672-30549-1-git-send-email-michael-dev@fami-braun.de> (Michael Braun's message of "Wed, 28 Sep 2016 17:14:32 +0200")

Michael Braun <michael-dev@fami-braun.de> writes:
> When using WPA security, the station and thus the required key is
> identified by its mac address when packets are received. So a
> station usually cannot spoof its source mac address.
>
> But when a station sends an A-MSDU frame, port control and crypto
> is done using the outer mac address, while the packets delivered
> and forwarded use the inner mac address.
>
> IEEE 802.11-2012 mandates that the outer source mac address should
> match the inner source address (section 8.3.2.2). For the
> destination mac address, matching is not required (section 10.23.15).
>
> Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
> ---
>  drivers/net/wireless/intel/iwlwifi/mvm/d3.c        |  3 ++-
>  .../net/wireless/marvell/mwifiex/11n_rxreorder.c   | 18 +++++++-------
>  drivers/staging/rtl8723au/core/rtw_recv.c          |  2 +-
>  include/net/cfg80211.h                             |  9 +++----
>  net/mac80211/rx.c                                  | 11 +++++++--
>  net/wireless/util.c                                | 28 +++++++++-------------
>  6 files changed, 38 insertions(+), 33 deletions(-)

I understand the intentions of this patch are all good, but you need to
not post patches that include both staging and mainline drivers at the
same time. In general make it a patchset and do one patch per driver.

Ideally split up changes to generic code into their own patches too.

Last drivers/staging/rtl8723au is gone - so your patch is going to fail
to apply anyway.

Jes

  reply	other threads:[~2016-09-28 15:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28 15:14 [PATCHv3] wireless: check A-MSDU inner frame source address on AP interfaces Michael Braun
2016-09-28 15:19 ` Jes Sorensen [this message]
2016-09-28 15:32   ` Johannes Berg
2016-09-28 15:39     ` Jes Sorensen
2016-09-28 15:42       ` Johannes Berg
2016-09-28 17:22         ` Jes Sorensen
2016-09-28 22:10           ` Johannes Berg
2016-09-30 10:01 ` Johannes Berg
2016-10-03 10:44   ` Michael Braun
2016-10-04  8:29     ` Johannes Berg
2016-10-04  8:36       ` Johannes Berg
2016-10-04 21:12         ` M. Braun
2016-10-05  8:14           ` Johannes Berg
2016-10-04 21:57         ` M. Braun
2016-10-05  4:17           ` M. Braun

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=wrfja8esdpcb.fsf@redhat.com \
    --to=jes.sorensen@redhat.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=akarwar@marvell.com \
    --cc=johannes@sipsolutions.net \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=michael-dev@fami-braun.de \
    --cc=nishants@marvell.com \
    --cc=projekt-wlan@fem.tu-ilmenau.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.