Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4947618yba; Tue, 30 Apr 2019 06:57:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKPgZGLrP5mZmAdznLhwATScwePurcDRRj6PM0tqSTJde90kdP0G1f3MiPkGpKsKWnMc3i X-Received: by 2002:a17:902:201:: with SMTP id 1mr70204638plc.89.1556632620029; Tue, 30 Apr 2019 06:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556632620; cv=none; d=google.com; s=arc-20160816; b=p9+kvf+vKBxseCnoIf13wd9nHK3GFAxGyXEa7VyyE2/V6WVJsxbX9o3iDZ6ycusYD1 28J592BaKRql8KIeCYpen7amnYHOdSEExE/3JI6ISPFcn3rXg6jvq/6dKp8DA+XdYpTZ Ou7cZ+xM63lRV6D2fxUydZ6nHc0+JCnQPAaQel/ubYap8XnNO/IKxXkEnadr+Ywusx9o dF3+gSvziTw0kSLZccqosQ2Up7rw2GnTHWYBGYwF5Cyy23GFDrVbkwBssKwo7OOTBSfT 1Ixak8Oo+DkjLJu4qBvgdRaabxXhJcm6ciqpQE7xKvwsPHXoA1a2cFCgNJIUB78rzele K9mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=bz8P4ZrUgL4HzNCKsMm7FFdMfXg629Igow0wr86YzDE=; b=TgkMeLI/62K5LRkstLSxKwcWB1grbNLyP2uv0FaheRolkrGqu6fTPm2RCboUa0Qzfo oi0m4LwyvnzUINQxFk210tOHr7/aVxDJ0CRUK2yKXhqOL0NP6k9ggj+/yZeRJoRAWbB3 Pn0YMzc7uBkVo4L3O7JsK1O9sVxb77YZ58D9HZiJKyaRgSDoZ7LFULgPXs7IF+XqAW+g dKQ/ybogOcgC2zOSJ4faIXaY15LL8rB+5ayRZusEYCvn3+xzrWrIfpChUjZZQEM1uzz+ S9qG9VQN3jpFzCIzoDUKBwXezVdfLjHZ/CKZetTvaPrFWUeur8gyxMH5tufq9AikeTEv TU+Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4si20781325pgk.507.2019.04.30.06.56.32; Tue, 30 Apr 2019 06:57:00 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726436AbfD3Nz6 (ORCPT + 99 others); Tue, 30 Apr 2019 09:55:58 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:36067 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725938AbfD3Nz5 (ORCPT ); Tue, 30 Apr 2019 09:55:57 -0400 X-UUID: 22f4d06481c74227b1a782e889908a5d-20190430 X-UUID: 22f4d06481c74227b1a782e889908a5d-20190430 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 705396054; Tue, 30 Apr 2019 21:55:53 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 30 Apr 2019 21:55:50 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 30 Apr 2019 21:55:50 +0800 From: Ryder Lee To: Lorenzo Bianconi , Felix Fietkau CC: Roy Luo , YF Luo , Yiwei Chung , Sean Wang , , , , Ryder Lee Subject: [PATCH v3] mt76: add TX/RX antenna pattern capabilities Date: Tue, 30 Apr 2019 21:55:38 +0800 Message-ID: <1e054441bab22ee28fdad597ca36d891500b4a66.1556624322.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 773063FDE1F70878361AFD26064A2C2E185522FBBD99B1D7194B6634151CC7CF2000:8 X-MTK: N Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Announce antenna pattern cap to adapt PHY and baseband settings. Signed-off-by: Ryder Lee --- Changes since v3: - Move these flags to common code. Changes since v2: - Add a prefix mt76 in the title. --- drivers/net/wireless/mediatek/mt76/mac80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/wireless/mediatek/mt76/mac80211.c index 851caabbecda..26a336ef86c5 100644 --- a/drivers/net/wireless/mediatek/mt76/mac80211.c +++ b/drivers/net/wireless/mediatek/mt76/mac80211.c @@ -214,6 +214,8 @@ mt76_init_sband(struct mt76_dev *dev, struct mt76_sband *msband, vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC | IEEE80211_VHT_CAP_RXSTBC_1 | IEEE80211_VHT_CAP_SHORT_GI_80 | + IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN | + IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN | (3 << IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT); return 0; -- 2.18.0