Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2419374ybt; Tue, 16 Jun 2020 05:48:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuZTkar2w5fOt/NvjaxAy1R5SxgQ+H8p3N3RxoORdJQaGrzWCAatQAfTmiV9/jPcXfeZqK X-Received: by 2002:a17:906:c142:: with SMTP id dp2mr2720823ejc.541.1592311681835; Tue, 16 Jun 2020 05:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592311681; cv=none; d=google.com; s=arc-20160816; b=O+MSp54hMVaYzw72jTL4a5rRgB0peyLCkOVIeFvBvbOilFIu9ns/reAhVI6WgD3atu QX62CK5GyW5ljMBpLed/dkEfKMdgSeYYd5HLJFCm5QQwO4ngXx+0kdQrPs0ipvdzSoX/ PgUl+GQrqriiz52LmLOLpe/PnBH5GkwtorgrS5qT9m/tghNZYlrwDpyFEcUd0qMpz9nk QMQekUXI1x3GtaXMrqdinJCpFv5DjRdF0hOSkP0eKM5xbcqGc5klEKfvZohD8xQWun0U 7OFQcv0vsh8zhu3lY3vNFa2n2Ubg8b4Fvl3RVH7uLtaF9wU1nBTDQXZ2yZB4qdCPyzRO SHmw== 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=zlMoMDUbTsExrKd8RFq8cHNFiYg9RxmBmUZDOlfOEwY=; b=kYCxdU23tevS6abHyLjo9CLiSgW3m2naq0sPUV8IvJ4s3fwI77IKs/Y++fuMe+GW8d X4jbjTPUVtghmb7PLZ26EgpltXGEuvtohkCfOyvdXIY3IZTxbAnmV3AITLid2jxLZ+Lw FMXySdNRbmrJHz37PcHPemqZSzzrq3v1hk0uceI1xKzlVdhreGfjbc5VG16w+OEKe27w Zxme/JBY3jTc2vMtIOLjEZB41kyMoaflbLJNzLw0udmI639TebQvRJQ4ngtJkjitTKBr PIo1i/Ig5n9l0cW8JJMo3Qb+VuMXh8Ag2tnrV8yt2304Qck6369hJ00sCjIQJKNmajDJ ssHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=YBYgl4UG; 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 jt18si10637598ejb.445.2020.06.16.05.47.25; Tue, 16 Jun 2020 05:48:01 -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=YBYgl4UG; 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 S1728771AbgFPMrC (ORCPT + 99 others); Tue, 16 Jun 2020 08:47:02 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:17121 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725901AbgFPMrC (ORCPT ); Tue, 16 Jun 2020 08:47:02 -0400 X-UUID: 6ab7a681ab6648f7867b780c320cff90-20200616 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=zlMoMDUbTsExrKd8RFq8cHNFiYg9RxmBmUZDOlfOEwY=; b=YBYgl4UGPxsMrRjq5R5U4SxhKri0FJXqSPMB1SA6lwq2xxqvtF7APOfgH227DlS//4TqHmlDYUQGvVqtYfWh7+QGAgjqBgrdccbXF6X2LjUQftcB243pL50D+GjrdT/CoTT8TR/LJUve5JSoND0ZPdG4H6JhIEPvikF0gnP1mcU=; X-UUID: 6ab7a681ab6648f7867b780c320cff90-20200616 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 191896191; Tue, 16 Jun 2020 20:46:57 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Jun 2020 20:46:55 +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; Tue, 16 Jun 2020 20:46:54 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH 2/4] mt76: extend DT rate power limits to support 11ax devices Date: Tue, 16 Jun 2020 20:46:11 +0800 Message-ID: <08d8c206b15e705489fab96dbe9dd8a77874c4a4.1592276165.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <9ae2b6233284b60206e3513f7bf2eb03d2fbd724.1592276165.git.ryder.lee@mediatek.com> References: <9ae2b6233284b60206e3513f7bf2eb03d2fbd724.1592276165.git.ryder.lee@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 RW5hYmxlIHBhcnNpbmcgcGVyLXJhdGUgdHhwb3dlciBsaW1pdHMgZnJvbSBEVCBmb3IgMTFheCBj aGlwc2V0cy4NCg0KVGVzdGVkLWJ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