Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4786357yba; Tue, 30 Apr 2019 04:29:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxydes5gIIR/VwHbNJH4y+dCw3DOLCtrprrvPFAWLfWpqKZjZVIeijA1kaa6AgYAmKTnYCE X-Received: by 2002:a62:ed16:: with SMTP id u22mr68942505pfh.47.1556623768375; Tue, 30 Apr 2019 04:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556623768; cv=none; d=google.com; s=arc-20160816; b=ep5vNZ2J6JT7u9IZkTekbW3I3u2KI1KqUQcwAdemzECR61+AaR3VGCbcFNpxvRA8uu UgYANAZcmrPpWAADgwgnNt0YUIVtCSYY7jJI2DR1b4ZHYhUxWbAvadVrR/MNJPLfBGdm Z0hvB2E9lIYusILGlgdplSaL7dFs2eXtoZOvbAyJZ0ujq/esV7TuPNh0qL7+T/Y46K1m 2mCxCK2gP3dH0SLqoOV7rstbhAZfjEZ0cBAuas5cT2pzxiC6nonIQYOVeSLu+fVJQTap G+sTu/Ea3Vvl03BYSEAahtCx6GNnymRD2VeDHWtzkHYUmqmXMiYW96x7ajAqtoPQhM57 iR9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=EiKbvHSDR5/QOUUSr0PJs2HDI7So60WuT80dVjkor04=; b=OHr9NVUKjtoQ8HyqwSrbPeqh9/P1zdgtVOqgQpBMAaksICsXLqkCuqwlsJVb8jvr5j eJkdmGd/3Nwm+Aot9IGRnLsfRexvfRpAzezMCc8l9vbslJyP8x1kdnjyt42h0eDFFov2 Nx9RmlMGDlUUAkpUX9nRxp6pIAOAkaYASwKtNW/P9KCwzy9ohssHmGwpb54lk7T+7ms1 Pe79/5CZDHA4e/TMt2hTFCK9k/UYOfV83l3S6qLSzCyx4lP+G2La9QfQlGd1GpJ9rEaz PSZcfXpgrdtFxnn8Y1sRBtTFuTxeKI3MTonfs0adpZ5Z7sjnpR8iE+N4RIeHcUnV4Alc 6n0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si38933885plu.320.2019.04.30.04.29.12; Tue, 30 Apr 2019 04:29:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727913AbfD3L2G (ORCPT + 99 others); Tue, 30 Apr 2019 07:28:06 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:7899 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726202AbfD3L2F (ORCPT ); Tue, 30 Apr 2019 07:28:05 -0400 X-UUID: e03d9aa27c904b4fbb8476405ca204f3-20190430 X-UUID: e03d9aa27c904b4fbb8476405ca204f3-20190430 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1463058352; Tue, 30 Apr 2019 19:27:59 +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.1395.4; Tue, 30 Apr 2019 19:27:58 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 30 Apr 2019 19:27:58 +0800 Message-ID: <1556623678.4496.1.camel@mtkswgap22> Subject: Re: [PATCH v2] mt76: mt7615: add TX/RX antenna pattern capabilities From: Ryder Lee To: Felix Fietkau CC: Lorenzo Bianconi , Roy Luo , YF Luo , Yiwei Chung , Sean Wang , , , Date: Tue, 30 Apr 2019 19:27:58 +0800 In-Reply-To: References: <4f7160cb9f52335ce15fccac087fec25e7650884.1556255852.git.ryder.lee@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-04-30 at 11:24 +0200, Felix Fietkau wrote: > On 2019-04-26 07:23, Ryder Lee wrote: > > Announce antenna pattern cap to adapt PHY and baseband settings. > > > > Signed-off-by: Ryder Lee > > --- > > Changes since v2: > > - Add a prefix mt76 in the title. > > --- > > drivers/net/wireless/mediatek/mt76/mt7615/init.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c > > index 3ab3ff553ef2..122f7a565540 100644 > > --- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c > > +++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c > > @@ -190,6 +190,8 @@ int mt7615_register_device(struct mt7615_dev *dev) > > IEEE80211_VHT_CAP_SHORT_GI_160 | > > IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454 | > > IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK | > > + IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN | > > + IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN | > If I read the standard correctly, these flags indicate that the rx/tx > antenna pattern does NOT change during association. > Doesn't that mean that we should set it in mac80211.c instead, so that > it also applies to MT76x2? > Right. I will add these flags in common code. Ryder