Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp11963184pxu; Fri, 1 Jan 2021 04:48:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzpM6fk6vqA2ky6yxBwTqHSJ7WySDP0SbENXn4euu2oEfBdSFOIsnWoFpkpxiSNq7BTCQy X-Received: by 2002:a17:906:351a:: with SMTP id r26mr54878164eja.409.1609505293434; Fri, 01 Jan 2021 04:48:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609505293; cv=none; d=google.com; s=arc-20160816; b=COtGLWzbRWxFrhTJCAvlLrE9VdEySVMCBZjJ5fRoR8i5nr4AU3LR4yxw13uo5QfmxG QWp4l3TXySLyGkBO2jotqpqUl6m3VNRa1HOpyglzjlHGhhM3Yc7U6qGGER9AqBxZmyWq iersw3F3l+UCc4+ndBGIxiLBprieXpNlEP3xtBqR1FOnCW0I9IbsFHhvi4nDvArMI2Ck m4qwXB9/cKc/w9/2DojHo2czFFRv/nenK/RmosR89RhswIFp6Cpp0US59XhSlr+CaIKJ lS+226KbF5iX2tCa+RqMgkmkQE3gNOS5g79A84BhJZZHoSejgozKhePcM2x47WlNN7Cm 9qdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=1lteQauNlpDOuBybw52G01HnzF6NaeAAPB6RzkxdBEU=; b=l/GG7fkrCOxoddUKRJfa3GM+kdyd2B6jUEhH47g2by7h9aX4wJy+YzLg9sDKFSTKFH 0+bV5y6WdmKZlDhG0UCqlj+kzuKeVaF06QtM5R3zTBn0ruOCFdH3GgadwQb7LkPCQ7xV YcAdxNo1t2iJqpeBvVtVqRTDgc9ScgwuQA1qlPlwfWBI74dSPCiuvwvsGuUSEtTqkTp7 fdvMjcnzrFSr58lqcNGog+k+WAt0QAqbwEF/DJPjkmX3U5yc8N4U+FOHXTlSVlLPcIWV Mu6Ya5UUIFZRsf6JhMeuUg43a/FTosfTt6a9NGYBvRXBC80O4jYrhjzRTaTkLovZiusz RJhg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c22si23765303ejx.290.2021.01.01.04.47.27; Fri, 01 Jan 2021 04:48:13 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726747AbhAAMhN (ORCPT + 99 others); Fri, 1 Jan 2021 07:37:13 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:50806 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726604AbhAAMhN (ORCPT ); Fri, 1 Jan 2021 07:37:13 -0500 X-UUID: 61368b82a4f3403786080416252c66a8-20210101 X-UUID: 61368b82a4f3403786080416252c66a8-20210101 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1432165963; Fri, 01 Jan 2021 20:36:22 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 1 Jan 2021 20:36:20 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 1 Jan 2021 20:36:14 +0800 From: To: CC: , , , , , , , , , , Subject: Re: [PATCH -next v4 03/13] mt76: mt7921: add MAC support Date: Fri, 1 Jan 2021 20:36:13 +0800 Message-ID: <1609504573-16814-1-git-send-email-sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1609455495.20208.8.camel@mtkswgap22--annotate> References: <1609455495.20208.8.camel@mtkswgap22--annotate> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Sean Wang >On Thu, 2020-12-31 at 02:06 +0800, sean.wang@mediatek.com wrote: >> From: Sean Wang >> >> Add Rx packet description parsing, Tx packet description compositon, >> handle packet recycling and provide MAC information mt76 core needs to >> support mac80211. >> >> Co-developed-by: Lorenzo Bianconi >> Signed-off-by: Lorenzo Bianconi >> Co-developed-by: Soul Huang >> Signed-off-by: Soul Huang >> Signed-off-by: Sean Wang >> --- >> .../wireless/mediatek/mt76/mt7921/Makefile | 2 +- >> .../net/wireless/mediatek/mt76/mt7921/mac.c | 1364 +++++++++++++++++ > >Why not put mac.h into this patch? I remember mcu.c would refer to something in mac.h but it seems better move mac.h to here. > >> 2 files changed, 1365 insertions(+), 1 deletion(-) create mode >> 100644 drivers/net/wireless/mediatek/mt76/mt7921/mac.c > >> +int mt7921_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, >> + enum mt76_txq_id qid, struct mt76_wcid *wcid, >> + struct ieee80211_sta *sta, >> + struct mt76_tx_info *tx_info) >> +{ >> + struct mt7921_dev *dev = container_of(mdev, struct mt7921_dev, mt76); >> + struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx_info->skb); >> + struct ieee80211_key_conf *key = info->control.hw_key; >> + struct mt76_tx_cb *cb = mt76_tx_skb_cb(tx_info->skb); >> + struct mt76_txwi_cache *t; >> + struct mt7921_txp_common *txp; >> + int id; >> + u8 *txwi = (u8 *)txwi_ptr; > >Moreover, hardware cannot add LLC-SNAP when skb->data_len is 0, which causes Tx stuck. We found this case happened on mt7915 (station mode) quality test with few packets whose skb->len = 14 > >So,https://github.com/nbd168/wireless/commit/6b6605e4061c94c9909ff82acc0e02bfd3a8d40e > We'll add the fixes in the next version including mcu one you suggested in the other mail thread. Happy new year Sean >Ryder >