linux-firmware: update Realtek RTW89 firmware
authorChukun Pan <amadeus@jmu.edu.cn>
Wed, 9 Oct 2024 15:10:26 +0000 (23:10 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 16 Oct 2024 21:13:10 +0000 (23:13 +0200)
Add RealTek RTL8922AE firmware package. The rtw89 driver uses
rtw8852b_fw-1.bin starting from kernel 6.4[1], remove the old
one. Also note that in the kernel 6.12, rtw8852c and rtw8922a
should use fw-1.bin [2][3].

[1] https://github.com/torvalds/linux/commit/ffde7f3476
[2] https://github.com/torvalds/linux/commit/45ae0e8cf8
[3] https://github.com/torvalds/linux/commit/6ca6b918f2

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Suggested-by: Hauke Mehrtens <hauke@hauke-m.de>
Link: https://github.com/openwrt/openwrt/pull/16700
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/firmware/linux-firmware/realtek.mk

index 5ba679d404922db7879ef6e59a52786fb5a2ff6e..0889796a1282d281a1f9e6e752ebeddda454e0d0 100644 (file)
@@ -180,7 +180,6 @@ $(eval $(call BuildPackage,rtl8852ae-firmware))
 Package/rtl8852be-firmware = $(call Package/firmware-default,RealTek RTL8852BE firmware)
 define Package/rtl8852be-firmware/install
        $(INSTALL_DIR) $(1)/lib/firmware/rtw89
-       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw89/rtw8852b_fw.bin $(1)/lib/firmware/rtw89
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw89/rtw8852b_fw-1.bin $(1)/lib/firmware/rtw89
 endef
 $(eval $(call BuildPackage,rtl8852be-firmware))
@@ -191,3 +190,10 @@ define Package/rtl8852ce-firmware/install
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw89/rtw8852c_fw.bin $(1)/lib/firmware/rtw89
 endef
 $(eval $(call BuildPackage,rtl8852ce-firmware))
+
+Package/rtl8922ae-firmware = $(call Package/firmware-default,RealTek RTL8922AE firmware)
+define Package/rtl8922ae-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtw89
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw89/rtw8922a_fw.bin $(1)/lib/firmware/rtw89
+endef
+$(eval $(call BuildPackage,rtl8922ae-firmware))