]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: don't use cfg80211_chandef_create() for default chandef
authorLachlan Hodges <lachlan.hodges@morsemicro.com>
Thu, 12 Mar 2026 04:58:02 +0000 (15:58 +1100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 13 Mar 2026 06:14:26 +0000 (07:14 +0100)
commita6d4291eae0409e63525d3b26f44feae6f6f4659
treebcf9319bf8e5c220f0e1dc4de117e1ff30ab64c0
parent84674b03d8bf3a850f023a98136c27909f0a2b61
wifi: mac80211: don't use cfg80211_chandef_create() for default chandef

cfg80211_chandef_create() is called universally to create the
default chandef during hw registration, however it only really
makes sense to be used for 2GHz, 5GHz, and 6GHz (and by extension
the 'LC' band) as it relies on the channel type which is only
relevant to those specific bands.

To reduce some confusion, create a generic helper for creating the
default chandef that makes sense for all supported bands.

Suggested-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Link: https://patch.msgid.link/20260312045804.362974-2-lachlan.hodges@morsemicro.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c