Skip to contentSkip to conversation

mt76x0: pci: report firmware version using ethtool

PATCH Applied Lorenzo Bianconi 2 participants 2 messages Oct 5, 2018 1 message not in the archive

Subsystems (2)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 mt76x0: pci: report firmware version using ethtool

In reply to a message not in the archive

Report via ethtool fw_ver and build_ver members of mt76x02_fw_header data structure similarly to what is reported in the syslog

---
 drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c +1 -0
index 6c66656c21f4..569861289aa5 100644
@@ -116,6 +116,7 @@ static int mt76x0e_load_firmware(struct mt76x02_dev *dev)
 		goto out;
 	}
 
+	mt76x02_set_ethtool_fwver(dev, hdr);
 	dev_dbg(dev->mt76.dev, "Firmware running!\n");
 
 out:
Signature · 1 line
2.17.1
maintainer Applied
#2 lore raw
Quoted 4 lines · Lorenzo Bianconi

Report via ethtool fw_ver and build_ver members of mt76x02_fw_header data structure similarly to what is reported in the syslog

Merged, thanks.

- Felix