From e3085cf74293ddd4f381f5ba9109a779dc92d213 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Fri, 1 Mar 2013 17:33:18 +0100 Subject: [PATCH] --- yaml --- r: 361066 b: refs/heads/master c: 24af717c35189f7a83c34e637256ccb7295a617b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/mac80211/mlme.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c77c67e60863..b721b0092261 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7cbf9d017dbb5e3276de7d527925d42d4c11e732 +refs/heads/master: 24af717c35189f7a83c34e637256ccb7295a617b diff --git a/trunk/net/mac80211/mlme.c b/trunk/net/mac80211/mlme.c index b756d2924690..141577412d84 100644 --- a/trunk/net/mac80211/mlme.c +++ b/trunk/net/mac80211/mlme.c @@ -647,6 +647,9 @@ static void ieee80211_add_vht_ie(struct ieee80211_sub_if_data *sdata, our_mcs = (le16_to_cpu(vht_cap.vht_mcs.rx_mcs_map) & mask) >> shift; + if (our_mcs == IEEE80211_VHT_MCS_NOT_SUPPORTED) + continue; + switch (ap_mcs) { default: if (our_mcs <= ap_mcs)