diff options
author | Davide Caratti <dcaratti@redhat.com> | 2018-09-20 14:30:56 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-10-01 12:34:11 +0200 |
commit | 22509324c51404658a2a6fcd4af5ef263ae45801 (patch) | |
tree | 427a6492e3ee1477e764c2cab79d4545d200f71e /drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h | |
parent | db6bb5c6c19451faa935934e6b45416fd7dd777a (diff) | |
download | linux-stable-22509324c51404658a2a6fcd4af5ef263ae45801.tar.gz linux-stable-22509324c51404658a2a6fcd4af5ef263ae45801.tar.bz2 linux-stable-22509324c51404658a2a6fcd4af5ef263ae45801.zip |
mt76: report firmware version using ethtool
print fw_ver and build_ver members of struct mt76x02_fw_header, similarly
to what appears in the output of 'dmesg' when the MCU firmware is loaded.
Reported-by: Sid Hayn <sidhayn@gmail.com>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h b/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h index 7bfd403f56f6..d30a58b5df29 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h @@ -105,5 +105,7 @@ int mt76x02_mcu_function_select(struct mt76_dev *dev, u32 val, bool wait_resp); int mt76x02_mcu_set_radio_state(struct mt76_dev *dev, bool on, bool wait_resp); +void mt76x02_set_ethtool_fwver(struct mt76_dev *dev, + const struct mt76x02_fw_header *h); #endif /* __MT76x02_MCU_H */ |