Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2811281ybl; Sat, 14 Dec 2019 19:57:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwDt5lzd6539azjXaiLZ+KKOpZ+4OdkXku/uE3isDSPwOJLAN2a82ktGSu0ojQ27JhCcVdu X-Received: by 2002:a9d:6a92:: with SMTP id l18mr24184592otq.37.1576382266043; Sat, 14 Dec 2019 19:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576382266; cv=none; d=google.com; s=arc-20160816; b=iPq+R8DlWvrO7yMOlfyM/nrPYx5Cht0zMR5rD30fBg+/ecw4VrUZBy4WUY8/I4LL9D bE3lQLrU5+1KVawZMhg0vljoo2phq3pNwFIbtEbC5TVFz3ZeUHDauIYYygwswDgo4F/b sQQX+6Mzy2yWpJ7D854g8t6EIy1U9ALNkJgFkHOe++IcddhQQJXb/hdXN0Q+rPeguYjh zAI/8GAtyJfyCNmwAiaq84iPcfjvPZ718PvL/VhUQ8ZM02e85dg3sMxZZrS24j5Sqwdy sJl52ZRaW3qek3vSzZN8VbsNDz1AwFm5zmjhl/DMAaEOgvpGJ4ElyNOjFPra4FsDSjL9 DDXw== 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=94xcQ2Z3dMqXswcxMI8M18CsZNx5V6+VkyJZm38GJdA=; b=EEqDjEF8GTXegwTFpHnumLs5QGZ1j4BCF9IzTJn5UkJ6uYS6lDz1RH1upGUl95xrWl yjE61LTUSuEoubX31LV+z23NnM7A1cJRyM5yEfQLO7jdPcdT28TsRVHCeogZ/uhnGsWe Zev5PWFYTUS7DO6PkA+01x0eb1hC7lXHaSpiaFR+iXeWaD4ibo9kFnw2tS9HXjnT3B1Z i7DVoLF7+dGphmqVJkO6aCuvlIFnBJ9gWtw/EBOaFzY01cbPmxbHDokdqaiSeADOU6sC mdzrQdedzLCkPOjGI+z+OvjL9mAaTsPNjDEhtZWzwj/r7CGwi6p/zwpUqywkto3mAhfw P9/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=M6RPoHdB; 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 m19si8384641otk.84.2019.12.14.19.57.35; Sat, 14 Dec 2019 19:57:46 -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=M6RPoHdB; 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 S1726232AbfLOD4q (ORCPT + 99 others); Sat, 14 Dec 2019 22:56:46 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:59863 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725933AbfLOD4q (ORCPT ); Sat, 14 Dec 2019 22:56:46 -0500 X-UUID: bd32002ec29549f8b1e57599c5ff4c02-20191215 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=94xcQ2Z3dMqXswcxMI8M18CsZNx5V6+VkyJZm38GJdA=; b=M6RPoHdBWCLhl7GGdPO2fAIPyIgHq8iYFcyKkoQDhlSTJ+fbVd3uBqBsUKEtmGArRipAvuYCx2woY9rJ4XRQCoK2RDScr4ToifTnL1foKHzUODPE5W+Ar108oBhQYrGXhvQX/kYac+9xixRTg7LRp7CZU7mceDz89koUmnKLFWo=; X-UUID: bd32002ec29549f8b1e57599c5ff4c02-20191215 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1202441300; Sun, 15 Dec 2019 11:56:37 +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; Sun, 15 Dec 2019 11:56:35 +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; Sun, 15 Dec 2019 11:56:22 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Roy Luo , , , , Ryder Lee , Shayne Chen Subject: [PATCH 2/2] mt76: mt7615: add set_antenna callback Date: Sun, 15 Dec 2019 11:56:32 +0800 Message-ID: <6b3ac6736c0cfa12492f383ec9cfcaad91bfb965.1576381077.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 57E95DD40047F0123CF19775E0D27F7C3250BF6C281BF99FAF626FD033563F632000: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 QWRkIGEgc2V0X2FudGVubmEgY2FsbGJhY2sgdG8gc2V0dXAgcGVyIHBoeSB0eC9yeCBzdHJlYW1z Lg0KDQpTaWduZWQtb2ZmLWJ5OiBTaGF5bmUgQ2hlbiA8c2hheW5lLmNoZW5AbWVkaWF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