mt76: mt7921: add MAC support
From: Sean Wang <[email protected]>
Quoted 16 lines · On Thu, 2020-12-31 at 02:06 +0800, [email protected] wrote:
Quoted 6 lines
From: Sean Wang <[email protected]>
Add Rx packet description parsing, Tx packet description compositon, handle packet recycling and provide MAC information mt76 core needs to support mac80211.
Quoted 8 lines
Co-developed-by Lorenzo Bianconi <[email protected]>Signed-off-by Lorenzo Bianconi <[email protected]>Co-developed-by Soul Huang <[email protected]>Signed-off-by Soul Huang <[email protected]>Signed-off-by Sean Wang <[email protected]>--- .../wireless/mediatek/mt76/mt7921/Makefile | 2 +- .../net/wireless/mediatek/mt76/mt7921/mac.c | 1364 +++++++++++++++++
Quoted 1 line
Why not put
mac.hinto this patch?
I remember mcu.c would refer to something in mac.h but it seems better move mac.h to here.
Quoted 20 lines
Quoted 7 lines
2 files changed, 1365 insertions(+), 1 deletion(-) create mode100644
drivers/net/wireless/mediatek/mt76/mt7921/mac.c(quoted diff) +3
-0+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,Review
Quoted 10 lines
(quoted diff) +10
-0+ 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_lenis 0, which causes Tx stuck. We found this case happened on mt7915 (station mode) quality test with few packets whoseskb->len= 14
We'll add the fixes in the next version including mcu one you suggested in the other mail thread.
Happy new year
Sean
Quoted 2 lines
Ryder
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek