From patchwork Tue Apr 3 14:45:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10321335 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 DD4E360532 for ; Tue, 3 Apr 2018 14:45:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCFAE2580E for ; Tue, 3 Apr 2018 14:45:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C192C26212; Tue, 3 Apr 2018 14:45:43 +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 015A22867F for ; Tue, 3 Apr 2018 14:45:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751397AbeDCOpk (ORCPT ); Tue, 3 Apr 2018 10:45:40 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:51576 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751178AbeDCOpj (ORCPT ); Tue, 3 Apr 2018 10:45:39 -0400 Received: by mail-wm0-f65.google.com with SMTP id v21so34377522wmc.1 for ; Tue, 03 Apr 2018 07:45:38 -0700 (PDT) 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=1FY+STXad/4fS5JCqnFHF8X9FjBfPsg6JGe4ue9mrvk=; b=G6SPdC6krVekumdfE0rcV+VtCS/Jp1UgZx+O24CUBEgX8r8EPz1jaymAo5wdsisju8 s6N9EtbhCkJOuEU51K6qmCcaLziFTjo2QXxvIbS3ROpiDOktU1dSpl9Ior+eNNHZpsRW 0+b05UT8Hk5qzY3AudMVDAyDY0CvqLIDSI7ukZsWZ9H6ZIUxt4/LLWHmGWUMEZ72yFnW Ls9tpU6c0wjisaBsoalgY9RPoSFFboP5yvxemBoYLDEeSr5YBlvTotKPYUxro71q2gkd yymB4ARmeVsb9J2bcSR6g3h6a5UYbTTEKNcCfNG+OXzxmzkM5NRvER4ckH8i2cxxBnIN WY2A== X-Gm-Message-State: ALQs6tCD7E8Kis49zdGfD4GvwLBb2k8rZFX+HhPclF5qRFLnfzwQtI+q deWGwdlabCQR7e65MeVD/ZtkQ5lQZbY= X-Google-Smtp-Source: AIpwx4+g7RUUcQFX3az19TsySHfX5DwJOYJAr5fifA5n4Ha4OCW5NXdNMVdlgT9ANccnrNAc64CaXw== X-Received: by 10.28.16.18 with SMTP id 18mr4225540wmq.81.1522766738358; Tue, 03 Apr 2018 07:45:38 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id o88sm3477901wrb.44.2018.04.03.07.45.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Apr 2018 07:45:37 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org Subject: [PATCH] mt76x2: fix tssi initialization for 5GHz band Date: Tue, 3 Apr 2018 16:45:31 +0200 Message-Id: <53d9322f1b5cafb832163b8ef93118aecc1ef3f1.1522766285.git.lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.14.3 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 mcu initial configuration for tssi calibration on 5GHz band Fixes: 7bc04215a66b ("mt76: add driver code for MT76x2e") Signed-off-by: Lorenzo Bianconi Acked-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt76x2_phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c b/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c index fcc37eb7ce0b..f28c55746cea 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c @@ -180,7 +180,7 @@ mt76x2_phy_tssi_init_cal(struct mt76x2_dev *dev) if (mt76x2_channel_silent(dev)) return false; - if (chan->band == NL80211_BAND_2GHZ) + if (chan->band == NL80211_BAND_5GHZ) flag |= BIT(0); if (mt76x2_ext_pa_enabled(dev, chan->band))