ath.mk 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. PKG_DRIVERS += \
  2. ath ath5k ath9k ath9k-common ath9k-htc \
  3. carl9170
  4. PKG_CONFIG_DEPENDS += \
  5. CONFIG_PACKAGE_ATH_DEBUG \
  6. CONFIG_PACKAGE_ATH_DFS \
  7. CONFIG_PACKAGE_ATH_SPECTRAL \
  8. CONFIG_PACKAGE_ATH_DYNACK \
  9. CONFIG_ATH9K_SUPPORT_PCOEM \
  10. CONFIG_ATH9K_TX99 \
  11. CONFIG_ATH_USER_REGD
  12. ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS
  13. config-y += \
  14. ATH9K_DEBUGFS \
  15. ATH9K_HTC_DEBUGFS \
  16. CARL9170_DEBUGFS \
  17. ATH5K_DEBUG
  18. endif
  19. ifdef CONFIG_PACKAGE_MAC80211_TRACING
  20. config-y += \
  21. ATH_TRACEPOINTS \
  22. ATH5K_TRACER
  23. endif
  24. config-$(call config_package,ath) += ATH_CARDS ATH_COMMON ATH_REG_DYNAMIC_USER_REG_HINTS
  25. config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH9K_STATION_STATISTICS
  26. config-$(CONFIG_PACKAGE_ATH_DFS) += ATH9K_DFS_CERTIFIED
  27. config-$(CONFIG_PACKAGE_ATH_SPECTRAL) += ATH9K_COMMON_SPECTRAL
  28. config-$(CONFIG_PACKAGE_ATH_DYNACK) += ATH9K_DYNACK
  29. config-$(call config_package,ath9k) += ATH9K
  30. config-$(call config_package,ath9k-common) += ATH9K_COMMON
  31. config-$(CONFIG_TARGET_ar71xx) += ATH9K_AHB
  32. config-$(CONFIG_TARGET_ath79) += ATH9K_AHB
  33. config-$(CONFIG_PCI) += ATH9K_PCI
  34. config-$(CONFIG_ATH_USER_REGD) += ATH_USER_REGD
  35. config-$(CONFIG_ATH9K_SUPPORT_PCOEM) += ATH9K_PCOEM
  36. config-$(CONFIG_ATH9K_TX99) += ATH9K_TX99
  37. config-$(CONFIG_ATH9K_UBNTHSR) += ATH9K_UBNTHSR
  38. config-$(call config_package,ath9k-htc) += ATH9K_HTC
  39. config-$(call config_package,ath5k) += ATH5K
  40. ifdef CONFIG_TARGET_ath25
  41. config-y += ATH5K_AHB
  42. else
  43. config-y += ATH5K_PCI
  44. endif
  45. config-$(call config_package,carl9170) += CARL9170
  46. define KernelPackage/ath/config
  47. if PACKAGE_kmod-ath
  48. config ATH_USER_REGD
  49. bool "Force Atheros drivers to respect the user's regdomain settings"
  50. default y
  51. help
  52. Atheros' idea of regulatory handling is that the EEPROM of the card defines
  53. the regulatory limits and the user is only allowed to restrict the settings
  54. even further, even if the country allows frequencies or power levels that
  55. are forbidden by the EEPROM settings.
  56. Select this option if you want the driver to respect the user's decision about
  57. regulatory settings.
  58. config PACKAGE_ATH_DEBUG
  59. bool "Atheros wireless debugging"
  60. help
  61. Say Y, if you want to debug atheros wireless drivers.
  62. Only ath9k & ath10k make use of this.
  63. config PACKAGE_ATH_DFS
  64. bool "Enable DFS support"
  65. default y
  66. help
  67. Dynamic frequency selection (DFS) is required for most of the 5 GHz band
  68. channels in Europe, US, and Japan.
  69. Select this option if you want to use such channels.
  70. config PACKAGE_ATH_SPECTRAL
  71. bool "Atheros spectral scan support"
  72. depends on PACKAGE_ATH_DEBUG
  73. select KERNEL_RELAY
  74. help
  75. Say Y to enable access to the FFT/spectral data via debugfs.
  76. config PACKAGE_ATH_DYNACK
  77. bool "Enable Dynack support"
  78. depends on PACKAGE_kmod-ath9k-common
  79. help
  80. Enables support for Dynamic ACK estimation, which allows the fastest possible speed
  81. at any distance automatically by increasing/decreasing the max frame ACK time for
  82. the most remote station detected. It can be enabled by using iw (iw phy0 set distance auto),
  83. or by sending the NL80211_ATTR_WIPHY_DYN_ACK flag to mac80211 driver using netlink.
  84. Select this option if you want to enable this feature
  85. endif
  86. endef
  87. define KernelPackage/ath
  88. $(call KernelPackage/mac80211/Default)
  89. TITLE:=Atheros common driver part
  90. DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx||TARGET_ath79||TARGET_ath25 +kmod-mac80211
  91. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath.ko
  92. MENU:=1
  93. endef
  94. define KernelPackage/ath/description
  95. This module contains some common parts needed by Atheros Wireless drivers.
  96. endef
  97. define KernelPackage/ath5k
  98. $(call KernelPackage/mac80211/Default)
  99. TITLE:=Atheros 5xxx wireless cards support
  100. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath5k
  101. DEPENDS+= @(PCI_SUPPORT||TARGET_ath25) +kmod-ath +@DRIVER_11W_SUPPORT
  102. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath5k/ath5k.ko
  103. AUTOLOAD:=$(call AutoProbe,ath5k)
  104. endef
  105. define KernelPackage/ath5k/description
  106. This module adds support for wireless adapters based on
  107. Atheros 5xxx chipset.
  108. endef
  109. define KernelPackage/ath9k-common
  110. $(call KernelPackage/mac80211/Default)
  111. TITLE:=Atheros 802.11n wireless devices (common code for ath9k and ath9k_htc)
  112. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
  113. HIDDEN:=1
  114. DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx||TARGET_ath79 +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT
  115. FILES:= \
  116. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_common.ko \
  117. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
  118. endef
  119. define KernelPackage/ath9k
  120. $(call KernelPackage/mac80211/Default)
  121. TITLE:=Atheros 802.11n PCI wireless cards support
  122. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
  123. DEPENDS+= @PCI_SUPPORT||TARGET_ar71xx||TARGET_ath79 +kmod-ath9k-common
  124. FILES:= \
  125. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k.ko
  126. AUTOLOAD:=$(call AutoProbe,ath9k)
  127. endef
  128. define KernelPackage/ath9k/description
  129. This module adds support for wireless adapters based on
  130. Atheros IEEE 802.11n AR5008 and AR9001 family of chipsets.
  131. endef
  132. define KernelPackage/ath9k/config
  133. config ATH9K_SUPPORT_PCOEM
  134. bool "Support chips used in PC OEM cards"
  135. depends on PACKAGE_kmod-ath9k
  136. config ATH9K_TX99
  137. bool "Enable TX99 support (WARNING: testing only, breaks normal operation!)"
  138. depends on PACKAGE_kmod-ath9k
  139. config ATH9K_UBNTHSR
  140. bool "Support for Ubiquiti UniFi Outdoor+ access point"
  141. depends on PACKAGE_kmod-ath9k && (TARGET_ar71xx_generic||TARGET_ath79)
  142. default y
  143. endef
  144. define KernelPackage/ath9k-htc
  145. $(call KernelPackage/mac80211/Default)
  146. TITLE:=Atheros 802.11n USB device support
  147. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
  148. DEPENDS+= @USB_SUPPORT +kmod-ath9k-common +kmod-usb-core +ath9k-htc-firmware
  149. FILES:= \
  150. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
  151. AUTOLOAD:=$(call AutoProbe,ath9k_htc)
  152. endef
  153. define KernelPackage/ath9k-htc/description
  154. This module adds support for wireless adapters based on
  155. Atheros USB AR9271 and AR7010 family of chipsets.
  156. endef
  157. define KernelPackage/carl9170
  158. $(call KernelPackage/mac80211/Default)
  159. TITLE:=Driver for Atheros AR9170 USB sticks
  160. DEPENDS:=@USB_SUPPORT +kmod-mac80211 +kmod-ath +kmod-usb-core +kmod-input-core +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT +carl9170-firmware
  161. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/carl9170/carl9170.ko
  162. AUTOLOAD:=$(call AutoProbe,carl9170)
  163. endef