2023-12-29 02:01:21

by Mingyen Hsieh

[permalink] [raw]
Subject: [PATCH v1 00/10] wifi: mt76: mt7925: fix connection and throughput issues

From: Ming Yen Hsieh <[email protected]>

Hi,

Recently, we have some tests on the mt7925 driver and find a number of
potential connection bugs and throughput issues. This patchset contains
bugfixes and cleanups for these issues.

Thanks,
Yen.

v1:
1. [PATCH 04/10] wifi: mt76: mt7925: fix wmm queue mapping
a. change mq_to_aci[] definition from "static" to "static const".

Deren Wu (1):
wifi: mt76: mt7925: update PCIe DMA settings

Hao Zhang (1):
wifi: mt76: mt7925: fix mcu query command fail

Ming Yen Hsieh (6):
wifi: mt76: mt7925: fix connect to 80211b mode fail in 2Ghz band
wifi: mt76: mt7925: fix wmm queue mapping
wifi: mt76: mt7925: fix fw download fail
wifi: mt76: mt7925: fix WoW failed in encrypted mode
wifi: mt76: mt7925: fix the wrong header translation config
wifi: mt76: mt7925: add support to set ifs time by mcu command

Quan Zhou (1):
wifi: mt76: mt7925: add flow to avoid chip bt function fail

rong.yan (1):
wifi: mt76: mt7925: fix SAP no beacon issue in 5Ghz and 6Ghz band

.../wireless/mediatek/mt76/mt76_connac_mcu.c | 2 +-
.../wireless/mediatek/mt76/mt76_connac_mcu.h | 4 +
.../net/wireless/mediatek/mt76/mt7925/main.c | 26 ++-
.../net/wireless/mediatek/mt76/mt7925/mcu.c | 176 +++++++++++-------
.../net/wireless/mediatek/mt76/mt7925/mcu.h | 92 +++++++--
.../net/wireless/mediatek/mt76/mt7925/pci.c | 2 +
.../net/wireless/mediatek/mt76/mt792x_dma.c | 13 +-
.../net/wireless/mediatek/mt76/mt792x_regs.h | 8 +
8 files changed, 227 insertions(+), 96 deletions(-)

--
2.18.0



2023-12-29 02:01:28

by Mingyen Hsieh

[permalink] [raw]
Subject: [PATCH v1 03/10] wifi: mt76: mt7925: fix mcu query command fail

From: Hao Zhang <[email protected]>

Apply query command type properly to make the chip send the response back.
Otherwise, we may see the command timeout in driver side.

Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
Signed-off-by: Hao Zhang <[email protected]>
Signed-off-by: Ming Yen Hsieh <[email protected]>
---
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
index 9a8db9b1a4f2..4811fccbe30e 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
@@ -2850,12 +2850,16 @@ int mt7925_mcu_fill_message(struct mt76_dev *mdev, struct sk_buff *skb,
if (cmd & __MCU_CMD_FIELD_UNI) {
uni_txd = (struct mt76_connac2_mcu_uni_txd *)txd;
uni_txd->len = cpu_to_le16(skb->len - sizeof(uni_txd->txd));
- uni_txd->option = MCU_CMD_UNI_EXT_ACK;
uni_txd->cid = cpu_to_le16(mcu_cmd);
uni_txd->s2d_index = MCU_S2D_H2N;
uni_txd->pkt_type = MCU_PKT_ID;
uni_txd->seq = seq;

+ if (cmd & __MCU_CMD_FIELD_QUERY)
+ uni_txd->option = MCU_CMD_UNI_QUERY_ACK;
+ else
+ uni_txd->option = MCU_CMD_UNI_EXT_ACK;
+
goto exit;
}

--
2.18.0