From patchwork Thu Dec 14 10:46:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10111813 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 243A860352 for ; Thu, 14 Dec 2017 10:46:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 151A929B77 for ; Thu, 14 Dec 2017 10:46:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0823429B7A; Thu, 14 Dec 2017 10:46:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E9BB29B77 for ; Thu, 14 Dec 2017 10:46:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751577AbdLNKqI (ORCPT ); Thu, 14 Dec 2017 05:46:08 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:45520 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751092AbdLNKqI (ORCPT ); Thu, 14 Dec 2017 05:46:08 -0500 Received: by mail-wm0-f67.google.com with SMTP id 9so10376816wme.4 for ; Thu, 14 Dec 2017 02:46:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vDr8mj9EChCVgjIzysWoh9BIocsRViXCKvgCg6C4LHY=; b=UAxi30ssS0yJIjui6AQEk8JEPR2l+O1hxKCa8LBw6V4v+PbL+CffoSNEpkLFnqFes9 Wh3q4qFf8Q4S6GhUYefZU+pdP2iqyYeSSy9/d9GqBezaCx1/D9hj9f8FWpVxcFVTwAQ+ hBeC31X1svVd3xpu+6K6j8eOTg2/MBvJfEKjCZ3C6hZUwMzcZ4cH0oud0T9d8ZoBF3SO pREeETPuehM7owMLgB0vYyyAs2nflxrcKRzzGmtZc0HbgAFg5xx8xHwFP7wLpoV7NcX3 K1U65bozHylyyJvOmAmFHpnN0qC3mbHbmfdX3iczdftKtzl9Z9AyJgjMQdx32Sj6yBta MeaQ== X-Gm-Message-State: AKGB3mI24UrB391kXn9jPctlzR1ewSLypFKIvHangAWL8LKavY3c4Jpp ZZ91BTcBBuFXnQenVSsLQvzpCg== X-Google-Smtp-Source: ACJfBotj4ewC0lzWsynMI9PIofhjCVvqJ45I37Q3q5cAa4s1EHg1FlNsc05MBgSFQBQtFy8Far+7qA== X-Received: by 10.80.128.134 with SMTP id 6mr11861414edb.32.1513248366968; Thu, 14 Dec 2017 02:46:06 -0800 (PST) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id g7sm3245314edj.12.2017.12.14.02.46.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Dec 2017 02:46:06 -0800 (PST) From: Lorenzo Bianconi To: nbd@nbd.name Cc: colin.king@canonical.com, linux-wireless@vger.kernel.org Subject: [PATCH] mt76x2: eeprom: fix typo in mt76x2_get_power_info_5g() Date: Thu, 14 Dec 2017 11:46:02 +0100 Message-Id: <2ae397aff0b058615a558a2352067fad2c9201e6.1513248071.git.lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix typo in 5GHz power vs channel eeprom parsing Fixes: 7bc04215a66b ("mt76: add driver code for MT76x2e") Signed-off-by: Lorenzo Bianconi Acked-by: Felix Fietkau Reported-by: Colin Ian King --- drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c b/drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c index 440b7e7d73a9..29dc52ef629d 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c @@ -524,7 +524,7 @@ mt76x2_get_power_info_5g(struct mt76x2_dev *dev, struct mt76x2_tx_power_info *t, if (channel >= 192) delta_idx = 4; - else if (channel >= 484) + else if (channel >= 184) delta_idx = 3; else if (channel < 44) delta_idx = 3;