mt76x0: pci: report firmware version using ethtool
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Sun, 7 Oct 2018 09:51:16 +0000 (11:51 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 13 Oct 2018 15:39:26 +0000 (17:39 +0200)
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>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c

index 6c66656c21f46283dbbed08d76f013bb41773cbb..569861289aa5a72c7459dc7853c2e8085f19bf64 100644 (file)
@@ -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: