aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg2013-02-14 05:13:53 -0600
committerGreg Kroah-Hartman2013-04-05 11:26:01 -0500
commit366c19c14bfdc64a66f4eb5010fcdbb6a6a9746c (patch)
treef0619290b83984b1d84659550c5cfafd4b93beba
parent6fe27f0f65f8e71d096e825cff5414c7ab12163c (diff)
downloadkernel-omap-366c19c14bfdc64a66f4eb5010fcdbb6a6a9746c.tar.gz
kernel-omap-366c19c14bfdc64a66f4eb5010fcdbb6a6a9746c.tar.xz
kernel-omap-366c19c14bfdc64a66f4eb5010fcdbb6a6a9746c.zip
mac80211: prevent spurious HT/VHT downgrade message
commit 586e01ededf9b713a1512dd658806791a7ca1a50 upstream. Even when connecting to an AP that doesn't support VHT, and even when the local device doesn't support it either, the downgrade message gets printed. Suppress the message if HT and/or VHT is disabled. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Cc: Andrew Lutomirski <luto@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--net/mac80211/mlme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 9979bf8d162f..e14e676d3bd0 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -3401,6 +3401,10 @@ ieee80211_determine_chantype(struct ieee80211_sub_if_data *sdata,
3401 ret = 0; 3401 ret = 0;
3402 3402
3403out: 3403out:
3404 /* don't print the message below for VHT mismatch if VHT is disabled */
3405 if (ret & IEEE80211_STA_DISABLE_VHT)
3406 vht_chandef = *chandef;
3407
3404 while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, 3408 while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef,
3405 IEEE80211_CHAN_DISABLED)) { 3409 IEEE80211_CHAN_DISABLED)) {
3406 if (WARN_ON(chandef->width == NL80211_CHAN_WIDTH_20_NOHT)) { 3410 if (WARN_ON(chandef->width == NL80211_CHAN_WIDTH_20_NOHT)) {