Merge remote-tracking branch 'mac80211/master' into HEAD
[firefly-linux-kernel-4.4.55.git] / net / mac80211 / rate.c
index a02bef35b134e28e6d5ad8d6da38c505c309e756..30d58d2d13e26a667024a3a2fca655b6fce1bd34 100644 (file)
@@ -397,8 +397,14 @@ static void rate_idx_match_mask(struct ieee80211_tx_rate *rate,
                        return;
 
                /* if HT BSS, and we handle a data frame, also try HT rates */
-               if (chan_width == NL80211_CHAN_WIDTH_20_NOHT)
+               switch (chan_width) {
+               case NL80211_CHAN_WIDTH_20_NOHT:
+               case NL80211_CHAN_WIDTH_5:
+               case NL80211_CHAN_WIDTH_10:
                        return;
+               default:
+                       break;
+               }
 
                alt_rate.idx = 0;
                /* keep protection flags */