Re: [PATCH] wifi: mwifiex: Allocate dev name earlier for interface workqueue name

From: Francesco Dolcini

Date: Wed Jan 07 2026 - 09:59:47 EST


On Wed, Jan 07, 2026 at 05:27:40PM +0800, Chen-Yu Tsai wrote:
> The interface specific workqueues are allocated with the interface name
> as part of the workqueue name. However when they are allocated, the
> interface name has not been allocated, thus the "name" is actually the
> pattern for the name "mlan%d". This ends up pretty ugly and could
> conflict if multiple interfaces were added.
>
> Allocate the device name earlier and use that to allocate the
> workqueues. Also tweak the workqueue name patterns to add a separator
> between the prefix and the interface name parts for readability.

Is there any impact on this approach when/if the interface is renamed from
userspace?

Francesco