linux-firmware: realtek: add RTL8812AU/RTL8821AU firmware
authorMarty Jones <mj8263788@gmail.com>
Mon, 11 Nov 2024 22:17:27 +0000 (17:17 -0500)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 10 Dec 2024 00:06:10 +0000 (01:06 +0100)
This adds firmware support for the RTL8812AU/RTL8821AU USB wireless adapters.

Signed-off-by: Marty Jones <mj8263788@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17079
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit c48a48e65889e00df598757cca1f6226ac173e89)

package/firmware/linux-firmware/realtek.mk

index c2ab1c9d0dee0ab0f61c6ac3eb9acb22b93eab93..749d93be3e2909acdbba9ddc949c828362919b64 100644 (file)
@@ -140,6 +140,20 @@ define Package/rtl8761bu-firmware/install
 endef
 $(eval $(call BuildPackage,rtl8761bu-firmware))
 
+Package/rtl8812a-firmware = $(call Package/firmware-default,RealTek RTL8812AU firmware)
+define Package/rtl8812a-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtw88
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw88/rtw8812a_fw.bin $(1)/lib/firmware/rtw88
+endef
+$(eval $(call BuildPackage,rtl8812a-firmware))
+
+Package/rtl8821a-firmware = $(call Package/firmware-default,RealTek RTL8821AU firmware)
+define Package/rtl8821a-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtw88
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw88/rtw8821a_fw.bin $(1)/lib/firmware/rtw88
+endef
+$(eval $(call BuildPackage,rtl8821a-firmware))
+
 Package/rtl8821ae-firmware = $(call Package/firmware-default,RealTek RTL8821AE firmware,,LICENCE.rtlwifi_firmware.txt)
 define Package/rtl8821ae-firmware/install
        $(INSTALL_DIR) $(1)/lib/firmware/rtlwifi