wifi: mac80211: fix puncturing bitmap handling in CSA
authorJohannes Berg <johannes.berg@intel.com>
Wed, 16 Aug 2023 10:13:36 +0000 (12:13 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Aug 2023 19:40:39 +0000 (21:40 +0200)
commit927521170c4a18c620f97865f7bad48f17c48967
tree12f4a7e07051d9760e326ab898c58be7857c10b2
parentfba360a047d5eeeb9d4b7c3a9b1c8308980ce9a6
wifi: mac80211: fix puncturing bitmap handling in CSA

Code inspection reveals that we switch the puncturing bitmap
before the real channel switch, since that happens only in
the second round of the worker after the channel context is
switched by ieee80211_link_use_reserved_context().

Fixes: 2cc25e4b2a04 ("wifi: mac80211: configure puncturing bitmap")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c