blob: 3c5755d8c44e2f47ff7596b4e7b92729c792652c [file] [log] [blame]
From eccfceec92bda3da9fa815c1ec55b1c74a0f3254 Mon Sep 17 00:00:00 2001
From: Rex Lu <rex.lu@mediatek.com>
Date: Fri, 6 Sep 2024 15:32:05 +0800
Subject: [PATCH 194/223] mtk: mt76: mt7996: Fix call trace happened when wed
attach fail
1. when we attech wed0 fail, we will not going to attach wed1
Signed-off-by: Rex Lu <rex.lu@mediatek.com>
---
mt7996/mmio.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/mt7996/mmio.c b/mt7996/mmio.c
index c84c1bbb..8eff971d 100644
--- a/mt7996/mmio.c
+++ b/mt7996/mmio.c
@@ -449,8 +449,11 @@ int mt7996_mmio_wed_init(struct mt7996_dev *dev, void *pdev_ptr,
wed->wlan.reset_complete = mt76_wed_reset_complete;
}
- if (mtk_wed_device_attach(wed))
+ if (mtk_wed_device_attach(wed)) {
+ wed_enable = false;
+ dev->has_rro = false;
return 0;
+ }
*irq = wed->irq;
dev->mt76.dma_dev = wed->dev;
--
2.45.2