summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanusz Dziedzic2024-02-24 11:08:48 +0000
committerHauke Mehrtens2024-09-22 22:30:17 +0000
commit3b11647da0dfe211f775a8bbffa7181c0ff4e306 (patch)
treecb1deaef78a4f641f1456da9e4fecc22af143ef0
parent04bdf9b3323e1d8caa04af4a930100894b2b869b (diff)
downloadopenwrt-3b11647da0dfe211f775a8bbffa7181c0ff4e306.tar.gz
mac80211: ath: add qcom-qmi-helpers as package
Allow to build ath11k and other drivers using qcom-qmi-helpers together (eg. ath12k). Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15945 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/kernel/mac80211/ath.mk17
1 files changed, 13 insertions, 4 deletions
diff --git a/package/kernel/mac80211/ath.mk b/package/kernel/mac80211/ath.mk
index b0c3691a57..41537a7fcc 100644
--- a/package/kernel/mac80211/ath.mk
+++ b/package/kernel/mac80211/ath.mk
@@ -1,6 +1,6 @@
PKG_DRIVERS += \
ath ath5k ath6kl ath6kl-sdio ath6kl-usb ath9k ath9k-common ath9k-htc ath10k ath10k-smallbuffers \
- ath11k ath11k-ahb ath11k-pci carl9170 owl-loader ar5523 wil6210
+ ath11k ath11k-ahb ath11k-pci carl9170 owl-loader ar5523 wil6210 qcom-qmi-helpers
PKG_CONFIG_DEPENDS += \
CONFIG_PACKAGE_ATH_DEBUG \
@@ -37,6 +37,7 @@ ifdef CONFIG_PACKAGE_MAC80211_TRACING
WIL6210_TRACING
endif
+config-$(call config_package,qcom-qmi-helpers) += QCOM_QMI_HELPERS
config-$(call config_package,ath,regular smallbuffers) += ATH_CARDS ATH_COMMON
config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH10K_DEBUG ATH11K_DEBUG ATH9K_STATION_STATISTICS
config-$(CONFIG_PACKAGE_ATH_DFS) += ATH9K_DFS_CERTIFIED ATH10K_DFS_CERTIFIED
@@ -125,6 +126,14 @@ define KernelPackage/ath/config
endif
endef
+define KernelPackage/qcom-qmi-helpers
+ $(call KernelPackage/mac80211/Default)
+ TITLE:=Qualcomm QMI backports helpers
+ HIDDEN:=1
+ FILES:=$(PKG_BUILD_DIR)/drivers/soc/qcom/qmi_helpers.ko
+ AUTOLOAD:=$(call AutoProbe,qmi_helpers)
+endef
+
define KernelPackage/ath
$(call KernelPackage/mac80211/Default)
TITLE:=Atheros common driver part
@@ -297,9 +306,9 @@ define KernelPackage/ath11k
TITLE:=Qualcomm 802.11ax wireless chipset support (common code)
URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath11k
DEPENDS+= +kmod-ath +@DRIVER_11AC_SUPPORT +@DRIVER_11AX_SUPPORT \
- +kmod-crypto-michael-mic +ATH11K_THERMAL:kmod-hwmon-core +ATH11K_THERMAL:kmod-thermal
- FILES:=$(PKG_BUILD_DIR)/drivers/soc/qcom/qmi_helpers.ko \
- $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath11k/ath11k.ko
+ +kmod-crypto-michael-mic +ATH11K_THERMAL:kmod-hwmon-core \
+ +ATH11K_THERMAL:kmod-thermal +kmod-qcom-qmi-helpers
+ FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath11k/ath11k.ko
endef
define KernelPackage/ath11k/description