Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp312491pxb; Tue, 19 Oct 2021 03:30:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCSjqYxowL7sLcDFQTEazNWXbN2UpMTA/iynz5g087mb9NZSc5zPCQo7m9lZbE1Qy0l5g6 X-Received: by 2002:a63:7f0e:: with SMTP id a14mr28288477pgd.49.1634639437368; Tue, 19 Oct 2021 03:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634639437; cv=none; d=google.com; s=arc-20160816; b=eDeF8fiR7+PeLXvIACVk7VOSm8RpMR9R2YJ3wCbPpFicCQk7qUax59l0xUakTbu85w jMbYcK6iJ5qY6aRav50a66RWtbvpqThWbhfEn9mM/wEHjT0L6XnDTiKQl1mpGylghx5X 1p/FE92SI92S+Y0uFU7Zg3tupqiR4Gh5Tiyvw2em9lTmkiC1XS7ZV2kSEvEFjrk1AwSq Xl/m4xkJ1qQHjOpHZGzOkNY+60H2uQgPUylpo9J8AZkmOneI+ioiRk48w6QoeVUsArkF TVlvgAK4tVPEDHfITlYDOG/93mH0i4OexDTRPwjHoBNRxRYPAj/mrVpXvGtRBCjX9cvT EVRw== 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:subject:cc:to:from:dkim-signature; bh=H6etdgLap+Ib+Wz26aP6m4LI3IrnP0FO9dl5zaiagmQ=; b=gE19qzBtDuqVlx108FqjVoAtFIyD2ULdEzCEWheNSW5GtL99W3qkrrawfp17YuIT0H Lrtutjh5Er2A7aHydsUp4fgfxydYH7NvuRKQHkgJK7VT2oKWHqfcZHPzBKFmOZAYeCQ4 Vq6Zp4dnQF9olsC5fIpaWBZbnnF4QDzeATEMyasIePevZpDP8rpw9dhU9A4wC9LqqJFO osxq0m67P7mAi2tzCGmD76n/gLpM2hzGXso7mdbCqk9crNlTRnv2qwgoNf8vwKaF+ZzI O1paG5EfzTa9G/7fWQIJMGMRzorndojNQUUlLe2OWlQ1vF+He/qwfNvgVZvOgijfb6UG 2HsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=I3T6K58J; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si618650pfc.166.2021.10.19.03.30.27; Tue, 19 Oct 2021 03:30:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=I3T6K58J; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234914AbhJSKce (ORCPT + 64 others); Tue, 19 Oct 2021 06:32:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbhJSKcd (ORCPT ); Tue, 19 Oct 2021 06:32:33 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A32E4C06161C for ; Tue, 19 Oct 2021 03:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type: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=H6etdgLap+Ib+Wz26aP6m4LI3IrnP0FO9dl5zaiagmQ=; b=I3T6K58JrrTCxA8SP7ZvV/yIpC iNRaqQqqjnMuWTLR9rPvgv9h45b1ZCfq9epAWhmSu0hO9d2VVmWJc3Bvz8qoGlNFN4CiXrZBVIPjF sLgBuHDb5x1Gtz89lh1QBIpAw2LGVwNDv0jrJZeH++PHcuAEFZEkA7MQdFvbOyKr9OCE=; Received: from p4ff1322b.dip0.t-ipconnect.de ([79.241.50.43] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1mcmNu-0003w5-1D; Tue, 19 Oct 2021 12:30:18 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: Richard Huynh Subject: [PATCH] mt76: mt76x0: correct VHT MCS 8/9 tx power eeprom offset Date: Tue, 19 Oct 2021 12:30:15 +0200 Message-Id: <20211019103015.99599-1-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Richard Huynh Appears to have incorrectly offset 0x120 + 0x12 instead of 12 decimal, leading to bogus power values being used. Signed-off-by: Richard Huynh Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c b/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c index cea24213186c..da2ca2563ac9 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c @@ -201,7 +201,7 @@ void mt76x0_get_tx_power_per_rate(struct mt76x02_dev *dev, t->stbc[6] = t->stbc[7] = s6_to_s8(val >> 8); /* vht mcs 8, 9 5GHz */ - val = mt76x02_eeprom_get(dev, 0x132); + val = mt76x02_eeprom_get(dev, 0x12c); t->vht[8] = s6_to_s8(val); t->vht[9] = s6_to_s8(val >> 8); -- 2.30.1