]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mwifiex: Allocate dev name earlier for interface workqueue name
authorChen-Yu Tsai <wenst@chromium.org>
Wed, 7 Jan 2026 09:27:40 +0000 (17:27 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Jan 2026 12:42:50 +0000 (13:42 +0100)
commit7bab5bdb81e33cd0bc0aa848931ff47940ad54b0
tree5cc8b133c4622ffc81478b39a2f1e2947379e26a
parent4ea5bebe17bad6b1991fa632f2121062066b6dcc
wifi: mwifiex: Allocate dev name earlier for interface workqueue name

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.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://patch.msgid.link/20260107092744.1131314-1-wenst@chromium.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/marvell/mwifiex/cfg80211.c