Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp409715pxb; Thu, 21 Apr 2022 02:17:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfDqZlDgtiwGZwg0eIzzo66KR98HxTTwR3h8xQVBBx89bp3AbKutuMNSwXoU2kyK7KdpR2 X-Received: by 2002:a17:907:869f:b0:6ef:a122:13f3 with SMTP id qa31-20020a170907869f00b006efa12213f3mr17577650ejc.52.1650532655651; Thu, 21 Apr 2022 02:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650532655; cv=none; d=google.com; s=arc-20160816; b=Xiy8l+3QybtZ/rBNi/E0TDekz0dh16nxNcPTFEYHQXfkHh6ic/4kLLLZxR/XimIIT4 gxHdK5EJwgNxLJMrNRYBCiL0ueduLRbtjjQ8HMWpU0qbA0m/WSXcmbj7m3YVZ+EmW8dy Eg9uPJstmldkl+VTVAg5I2DcCjzYvQhp+PH8PkDCrt0OwFEkk+tCbaK7jmtcMFgoW9Td it+iNNIkHFvWM4fXQZJhKoznBMZWldzl9WD0PU3RBo/BnV1NR+5tEOQbnfqGN3Xzsbce hH0q9qpxdtUyXEcKryZ1H8ebsK5C9NTXL1Sw96SHZnjjZ0+UtR9Khr2LOLhxWSxK70cR 3IPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5NbAC5y8SSXoeF4ubJ0VGH9BseO7jD22woRHSrslIlk=; b=aP2uPpkLbSut/FvM6ie1Fp5DKzqtucP/bWsvYAp4n6fRnHVPpNsJWMIKaComkjq6Ll bh7DQ6JZkjB/XugkZEw+u6fG5ZSLhrv9VsTTRYOIoF1LUUsNA856ZtYADKfVI+0SsRpU 6KvbNxqtS72FzHzMC3aKA11KUA5cJ/o2WD+6A1lwn8H4Tf1o52lRQ56YrosaqXg4u4GF rdItxgO01CsTbzKVai8k4MXhmyeDBlDJR9l+aad5Y24JO59G+b7JpA4w0wa5ZLJ3ypMR XktKePbv/hbL18DgBL5TvBPsO+RaSyZn2uBFcrjyIuFmqzfIGpWmbUgd26jP1n5qLS0Y 2Sjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=GwtWDzeZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc7-20020a170906dfe700b006e8788f74d6si3373412ejc.576.2022.04.21.02.17.15; Thu, 21 Apr 2022 02:17:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=GwtWDzeZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378056AbiDTL2m (ORCPT + 66 others); Wed, 20 Apr 2022 07:28:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378060AbiDTL2j (ORCPT ); Wed, 20 Apr 2022 07:28:39 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F28F62E5 for ; Wed, 20 Apr 2022 04:25:53 -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:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5NbAC5y8SSXoeF4ubJ0VGH9BseO7jD22woRHSrslIlk=; b=GwtWDzeZM7IRV6E4A5Fzd8s9Le 2Wxpn3TAHslLjrGQbbdRjHRruSzLykD3J9dszbyJndtQfTx3k6XgrNX26t8I3b0ULrLljKSJSdToT dwpYYc+YgKEzzGxS5YYqM2yYydrYyyOgw5VTAPC8F1nIiZrZKGwHCSRk0KnsraZQmsoQ=; Received: from p200300daa70ef200009e86881025829d.dip0.t-ipconnect.de ([2003:da:a70e:f200:9e:8688:1025:829d] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nh8Sz-0006bA-Su; Wed, 20 Apr 2022 13:25:50 +0200 Message-ID: <46f14357-d02b-cad3-9fa8-7e1962305251@nbd.name> Date: Wed, 20 Apr 2022 13:25:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH] mt76: mt7915: disable RX_HDR_TRANS_SHORT Content-Language: en-US To: Bo Jiao Cc: linux-wireless , Ryder Lee , Sujuan Chen , "lian . chen" , Shayne Chen , Evelyn Tsai , linux-mediatek References: <20220420071144.14573-1-bo.jiao@mediatek.com> From: Felix Fietkau In-Reply-To: <20220420071144.14573-1-bo.jiao@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 20.04.22 09:11, Bo Jiao wrote: > From: Bo Jiao > > This patch disables RX_TRANS_SHORT to make MDP to do header translation > when payload less than 8 bytes, hence the (QoS) null data can be encapsulated > to 802.3 format. However, WDS requires (QoS) null data in 802.11 format > to created vlan AP interfaces. > > Signed-off-by: Ryder Lee > Signed-off-by: lian.chen > Signed-off-by: Sujuan Chen > Signed-off-by: Bo Jiao > --- > drivers/net/wireless/mediatek/mt76/agg-rx.c | 3 +++ > drivers/net/wireless/mediatek/mt76/mt7915/init.c | 3 +++ > drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 4 ---- > drivers/net/wireless/mediatek/mt76/mt7915/regs.h | 3 +++ > 4 files changed, 9 insertions(+), 4 deletions(-) > > diff --git a/drivers/net/wireless/mediatek/mt76/agg-rx.c b/drivers/net/wireless/mediatek/mt76/agg-rx.c > index 7262222..efd1a85 100644 > --- a/drivers/net/wireless/mediatek/mt76/agg-rx.c > +++ b/drivers/net/wireless/mediatek/mt76/agg-rx.c > @@ -167,6 +167,9 @@ void mt76_rx_aggr_reorder(struct sk_buff *skb, struct sk_buff_head *frames) > return; > } > > + if (!status->aggr) > + return; > + > /* not part of a BA session */ > ackp = status->qos_ctl & IEEE80211_QOS_CTL_ACK_POLICY_MASK; > if (ackp != IEEE80211_QOS_CTL_ACK_POLICY_BLOCKACK && This is an unrelated change, for which I've just sent a replacement patch. The rest is applied. Thanks, - Felix