diff mbox series

mt76x0: pci: report firmware version using ethtool

Message ID 43e21bfe8d4b3c24e4130a0631566db771e342a4.1538728254.git.lorenzo.bianconi@redhat.com (mailing list archive)
State Accepted
Delegated to: Kalle Valo
Headers show
Series mt76x0: pci: report firmware version using ethtool | expand

Commit Message

Lorenzo Bianconi Oct. 5, 2018, 8:32 a.m. UTC
Report via ethtool fw_ver and build_ver members of mt76x02_fw_header
data structure similarly to what is reported in the syslog

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
---
 drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Felix Fietkau Oct. 5, 2018, 9:57 a.m. UTC | #1
On 2018-10-05 10:32, Lorenzo Bianconi wrote:
> Report via ethtool fw_ver and build_ver members of mt76x02_fw_header
> data structure similarly to what is reported in the syslog
> 
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>

Merged, thanks.

- Felix
diff mbox series

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
index 6c66656c21f4..569861289aa5 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
@@ -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: