Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2361002pxj; Sun, 16 May 2021 23:20:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzov1xZWpdvAkRU1UqzvS3+zN2ipdpIR6rsFBlQ4yOebjdvotws642JVbEvjYT5oPRJ9II6 X-Received: by 2002:a02:93a4:: with SMTP id z33mr7768882jah.107.1621232445612; Sun, 16 May 2021 23:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621232445; cv=none; d=google.com; s=arc-20160816; b=M6ndVKwE9l6BeXnQC/dtn2R6EVID8nefR/4cZwg2oHSXsxaPcgFv27hLj4797pyNou mIp2s6xeH6KCHg6p2lLEVyFxMJ5lgOuwXxiwR9gKnwJZzAGelLbOKpN65yzXRd8triqw yW9PL90qSXudQRe6ptMpE4LhBQJ0BumRj5l9NZ1WDyev7LNxNj8chsTqClDwPg+6q1JO lm6jGd+4os5180iNmCrltM5g3GNMNipVRttrMRDC8L6gw0gowLOQwZWikUTtsP135qoF axwJIYWC+CD11sy6DVorEHh48iFQO9tZueCENiKo1VQaZgWj4n3kKQ8DDge6fNBkT3eq lfoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=W+tu3UeprBQKO1QmMyIQDHR9IPQpyB3+5HiaU2gzR+U=; b=xTWweO5nxHD9qDj3sy5kxd9lbIkeAgKveluFWGxpPYgzq7ZvT3EhCqiFvTGKYJjJz7 +F27iklWXbHLnNFPgTJKr8QLeFSXDJZQJmMlLf9gQjDeBSjqJxW9FswLNX7ofWN24mi0 XD5xZ5MPKeDpw/zmci9wB2ewP2SQq7yoBR7XLCarhT30LxSKf0LjGHdDyTTZizINcKek g5+tSfyhDOMFwwJIbSrYJbEBBeyGep6VIk4HZ351EGu1GI/exHUX6lCU09BB109p37LT VAzIicLVDDfq6QtgPRPFBdj1hvYoTyzmKqF/im4cRxsMO8RaFL1pMEp8NzkgJbTQiM8p wl6Q== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si20489842jaj.81.2021.05.16.23.20.24; Sun, 16 May 2021 23:20:45 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbhEQErh (ORCPT + 99 others); Mon, 17 May 2021 00:47:37 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:41051 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230144AbhEQErg (ORCPT ); Mon, 17 May 2021 00:47:36 -0400 X-UUID: 2b67079de89f4c9da34125aa8be43013-20210517 X-UUID: 2b67079de89f4c9da34125aa8be43013-20210517 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2135576648; Mon, 17 May 2021 12:46:04 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 17 May 2021 12:46:01 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 17 May 2021 12:46:01 +0800 From: Ryder Lee To: Felix Fietkau CC: Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , Bo Jiao , Sujuan Chen , , , Ryder Lee Subject: [PATCH] mt76: mt7915: fix MT_EE_CAL_GROUP_SIZE Date: Mon, 17 May 2021 12:45:58 +0800 Message-ID: <66c4bb0c6f4b1abcd0e17680ad42f742e2c1a528.1621198865.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <1da08f158e6784da6727779550f96f7a9c958b19.1621198865.git.ryder.lee@mediatek.com> References: <1da08f158e6784da6727779550f96f7a9c958b19.1621198865.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix wrong offset for pre-calibration data. Fixes: 495184ac91bb ("mt76: mt7915: add support for applying pre-calibration data") Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7915/eeprom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.h b/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.h index 033fb592bdf0..30bf41b8ed15 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.h +++ b/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.h @@ -33,7 +33,7 @@ enum mt7915_eeprom_field { #define MT_EE_WIFI_CAL_GROUP BIT(0) #define MT_EE_WIFI_CAL_DPD GENMASK(2, 1) #define MT_EE_CAL_UNIT 1024 -#define MT_EE_CAL_GROUP_SIZE (44 * MT_EE_CAL_UNIT) +#define MT_EE_CAL_GROUP_SIZE (49 * MT_EE_CAL_UNIT + 16) #define MT_EE_CAL_DPD_SIZE (54 * MT_EE_CAL_UNIT) #define MT_EE_WIFI_CONF0_TX_PATH GENMASK(2, 0) -- 2.18.0