aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-11-09 09:07:02 -0500
committerJohannes Berg <johannes.berg@intel.com>2012-11-26 06:42:59 -0500
commit5614618ec498320e3b686fea246e50b833865c34 (patch)
treea319fd5575bc7ee090136e6e7829200a152886cf /net/mac80211/util.c
parentdb9c64cf8d9d3fcbc34b09d037f266d1fc9f928c (diff)
mac80211: support drivers reporting VHT RX
Add support to mac80211 for having drivers report received VHT MCS information. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 3b3dd32f121f..dc7f6b264593 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -2069,6 +2069,20 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local,
2069 ri.flags |= RATE_INFO_FLAGS_40_MHZ_WIDTH; 2069 ri.flags |= RATE_INFO_FLAGS_40_MHZ_WIDTH;
2070 if (status->flag & RX_FLAG_SHORT_GI) 2070 if (status->flag & RX_FLAG_SHORT_GI)
2071 ri.flags |= RATE_INFO_FLAGS_SHORT_GI; 2071 ri.flags |= RATE_INFO_FLAGS_SHORT_GI;
2072 } else if (status->flag & RX_FLAG_VHT) {
2073 ri.flags |= RATE_INFO_FLAGS_VHT_MCS;
2074 ri.mcs = status->rate_idx;
2075 ri.nss = status->vht_nss;
2076 if (status->flag & RX_FLAG_40MHZ)
2077 ri.flags |= RATE_INFO_FLAGS_40_MHZ_WIDTH;
2078 if (status->flag & RX_FLAG_80MHZ)
2079 ri.flags |= RATE_INFO_FLAGS_80_MHZ_WIDTH;
2080 if (status->flag & RX_FLAG_80P80MHZ)
2081 ri.flags |= RATE_INFO_FLAGS_80P80_MHZ_WIDTH;
2082 if (status->flag & RX_FLAG_160MHZ)
2083 ri.flags |= RATE_INFO_FLAGS_160_MHZ_WIDTH;
2084 if (status->flag & RX_FLAG_SHORT_GI)
2085 ri.flags |= RATE_INFO_FLAGS_SHORT_GI;
2072 } else { 2086 } else {
2073 struct ieee80211_supported_band *sband; 2087 struct ieee80211_supported_band *sband;
2074 2088