Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp258429ybt; Fri, 19 Jun 2020 00:58:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaYg81gQ2GAZAGFTmF3yK7xNhbm9JF3HlyHCR7gUn1z0t/YRQGnkwcMXKE7tAVqdUiiiJQ X-Received: by 2002:a17:907:10d3:: with SMTP id rv19mr2391050ejb.327.1592553520104; Fri, 19 Jun 2020 00:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592553520; cv=none; d=google.com; s=arc-20160816; b=F0jCh8pQhj4efBVYPlUn4r7LL7zq5jXF/xg0/hQ1x3ldeCG1zP3RDHJJ+MaHJtkI4M sueqg6MezAfvTyDGs+Snk2Lr2aamXfudJj6zPL6/9FEH9cy68RO089xTw+Q4K4OQvCDW FVyK9htXYOXzoXZpzxvCRd3n1ZFKsXc7vmh5hBNS8xA9NFpAUGjUH+LZNsjJLsIDePBJ lc+Jf3ygzwACEP5hLLeZiJZ6Vbb7J/WGv5KHwPgs99aVEOQhsP9oFmAWP4K7rDEk5iGp pz65wtS+I2yc8hxL6kCreCCsBMrlVIhRz903Itx96Uyk4jMWMNwgVc570t+b/u6E7icC pm7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Do01dmbyCiGSjscxYJvy5ykc/vj3XzndARDxA1RPxtE=; b=j2cLbc0OsC5CCAz02dl80lVFwmY69b+TVFxdu2cGOvradycW75AMLPgrMHMgY2B59i LFHiuaQd4tTigCP673b9bvErfjkJAE/sKw/3nZrcfiFTLl/IbuM71gmsgBcax5Zr/Vp3 JIORiIFnVIca54qXkXNt/rMWaskjhprNmsnePUbor0w/ys7SPKSwbojyn9zV58jEjTbN /I2J09k5v1Pf1juAJhtDRE5bBfbLvqUVisyOwrnoTVrpHLo0a5tVp3uZJ1fjKjxsE6qc Ulthfvw69rq1sqOI9+QZNHo85Uxulmp77IVDqYKBVgX6ANqZtuoJtJv7gYaKJNjwnv0I ohHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=RPCBUVPe; 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=pass (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 v1si3588503ejd.588.2020.06.19.00.58.16; Fri, 19 Jun 2020 00:58:40 -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=pass header.i=@mediatek.com header.s=dk header.b=RPCBUVPe; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730927AbgFSHy6 (ORCPT + 99 others); Fri, 19 Jun 2020 03:54:58 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:30326 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730880AbgFSHy5 (ORCPT ); Fri, 19 Jun 2020 03:54:57 -0400 X-UUID: afc1333889164dda83e584b2d4307688-20200619 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=Do01dmbyCiGSjscxYJvy5ykc/vj3XzndARDxA1RPxtE=; b=RPCBUVPe5pOgJKqjuPGumcIo/n7BrdU0ZiqobYGOCxLSwa6yS2EALwaT7/vB6u3OAWBAkw7yciVm2rANID0etkrM8x/LgHyT82OsS4kNv5J0fUp95n3wIVSptm7HQ8ENy+wxceISrhayUcjbDQevPo9N1j9ygV/6laFUreTaIcM=; X-UUID: afc1333889164dda83e584b2d4307688-20200619 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1836682687; Fri, 19 Jun 2020 15:54:47 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 19 Jun 2020 15:54:46 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 19 Jun 2020 15:54:47 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v2 2/3] mt76: mt7915: rework the flow of txpower setting Date: Fri, 19 Jun 2020 15:53:55 +0800 Message-ID: <20200619075356.21998-2-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200619075356.21998-1-shayne.chen@mediatek.com> References: <20200619075356.21998-1-shayne.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Q2xlYW4gdXAgdGhlIGZsb3cgb2YgcGVyLXJhdGUgdHhwb3dlciBsaW1pdCBzZXR0aW5nIHRvIGdl dCByaWQgb2YNCmR1bHBsaWNhdGUgd29yayBzaW5jZSBpdCBoYXMgYWxyZWFkeSBiZWVuIGhhbmRs ZWQgYnkgZmlybXdhcmUsIGFuZCBzZXQNCnByb3Bl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