diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-03-04 03:35:25 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-03-19 16:29:57 -0400 |
commit | fb378c231daf93c7c806848e8247781322867ece (patch) | |
tree | ac384f5c69ab8bc40cab7810c2addad85b87e385 /net | |
parent | 3afc2167f60a327a2c1e1e2600ef209a3c2b75b7 (diff) |
mac80211: set beamforming bit in radiotap
Add a bit in rx_status.vht_flags to let the low level driver
notify mac80211 about a beamformed packet. Propagate this
to the radiotap header.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/rx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index f3719e669893..ac8322818b28 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -333,6 +333,8 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local, | |||
333 | /* in VHT, STBC is binary */ | 333 | /* in VHT, STBC is binary */ |
334 | if (status->flag & RX_FLAG_STBC_MASK) | 334 | if (status->flag & RX_FLAG_STBC_MASK) |
335 | *pos |= IEEE80211_RADIOTAP_VHT_FLAG_STBC; | 335 | *pos |= IEEE80211_RADIOTAP_VHT_FLAG_STBC; |
336 | if (status->vht_flag & RX_VHT_FLAG_BF) | ||
337 | *pos |= IEEE80211_RADIOTAP_VHT_FLAG_BEAMFORMED; | ||
336 | pos++; | 338 | pos++; |
337 | /* bandwidth */ | 339 | /* bandwidth */ |
338 | if (status->vht_flag & RX_VHT_FLAG_80MHZ) | 340 | if (status->vht_flag & RX_VHT_FLAG_80MHZ) |