From patchwork Mon Jan 28 09:31:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10783459 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-2.web.codeaurora.org (Postfix) with ESMTP id 025706C2 for ; Mon, 28 Jan 2019 09:31:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E74B92A454 for ; Mon, 28 Jan 2019 09:31:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5A152A589; Mon, 28 Jan 2019 09:31:39 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 8BB802A544 for ; Mon, 28 Jan 2019 09:31:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726766AbfA1Jbi (ORCPT ); Mon, 28 Jan 2019 04:31:38 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36754 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726369AbfA1Jbi (ORCPT ); Mon, 28 Jan 2019 04:31:38 -0500 Received: by mail-wr1-f66.google.com with SMTP id u4so17193155wrp.3 for ; Mon, 28 Jan 2019 01:31:37 -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:mime-version:content-transfer-encoding; bh=ba7l1hoNzC7r8a9vmicFI+gMHtX6OE7k6p9lNcmyrdo=; b=oFAxHm/asFKJ1Hcjh9FV/6rFhgr3GXiiFbThMP1yG+E7VRGC4Om+FW8owegu7FVebi N0AC0NKN7mP0QBUCtGJLWenpqB78CdD1xHV6dnsbET/6Lwua9Emff4fS4hnrKvdWVNoj jEEr8nIGJxFq/jnEKE/u4ENHbsk3WGgrpYN4s8QfsXyeUJoEIa0z7YMk9TFjqEXvhk2r cJ1zIZcTlV6U+GeorJYwVPBdlRXWVu2HENJhMaUUUp33zHB/YT2vw7nVe0Z02cYvGnMn jES/PNx95scV5MbCUc2PoINh/tpkEkPcF1hFDFkAbZlN25CqT4tGi7wEvWmavKFjzln9 1AJw== X-Gm-Message-State: AJcUukfdiswhMp3icAr27I8sEPpgo8VoivL2tNBkXpZNu4YVpa/L9Ft7 r1H7Rx5VIC2waR215fMrx5EJyw== X-Google-Smtp-Source: ALg8bN6uYvkF/zbLvOGkRSUfPLzPM71PYwKy30rZhIsWiAA5nfxNAXtEo1UZR1q5ifFKUpsYzMfKPg== X-Received: by 2002:adf:80cf:: with SMTP id 73mr20862639wrl.57.1548667896601; Mon, 28 Jan 2019 01:31:36 -0800 (PST) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id h16sm231765642wrb.62.2019.01.28.01.31.35 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 28 Jan 2019 01:31:36 -0800 (PST) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, sgruszka@redhat.com Subject: [PATCH 1/2] mt76x0: phy: report target_power in debugfs Date: Mon, 28 Jan 2019 10:31:12 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 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 Initialize target_power variable in mt76x0_phy_set_txpower in order to report target_power in debugfs Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x0/phy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c b/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c index 1117cdc15b04..3fe2e1e28404 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c @@ -855,6 +855,7 @@ void mt76x0_phy_set_txpower(struct mt76x02_dev *dev) dev->mt76.txpower_cur = mt76x02_get_max_rate_power(t); mt76x02_add_rate_power_offset(t, -info); + dev->target_power = info; mt76x02_phy_set_txpower(dev, info, info); }