From: Chukun Pan Date: Wed, 9 Oct 2024 15:10:26 +0000 (+0800) Subject: linux-firmware: update Realtek RTW89 firmware X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7ae883c29da8b3efc2528d10e1db271dc05e1923;p=openwrt%2Fstaging%2Fnbd.git linux-firmware: update Realtek RTW89 firmware 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 Suggested-by: Hauke Mehrtens Link: https://github.com/openwrt/openwrt/pull/16700 Signed-off-by: Hauke Mehrtens --- diff --git a/package/firmware/linux-firmware/realtek.mk b/package/firmware/linux-firmware/realtek.mk index 5ba679d404..0889796a12 100644 --- a/package/firmware/linux-firmware/realtek.mk +++ b/package/firmware/linux-firmware/realtek.mk @@ -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))