aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>2014-02-27 00:14:14 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-03-03 09:07:33 -0500
commitb8ff416bc9c90c696cc3f3553617a99e9c5572cf (patch)
tree1f50740d9371a04ff6251cade11b5467cdbbb51c /net/mac80211/rx.c
parent37fa2bdd16a12fef7804606f56525ba5747bf172 (diff)
mac80211: add missing update on rx status VHT flag
Add missing update on the rx status vht flag of the last data packet. Otherwise, cfg80211_calculate_bitrate_vht may not consider the channel width resulting in wrong calculation of the received bitrate. Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r--net/mac80211/rx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 58e4b7052d17..f3719e669893 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -1238,6 +1238,7 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx)
1238 if (ieee80211_is_data(hdr->frame_control)) { 1238 if (ieee80211_is_data(hdr->frame_control)) {
1239 sta->last_rx_rate_idx = status->rate_idx; 1239 sta->last_rx_rate_idx = status->rate_idx;
1240 sta->last_rx_rate_flag = status->flag; 1240 sta->last_rx_rate_flag = status->flag;
1241 sta->last_rx_rate_vht_flag = status->vht_flag;
1241 sta->last_rx_rate_vht_nss = status->vht_nss; 1242 sta->last_rx_rate_vht_nss = status->vht_nss;
1242 } 1243 }
1243 } 1244 }