aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/327-ath10k-fix-low-TX-rates-when-IBSS-and-HT.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-12-27 13:37:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-12-27 13:37:32 +0000
commit4d9d4093e12c62beb746244830ec9c50d733c7ee (patch)
treef4e5cdf6b0d182d5255a18db8e88801aa64087a7 /package/kernel/mac80211/patches/327-ath10k-fix-low-TX-rates-when-IBSS-and-HT.patch
parentd1902b686d4645458f09670bd7d7608355cea924 (diff)
downloadupstream-4d9d4093e12c62beb746244830ec9c50d733c7ee.tar.gz
upstream-4d9d4093e12c62beb746244830ec9c50d733c7ee.tar.bz2
upstream-4d9d4093e12c62beb746244830ec9c50d733c7ee.zip
ath10k: fix tx rate selection for ad-hoc mode with HT
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43790 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/327-ath10k-fix-low-TX-rates-when-IBSS-and-HT.patch')
-rw-r--r--package/kernel/mac80211/patches/327-ath10k-fix-low-TX-rates-when-IBSS-and-HT.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/327-ath10k-fix-low-TX-rates-when-IBSS-and-HT.patch b/package/kernel/mac80211/patches/327-ath10k-fix-low-TX-rates-when-IBSS-and-HT.patch
new file mode 100644
index 0000000000..09f1e25fa0
--- /dev/null
+++ b/package/kernel/mac80211/patches/327-ath10k-fix-low-TX-rates-when-IBSS-and-HT.patch
@@ -0,0 +1,30 @@
+From: Janusz Dziedzic <janusz.dziedzic@tieto.com>
+Date: Tue, 16 Dec 2014 09:52:59 +0100
+Subject: [PATCH] ath10k: fix low TX rates when IBSS and HT
+
+This fix TX problem when IBSS used in HT mode.
+Before we used 6Mbps all the time for TX direction.
+
+Reported-by: Yeoh Chun-Yeow <yeohchunyeow@gmail.com>
+Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
+---
+
+--- a/drivers/net/wireless/ath/ath10k/mac.c
++++ b/drivers/net/wireless/ath/ath10k/mac.c
+@@ -1375,9 +1375,16 @@ static void ath10k_peer_assoc_h_qos(stru
+ if (vif->bss_conf.qos)
+ arg->peer_flags |= WMI_PEER_QOS;
+ break;
++ case WMI_VDEV_TYPE_IBSS:
++ if (sta->wme)
++ arg->peer_flags |= WMI_PEER_QOS;
++ break;
+ default:
+ break;
+ }
++
++ ath10k_dbg(ar, ATH10K_DBG_MAC, "mac peer %pM qos %d\n",
++ sta->addr, !!(arg->peer_flags & WMI_PEER_QOS));
+ }
+
+ static void ath10k_peer_assoc_h_phymode(struct ath10k *ar,