summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2026-04-28 12:25:35 +0300
committerJohannes Berg <johannes.berg@intel.com>2026-05-05 15:49:03 +0300
commit8d66c383ed6c1ec9cdffb77dbd4fc350b6c41efb (patch)
tree568e8f828a2f00f8375b7381b92726dffbae4ed1
parentee52966a00a902cdc62ceeabf728b9a661e4805c (diff)
downloadlinux-8d66c383ed6c1ec9cdffb77dbd4fc350b6c41efb.tar.xz
wifi: mac80211: remove NPCA during chandef downgrade
We can't use NPCA any more if the chandef was downgraded, for obvious reasons. Clear NPCA during any downgrade. Link: https://patch.msgid.link/20260428112708.2ab0e6f2e433.Ic39badb6782ef2242942424538f57e4a83391a06@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--net/mac80211/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 00e46b5bc020..24537794256c 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -3832,6 +3832,10 @@ again:
c->width = new_primary_width;
}
+ /* whatever we do, downgrading removes NPCA */
+ c->npca_chan = NULL;
+ c->npca_punctured = 0;
+
/*
* With an 80 MHz channel, we might have the puncturing in the primary
* 40 Mhz channel, but that's not valid when downgraded to 40 MHz width.