mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
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 <nbd@nbd.name>
This commit is contained in:
parent
1c88e7e0ae
commit
4e569727da
|
|
@ -491,6 +491,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;
|
||||
|
|
@ -528,10 +532,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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user