From: Johannes Berg Date: Thu, 14 Feb 2013 11:13:53 +0000 (+0100) Subject: mac80211: prevent spurious HT/VHT downgrade message X-Git-Tag: upstream/snapshot3+hdmi~5537^2~28^2^2~26^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=586e01ededf9b713a1512dd658806791a7ca1a50;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mac80211: prevent spurious HT/VHT downgrade message 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 --- diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 7a8cd78..9f6464f 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -357,6 +357,10 @@ ieee80211_determine_chantype(struct ieee80211_sub_if_data *sdata, ret = 0; out: + /* don't print the message below for VHT mismatch if VHT is disabled */ + if (ret & IEEE80211_STA_DISABLE_VHT) + vht_chandef = *chandef; + while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, IEEE80211_CHAN_DISABLED)) { if (WARN_ON(chandef->width == NL80211_CHAN_WIDTH_20_NOHT)) {