mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 04:28:10 -04:00
mt76: mt7615: add ethool support to mt7663 driver
Report n9 firmware version using ethtool Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
committed by
Felix Fietkau
parent
02c655919c
commit
938d76bb3a
@@ -1914,8 +1914,14 @@ static int mt7663_load_n9(struct mt7615_dev *dev, const char *name)
|
||||
}
|
||||
|
||||
ret = mt7615_mcu_start_firmware(dev, override_addr, flag);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
dev_err(dev->mt76.dev, "Failed to start N9 firmware\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
snprintf(dev->mt76.hw->wiphy->fw_version,
|
||||
sizeof(dev->mt76.hw->wiphy->fw_version),
|
||||
"%.10s-%.15s", hdr->fw_ver, hdr->build_date);
|
||||
|
||||
out:
|
||||
release_firmware(fw);
|
||||
|
||||
Reference in New Issue
Block a user