[][MT76][WED][Fix 176 station connect crash issue]
[Description]
Fix 176 station connect crash issue
mt7915 will set mu report timer, then wa will send tx report to wm
one station more than 176, wm hang.
[Release-log]
N/A
Change-Id: Ibd1b34375a44f42a2c2772449fb6259df46162f4
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6455202
diff --git a/autobuild_mac80211_release/package/kernel/mt76/patches/3002-mt76-add-wed-rx-support.patch b/autobuild_mac80211_release/package/kernel/mt76/patches/3002-mt76-add-wed-rx-support.patch
index 22222e4..482a8f5 100644
--- a/autobuild_mac80211_release/package/kernel/mt76/patches/3002-mt76-add-wed-rx-support.patch
+++ b/autobuild_mac80211_release/package/kernel/mt76/patches/3002-mt76-add-wed-rx-support.patch
@@ -20,7 +20,7 @@
mt7915/init.c | 9 ++
mt7915/mac.c | 103 ++++++++++++++++++-
mt7915/main.c | 26 ++++-
- mt7915/mcu.c | 14 ++-
+ mt7915/mcu.c | 15 ++-
mt7915/mcu.h | 1 +
mt7915/mmio.c | 26 ++++-
mt7915/mt7915.h | 10 +-
@@ -29,7 +29,7 @@
mt7921/mt7921.h | 4 +-
mt7921/pci_mac.c | 4 +-
tx.c | 34 +++++++
- 24 files changed, 505 insertions(+), 81 deletions(-)
+ 24 files changed, 506 insertions(+), 81 deletions(-)
diff --git a/dma.c b/dma.c
index 8ea09e6..3317d2b 100644
@@ -1058,7 +1058,7 @@
ctx->dev = NULL;
diff --git a/mt7915/mcu.c b/mt7915/mcu.c
-index 8c7328b..adbb107 100644
+index 8c7328b..5fb8af3 100644
--- a/mt7915/mcu.c
+++ b/mt7915/mcu.c
@@ -1722,6 +1722,7 @@ int mt7915_mcu_add_sta(struct mt7915_dev *dev, struct ieee80211_vif *vif,
@@ -1086,7 +1086,7 @@
/* force firmware operation mode into normal state,
* which should be set before firmware download stage.
-@@ -2377,8 +2381,14 @@ int mt7915_run_firmware(struct mt7915_dev *dev)
+@@ -2377,8 +2381,15 @@ int mt7915_run_firmware(struct mt7915_dev *dev)
if (ret)
return ret;
@@ -1096,9 +1096,10 @@
+ if (is_mt7915(&dev->mt76))
+ mt7915_mcu_wa_cmd(dev, MCU_WA_PARAM_CMD(CAPABILITY),
+ 0, 0, 0);
-+ mt7915_mcu_wa_cmd(dev, MCU_WA_PARAM_CMD(SET),
-+ MCU_WA_PARAM_WED_VERSION,
-+ wed->rev_id, 0);
++ if (!is_mt7915(&dev->mt76))
++ mt7915_mcu_wa_cmd(dev, MCU_WA_PARAM_CMD(SET),
++ MCU_WA_PARAM_WED_VERSION,
++ wed->rev_id, 0);
+ }
ret = mt7915_mcu_set_mwds(dev, 1);