diff options
Diffstat (limited to 'net/mac80211/chan.c')
-rw-r--r-- | net/mac80211/chan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c index 792eac6cc7b3..bd01a9f041bd 100644 --- a/net/mac80211/chan.c +++ b/net/mac80211/chan.c | |||
@@ -547,12 +547,12 @@ static void ieee80211_recalc_chanctx_chantype(struct ieee80211_local *local, | |||
547 | 547 | ||
548 | compat = cfg80211_chandef_compatible( | 548 | compat = cfg80211_chandef_compatible( |
549 | &sdata->vif.bss_conf.chandef, compat); | 549 | &sdata->vif.bss_conf.chandef, compat); |
550 | if (!compat) | 550 | if (WARN_ON_ONCE(!compat)) |
551 | break; | 551 | break; |
552 | } | 552 | } |
553 | rcu_read_unlock(); | 553 | rcu_read_unlock(); |
554 | 554 | ||
555 | if (WARN_ON_ONCE(!compat)) | 555 | if (!compat) |
556 | return; | 556 | return; |
557 | 557 | ||
558 | ieee80211_change_chanctx(local, ctx, compat); | 558 | ieee80211_change_chanctx(local, ctx, compat); |