From 9384cc59512c6974908289b67c3321d40ee4f19b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 22 Jul 2015 12:45:03 +0000 Subject: mac80211: update to wireless-testing 2015-07-21 Signed-off-by: Felix Fietkau SVN-Revision: 46436 --- ...k-Fix-NF-CCA-limits-for-AR9287-and-AR9227.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/kernel/mac80211/patches/308-ath9k-Fix-NF-CCA-limits-for-AR9287-and-AR9227.patch (limited to 'package/kernel/mac80211/patches/308-ath9k-Fix-NF-CCA-limits-for-AR9287-and-AR9227.patch') diff --git a/package/kernel/mac80211/patches/308-ath9k-Fix-NF-CCA-limits-for-AR9287-and-AR9227.patch b/package/kernel/mac80211/patches/308-ath9k-Fix-NF-CCA-limits-for-AR9287-and-AR9227.patch new file mode 100644 index 0000000000..1a3a9d4ebb --- /dev/null +++ b/package/kernel/mac80211/patches/308-ath9k-Fix-NF-CCA-limits-for-AR9287-and-AR9227.patch @@ -0,0 +1,30 @@ +From: Martin Blumenstingl +Date: Wed, 22 Jul 2015 10:42:43 +0200 +Subject: [PATCH] ath9k: Fix NF CCA limits for AR9287 and AR9227 + +The FreeBSD driver [0] uses the same 2G values as for the AR9280 chips. +Using the same values in ath9k results in much better throughput for me. + +Before this patch I had a huge amount of packet loss (sometimes up to +40%) and the max transfer speed was somewhere around 5Mbit/s. With this +patch applied I have zero packet loss and ten times the throughput. +My device uses a AR9227 which is the PCI variant of the AR9287. + +[0] http://bxr.su/FreeBSD/sys/dev/ath/ath_hal/ar9002/ar9287.h + +Signed-off-by: Martin Blumenstingl +--- + +--- a/drivers/net/wireless/ath/ath9k/ar9002_phy.h ++++ b/drivers/net/wireless/ath/ath9k/ar9002_phy.h +@@ -610,8 +610,8 @@ + #define AR_PHY_CCA_MIN_GOOD_VAL_9271_2GHZ -127 + #define AR_PHY_CCA_MAX_GOOD_VAL_9271_2GHZ -116 + +-#define AR_PHY_CCA_NOM_VAL_9287_2GHZ -120 ++#define AR_PHY_CCA_NOM_VAL_9287_2GHZ -112 + #define AR_PHY_CCA_MIN_GOOD_VAL_9287_2GHZ -127 +-#define AR_PHY_CCA_MAX_GOOD_VAL_9287_2GHZ -110 ++#define AR_PHY_CCA_MAX_GOOD_VAL_9287_2GHZ -97 + + #endif -- cgit v1.2.3