Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2470922pxb; Mon, 18 Apr 2022 00:25:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7vpHCLJhjp/zAPn/PVut21aKg3lzoDouTyxjLr1gCmpIWk8MpO6k1y7fJKafSD4I3o64E X-Received: by 2002:a05:6402:696:b0:41d:7345:41e1 with SMTP id f22-20020a056402069600b0041d734541e1mr10707736edy.179.1650266730553; Mon, 18 Apr 2022 00:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650266730; cv=none; d=google.com; s=arc-20160816; b=Q74LM/AfpgrIpn7gYz6LTx/6KDDfWhJq52+gkhDRIMYjXYVW03U9JnOj7TGnm7VCpt BzzCboA6NV7yq2xiMskT0FBGwJJlDI7+UvOALNqT0tJ0RWfEKjYHFDa07ytbAZkrgF6h RzhMhYMEpbswxpnXKw9x4JP+hx3/cO0OOup6eifymFBZA3Bo6XO49FIldkx0hdS04/Dz ioSvsYxgw+sw8l72dgAz5HPJlZPuvx+kUnWrbEBjoCKxaUhCathXxh/H/XowrU2j+cxx k3OvKI96ZTkPKUlS8f4N1jEHHVccX50/mhasM6EZRvLjyQTyHqjRaDmyTyrxAGNS15Dx Uv5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :from; bh=da1glS5y9kddgRxnHcvX9Fq04L0glAsQCSGMj80lJdc=; b=08wAK7tRCcRSVsgjziDckmUvUNGwMRKMqlDBb5yTTdwZ6aTCgnIGC93yyne0tOJI6s NNCj+SuJoHP1/M/m59k+LN46JfbP0E6yw6dFCN5zIzPkj7RpnGB/9OPCsWcxWgHSaDEX 5u6zitmm4xEJi16B8lw27L5ESh8568oBV8rOy/RsQAgcxOd+IICM6k4y4cKBL5R1nenN HNYxrWqjvQWT3QG6wMPaCs6hqUEu1i8jCZMxS2i7yk4XaCFROPVduoVzevnrQxv5Nuxh 6AGQkKsBz/EysKBHDCY0NdW+r0CmdUQXR6VYdMUx5BpEjrmLQmrFMMSp9IElZRCrfMWL ARqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=X05BoVod; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ch2-20020a0564021bc200b0041d8bccdd79si5502181edb.390.2022.04.18.00.25.08; Mon, 18 Apr 2022 00:25:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=X05BoVod; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234884AbiDQTDL (ORCPT + 67 others); Sun, 17 Apr 2022 15:03:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232144AbiDQTDJ (ORCPT ); Sun, 17 Apr 2022 15:03:09 -0400 Received: from mail.toke.dk (mail.toke.dk [45.145.95.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7E4521827 for ; Sun, 17 Apr 2022 12:00:31 -0700 (PDT) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1650222029; bh=da1glS5y9kddgRxnHcvX9Fq04L0glAsQCSGMj80lJdc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=X05BoVodvwTY6v8ujUwd36jrghshdJzXx/xYYa4wEcVN1NI1sevV0zDjcLTdspi1u dqfW0Ui5KHwNdKcpKWyocpNoEB2Cfw53DHRiTFQ5/MgeYIsQ6hWFWYJPs6x4qu1Buf Ug4f/y5hIuQvdSvc05GVWqLLA5uI9vhyoJpLx+8ZwVUYfGBBu4bGl+fMPauRAF+2rs Sac0bSFGvjV3Mi52k5cd5zHnC+ae6vtoPyS2LfuycBovFTikwzeHbPquMkWUY+S4OZ +/EspqxOPQPdYqZKYTbwSCjA5aCJHBUXAIHegUri6PjFZnZwkreGqPXbTNCx0U5+mS Ds5Q42HX1TRoQ== To: Thibaut =?utf-8?Q?VAR=C3=88NE?= , Kalle Valo , linux-wireless@vger.kernel.org Cc: Felix Fietkau , Petr =?utf-8?Q?=C5=A0tetiar?= , Clemens Hopfer , Thibaut =?utf-8?Q?VAR=C3=88NE?= Subject: Re: [PATCH v2] ath9k: fix QCA9561 PA bias level In-Reply-To: <20220417145145.1847-1-hacks+kernel@slashdirt.org> References: <20220417145145.1847-1-hacks+kernel@slashdirt.org> Date: Sun, 17 Apr 2022 21:00:28 +0200 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87ilr73583.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Thibaut VAR=C3=88NE writes: > This patch fixes an invalid TX PA DC bias level on QCA9561, which > results in a very low output power and very low throughput as devices > are further away from the AP (compared to other 2.4GHz APs). > > This patch was suggested by Felix Fietkau, who noted[1]: > "The value written to that register is wrong, because while the mask > definition AR_CH0_TOP2_XPABIASLVL uses a different value for 9561, the > shift definition AR_CH0_TOP2_XPABIASLVL_S is hardcoded to 12, which is > wrong for 9561." > > In real life testing, without this patch the 2.4GHz throughput on > Yuncore XD3200 is around 10Mbps sitting next to the AP, and closer to > practical maximum with the patch applied. > > [1] https://lore.kernel.org/all/91c58969-c60e-2f41-00ac-737786d435ae@nbd.= name > > Signed-off-by: Thibaut VAR=C3=88NE Thank you for the fix! Acked-by: Toke H=C3=B8iland-J=C3=B8rgensen