From patchwork Wed Jul 22 08:42:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 6841051 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8354DC05AC for ; Wed, 22 Jul 2015 08:43:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 839622061C for ; Wed, 22 Jul 2015 08:43:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4A17F2060E for ; Wed, 22 Jul 2015 08:43:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756410AbbGVInU (ORCPT ); Wed, 22 Jul 2015 04:43:20 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:34321 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932590AbbGVInS (ORCPT ); Wed, 22 Jul 2015 04:43:18 -0400 Received: by wibud3 with SMTP id ud3so143938982wib.1 for ; Wed, 22 Jul 2015 01:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=al1GBDGtZ7IDJoqB5e1BAFz1vMnezhr4JImYPpl7tuI=; b=OJe8OC+1Lqu4nzFunI+EmkowgySvculdUM/2PPUanAyED1hRbXijxhRRxVWw5BjbiG 7GVLSdeCS7XHE+595kX74DTZXRmCDCI8POUq3RwO/yBvUTXkqYmPwY+dIuld8NHERSPv MLUIkOMq2oRGDejry5J9geQBG1UB+Wd6dphzcyN22ALivQmFhuytEk0eG4I3nQUTM01+ FTVRzk8lrjPbnV3cUD8vCjDHB+HrIN/KV5ssDKIe+QcdFrMFK4GpR2JCHmp5aaiyzPLn xkE9hAvePq4u9xE7kitypIPaK6QQfJh8N/Q6uquuuU+hfVGHOtpMsVltLxZXNUcLy10G du/A== X-Received: by 10.180.21.244 with SMTP id y20mr4262136wie.65.1437554597032; Wed, 22 Jul 2015 01:43:17 -0700 (PDT) Received: from blackbox.darklights.net (p200300625F31B804A931B1D3EFC8372A.dip0.t-ipconnect.de. [2003:62:5f31:b804:a931:b1d3:efc8:372a]) by smtp.googlemail.com with ESMTPSA id sc16sm1198915wjb.28.2015.07.22.01.43.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Jul 2015 01:43:16 -0700 (PDT) From: Martin Blumenstingl To: ath9k-devel@lists.ath9k.org Cc: ath9k-devel@qca.qualcomm.com, nbd@openwrt.org, linville@tuxdriver.com, linux-wireless@vger.kernel.org, Martin Blumenstingl Subject: [PATCH RESEND] ath9k: Fix NF CCA limits for AR9287 and AR9227 Date: Wed, 22 Jul 2015 10:42:43 +0200 Message-Id: <1437554563-11712-1-git-send-email-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.4.6 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- Patch has not changed, I am just CC'ing @linux-wireless (instead of @ath9k-devel only). drivers/net/wireless/ath/ath9k/ar9002_phy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/ar9002_phy.h b/drivers/net/wireless/ath/ath9k/ar9002_phy.h index 6314ae2..9d17a53 100644 --- 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