mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-27 14:41:12 +04:00
mt76: update to Git HEAD (2026-10-28)
5e697c3982d7 wifi: mt76: mt7603: validate MCU response length 19901c7f3cc9 wifi: mt76: mt7915: validate MCU response lengths 0720e321afee wifi: mt76: mt7915: validate MURU statistics response bbb18d7844e9 wifi: mt76: mt7915: validate EEPROM response length 7264a8a110c4 wifi: mt76: mt7915: validate free-block response length 8c534f59b4a9 wifi: mt76: mt7915: validate channel MIB response length fa6b2367e281 wifi: mt76: mt7915: validate RX rate response length 07f248fe9830 wifi: mt76: mt7915: validate WED TX statistics response f76151f8d04f wifi: mt76: mt7915: validate RF register response length 0d218afcbddb wifi: mt76: mt76x02: keep A-MSDU subframe buffers at even addresses 558c6aee6891 wifi: mt76: mt76x02: sync the group key PN before a restart db39c8d4d6d9 wifi: mt76: fix NULL dereference reading napi_threaded in debugfs 6dcc00bb44c5 wifi: mt76: mt7925: deduplicate MLD support code in mt7925_mac_link_sta_add 859b54fabce0 wifi: mt76: mt7925: do not reset WPDMA before stopping NAPI on reset 2bb98336d469 wifi: mt76: mt7996: clamp VHT/HE beamforming NSS d2712ce4ed84 wifi: mt76: mt7996: clamp EHT beamforming NSS d973f6ec9a3d wifi: mt76: mt7921: validate MCU response lengths 1618141fbd29 wifi: mt76: mt7921: validate EEPROM response length 1fe8a56213ce wifi: mt76: mt7921: validate TX power response length 759e140bc76a wifi: mt76: mt7921: validate testmode query response e06a746261e0 wifi: mt76: mt7925: validate MCU response lengths ae20af438c32 wifi: mt76: mt7925: validate register query response ad5b05038a34 wifi: mt76: mt7925: validate EEPROM response length d0a80080eed9 wifi: mt76: mt7925: validate temperature response length 06deecb57b96 wifi: mt76: mt7925: validate TX power response length a73af3f06db4 wifi: mt76: mt7925: validate radio status response 487aa470cada wifi: mt76: mt792x: bound firmware release-info parsing a13a2be996e3 wifi: mt76: mt7996: validate MCU response lengths e0670ce95e40 wifi: mt76: mt7996: validate EEPROM response lengths 8f71d66ad74e wifi: mt76: mt7996: validate free-block response length 90e7c0007d7f wifi: mt76: mt7996: validate channel MIB response length e1e90bbe363c wifi: mt76: mt7996: validate temperature response length f99c91725472 wifi: mt76: mt7996: validate RF register response length 8127e3ff88ff wifi: mt76: mt76x02: keep stations registered during watchdog recovery 247c4d987c39 wifi: mt76: honour the more-data flag when releasing buffered frames f75d4f05974d wifi: mt76: mt76x02: serialise wcid drop mask updates 4af6beb07b88 wifi: mt76: mt76x02: clear the wcid drop mask for all powersave responses 304aa9be68dd wifi: mt76: mt7996: stop radios after add failure 1295868b85d3 wifi: mt76: mt7921: validate CLC event length 04bf44cd2cb5 wifi: mt76: mt7921: validate NIC capability TLV payload lengths 3c0806b4dfae wifi: mt76: mt7925: validate NIC capability TLV lengths cb8537008b58 wifi: mt76: mt7925: free the MCU event when linearising fails cd0c5fdf01b3 wifi: mt76: mt7996: validate radar, thermal and WED RRO event lengths ba86572bd0d4 wifi: mt76: connac: validate the RAM firmware region table 3ecd7e69dbc9 wifi: mt76: mt7996: validate the RAM firmware region table 2871dc0e2b72 wifi: mt76: mt7925: validate CLC firmware regions and records 35d9c038be88 wifi: mt76: connac: validate the ROM patch section table 8356461aee79 wifi: mt76: mt7996: validate the ROM patch section table d4c9872bbd9c wifi: mt76: mt792x: use mt76_connac2_fw_check() 8a8c857798f5 wifi: mt76: mt7996: add scan dwell time hw cap 451f47376280 wifi: mt76: mt7996: take the link of an 802.3 frame from its station b4dd3d4f6d27 wifi: mt76: mt7996: do not update beacons while CSA is active d343a85da6fe wifi: mt76: mt7996: only remove a BMC STA_REC that was added 46ed43b905d5 wifi: mt76: mt7996: pass the puncturing bitmap to the firmware 49892ef42067 wifi: mt76: abort a scan when the chanctx changes 1507666f034f wifi: mt76: set the channel again when the chanctx puncturing changes ab907b18ddc9 wifi: mt76: mt7996: advertise preamble puncturing support d55666f37245 wifi: mt76: mt7996: keep scan and ROC links out of the MLD group fde06f678c30 wifi: mt76: mt7996: factor the vif link teardown out of remove_interface 25dbe41cf7c9 wifi: mt76: mt7996: destroy station links before the MLD group is freed fecc93e7f1ed wifi: mt76: mt7996: send MLD link operations for an AP MLD only 78084e732159 wifi: mt76: mt7996: set up a vif link again on another radio 1e1ca91c2b70 wifi: mt76: mt7996: describe an MLD peer with the PEER_MLD command 43008928840b wifi: mt76: mt7915: honour the valid flag in efuse block reads a60235641e8f wifi: mt76: mt7996: skip MLD address translation for encap offload frames 1152058aee06 wifi: mt76: mt7921: honour the valid flag in efuse block reads 2356292ae38f wifi: mt76: mt7915: upload the CSA beacon only once 801f6a53f2f1 wifi: mt76: read the chanctx of a link once 47665de41b5d wifi: mt76: restart the beacon monitor of a link that gets a chanctx again 9c4ada3a37eb wifi: mt76: publish the beacon monitor interval after its timestamp ba30cf5adb2b wifi: mt76: mt7996: keep rx header translation off while a monitor runs 6611f0126ccd wifi: mt76: mt7996: apply monitor mode again after a full reset 59b149d24e27 wifi: mt76: check the RX PN of an MLD peer once per peer d8d24d7cbf5d wifi: mt76: mt7996: send no MLD_SETUP when station links only go away 46b67e5b7c49 wifi: mt76: mt7996: keep a unicast management frame on its MLO link d7e3bee841a5 wifi: mt76: mt7996: pass the default DSCP map to the firmware 6428114db709 wifi: mt76: mt7996: write the TXD of stream classified 802.3 frames 2b926d2d7776 wifi: mt76: mt7996: support SCS and MSCS 7f2f67eebb54 wifi: mt76: mt7996: implement the flow offload flush op eb9e675d4cfc wifi: mt76: mt7996: implement the flow offload idle op 238538d7d1cf wifi: mt76: answer the flow priority query f349872e5149 firmware: update mt7990, mt7992 and mt7996 firmware to 202607 0936617dc529 wifi: mt76: mt7996: write the TXD of 802.3 frames with an explicit UP Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
1 parent
292104ab33
commit
d38d376b49
4 files changed
+3
-343
No files matched your search
@@ -8,9 +8,9 @@ PKG_LICENSE_FILES:=
|
||||
|
||||
PKG_SOURCE_URL:=https://github.com/openwrt/mt76
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_DATE:=2026-10-08
|
||||
PKG_SOURCE_VERSION:=467ae2e3f190baf737e15e318906da0dc7d0ab91
|
||||
PKG_MIRROR_HASH:=2456aeba71bcda19445d539c11f165ab79f5c253345e0c6f6b3b506de01c0fdb
|
||||
PKG_SOURCE_DATE:=2026-10-28
|
||||
PKG_SOURCE_VERSION:=0936617dc529ff9da0385221d3fa6de732231177
|
||||
PKG_MIRROR_HASH:=3a3844097e66021f21f0ec8508cb740ef6536a2243f74c47fd5a898edb26839f
|
||||
|
||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||
PKG_USE_NINJA:=0
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
From aa9c3f12b07157863b83dc854ce6029d942cac03 Mon Sep 17 00:00:00 2001
|
||||
From: Felix Fietkau <nbd@nbd.name>
|
||||
Date: Fri, 16 Oct 2026 14:35:44 +0200
|
||||
Subject: [PATCH] wifi: mt76: answer the flow priority query
|
||||
|
||||
Implement the WED flow_prio callback by mapping the station index of
|
||||
the entry back to the station and passing the query to mac80211. This
|
||||
gives offloaded flows the same user priority that the software path
|
||||
assigns to their frames.
|
||||
|
||||
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
---
|
||||
mt76.h | 3 +++
|
||||
mt7996/mmio.c | 1 +
|
||||
wed.c | 18 ++++++++++++++++++
|
||||
3 files changed, 22 insertions(+)
|
||||
|
||||
--- a/mt76.h
|
||||
+++ b/mt76.h
|
||||
@@ -1262,6 +1262,9 @@ int mt76_wed_net_setup_tc(struct ieee802
|
||||
void *type_data);
|
||||
#ifdef CONFIG_NET_MEDIATEK_SOC_WED
|
||||
u32 mt76_wed_init_rx_buf(struct mtk_wed_device *wed, int size);
|
||||
+int mt76_wed_flow_prio(struct mtk_wed_device *wed, u16 idx,
|
||||
+ const struct cfg80211_flow_info *info, int dscp,
|
||||
+ u8 *prio);
|
||||
int mt76_wed_offload_enable(struct mtk_wed_device *wed);
|
||||
int mt76_wed_dma_setup(struct mt76_dev *dev, struct mt76_queue *q, bool reset);
|
||||
#else
|
||||
--- a/mt7996/mmio.c
|
||||
+++ b/mt7996/mmio.c
|
||||
@@ -613,6 +613,7 @@ int mt7996_mmio_wed_init(struct mt7996_d
|
||||
wed->wlan.release_rx_buf = mt76_wed_release_rx_buf;
|
||||
wed->wlan.offload_enable = mt76_wed_offload_enable;
|
||||
wed->wlan.offload_disable = mt76_wed_offload_disable;
|
||||
+ wed->wlan.flow_prio = mt76_wed_flow_prio;
|
||||
if (!hif2) {
|
||||
wed->wlan.reset = mt7996_mmio_wed_reset;
|
||||
wed->wlan.reset_complete = mt76_wed_reset_complete;
|
||||
--- a/wed.c
|
||||
+++ b/wed.c
|
||||
@@ -83,6 +83,24 @@ unmap:
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mt76_wed_init_rx_buf);
|
||||
|
||||
+/* Called from the PPE receive path under RCU, must not sleep */
|
||||
+int mt76_wed_flow_prio(struct mtk_wed_device *wed, u16 idx,
|
||||
+ const struct cfg80211_flow_info *info, int dscp,
|
||||
+ u8 *prio)
|
||||
+{
|
||||
+ struct mt76_dev *dev = mt76_wed_to_dev(wed);
|
||||
+ struct ieee80211_sta *sta;
|
||||
+ struct mt76_wcid *wcid;
|
||||
+
|
||||
+ wcid = __mt76_wcid_ptr(dev, idx);
|
||||
+ sta = wcid_to_sta(wcid);
|
||||
+ if (!sta)
|
||||
+ return 0;
|
||||
+
|
||||
+ return ieee80211_sta_flow_prio(sta, info, dscp, prio);
|
||||
+}
|
||||
+EXPORT_SYMBOL_GPL(mt76_wed_flow_prio);
|
||||
+
|
||||
int mt76_wed_offload_enable(struct mtk_wed_device *wed)
|
||||
{
|
||||
struct mt76_dev *dev = mt76_wed_to_dev(wed);
|
||||
-209
@@ -1,209 +0,0 @@
|
||||
From 45843eda41fa6cad87769ebf875a2408f66c97fe Mon Sep 17 00:00:00 2001
|
||||
From: Felix Fietkau <nbd@nbd.name>
|
||||
Date: Fri, 16 Oct 2026 14:35:09 +0200
|
||||
Subject: [PATCH] wifi: mt76: mt7996: implement the flow offload flush op
|
||||
|
||||
Unbind the PPE entries of a station that match the flushed flow key, so
|
||||
that the next packet binds them again with a fresh priority query. The
|
||||
driver selects the entries through the WED match callback, since
|
||||
matching a flow key needs cfg80211. The forward path fills entries with
|
||||
the station index of the default link, so the same index is flushed.
|
||||
|
||||
The PPE also unbinds the flows that come from the station, so that its
|
||||
uplink frames reach mac80211 again. Pass the station index of the
|
||||
default link with a frame of the WED RX path, which binds those entries.
|
||||
The RX path always uses the first WED device, so flush that one as well
|
||||
when the station is sent through the second. mt7915 passes its station
|
||||
index too.
|
||||
|
||||
The flow key describes the frames to the station, so compare an entry
|
||||
that carries the frames of the station in the mirrored direction. A
|
||||
routed entry of that direction holds the MAC addresses of the next hop,
|
||||
so leave out the fields that the entry does not carry.
|
||||
|
||||
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
---
|
||||
mt7915/mac.c | 3 +-
|
||||
mt7996/mac.c | 9 ++++-
|
||||
mt7996/main.c | 104 +++++++++++++++++++++++++++++++++++++++++++++++---
|
||||
3 files changed, 109 insertions(+), 7 deletions(-)
|
||||
|
||||
--- a/mt7915/mac.c
|
||||
+++ b/mt7915/mac.c
|
||||
@@ -256,7 +256,8 @@ mt7915_wed_check_ppe(struct mt7915_dev *
|
||||
|
||||
mtk_wed_device_ppe_check(&dev->mt76.mmio.wed, skb,
|
||||
FIELD_GET(MT_DMA_PPE_CPU_REASON, info),
|
||||
- FIELD_GET(MT_DMA_PPE_ENTRY, info));
|
||||
+ FIELD_GET(MT_DMA_PPE_ENTRY, info),
|
||||
+ msta->wcid.idx);
|
||||
}
|
||||
|
||||
static int
|
||||
--- a/mt7996/mac.c
|
||||
+++ b/mt7996/mac.c
|
||||
@@ -389,12 +389,18 @@ mt7996_wed_check_ppe(struct mt7996_dev *
|
||||
struct mt7996_sta *msta, struct sk_buff *skb,
|
||||
u32 info)
|
||||
{
|
||||
+ struct mt7996_sta_link *msta_link;
|
||||
struct ieee80211_vif *vif;
|
||||
struct wireless_dev *wdev;
|
||||
|
||||
if (!msta || !msta->vif)
|
||||
return;
|
||||
|
||||
+ /* the flow offload ops use the default link */
|
||||
+ msta_link = mt7996_sta_link(msta, msta->deflink_id);
|
||||
+ if (!msta_link)
|
||||
+ return;
|
||||
+
|
||||
if (!mt76_queue_is_wed_rx(q))
|
||||
return;
|
||||
|
||||
@@ -408,7 +414,8 @@ mt7996_wed_check_ppe(struct mt7996_dev *
|
||||
|
||||
mtk_wed_device_ppe_check(&dev->mt76.mmio.wed, skb,
|
||||
FIELD_GET(MT_DMA_PPE_CPU_REASON, info),
|
||||
- FIELD_GET(MT_DMA_PPE_ENTRY, info));
|
||||
+ FIELD_GET(MT_DMA_PPE_ENTRY, info),
|
||||
+ msta_link->wcid.idx);
|
||||
}
|
||||
|
||||
static int
|
||||
--- a/mt7996/main.c
|
||||
+++ b/mt7996/main.c
|
||||
@@ -2940,6 +2940,102 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
+static struct mtk_wed_device *
|
||||
+mt7996_sta_wed(struct mt7996_dev *dev, struct mt7996_sta_link *msta_link)
|
||||
+{
|
||||
+ if (dev->hif2 &&
|
||||
+ ((is_mt7996(&dev->mt76) && msta_link->wcid.phy_idx == MT_BAND2) ||
|
||||
+ (is_mt7992(&dev->mt76) && msta_link->wcid.phy_idx == MT_BAND1)))
|
||||
+ return &dev->mt76.mmio.wed_hif2;
|
||||
+
|
||||
+ return &dev->mt76.mmio.wed;
|
||||
+}
|
||||
+
|
||||
+/* The forward path fills the entries with the index of the default link */
|
||||
+static struct mtk_wed_device *
|
||||
+mt7996_sta_flow_wed(struct mt7996_dev *dev, struct ieee80211_sta *sta,
|
||||
+ u16 *wcid_idx)
|
||||
+{
|
||||
+ struct mt7996_sta *msta = (struct mt7996_sta *)sta->drv_priv;
|
||||
+ struct mt7996_sta_link *msta_link;
|
||||
+ struct mtk_wed_device *wed;
|
||||
+
|
||||
+ msta_link = mt7996_sta_link_protected(dev, msta, msta->deflink_id);
|
||||
+ if (!msta_link)
|
||||
+ return NULL;
|
||||
+
|
||||
+ wed = mt7996_sta_wed(dev, msta_link);
|
||||
+ if (!mtk_wed_device_active(wed))
|
||||
+ return NULL;
|
||||
+
|
||||
+ *wcid_idx = msta_link->wcid.idx;
|
||||
+
|
||||
+ return wed;
|
||||
+}
|
||||
+
|
||||
+struct mt7996_flow_match {
|
||||
+ const struct cfg80211_flow_key *key;
|
||||
+ u32 fields;
|
||||
+};
|
||||
+
|
||||
+/*
|
||||
+ * The key describes the frames to the station, so an entry that carries the
|
||||
+ * frames of the station is compared in the mirrored direction. A routed entry
|
||||
+ * of that direction holds the MAC addresses of the next hop and reports none,
|
||||
+ * so the comparison skips the fields that the entry does not carry.
|
||||
+ */
|
||||
+static bool
|
||||
+mt7996_flow_match(const struct cfg80211_flow_info *info, bool rx, void *arg)
|
||||
+{
|
||||
+ struct mt7996_flow_match *m = arg;
|
||||
+ struct cfg80211_flow_info ref = {
|
||||
+ .key = *m->key,
|
||||
+ .present = m->fields,
|
||||
+ };
|
||||
+ enum cfg80211_flow_dir dir = CFG80211_FLOW_AS_IS;
|
||||
+ struct cfg80211_flow_key key, want;
|
||||
+ u32 fields = m->fields;
|
||||
+
|
||||
+ if (rx) {
|
||||
+ dir = CFG80211_FLOW_MIRRORED;
|
||||
+ fields &= info->present;
|
||||
+ }
|
||||
+
|
||||
+ if (!cfg80211_flow_key_build(info, fields, dir, &key))
|
||||
+ return false;
|
||||
+
|
||||
+ cfg80211_flow_key_build(&ref, fields, CFG80211_FLOW_AS_IS, &want);
|
||||
+
|
||||
+ return !memcmp(&key, &want, sizeof(key));
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+mt7996_flow_offload_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
+ struct ieee80211_sta *sta,
|
||||
+ const struct cfg80211_flow_key *key, u32 fields)
|
||||
+{
|
||||
+ struct mt7996_flow_match m = {
|
||||
+ .key = key,
|
||||
+ .fields = fields,
|
||||
+ };
|
||||
+ struct mt7996_dev *dev = mt7996_hw_dev(hw);
|
||||
+ struct mtk_wed_device *rx_wed = &dev->mt76.mmio.wed;
|
||||
+ struct mtk_wed_device *wed;
|
||||
+ u16 wcid_idx;
|
||||
+
|
||||
+ wed = mt7996_sta_flow_wed(dev, sta, &wcid_idx);
|
||||
+ if (!wed)
|
||||
+ return;
|
||||
+
|
||||
+ mtk_wed_device_flow_flush(wed, wcid_idx, key ? mt7996_flow_match : NULL,
|
||||
+ &m);
|
||||
+
|
||||
+ /* uplink entries belong to the RX WED */
|
||||
+ if (wed != rx_wed && mtk_wed_device_active(rx_wed))
|
||||
+ mtk_wed_device_flow_flush(rx_wed, wcid_idx,
|
||||
+ key ? mt7996_flow_match : NULL, &m);
|
||||
+}
|
||||
+
|
||||
static int
|
||||
mt7996_net_fill_forward_path(struct ieee80211_hw *hw,
|
||||
struct ieee80211_vif *vif,
|
||||
@@ -2949,9 +3045,9 @@ mt7996_net_fill_forward_path(struct ieee
|
||||
{
|
||||
struct mt7996_sta *msta = (struct mt7996_sta *)sta->drv_priv;
|
||||
struct mt7996_dev *dev = mt7996_hw_dev(hw);
|
||||
- struct mtk_wed_device *wed = &dev->mt76.mmio.wed;
|
||||
struct mt7996_sta_link *msta_link;
|
||||
struct mt7996_vif_link *link;
|
||||
+ struct mtk_wed_device *wed;
|
||||
|
||||
link = mt7996_vif_link(dev, vif, msta->deflink_id);
|
||||
if (!link)
|
||||
@@ -2964,10 +3060,7 @@ mt7996_net_fill_forward_path(struct ieee
|
||||
if (!msta_link->wcid.sta || msta_link->wcid.idx > MT7996_WTBL_STA)
|
||||
return -EIO;
|
||||
|
||||
- if (dev->hif2 &&
|
||||
- ((is_mt7996(&dev->mt76) && msta_link->wcid.phy_idx == MT_BAND2) ||
|
||||
- (is_mt7992(&dev->mt76) && msta_link->wcid.phy_idx == MT_BAND1)))
|
||||
- wed = &dev->mt76.mmio.wed_hif2;
|
||||
+ wed = mt7996_sta_wed(dev, msta_link);
|
||||
|
||||
if (!mtk_wed_device_active(wed) &&
|
||||
!mt76_npu_device_active(&dev->mt76))
|
||||
@@ -3144,6 +3237,7 @@ const struct ieee80211_ops mt7996_ops =
|
||||
#endif
|
||||
.set_radar_background = mt7996_set_radar_background,
|
||||
.net_fill_forward_path = mt7996_net_fill_forward_path,
|
||||
+ .flow_offload_flush = mt7996_flow_offload_flush,
|
||||
#if defined(CONFIG_NET_MEDIATEK_SOC_WED) || defined(CONFIG_MT7996_NPU)
|
||||
.net_setup_tc = mt7996_net_setup_tc,
|
||||
#endif
|
||||
-65
@@ -1,65 +0,0 @@
|
||||
From f87ceaa4fe5e67805ddfecba7dc146a6114005ab Mon Sep 17 00:00:00 2001
|
||||
From: Felix Fietkau <nbd@nbd.name>
|
||||
Date: Fri, 16 Oct 2026 14:35:32 +0200
|
||||
Subject: [PATCH] wifi: mt76: mt7996: implement the flow offload idle op
|
||||
|
||||
Report how long ago the PPE last hit an entry of the station that
|
||||
matches the flow, so that mac80211 can keep a learned MSCS entry alive
|
||||
while the hardware forwards the flow. The entries that carry the frames
|
||||
of the station count as well. They belong to the RX WED, so ask that one
|
||||
too when the station is sent through the second.
|
||||
|
||||
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
---
|
||||
mt7996/main.c | 33 +++++++++++++++++++++++++++++++++
|
||||
1 file changed, 33 insertions(+)
|
||||
|
||||
--- a/mt7996/main.c
|
||||
+++ b/mt7996/main.c
|
||||
@@ -3037,6 +3037,38 @@ mt7996_flow_offload_flush(struct ieee802
|
||||
}
|
||||
|
||||
static int
|
||||
+mt7996_flow_offload_idle(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
+ struct ieee80211_sta *sta,
|
||||
+ const struct cfg80211_flow_key *key, u32 fields)
|
||||
+{
|
||||
+ struct mt7996_flow_match m = {
|
||||
+ .key = key,
|
||||
+ .fields = fields,
|
||||
+ };
|
||||
+ struct mt7996_dev *dev = mt7996_hw_dev(hw);
|
||||
+ struct mtk_wed_device *rx_wed = &dev->mt76.mmio.wed;
|
||||
+ struct mtk_wed_device *wed;
|
||||
+ int idle, rx_idle;
|
||||
+ u16 wcid_idx;
|
||||
+
|
||||
+ wed = mt7996_sta_flow_wed(dev, sta, &wcid_idx);
|
||||
+ if (!wed)
|
||||
+ return -ENOENT;
|
||||
+
|
||||
+ idle = mtk_wed_device_flow_idle(wed, wcid_idx, mt7996_flow_match, &m);
|
||||
+ if (wed == rx_wed || !mtk_wed_device_active(rx_wed))
|
||||
+ return idle;
|
||||
+
|
||||
+ /* uplink entries belong to the RX WED */
|
||||
+ rx_idle = mtk_wed_device_flow_idle(rx_wed, wcid_idx, mt7996_flow_match,
|
||||
+ &m);
|
||||
+ if (idle < 0 || (rx_idle >= 0 && rx_idle < idle))
|
||||
+ return rx_idle;
|
||||
+
|
||||
+ return idle;
|
||||
+}
|
||||
+
|
||||
+static int
|
||||
mt7996_net_fill_forward_path(struct ieee80211_hw *hw,
|
||||
struct ieee80211_vif *vif,
|
||||
struct ieee80211_sta *sta,
|
||||
@@ -3238,6 +3270,7 @@ const struct ieee80211_ops mt7996_ops =
|
||||
.set_radar_background = mt7996_set_radar_background,
|
||||
.net_fill_forward_path = mt7996_net_fill_forward_path,
|
||||
.flow_offload_flush = mt7996_flow_offload_flush,
|
||||
+ .flow_offload_idle = mt7996_flow_offload_idle,
|
||||
#if defined(CONFIG_NET_MEDIATEK_SOC_WED) || defined(CONFIG_MT7996_NPU)
|
||||
.net_setup_tc = mt7996_net_setup_tc,
|
||||
#endif
|
||||
Reference in new issue
Block a user