From: Chun-Yeow Yeoh Date: Thu, 27 Feb 2014 05:14:14 +0000 (+0800) Subject: mac80211: add missing update on rx status VHT flag X-Git-Tag: v3.15-rc1~113^2~93^2^2~5^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b8ff416bc9c90c696cc3f3553617a99e9c5572cf;p=karo-tx-linux.git 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 Signed-off-by: Johannes Berg --- 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) if (ieee80211_is_data(hdr->frame_control)) { sta->last_rx_rate_idx = status->rate_idx; sta->last_rx_rate_flag = status->flag; + sta->last_rx_rate_vht_flag = status->vht_flag; sta->last_rx_rate_vht_nss = status->vht_nss; } }