HomeFreeBSD

LinuxKPI: 802.11: defer workq allocation until we have a name

Description

LinuxKPI: 802.11: defer workq allocation until we have a name

Turned out all the workq's taskqueues were named "wlanNA" if you had
more then one card in a machine as by the time we called wiphy_name()
the device name was not set yet and we returned the fallback.

Move the alloc_ordered_workqueue() from linuxkpi_ieee80211_alloc_hw()
to linuxkpi_ieee80211_ifattach() at which time the device name has
to be set to give us a unique name.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 652e22d39562ec396d12860313677599becbc749)

Details

Provenance
bzAuthored on Feb 16 2022, 3:20 AM
Parents
rG8bc13d98db68: LinuxKPI: 802.11 assign an(y) early chandef
Branches
Unknown
Tags
Unknown