iw: update to 3.17
[openwrt/staging/yousong.git] / package / kernel / mac80211 / patches / 327-ath10k-fix-low-TX-rates-when-IBSS-and-HT.patch
1 From: Janusz Dziedzic <janusz.dziedzic@tieto.com>
2 Date: Tue, 16 Dec 2014 09:52:59 +0100
3 Subject: [PATCH] ath10k: fix low TX rates when IBSS and HT
4
5 This fix TX problem when IBSS used in HT mode.
6 Before we used 6Mbps all the time for TX direction.
7
8 Reported-by: Yeoh Chun-Yeow <yeohchunyeow@gmail.com>
9 Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
10 ---
11
12 --- a/drivers/net/wireless/ath/ath10k/mac.c
13 +++ b/drivers/net/wireless/ath/ath10k/mac.c
14 @@ -1375,9 +1375,16 @@ static void ath10k_peer_assoc_h_qos(stru
15 if (vif->bss_conf.qos)
16 arg->peer_flags |= WMI_PEER_QOS;
17 break;
18 + case WMI_VDEV_TYPE_IBSS:
19 + if (sta->wme)
20 + arg->peer_flags |= WMI_PEER_QOS;
21 + break;
22 default:
23 break;
24 }
25 +
26 + ath10k_dbg(ar, ATH10K_DBG_MAC, "mac peer %pM qos %d\n",
27 + sta->addr, !!(arg->peer_flags & WMI_PEER_QOS));
28 }
29
30 static void ath10k_peer_assoc_h_phymode(struct ath10k *ar,