diff options
-rw-r--r-- | include/net/mac80211.h | 2 | ||||
-rw-r--r-- | net/mac80211/rx.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index f6988fe8dfd2..2de7ff42ff3a 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -877,11 +877,13 @@ enum mac80211_rx_flags { | |||
877 | * @RX_VHT_FLAG_80MHZ: 80 MHz was used | 877 | * @RX_VHT_FLAG_80MHZ: 80 MHz was used |
878 | * @RX_VHT_FLAG_80P80MHZ: 80+80 MHz was used | 878 | * @RX_VHT_FLAG_80P80MHZ: 80+80 MHz was used |
879 | * @RX_VHT_FLAG_160MHZ: 160 MHz was used | 879 | * @RX_VHT_FLAG_160MHZ: 160 MHz was used |
880 | * @RX_VHT_FLAG_BF: packet was beamformed | ||
880 | */ | 881 | */ |
881 | enum mac80211_rx_vht_flags { | 882 | enum mac80211_rx_vht_flags { |
882 | RX_VHT_FLAG_80MHZ = BIT(0), | 883 | RX_VHT_FLAG_80MHZ = BIT(0), |
883 | RX_VHT_FLAG_80P80MHZ = BIT(1), | 884 | RX_VHT_FLAG_80P80MHZ = BIT(1), |
884 | RX_VHT_FLAG_160MHZ = BIT(2), | 885 | RX_VHT_FLAG_160MHZ = BIT(2), |
886 | RX_VHT_FLAG_BF = BIT(3), | ||
885 | }; | 887 | }; |
886 | 888 | ||
887 | /** | 889 | /** |
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) |