Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/mt76.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2022-08-01 01:45:51 +0300
committerFelix Fietkau <nbd@nbd.name>2022-09-15 14:14:11 +0300
commitb55a4eb2ee21c4244a83a42dae543167f7b17c98 (patch)
tree2e73f9a06361b260afa543bcce3844cd94c65a2a
parentfbb3554b62361e4eea14045b7f27bdc2b9369300 (diff)
wifi: mt76: mt7921: fix the firmware version report
Fix the regression of the firmware version report since 'b9ec27102ac0 ('mt76: connac: move mt76_connac2_load_ram in connac module')'. Fixes: b9ec27102ac0 ("mt76: connac: move mt76_connac2_load_ram in connac module") Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--mt76_connac_mcu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mt76_connac_mcu.c b/mt76_connac_mcu.c
index d32290d6..87daf65b 100644
--- a/mt76_connac_mcu.c
+++ b/mt76_connac_mcu.c
@@ -2885,6 +2885,10 @@ int mt76_connac2_load_ram(struct mt76_dev *dev, const char *fw_wm,
goto out;
}
+ snprintf(dev->hw->wiphy->fw_version,
+ sizeof(dev->hw->wiphy->fw_version),
+ "%.10s-%.15s", hdr->fw_ver, hdr->build_date);
+
release_firmware(fw);
if (!fw_wa)