Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5705753ybl; Sun, 22 Dec 2019 12:18:05 -0800 (PST) X-Google-Smtp-Source: APXvYqzBenZB3ebw0PU4JdTxli8cqRfw1zUxg6kVXMIjGrKA7vmhBRJ4a23QjBZGUqLqunphN5OM X-Received: by 2002:a05:6830:1651:: with SMTP id h17mr26971886otr.167.1577045885662; Sun, 22 Dec 2019 12:18:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577045885; cv=none; d=google.com; s=arc-20160816; b=X7Cpi7Lu2wROBU7/HZ4rrpgQP3M6o3m90j7qgOmIuTwmShJ46nxsdv5KDsgXz7fbZy Re9Lu1odGisY9zGx7JN68QBUnePakxbagtqEmoWnbmwyVfuUWpGwK1L/PVLydmM0FCGd m9LpKX/Pl74JI04MhxiA2coBlzh0u4wikJ05FEk6zcVZTBW8dZl3yAuEk1RVfrCVFRcp E7cn1i0+4nqTSsXcWeLy3EwHfOtO0JZ6O8WKvNOzBcMhIZh7rAi+SWNcfsxjUk4G6AcI BeaoUmK8vJ8OvHYtNe3MfLsI3O11mx5nPlyLhauA+uJdzHD0cEMdrRE1YQoHvqBSEKJw ntEQ== 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=qwrFGFIz+QsHDpFfg3vjjA8jTU7ruwsFDOyFkQxVOwo=; b=EZR+yyP7b8oaCShRdzfBq3PnvrbsTQRjfkMpYGGon/rZBhV5O79FnS0Daxobs0SN9b ijrRD9WEkXjTOSfM8MhuReoECU2hw74SlAvl8dhUOLoJHYATVIp2KY50YNURUaNRznfb sdCLVhdue7jq7mS8za7yfBWO0m1rE6cjbUCBZqS8nDrsyi9fBSLIbKdsoFaR1lEztSx4 Lss5/QYE6czby4aJ5myUGlKOE1y8QW99P4JU+NdB4XX6sfX7QMQh+QbDW932Fq9pIY00 iNijOiDoPUUrrRPKGNNUumQhkwDz5Jpl6swN+jSfNJq5RB2qrTaMJPZFPziGUe2xh2zm I8gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=XzBePS2o; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z22si1293395otq.94.2019.12.22.12.17.38; Sun, 22 Dec 2019 12:18:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=XzBePS2o; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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 S1726623AbfLVULv (ORCPT + 99 others); Sun, 22 Dec 2019 15:11:51 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:12127 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725951AbfLVULv (ORCPT ); Sun, 22 Dec 2019 15:11:51 -0500 X-UUID: c62fb3d6d6864253a7bdd0b2cbb2ac63-20191223 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=qwrFGFIz+QsHDpFfg3vjjA8jTU7ruwsFDOyFkQxVOwo=; b=XzBePS2oWDOW/O8HlRnO/pinGEhEHV/Ur8WBdG10D7nscXA9/HQPcIhx+SiTTIa2a1ktxji36EEXUHXsJOSy119x+SW9IxtOW1SCDCYuv3FlGchhq0a6RZFx1hQ/Ejbyucs3Pi7NBJLtFIMIql/P82jXj6t6JV3imQZQvZTdW2Y=; X-UUID: c62fb3d6d6864253a7bdd0b2cbb2ac63-20191223 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 958929746; Mon, 23 Dec 2019 04:11:44 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 23 Dec 2019 04:11:42 +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.1395.4 via Frontend Transport; Mon, 23 Dec 2019 04:10:52 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: , , , Ryder Lee , Shayne Chen Subject: [PATCH v1 2/2] mt76: mt7615: add set_antenna callback Date: Mon, 23 Dec 2019 04:11:39 +0800 Message-ID: <965287b3917a6cb0cfd2acbf91dbbd0b9db9b085.1577044827.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <9a37e1340cc8c546587d7cf99d6c4d92e12e1a7d.1577044827.git.ryder.lee@mediatek.com> References: <9a37e1340cc8c546587d7cf99d6c4d92e12e1a7d.1577044827.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 8FD17A3244B10A2B92653ADE44844F4B5FF4EAB66C010A873F8A6619B11B88FE2000:8 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 QWRkIGEgc2V0X2FudGVubmEgY2FsbGJhY2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