diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 7a8cd789e487..9f6464f3e05f 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -357,6 +357,10 @@ ieee80211_determine_chantype(struct ieee80211_sub_if_data *sdata, | |||
357 | ret = 0; | 357 | ret = 0; |
358 | 358 | ||
359 | out: | 359 | out: |
360 | /* don't print the message below for VHT mismatch if VHT is disabled */ | ||
361 | if (ret & IEEE80211_STA_DISABLE_VHT) | ||
362 | vht_chandef = *chandef; | ||
363 | |||
360 | while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, | 364 | while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, |
361 | IEEE80211_CHAN_DISABLED)) { | 365 | IEEE80211_CHAN_DISABLED)) { |
362 | if (WARN_ON(chandef->width == NL80211_CHAN_WIDTH_20_NOHT)) { | 366 | if (WARN_ON(chandef->width == NL80211_CHAN_WIDTH_20_NOHT)) { |