mac80211: update brcmfmac including missing boardrev workaround
[openwrt.git] / package / kernel / mac80211 / patches / 337-mac80211-minstrel_ht-fix-a-logic-error-in-RTS-CTS-ha.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Wed, 24 Feb 2016 12:03:13 +0100
3 Subject: [PATCH] mac80211: minstrel_ht: fix a logic error in RTS/CTS handling
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
8 RTS/CTS needs to be enabled if the rate is a fallback rate *or* if it's
9 a dual-stream rate and the sta is in dynamic SMPS mode.
10
11 Fixes: a3ebb4e1b763 ("mac80211: minstrel_ht: handle peers in dynamic SMPS")
12 Reported-by: Matías Richart <mrichart@fing.edu.uy>
13 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
14 ---
15
16 --- a/net/mac80211/rc80211_minstrel_ht.c
17 +++ b/net/mac80211/rc80211_minstrel_ht.c
18 @@ -872,7 +872,7 @@ minstrel_ht_set_rate(struct minstrel_pri
19          *  - if station is in dynamic SMPS (and streams > 1)
20          *  - for fallback rates, to increase chances of getting through
21          */
22 -       if (offset > 0 &&
23 +       if (offset > 0 ||
24             (mi->sta->smps_mode == IEEE80211_SMPS_DYNAMIC &&
25              group->streams > 1)) {
26                 ratetbl->rate[offset].count = ratetbl->rate[offset].count_rts;