]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mac80211: fix AP chandef capturing in CSA
authorJohannes Berg <johannes.berg@intel.com>
Tue, 9 Jul 2024 14:08:50 +0000 (16:08 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 10 Jul 2024 10:35:58 +0000 (12:35 +0200)
commit408ac28c62f0b869d5477be12dd9eddc0c37242e
treeb0332e54d4aa3d98f502cd78fbf7baad60d46da8
parent003eae5a28c6c9d50290a4ac9b955be912f24c9f
wifi: mac80211: fix AP chandef capturing in CSA

When the CSA is announced with only HT elements, the AP
chandef isn't captured correctly, leading to crashes in
the later code that checks for TPE changes during CSA.

Capture the AP chandef correctly in both cases to fix
this.

Reported-by: Jouni Malinen <j@w1.fi>
Fixes: 4540568136fe ("wifi: mac80211: handle TPE element during CSA")
Link: https://patch.msgid.link/20240709160851.47805f24624d.I024091f701447f7921e93bb23b46e01c2f46347d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/spectmgmt.c