From b55a4eb2ee21c4244a83a42dae543167f7b17c98 Mon Sep 17 00:00:00 2001 From: Sean Wang Date: Mon, 1 Aug 2022 06:45:51 +0800 Subject: [PATCH] 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 Signed-off-by: Felix Fietkau --- mt76_connac_mcu.c | 4 ++++ 1 file changed, 4 insertions(+) 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)