Skip to contentSkip to conversation

mac80211: add missing update on rx status VHT flag

PATCH Applied Chun-Yeow Yeoh 2 participants 2 messages Feb 27, 2014 – Mar 3, 2014 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/mac80211/rx.c |    1 +
 1 file changed, 1 insertion(+)
net/mac80211/rx.c +1 -0
index 58e4b70..f3719e6 100644
@@ -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;
 		}
 	}
Signature · 1 line
1.7.9.5
maintainer Applied
#1 lore raw
Quoted 4 lines · Chun-Yeow Yeoh

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.

Applied, thanks.

johannes