aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-07-27 04:29:14 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-07-31 10:18:47 -0400
commit1b49de26566e7175e8f2d0934db6d9119f553b56 (patch)
treef10eaa8bcbe723e3171c19e9441ca5da28e29bce /net/mac80211
parent36323f817af0376c78612cfdab714b0feb05fea5 (diff)
mac80211: supress HT/VHT disable if not supported
If HT/VHT isn't supported by us we shouldn't print a message that we disabled it, do that only if the AP didn't support WMM and we therefore disable it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/mlme.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index ea46c6446450..c8465478b4b0 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -3373,16 +3373,18 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
3373 if (!sband->ht_cap.ht_supported || 3373 if (!sband->ht_cap.ht_supported ||
3374 local->hw.queues < IEEE80211_NUM_ACS || !bss->wmm_used) { 3374 local->hw.queues < IEEE80211_NUM_ACS || !bss->wmm_used) {
3375 ifmgd->flags |= IEEE80211_STA_DISABLE_11N; 3375 ifmgd->flags |= IEEE80211_STA_DISABLE_11N;
3376 netdev_info(sdata->dev, 3376 if (!bss->wmm_used)
3377 "disabling HT as WMM/QoS is not supported\n"); 3377 netdev_info(sdata->dev,
3378 "disabling HT as WMM/QoS is not supported by the AP\n");
3378 } 3379 }
3379 3380
3380 /* disable VHT if we don't support it or the AP doesn't use WMM */ 3381 /* disable VHT if we don't support it or the AP doesn't use WMM */
3381 if (!sband->vht_cap.vht_supported || 3382 if (!sband->vht_cap.vht_supported ||
3382 local->hw.queues < IEEE80211_NUM_ACS || !bss->wmm_used) { 3383 local->hw.queues < IEEE80211_NUM_ACS || !bss->wmm_used) {
3383 ifmgd->flags |= IEEE80211_STA_DISABLE_VHT; 3384 ifmgd->flags |= IEEE80211_STA_DISABLE_VHT;
3384 netdev_info(sdata->dev, 3385 if (!bss->wmm_used)
3385 "disabling VHT as WMM/QoS is not supported\n"); 3386 netdev_info(sdata->dev,
3387 "disabling VHT as WMM/QoS is not supported by the AP\n");
3386 } 3388 }
3387 3389
3388 memcpy(&ifmgd->ht_capa, &req->ht_capa, sizeof(ifmgd->ht_capa)); 3390 memcpy(&ifmgd->ht_capa, &req->ht_capa, sizeof(ifmgd->ht_capa));