e22a09e711e6bb12e4f42a56436a00666d4d31bd
[openwrt/staging/wigyori.git] / package / kernel / mac80211 / patches / subsys / 329-mac80211-add-AQL-support-for-VHT160-tx-rates.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Thu, 27 Aug 2020 12:47:48 +0200
3 Subject: [PATCH] mac80211: add AQL support for VHT160 tx rates
4
5 When converting from struct ieee80211_tx_rate to ieee80211_rx_status,
6 there was one check missing to fill in the bandwidth for 160 MHz
7
8 Signed-off-by: Felix Fietkau <nbd@nbd.name>
9 ---
10
11 --- a/net/mac80211/airtime.c
12 +++ b/net/mac80211/airtime.c
13 @@ -560,7 +560,9 @@ static int ieee80211_fill_rx_status(stru
14 if (rate->idx < 0 || !rate->count)
15 return -1;
16
17 - if (rate->flags & IEEE80211_TX_RC_80_MHZ_WIDTH)
18 + if (rate->flags & IEEE80211_TX_RC_160_MHZ_WIDTH)
19 + stat->bw = RATE_INFO_BW_160;
20 + else if (rate->flags & IEEE80211_TX_RC_80_MHZ_WIDTH)
21 stat->bw = RATE_INFO_BW_80;
22 else if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)
23 stat->bw = RATE_INFO_BW_40;