]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mac80211: add missing update on rx status VHT flag
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Thu, 27 Feb 2014 05:14:14 +0000 (13:14 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 3 Mar 2014 14:07:33 +0000 (15:07 +0100)
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>
net/mac80211/rx.c

index 58e4b7052d1764ad9ed20e9293aa0b7eee80ae99..f3719e66989327790b032f146ef7df4d8c1015ce 100644 (file)
@@ -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;
                }
        }