From: Chukun Pan Date: Thu, 10 Oct 2024 15:10:28 +0000 (+0800) Subject: mac80211: realtek: rtw89: add RTL8922AE support X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=84e47e9cc7085262f309eb0870f0041bbf181404;p=openwrt%2Fstaging%2Fwigyori.git mac80211: realtek: rtw89: add RTL8922AE support Add the Realtek RTL8922AE support to rtw89 package. The 8922A is a 802.11be chip that can support 2/5/6GHz 160MHz. Signed-off-by: Chukun Pan Link: https://github.com/openwrt/openwrt/pull/16700 Signed-off-by: Hauke Mehrtens --- diff --git a/package/kernel/mac80211/realtek.mk b/package/kernel/mac80211/realtek.mk index 5aeddb99bc..2eaed210e1 100644 --- a/package/kernel/mac80211/realtek.mk +++ b/package/kernel/mac80211/realtek.mk @@ -4,7 +4,8 @@ PKG_DRIVERS += \ rtl8xxxu rtw88 rtw88-pci rtw88-usb rtw88-sdio rtw88-8821c rtw88-8822b rtw88-8822c \ rtw88-8723x rtw88-8723d rtw88-8821ce rtw88-8821cu rtw88-8822be rtw88-8822bu \ rtw88-8822ce rtw88-8822cu rtw88-8723de rtw88-8723ds rtw88-8723du \ - rtw89 rtw89-pci rtw89-8851be rtw89-8852ae rtw89-8852b-common rtw89-8852be rtw89-8852ce + rtw89 rtw89-pci rtw89-8851be rtw89-8852ae rtw89-8852b-common \ + rtw89-8852be rtw89-8852ce rtw89-8922ae config-$(call config_package,rtlwifi) += RTL_CARDS RTLWIFI config-$(call config_package,rtlwifi-pci) += RTLWIFI_PCI @@ -56,6 +57,7 @@ config-$(call config_package,rtw89-8852ae) += RTW89_8852A RTW89_8852AE config-$(call config_package,rtw89-8852b-common) += RTW89_8852B_COMMON config-$(call config_package,rtw89-8852be) += RTW89_8852B RTW89_8852BE config-$(call config_package,rtw89-8852ce) += RTW89_8852C RTW89_8852CE +config-$(call config_package,rtw89-8922ae) += RTW89_8922A RTW89_8922AE config-$(CONFIG_PACKAGE_RTW89_DEBUG) += RTW89_DEBUG config-$(CONFIG_PACKAGE_RTW89_DEBUGFS) += RTW89_DEBUGFS config-$(CONFIG_PACKAGE_RTW89_DEBUGMSG) += RTW89_DEBUGMSG @@ -480,3 +482,13 @@ define KernelPackage/rtw89-8852ce $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtw89/rtw89_8852ce.ko AUTOLOAD:=$(call AutoProbe,rtw89_8852ce) endef + +define KernelPackage/rtw89-8922ae + $(call KernelPackage/mac80211/Default) + TITLE:=Realtek RTL8922AE support + DEPENDS+= +kmod-rtw89-pci +rtl8922ae-firmware +@DRIVER_11BE_SUPPORT + FILES:= \ + $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtw89/rtw89_8922a.ko \ + $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtw89/rtw89_8922ae.ko + AUTOLOAD:=$(call AutoProbe,rtw89_8922ae) +endef