ath5k_pci always selected?

Adrian Schmutzler mail at adrianschmutzler.de
Fri Aug 21 09:56:00 EDT 2020


Hi,

when working on the kernel 4.14 target removal, I found the following block in package/kernel/mac80211/ath.mk:

config-$(call config_package,ath5k) += ATH5K
ifdef CONFIG_TARGET_ath25
  config-y += ATH5K_AHB
else
  config-y += ATH5K_PCI
endif

https://github.com/openwrt/openwrt/blob/master/package/kernel/mac80211/ath.mk#L59

This looks to me like ATH5K_PCI is _always_ added (unless target is ath25). Is there some reason for this or should this be changed to

config-$(call config_package,ath5k) += ATH5K
ifdef CONFIG_TARGET_ath25
  config-$(call config_package,ath5k) += ATH5K_AHB
else
  config-$(call config_package,ath5k) += ATH5K_PCI
endif

?

With ath25 removed this would then collapse into

config-$(call config_package,ath5k) += ATH5K ATH5K_PCI

which looks correct to me.

Best

Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20200821/906a9cd5/attachment.sig>


More information about the openwrt-devel mailing list