mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
wifi: mt76: mt7996: Fix RX packets configuration for primary WED device
In order to properly set the number of rx packets for primary WED device
if hif device is available, move hif pointer initialization before
running mt7996_mmio_wed_init routine.
Fixes: 83eafc9251 ("wifi: mt76: mt7996: add wed tx support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20250909-mt7996-rro-rework-v5-9-7d66f6eb7795@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
committed by
Felix Fietkau
parent
77ff8caf3b
commit
cffed52dbf
@@ -137,6 +137,7 @@ static int mt7996_pci_probe(struct pci_dev *pdev,
|
||||
mdev = &dev->mt76;
|
||||
mt7996_wfsys_reset(dev);
|
||||
hif2 = mt7996_pci_init_hif2(pdev);
|
||||
dev->hif2 = hif2;
|
||||
|
||||
ret = mt7996_mmio_wed_init(dev, pdev, false, &irq);
|
||||
if (ret < 0)
|
||||
@@ -161,7 +162,6 @@ static int mt7996_pci_probe(struct pci_dev *pdev,
|
||||
|
||||
if (hif2) {
|
||||
hif2_dev = container_of(hif2->dev, struct pci_dev, dev);
|
||||
dev->hif2 = hif2;
|
||||
|
||||
ret = mt7996_mmio_wed_init(dev, hif2_dev, true, &hif2_irq);
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user