From: Johannes Berg We can't use NPCA any more if the chandef was downgraded, for obvious reasons. Clear NPCA during any downgrade. Signed-off-by: Johannes Berg --- net/mac80211/util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 89e82d34ae48..8c816a2a65f2 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -3831,6 +3831,10 @@ void ieee80211_chandef_downgrade(struct cfg80211_chan_def *c, 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. -- 2.53.0