Skip to content

Commit 8f4c64b

Browse files
GeorgeSapkinrobimarko
authored andcommitted
kernel/ath10k: provide a virtual kmod
Switch ath10k and related kmods to use the new virtual kmod provides semantic and mark ath10k as the default variant. Signed-off-by: George Sapkin <[email protected]> Link: openwrt/openwrt#21288 Signed-off-by: Robert Marko <[email protected]>
1 parent 01fa50b commit 8f4c64b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

package/kernel/ath10k-ct/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ define KernelPackage/ath10k-ct
3434
$(PKG_BUILD_DIR)/ath10k$(CT_KVER)/ath10k_pci.ko \
3535
$(PKG_BUILD_DIR)/ath10k$(CT_KVER)/ath10k_core.ko
3636
AUTOLOAD:=$(call AutoProbe,ath10k_pci)
37-
PROVIDES:=kmod-ath10k
37+
PROVIDES:=@kmod-ath10k-any
3838
VARIANT:=regular
3939
endef
4040

package/kernel/mac80211/ath.mk

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ This module adds support for wireless adapters based on
265265
Atheros USB AR9271 and AR7010 family of chipsets.
266266
endef
267267

268-
define KernelPackage/ath10k
268+
define KernelPackage/ath10k/Default
269269
$(call KernelPackage/mac80211/Default)
270270
TITLE:=Atheros 802.11ac wireless cards support
271271
URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath10k
@@ -276,7 +276,12 @@ define KernelPackage/ath10k
276276
$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
277277
AUTOLOAD:=$(call AutoProbe,ath10k_core ath10k_pci)
278278
MODPARAMS.ath10k_core:=frame_mode=2
279+
endef
280+
281+
define KernelPackage/ath10k
282+
$(call KernelPackage/ath10k/Default)
279283
VARIANT:=regular
284+
DEFAULT_VARIANT:=1
280285
endef
281286

282287
define KernelPackage/ath10k/description
@@ -299,9 +304,10 @@ define KernelPackage/ath10k/config
299304
endef
300305

301306
define KernelPackage/ath10k-smallbuffers
302-
$(call KernelPackage/ath10k)
307+
$(call KernelPackage/ath10k/Default)
303308
TITLE+= (small buffers for low-RAM devices)
304309
VARIANT:=smallbuffers
310+
PROVIDES:=@kmod-ath10k-any
305311
endef
306312

307313
define KernelPackage/ath11k

0 commit comments

Comments
 (0)