Commit 4e569727 authored by Felix Fietkau's avatar Felix Fietkau

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: default avatarFelix Fietkau <nbd@nbd.name>
parent 1c88e7e0
...@@ -491,6 +491,10 @@ static int mt7615_load_n9(struct mt7615_dev *dev, const char *name) ...@@ -491,6 +491,10 @@ static int mt7615_load_n9(struct mt7615_dev *dev, const char *name)
goto out; 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: out:
release_firmware(fw); release_firmware(fw);
return ret; return ret;
...@@ -528,10 +532,6 @@ static int mt7615_load_cr4(struct mt7615_dev *dev, const char *name) ...@@ -528,10 +532,6 @@ static int mt7615_load_cr4(struct mt7615_dev *dev, const char *name)
goto out; 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: out:
release_firmware(fw); release_firmware(fw);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment