summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2022-08-01 00:45:51 +0200
committerFelix Fietkau <nbd@nbd.name>2022-09-15 12:54:01 +0200
commit00be84d6dfc8319ed1864d3ca8658569d36a1882 (patch)
tree3cfa560808684b8dfd9cd9a4ff79504a7d6723b1 /drivers/net/wireless/mediatek/mt76
parentwifi: mt76: mt7921: add mt7921_mutex_acquire at mt7921_sta_set_decap_offload (diff)
downloadlinux-00be84d6dfc8319ed1864d3ca8658569d36a1882.tar.xz
linux-00be84d6dfc8319ed1864d3ca8658569d36a1882.zip
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>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
index 71c2b1ddc1a5..35cdfceebab1 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
@@ -2888,6 +2888,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)