Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2325712ybi; Thu, 4 Jul 2019 08:55:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHkD1TWfvAmwPgDIWLdu6MywyMLh1JYrdmwkFDlZ8zRZ2SDK8X2y8GoSYp4Btm3uuDIODE X-Received: by 2002:a65:578b:: with SMTP id b11mr12176767pgr.356.1562255705122; Thu, 04 Jul 2019 08:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562255705; cv=none; d=google.com; s=arc-20160816; b=ACrWvGYMPs9ciQYU0M88VdeODiLc1RWV0jcAKUqTqY9E6nE7ZzTGfhcrGALkYgy1U4 EVguNBzYS88m/zU4jwgUIdsJGPTKbAX8kLrl8dsvjsnf1JGFnlSiFy3OnqCo1wiSVUKc /U2DSv1OdnXwKIvn/hDq8hLoN4k0qMC77CGEWjRJAv1NUGSq4W9wFnLDy5E4oXLz+hs5 vrwcgUwOAqo6veH3EZk3cqzGH2/MLMEQgMl7pGgJgCTFU5ZK/TmdWr4P9hXr5O0B3rtd ktDlR2C2cg3ihhVc3Rp7IVtkDIGw7SWQ6+J+dF3D1uYTGMGrGXEzrOmnOf1YGZ8ns2xm sc9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature; bh=rjOF04iQtrtjBhHMy+qUMjQnUpCvJqiej7WWXrul57k=; b=PEpaZNq4mVmJ6mlWCO+dez35vSG83djrTqO5nbH5Nsn5aV+Y9+r59Mlzw90RV5Vj8R 3OiFWxJfg7t8c0xN2tmSarZ41L+MwQ8O2qtnWu+wYK+LJQ1nraeCOU7xd+9FEQnADxgj WhcwR+43csEt2VTO4894zu4EKGgetVmd8zK0fH+EVGiiDRh1QDRnRxjOf/63Q7sAR8fw 3+D4dI94DenrRzKmM7lOeqDqIWeYiR6EkmVGEJ/Ib63kIKy991hb5W/ifGToqmWJD5N4 1yyMPeip9Go+ColzbciGo/hnP5BKAOw8NJWrwkbRJ2YP2I1mqJ++B2Hags9BFHKa3Dgi Qo9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=P5KkJTNl; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si6016870pgo.310.2019.07.04.08.54.50; Thu, 04 Jul 2019 08:55:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=P5KkJTNl; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727889AbfGDPx0 (ORCPT + 99 others); Thu, 4 Jul 2019 11:53:26 -0400 Received: from nbd.name ([46.4.11.11]:38244 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727816AbfGDPx0 (ORCPT ); Thu, 4 Jul 2019 11:53:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rjOF04iQtrtjBhHMy+qUMjQnUpCvJqiej7WWXrul57k=; b=P5KkJTNlzXJIGxiq5a88LzMj5b CMfHf3FmscXllC6rkLdA6RFJPyNsnGBQ7Afr0cIybTTm3oFKX15cT9n/NuGroWzIZ5V0u61YAc9IW dvEGu+iVhMsyw/0J6BO5zFFkOqi2oTp0E+ouqfX+QTsorjFO+6nFenNhEM8OFieCHdTc=; Received: from p54ae9425.dip0.t-ipconnect.de ([84.174.148.37] helo=maeck-3.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hj432-0004qW-Uk for linux-wireless@vger.kernel.org; Thu, 04 Jul 2019 17:53:25 +0200 Received: by maeck-3.local (Postfix, from userid 501) id 6165F6165C13; Thu, 4 Jul 2019 17:53:24 +0200 (CEST) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 1/4] mt76: mt7603: enable hardware rate up/down selection Date: Thu, 4 Jul 2019 17:53:21 +0200 Message-Id: <20190704155324.56693-1-nbd@nbd.name> X-Mailer: git-send-email 2.17.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Improves performance by switching away from bad rates faster Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7603/init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/init.c b/drivers/net/wireless/mediatek/mt76/mt7603/init.c index 38834c7d0891..568e57e1d69c 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/init.c @@ -248,8 +248,7 @@ mt7603_mac_init(struct mt7603_dev *dev) FIELD_PREP(MT_AGG_ARxCR_LIMIT(7), MT7603_RATE_RETRY - 1)); mt76_wr(dev, MT_AGG_ARCR, - (MT_AGG_ARCR_INIT_RATE1 | - FIELD_PREP(MT_AGG_ARCR_RTS_RATE_THR, 2) | + (FIELD_PREP(MT_AGG_ARCR_RTS_RATE_THR, 2) | MT_AGG_ARCR_RATE_DOWN_RATIO_EN | FIELD_PREP(MT_AGG_ARCR_RATE_DOWN_RATIO, 1) | FIELD_PREP(MT_AGG_ARCR_RATE_UP_EXTRA_TH, 4))); -- 2.17.0