linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Francesco Dolcini <francesco@dolcini.it>
To: Brian Norris <briannorris@chromium.org>,
	Sascha Hauer <s.hauer@pengutronix.de>
Cc: Francesco Dolcini <francesco@dolcini.it>,
	Kalle Valo <kvalo@kernel.org>,
	linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	David Lin <yu-hao.lin@nxp.com>,
	kernel@pengutronix.de, stable@vger.kernel.org
Subject: Re: [PATCH v2 02/12] wifi: mwifiex: fix MAC address handling
Date: Sat, 5 Oct 2024 10:55:18 +0200	[thread overview]
Message-ID: <ZwD-9nV3o2fOpEYb@gaggiata.pivistrello.it> (raw)
In-Reply-To: <ZwB3FCdpL85yA2Si@google.com>

On Fri, Oct 04, 2024 at 04:15:32PM -0700, Brian Norris wrote:
> On Wed, Sep 18, 2024 at 01:10:27PM +0200, Sascha Hauer wrote:
> > Furthermore the driver doesn't use the permanent address to add the
> > bss_num to, but instead the current MAC address increases each time
> > we do a change_virtual_intf.
> > 
> > Fix this by initializing the MAC address once from the permanent MAC
> > address during creation of the virtual interface and never touch it
> > again. This also means that userspace can set a different MAC address
> > which then stays like this forever and is not unexpectedly changed
> > by the driver.
> > 
> > It is not clear how many (if any) MAC addresses after the permanent MAC
> > address are reserved for a device, so set the locally admistered
> > bit for all MAC addresses derived from the permanent address.
> 
> I think I'm generally supportive of the direction this changes things,
> but I'm a bit hesitant about two things:

FTR, I am hesitant for similar reasons. In addition there is my comment
from the previous version on a specific use case potentially broken.

> And I see that you rightly don't know how many addresses are actually
> reserved, but I have an educated guess that it's not just 1. For one,
> this driver used to default-create 3 interfaces:

The MAC addresses on the module are not allocated by the Wi-Fi chip vendor (NXP,
and before Marvell), but by whom is integrating the chip. I can try to ask
a couple of vendors what they are doing on this regard, and if this is somehow
suggested by NXP or they are just doing whatever they believe is right. Just to
add a couple of more data points to this discussion.

Francesco


  reply	other threads:[~2024-10-05  8:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-18 11:10 [PATCH v2 00/12] mwifiex: two fixes and cleanup Sascha Hauer
2024-09-18 11:10 ` [PATCH v2 01/12] wifi: mwifiex: add missing locking Sascha Hauer
2024-10-04 22:56   ` Brian Norris
2024-10-17 16:45   ` [v2,01/12] wifi: mwifiex: add missing locking for cfg80211 calls Kalle Valo
2024-09-18 11:10 ` [PATCH v2 02/12] wifi: mwifiex: fix MAC address handling Sascha Hauer
2024-10-04 23:15   ` Brian Norris
2024-10-05  8:55     ` Francesco Dolcini [this message]
2024-11-13 14:44     ` Sascha Hauer
2024-09-18 11:10 ` [PATCH v2 03/12] wifi: mwifiex: deduplicate code in mwifiex_cmd_tx_rate_cfg() Sascha Hauer
2024-09-18 11:10 ` [PATCH v2 04/12] wifi: mwifiex: use adapter as context pointer for mwifiex_hs_activated_event() Sascha Hauer
2024-09-18 11:10 ` [PATCH v2 05/12] wifi: mwifiex: drop unnecessary initialization Sascha Hauer
2024-09-18 11:10 ` [PATCH v2 06/12] wifi: mwifiex: make region_code_mapping_t const Sascha Hauer
2024-09-18 11:10 ` [PATCH v2 07/12] wifi: mwifiex: pass adapter to mwifiex_dnld_cmd_to_fw() Sascha Hauer
2024-09-18 11:10 ` [PATCH v2 08/12] wifi: mwifiex: simplify mwifiex_setup_ht_caps() Sascha Hauer
2024-09-18 11:10 ` [PATCH v2 09/12] wifi: mwifiex: fix indention Sascha Hauer
2024-09-18 11:10 ` [PATCH v2 10/12] wifi: mwifiex: make locally used function static Sascha Hauer
2024-09-18 11:10 ` [PATCH v2 11/12] wifi: mwifiex: move common settings out of switch/case Sascha Hauer
2024-09-18 11:10 ` [PATCH v2 12/12] wifi: mwifiex: drop asynchronous init waiting code Sascha Hauer

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=ZwD-9nV3o2fOpEYb@gaggiata.pivistrello.it \
    --to=francesco@dolcini.it \
    --cc=briannorris@chromium.org \
    --cc=kernel@pengutronix.de \
    --cc=kvalo@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=stable@vger.kernel.org \
    --cc=yu-hao.lin@nxp.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).