Skip to content

Commit b8ff416

Browse files
chunyeowjmberg-intel
authored andcommitted
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>
1 parent 37fa2bd commit b8ff416

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/mac80211/rx.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,7 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx)
12381238
if (ieee80211_is_data(hdr->frame_control)) {
12391239
sta->last_rx_rate_idx = status->rate_idx;
12401240
sta->last_rx_rate_flag = status->flag;
1241+
sta->last_rx_rate_vht_flag = status->vht_flag;
12411242
sta->last_rx_rate_vht_nss = status->vht_nss;
12421243
}
12431244
}

0 commit comments

Comments
 (0)