Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp139512pxj; Fri, 7 May 2021 05:38:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+fJ7i+14h+vHZfh9KbALMFcfaV9zp7vFUtDVD2waB6YYaT4pOvVFSaIsRoKwTb9RqpaH/ X-Received: by 2002:a05:6402:4313:: with SMTP id m19mr10959132edc.263.1620391129001; Fri, 07 May 2021 05:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620391128; cv=none; d=google.com; s=arc-20160816; b=vBP+Qjq/EaWghHW3u2IME5mJbwZZwrPt8RRgMasiMy17wenenkaBYWMblKRrfVCTQL O/cHCkHKvozB6nI6CMYK2Y7IM1VAS3tT9fM5KfFmW5R9USK5MHa/H758PcRbD6SaKGbe agIB+bu/euKl/qDHYTkHeSYe03Z0WL+kHIek6GmdPz7mrJMe+TZX01hU/r/iCcpzPhJ+ PnXXqD1bL5M7ryHTLEfZqnvCOByJMn3Y2SIvaI3Lsj6PMdDsaFLqQxmWSE60V7wY4daW m2EOpqV0Ge+34DxP084tGvR28mLiIODt02/7Swf6QKaMC38WbRRnDyYr6jSc3hbvFxG9 NqDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pEYSZCtp1pexN3zVGuYjlw45M7QM495sfzfFTV84aY8=; b=YqzGf/v+7Tzdy5kh2SHJ0MRfWXf71Koh4yhYRQ0xFiAr7caXeV0xkJRS+vhHl9ldd5 +FFwVGvQ4JHRlXpGFqdwa89aceHy8AWSYPBBPFA4os3k161HGZCYh5ew6PP4CSK29ZSs e93M4ZoMqGKVOrWpn9KhzWwqUeqyf1Niuz3UHeuuwjBlePeSgkATaaZHFZUdCeFQL3s8 3E0dsqPOiZwWZogZHO4RVgJPYOsYBE8nf5rTYd4RTWc/qYySqLera1Eqh3UbPgIs/OJz 2mLGsWN2nw+FINdJoasO4pPYCuMG5zW2WQsI4GOaQA7utX1BGbOjQX3ZILHjamcAlhd4 GNYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=g1B60Rdc; 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 i8si4905124edc.493.2021.05.07.05.38.23; Fri, 07 May 2021 05:38:48 -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=g1B60Rdc; 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 S235135AbhEGKDT (ORCPT + 99 others); Fri, 7 May 2021 06:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbhEGKDS (ORCPT ); Fri, 7 May 2021 06:03:18 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF8D9C061574 for ; Fri, 7 May 2021 03:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id :Date:Subject:Cc:To:From:Sender:Reply-To: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=pEYSZCtp1pexN3zVGuYjlw45M7QM495sfzfFTV84aY8=; b=g1B60RdcKSiFExrms6oOPC1mbp EXaiUVYyk5wLhnUPl1BnyDbgSPjARuFR3NxYU15WYN/6ZcE/ItGAczM6gC2VaQ5j6dEybx6F27QlH 3jJnj7JL6HC/Bmzs53sMhzP41KAjaoU79Dd2H56QHO97mpefJ5ex2PGKzEzUy7gpx414=; Received: from p4ff13bc6.dip0.t-ipconnect.de ([79.241.59.198] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1lexJH-0003bF-Sp; Fri, 07 May 2021 12:02:15 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: kvalo@codeaurora.org, Jayden Kuo Subject: [PATCH 5.13 1/2] mt76: connac: fix HT A-MPDU setting field in STA_REC_PHY Date: Fri, 7 May 2021 12:02:10 +0200 Message-Id: <20210507100211.15709-1-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The MT7921 firmware needs this to enable tx A-MPDU properly Reported-by: Jayden Kuo (郭育辰) Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c index fe0ab5e5ff81..619561606f96 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c @@ -721,6 +721,10 @@ void mt76_connac_mcu_sta_tlv(struct mt76_phy *mphy, struct sk_buff *skb, phy->phy_type = mt76_connac_get_phy_mode_v2(mphy, vif, band, sta); phy->basic_rate = cpu_to_le16((u16)vif->bss_conf.basic_rates); phy->rcpi = rcpi; + phy->ampdu = FIELD_PREP(IEEE80211_HT_AMPDU_PARM_FACTOR, + sta->ht_cap.ampdu_factor) | + FIELD_PREP(IEEE80211_HT_AMPDU_PARM_DENSITY, + sta->ht_cap.ampdu_density); tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_RA, sizeof(*ra_info)); ra_info = (struct sta_rec_ra_info *)tlv; -- 2.30.1