projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c88e7e
)
mt76: mt7615: store N9 firmware version instead of CR4
author
Felix Fietkau
<nbd@nbd.name>
Tue, 17 Dec 2019 03:59:05 +0000
(
04:59
+0100)
committer
Felix Fietkau
<nbd@nbd.name>
Fri, 14 Feb 2020 09:06:07 +0000
(10:06 +0100)
CR4 is used very little, N9 is the main firmware that the driver interacts with
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
index 097d3fc365f71aff02209dd77aaa94a843950ab7..2352e7687790fd040defce8c06f8787509300819 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
@@
-491,6
+491,10
@@
static int mt7615_load_n9(struct mt7615_dev *dev, const char *name)
goto out;
}
+ snprintf(dev->mt76.hw->wiphy->fw_version,
+ sizeof(dev->mt76.hw->wiphy->fw_version),
+ "%.10s-%.15s", hdr->fw_ver, hdr->build_date);
+
out:
release_firmware(fw);
return ret;
@@
-528,10
+532,6
@@
static int mt7615_load_cr4(struct mt7615_dev *dev, const char *name)
goto out;
}
- snprintf(dev->mt76.hw->wiphy->fw_version,
- sizeof(dev->mt76.hw->wiphy->fw_version),
- "%.10s-%.15s", hdr->fw_ver, hdr->build_date);
-
out:
release_firmware(fw);