From f84b590b6454a4e90c751fb7bf309ccc0b96d227 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 17 Dec 2019 04:59:05 +0100 Subject: [PATCH] mt76: mt7615: store N9 firmware version instead of CR4 CR4 is used very little, N9 is the main firmware that the driver interacts with Signed-off-by: Felix Fietkau --- mt7615/mcu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mt7615/mcu.c b/mt7615/mcu.c index 5a26f1ad..aea3f853 100644 --- a/mt7615/mcu.c +++ b/mt7615/mcu.c @@ -516,6 +516,10 @@ static int mt7615_load_n9(struct mt7615_dev *dev, const char *name) 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); return ret; @@ -553,10 +557,6 @@ static int mt7615_load_cr4(struct mt7615_dev *dev, const char *name) 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);