[PATCH 2/2] ath11k/ath12k: fix when build together
Janusz Dziedzic
janusz.dziedzic at gmail.com
Tue Jan 23 02:23:27 PST 2024
Signed-off-by: Janusz Dziedzic <janusz.dziedzic at gmail.com>
---
package/kernel/mac80211/ath.mk | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/package/kernel/mac80211/ath.mk b/package/kernel/mac80211/ath.mk
index beb1b2ae4f..b66049b18a 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 ath12k carl9170 owl-loader ar5523 wil6210
+ ath11k ath11k-ahb ath11k-pci ath12k carl9170 owl-loader ar5523 wil6210 qcom-qmi-helpers
PKG_CONFIG_DEPENDS += \
CONFIG_PACKAGE_ATH_DEBUG \
@@ -59,6 +59,7 @@ config-$(CONFIG_ATH10K_LEDS) += ATH10K_LEDS
config-$(CONFIG_ATH10K_THERMAL) += ATH10K_THERMAL
config-$(CONFIG_ATH11K_THERMAL) += ATH11K_THERMAL
+config-$(call config_package,qcom-qmi-helpers) += QCOM_QMI_HELPERS
config-$(call config_package,ath9k-htc) += ATH9K_HTC
config-$(call config_package,ath10k) += ATH10K ATH10K_PCI
config-$(call config_package,ath10k-smallbuffers) += ATH10K ATH10K_PCI ATH10K_SMALLBUFFERS
@@ -300,14 +301,21 @@ define KernelPackage/ath10k-smallbuffers
VARIANT:=smallbuffers
endef
+define KernelPackage/qcom-qmi-helpers
+ $(call KernelPackage/mac80211/Default)
+ TITLE:=Qualcomm QMI backports helpers
+ FILES:=$(PKG_BUILD_DIR)/drivers/soc/qcom/qmi_helpers.ko
+ AUTOLOAD:=$(call AutoProbe,qmi_helpers)
+endef
+
define KernelPackage/ath11k
$(call KernelPackage/mac80211/Default)
TITLE:=Qualcomm 802.11ax wireless chipset support (common code)
URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath11k
DEPENDS+= +kmod-ath + at DRIVER_11AC_SUPPORT + at 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
@@ -357,9 +365,9 @@ define KernelPackage/ath12k
TITLE:=Qualcomm 802.11be wireless chipset support
URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath12k
DEPENDS+= +kmod-ath + at DRIVER_11AC_SUPPORT + at DRIVER_11AX_SUPPORT \
- + at DRIVER_11BE_SUPPORT +kmod-crypto-michael-mic +kmod-qrtr-mhi
- FILES:=$(PKG_BUILD_DIR)/drivers/soc/qcom/qmi_helpers.ko \
- $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath12k/ath12k.ko
+ + at DRIVER_11BE_SUPPORT +kmod-crypto-michael-mic +kmod-qrtr-mhi \
+ +kmod-qcom-qmi-helpers
+ FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath12k/ath12k.ko
endef
define KernelPackage/ath12k/description
--
2.25.1
More information about the openwrt-devel
mailing list