diff options
-rw-r--r-- | net/mac80211/vht.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/mac80211/vht.c b/net/mac80211/vht.c index b20ff28d9f30..ccdcb9ad9ac7 100644 --- a/net/mac80211/vht.c +++ b/net/mac80211/vht.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Portions of this file | 5 | * Portions of this file |
6 | * Copyright(c) 2015 - 2016 Intel Deutschland GmbH | 6 | * Copyright(c) 2015 - 2016 Intel Deutschland GmbH |
7 | * Copyright (C) 2018 Intel Corporation | 7 | * Copyright (C) 2018 - 2019 Intel Corporation |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/ieee80211.h> | 10 | #include <linux/ieee80211.h> |
@@ -349,6 +349,14 @@ enum ieee80211_sta_rx_bandwidth ieee80211_sta_cap_rx_bw(struct sta_info *sta) | |||
349 | cap_width == IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ) | 349 | cap_width == IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ) |
350 | return IEEE80211_STA_RX_BW_160; | 350 | return IEEE80211_STA_RX_BW_160; |
351 | 351 | ||
352 | /* | ||
353 | * If this is non-zero, then it does support 160 MHz after all, | ||
354 | * in one form or the other. We don't distinguish here (or even | ||
355 | * above) between 160 and 80+80 yet. | ||
356 | */ | ||
357 | if (vht_cap->cap & IEEE80211_VHT_CAP_EXT_NSS_BW_MASK) | ||
358 | return IEEE80211_STA_RX_BW_160; | ||
359 | |||
352 | return IEEE80211_STA_RX_BW_80; | 360 | return IEEE80211_STA_RX_BW_80; |
353 | } | 361 | } |
354 | 362 | ||