Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2131986pxb; Sun, 17 Apr 2022 10:55:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ04H19I1lcoKJCkeKZ1D8v7tFXFc12SElYyO5lAWOEoZKPHQUC+laFGVHqHWlErjAnhAi X-Received: by 2002:a50:c3cf:0:b0:41d:5fc4:7931 with SMTP id i15-20020a50c3cf000000b0041d5fc47931mr8916490edf.244.1650218141028; Sun, 17 Apr 2022 10:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650218141; cv=none; d=google.com; s=arc-20160816; b=OEBtwLromk347Xc10+FhgxUCktWO3tpcmcHFS5g11p9YbG4/1nR5jPXn8eUnbeTfPR qUxryMU8hU8oi6UcbGlVgEFNyXKpcu8/YcZ6odB6HU+c0evJP1/8xpFnkMjtpTgWLyJO TWIU3inIu+s1J99msOWdPLZZQeVu9HBkeSCbdGysWWPMWGGId6S5MBIyH0choy2b+vU5 tDYjsqUStdwpEl9IJs4JYEE7sn2ejsqVro/+EtxVMrPpSIrw9y3kByrmydRF/ukJDMel swfDxmeGGhtZPF8Z0XctN6geatqFQVXvvebJleJxPdimzjAkcBYeVuSJWFgXLn298Xvg XRAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qcx0pxg3THp8SuY+6GUJd6UIv75TzlSrayGTu93JS8A=; b=GvEeRfZCTyDNcfys8rgZv5Ksmns3Cwe90bmapYAq8lGM5fPaU2Kh/ZhOclJvn5vXlg BxJR+W/aIRqGcv9ZdK3hM7amFg4GpOHpdGk/U6KppSrjmOHg7V3mGf3HLt4vL/ZH6gqT aVVqN6N3CZYDeeN5z7EhZtYxWEcBDeHn7CdRpoaHLmA++//5b7R2ulLFgFbEtfw7lW+K q4VLcLHI1n/h20KgW1cNFGo5onCs9Fgk2YlIabH3sbGBYGGMMfj9wjm+/Ss+aw0LyMXQ d1VBXgKFL3Y3VeBELOHmlGxTGsGV+DD2cNsCKapiSkbcQIugvzfXfEsxu1f2l65050Ci V6Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=RuQm7Dad; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj17-20020a170906b05100b006df76385b8fsi4482573ejb.47.2022.04.17.10.55.18; Sun, 17 Apr 2022 10:55:40 -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=fail header.i=@nbd.name header.s=20160729 header.b=RuQm7Dad; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234558AbiDQRFR (ORCPT + 67 others); Sun, 17 Apr 2022 13:05:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233839AbiDQRFQ (ORCPT ); Sun, 17 Apr 2022 13:05:16 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B2E7366A3 for ; Sun, 17 Apr 2022 10:02:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qcx0pxg3THp8SuY+6GUJd6UIv75TzlSrayGTu93JS8A=; b=RuQm7Dada5kfMyMugvlST2sGyR 0cxUGnwttyWM5awLO/3NBSsNJm1kLmwfkY6S70R35mH6K2mwO0SKbFKX64YQzDX3sBfp9L2xRe93p yzxNEppML2QrmJoZgQ6FhEmeusDMxGzDRP2feCiUF3yHj0Q6T/EZatGSZozIT3wVLDA8=; Received: from p200300daa70ef200ac595ede6c5152ba.dip0.t-ipconnect.de ([2003:da:a70e:f200:ac59:5ede:6c51:52ba] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1ng8IB-0004qo-NE; Sun, 17 Apr 2022 19:02:31 +0200 Message-ID: <5ed02d6d-f4ae-3cea-f2c5-8bfa2f4b5eb1@nbd.name> Date: Sun, 17 Apr 2022 19:02:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v2] ath9k: fix QCA9561 PA bias level Content-Language: en-US To: =?UTF-8?Q?Thibaut_VAR=c3=88NE?= , =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , Kalle Valo , linux-wireless@vger.kernel.org Cc: =?UTF-8?Q?Petr_=c5=a0tetiar?= , Clemens Hopfer References: <20220417145145.1847-1-hacks+kernel@slashdirt.org> From: Felix Fietkau In-Reply-To: <20220417145145.1847-1-hacks+kernel@slashdirt.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_NONE,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 On 17.04.22 16:51, Thibaut VARÈNE wrote: > 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ÈNE Acked-by: Felix Fietkau