From: Lorenzo Bianconi Date: Sun, 7 Oct 2018 09:51:16 +0000 (+0200) Subject: mt76x0: pci: report firmware version using ethtool X-Git-Tag: Ubuntu-5.2.0-15.16~3224^2~83^2~1^2~22 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=127aa72691ff567ea220c095843bf8d66f84e9af;p=mirror_ubuntu-eoan-kernel.git mt76x0: pci: report firmware version using ethtool 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 Signed-off-by: Felix Fietkau --- 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: