projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02c6559
)
mt76: mt7615: add ethool support to mt7663 driver
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Thu, 2 Apr 2020 13:06:35 +0000
(15:06 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 12 May 2020 17:52:28 +0000
(19:52 +0200)
Report n9 firmware version using ethtool
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
index
610cfa9
..
32e3e42
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
@@
-1914,8
+1914,14
@@
static int mt7663_load_n9(struct mt7615_dev *dev, const char *name)
}
ret = mt7615_mcu_start_firmware(dev, override_addr, flag);
- if (ret)
+ if (ret)
{
dev_err(dev->mt76.dev, "Failed to start N9 firmware\n");
+ 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);