]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mac80211: correctly initialise S1G chandef for STA
authorLachlan Hodges <lachlan.hodges@morsemicro.com>
Thu, 18 Sep 2025 05:19:12 +0000 (15:19 +1000)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 19 Sep 2025 09:56:07 +0000 (11:56 +0200)
commit31e7681da78d7e8d2d83185c0e640012a018f229
treed118096d2d75eecb130383a3953498180e76ff7f
parentd0688dc2b172d19e20fdb8be8c37930da12aaf88
wifi: mac80211: correctly initialise S1G chandef for STA

When moving to the APs channel, ensure we correctly initialise the chandef
and perform the required validation. Additionally, if the AP is beaconing on a
2MHz primary, calculate the 2MHz primary center frequency by extracting
the sibling 1MHz primary and averaging the frequencies to find the 2MHz
primary center frequency.

Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Link: https://patch.msgid.link/20250918051913.500781-3-lachlan.hodges@morsemicro.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211.h
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/mlme.c
net/mac80211/scan.c
net/mac80211/util.c