Firmware conflict when updating to F38

When I run a system upgrade I get the following error and cannot proceed. Seems related to the wifi firmware.

Error: Transaction test error:
file /usr/lib/firmware/mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin.xz conflicts between attempted installs of mt7xxx-firmware-20230404-149.fc38.noarch and linux-firmware-20230310-148.fc38.noarch
file /usr/lib/firmware/mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin.xz conflicts between attempted installs of mt7xxx-firmware-20230404-149.fc38.noarch and linux-firmware-20230310-148.fc38.noarch
file /usr/lib/firmware/mediatek/WIFI_RAM_CODE_MT7922_1.bin.xz conflicts between attempted installs of mt7xxx-firmware-20230404-149.fc38.noarch and linux-firmware-20230310-148.fc38.noarch
file /usr/lib/firmware/rtw88/rtw8822c_fw.bin.xz conflicts between attempted installs of realtek-firmware-20230404-149.fc38.noarch and linux-firmware-20230310-148.fc38.noarch
file /usr/lib/firmware/rtw89/rtw8852b_fw.bin.xz conflicts between attempted installs of realtek-firmware-20230404-149.fc38.noarch and linux-firmware-20230310-148.fc38.noarch

That looks like a problem with upgrading the firmware, I agree.

Have you tried the following options; --refresh --best --allowerasing, as part of your dnf upgrade command?
I suspect the error comes from out-of-date metadata on your system and those added options, especially the refresh, should fix it for you.

Current version of linux-firmware.noarch should be

linux-firmware.noarch                  20230404-149.fc38                 updates

Try

dnf update --refresh '*firmware*'

It that still fails, there could be a problem with the mirror you are using.

Unfortunately neither command work but in the dnf config I excluded mt7xxx-firmware and realtek-firmware packages and the update went through. I had to do a a dnf update in the tty because nvidia drivers but now everything seems to functions.