back to patching

This commit is contained in:
Miguel Fuertes committed 2025-09-16 23:45:34 +02:00
1 parent 14a7ba1326
commit 4d51c8c567
4 files changed
+114 -27

No files matched your search

+1
View File
@@ -41,6 +41,7 @@ jobs:
- name: Load msm89xx target and uz801 packages
run: |
[-f ath.patch] && git apply ath.patch
[ -d msm89xx ] && mv msm89xx openwrt/target/linux/msm89xx
[ -d packages ] && mv packages openwrt/package/uz801
+2 -1
View File
@@ -18,7 +18,8 @@ FROM base
RUN git clone --depth=1 https://github.com/openwrt/openwrt openwrt
# COPY mods/ath.mk openwrt/package/kernel/mac80211/ath.mk
COPY ath.patch .
RUN git apply ath.patch
RUN openwrt/scripts/feeds update -a && \
openwrt/scripts/feeds install -a && \
+111
View File
@@ -0,0 +1,111 @@
diff --git a/oopenwrt/package/kernel/mac80211/ath.mk b/openwrt/package/kernel/mac80211/ath.mk
index 5b13b6a..f8c5edf 100644
--- a/openwrt/package/kernel/mac80211/ath.mk
+++ b/openwrt/package/kernel/mac80211/ath.mk
@@ -1,6 +1,7 @@
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 qcom-qmi-helpers
+ ath ath5k ath6kl ath6kl-sdio ath6kl-usb ath9k ath9k-common ath9k-htc ath10k ath10k-sdio ath10k-smallbuffers \
+ ath11k ath11k-ahb ath11k-pci ath12k carl9170 owl-loader ar5523 wil6210 wcn36xx qcom-qmi-helpers
+
PKG_CONFIG_DEPENDS += \
CONFIG_PACKAGE_ATH_DEBUG \
@@ -25,7 +26,8 @@ ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS
CARL9170_DEBUGFS \
ATH5K_DEBUG \
ATH6KL_DEBUG \
- WIL6210_DEBUGFS
+ WIL6210_DEBUGFS \
+ WCN36XX_DEBUGFS
endif
ifdef CONFIG_PACKAGE_MAC80211_TRACING
@@ -40,7 +42,7 @@ ifdef CONFIG_PACKAGE_MAC80211_TRACING
endif
config-$(call config_package,qcom-qmi-helpers) += QCOM_QMI_HELPERS
-config-$(call config_package,ath,regular smallbuffers) += ATH_CARDS ATH_COMMON
+config-$(call config_package,ath,regular sdio smallbuffers) += ATH_CARDS ATH_COMMON
config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH10K_DEBUG ATH11K_DEBUG ATH12K_DEBUG ATH9K_STATION_STATISTICS
config-$(CONFIG_PACKAGE_ATH_DFS) += ATH9K_DFS_CERTIFIED ATH10K_DFS_CERTIFIED
config-$(CONFIG_PACKAGE_ATH_SPECTRAL) += ATH9K_COMMON_SPECTRAL ATH10K_SPECTRAL ATH11K_SPECTRAL
@@ -50,6 +52,7 @@ config-$(call config_package,ath9k-common) += ATH9K_COMMON
config-$(call config_package,owl-loader) += ATH9K_PCI_NO_EEPROM
config-$(CONFIG_TARGET_ath79) += ATH9K_AHB
config-$(CONFIG_TARGET_ipq40xx) += ATH10K_AHB
+config-$(CONFIG_TARGET_msm89xx) += WCN36XX
config-$(CONFIG_PCI) += ATH9K_PCI
config-$(CONFIG_ATH_USER_REGD) += ATH_USER_REGD ATH_REG_DYNAMIC_USER_REG_HINTS
config-$(CONFIG_ATH9K_HWRNG) += ATH9K_HWRNG
@@ -62,6 +65,7 @@ config-$(CONFIG_ATH11K_THERMAL) += ATH11K_THERMAL
config-$(call config_package,ath9k-htc) += ATH9K_HTC
config-$(call config_package,ath10k,regular) += ATH10K ATH10K_PCI
+config-$(call config_package,ath10k-sdio,sdio) += ATH10K ATH10K_SDIO
config-$(call config_package,ath10k-smallbuffers,smallbuffers) += ATH10K ATH10K_PCI ATH10K_SMALLBUFFERS
config-$(call config_package,ath11k) += ATH11K
config-$(call config_package,ath11k-ahb) += ATH11K_AHB
@@ -140,7 +144,7 @@ endef
define KernelPackage/ath
$(call KernelPackage/mac80211/Default)
TITLE:=Atheros common driver part
- DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ath79 +kmod-mac80211
+ DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ath79||TARGET_ath25||TARGET_msm89xx +kmod-mac80211
FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath.ko
MENU:=1
endef
@@ -294,10 +298,30 @@ define KernelPackage/ath10k/config
config ATH10K_THERMAL
bool "Enable thermal sensors and throttling support"
- depends on PACKAGE_kmod-ath10k || PACKAGE_kmod-ath10k-smallbuffers
+ default y
+ depends on PACKAGE_kmod-ath10k || PACKAGE_kmod-ath10k-sdio || PACKAGE_kmod-ath10k-smallbuffers
endef
+define KernelPackage/ath10k-sdio
+ $(call KernelPackage/mac80211/Default)
+ TITLE:=Atheros 802.11ac SDIO wireless cards support
+ URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath10k
+ DEPENDS+= +kmod-ath +kmod-mmc +@DRIVER_11AC_SUPPORT \
+ +ATH10K_THERMAL:kmod-hwmon-core +ATH10K_THERMAL:kmod-thermal
+ FILES:= \
+ $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_core.ko \
+ $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_sdio.ko
+ AUTOLOAD:=$(call AutoProbe,ath10k_core)
+ MODPARAMS.ath10k_core:=frame_mode=2
+ VARIANT:=sdio
+endef
+
+define KernelPackage/ath10k-sdio/description
+This module adds support for wireless adapters based on
+Atheros IEEE 802.11ac family of chipsets with SDIO bus.
+endef
+
define KernelPackage/ath10k-smallbuffers
$(call KernelPackage/ath10k)
TITLE+= (small buffers for low-RAM devices)
@@ -356,6 +380,20 @@ This module adds support for Qualcomm Technologies 802.11ax family of
chipsets with PCI bus.
endef
+define KernelPackage/wcn36xx
+ $(call KernelPackage/mac80211/Default)
+ TITLE:=Qualcomm Atheros WCN3660/3680 support
+ URL:=https://wireless.wiki.kernel.org/en/users/drivers/wcn36xx
+ DEPENDS+= @TARGET_msm89xx +kmod-ath +kmod-qcom-rproc-wcnss
+ FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/wcn36xx/wcn36xx.ko
+ AUTOLOAD:=$(call AutoProbe,wcn36xx)
+endef
+
+define KernelPackage/wcn36xx/description
+This module adds support for Qualcomm Atheros WCN3660/3680 Wireless
+blocks in some Qualcomm SoCs
+endef
+
define KernelPackage/ath12k
$(call KernelPackage/mac80211/Default)
TITLE:=Qualcomm 802.11be wireless chipset support
-26
View File
@@ -89,29 +89,3 @@ define KernelPackage/bam-dmux/description
endef
$(eval $(call KernelPackage,bam-dmux))
define KernelPackage/wcn36xx
SUBMENU:=Wireless Drivers
TITLE:=Qualcomm Atheros WCN3660/3680 support
URL:=https://wireless.wiki.kernel.org/en/users/drivers/wcn36xx
DEPENDS:=@TARGET_msm89xx +kmod-ath +kmod-qcom-rproc-wcnss
FILES:=$(LINUX_DIR)/drivers/net/wireless/ath/wcn36xx/wcn36xx.ko
AUTOLOAD:=$(call AutoProbe,wcn36xx)
endef
define KernelPackage/wcn36xx/config
if PACKAGE_kmod-wcn36xx
config WCN36XX_DEBUGFS
bool "Enable WCN36XX debugfs support"
default y if PACKAGE_MAC80211_DEBUGFS
help
Say Y to enable debugfs entries for the WCN36XX driver.
endif
endef
define KernelPackage/wcn36xx/description
This module adds support for Qualcomm Atheros WCN3660/3680
Wireless blocks in some Qualcomm SoCs.
endef
$(eval $(call KernelPackage,wcn36xx))