Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp738059ybz; Fri, 1 May 2020 07:40:54 -0700 (PDT) X-Google-Smtp-Source: APiQypJ49IC8N5PzxBQCXkPxPZnrddp3JAFBoP5kYDypBp7Uoi1jg7teITs8+X5VIi37FfhOQrmr X-Received: by 2002:a17:906:5e45:: with SMTP id b5mr3479170eju.0.1588344054254; Fri, 01 May 2020 07:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588344054; cv=none; d=google.com; s=arc-20160816; b=aFnF+S0iNPvWRO6lwLrNbm34pZGHcZkWuMljTOGy1ORZniY2d2Q6KEPa5PnZx+AvYm Pr1mJSJ0hvB/wVEoUVd5IAxRbEl6wC5YARUF7iim4/qSk9sM4+oxrFxZvUOg4D7OEFJU n+1rzxqv7muVMlQp0E3d+a84Ey/syGRSynoEbJDnL07rXqC0zoN//bKekmQvPBCZ7tmN vi3lB/EPwz15zm7eIPKXVJSl80rR34uolc8PPuD44/B+BKQSsfh3G5zAzermzN85bEB2 p1vbpTVqKw5IMu5q9yFcYcJqpmVLV2DQUYbswbcqA6ADsW7TkB8qt8j7y+PE0MRFu1I1 uhlw== 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 :message-id:date:subject:to:from:dkim-signature; bh=urb5Ncwd4FM7lxj1LvyXXOv2rvHnHpkxFH3TSMPJOPE=; b=mdTuuN5OO4j1KnD9mpyf5HrTn1zOAtu4peQvlh3jGeUHg/kZzmtFusNtnGaqO43pVL MhoH8CykuINSc6khIisOQ49iT6JXOPQkOxBUAzfMRtFPDZ9/Pn06196MdWQmQuyOy97d XCwgz0Hbo0PlAAwYi6ZyMSjl6NvmfDr4rrmm3g2WauAHqi8KMRmhCsDTpjD/is/QO/zC EQ2tKsgpOr27oshW9iu/11MQ+3X2LlBt4BopO0PMWC57pj+840yoV/qtR4hbvX04gKG7 aG0RVakUEVdxPL1iR73wx3czYSTh2XEs2IlwBTrrccTayWfsYI8YnHa7vy+wRQOhNfva wumA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=JAYbUfIQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si1749781ejw.53.2020.05.01.07.40.16; Fri, 01 May 2020 07:40:54 -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=fail header.i=@nbd.name header.s=20160729 header.b=JAYbUfIQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729018AbgEAOgb (ORCPT + 99 others); Fri, 1 May 2020 10:36:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728890AbgEAOga (ORCPT ); Fri, 1 May 2020 10:36:30 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9143DC061A0E for ; Fri, 1 May 2020 07:36:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=urb5Ncwd4FM7lxj1LvyXXOv2rvHnHpkxFH3TSMPJOPE=; b=JAYbUfIQH2FdvNwaMW2GqUz7OU opBbsT7ZHnQncFiZVlilJ1YUhsEGhhm5CzpzC7uzs1osQEngNOayaazqvCen7AQRuvZ32x4HjdQXF 8NdeQB0/s77GsNd4ZUKPghUSqH4ybID98dQMETa8ClFr+mnQWHpAu8SHT61AXOrg/xLw=; Received: from p54ae9310.dip0.t-ipconnect.de ([84.174.147.16] helo=maeck.lan) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jUWmC-000810-SI for linux-wireless@vger.kernel.org; Fri, 01 May 2020 16:36:28 +0200 Received: by maeck.lan (Postfix, from userid 501) id 2C68F851522F; Fri, 1 May 2020 16:36:27 +0200 (CEST) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 1/2] mt76: mt7615: set spatial extension index Date: Fri, 1 May 2020 16:36:26 +0200 Message-Id: <20200501143627.24523-1-nbd@nbd.name> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The vendor driver sets this in firmware rate control (which we don't use) Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 3 ++- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c index e7a76032caff..5c09787b0d76 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c @@ -639,7 +639,8 @@ int mt7615_mac_write_txwi(struct mt7615_dev *dev, __le32 *txwi, txwi[3] |= cpu_to_le32(MT_TXD3_NO_ACK); txwi[7] = FIELD_PREP(MT_TXD7_TYPE, fc_type) | - FIELD_PREP(MT_TXD7_SUB_TYPE, fc_stype); + FIELD_PREP(MT_TXD7_SUB_TYPE, fc_stype) | + FIELD_PREP(MT_TXD7_SPE_IDX, 0x18); if (is_usb) txwi[8] = FIELD_PREP(MT_TXD8_L_TYPE, fc_type) | FIELD_PREP(MT_TXD8_L_SUB_TYPE, fc_stype); diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c index 5fd4a4ab5120..cbad854d7497 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c @@ -887,6 +887,7 @@ mt7615_mcu_wtbl_generic_tlv(struct sk_buff *skb, struct ieee80211_vif *vif, struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv; struct wtbl_generic *generic; struct wtbl_rx *rx; + struct wtbl_spe *spe; struct tlv *tlv; tlv = mt7615_mcu_add_nested_tlv(skb, WTBL_GENERIC, sizeof(*generic), @@ -914,6 +915,11 @@ mt7615_mcu_wtbl_generic_tlv(struct sk_buff *skb, struct ieee80211_vif *vif, rx->rca1 = sta ? vif->type != NL80211_IFTYPE_AP : 1; rx->rca2 = 1; rx->rv = 1; + + tlv = mt7615_mcu_add_nested_tlv(skb, WTBL_SPE, sizeof(*spe), + wtbl_tlv, sta_wtbl); + spe = (struct wtbl_spe *)tlv; + spe->spe_idx = 24; } static void -- 2.24.0