ath.mk 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. PKG_DRIVERS += \
  2. ath ath5k ath6kl 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. ATH6KL_DEBUG
  19. endif
  20. ifdef CONFIG_PACKAGE_MAC80211_TRACING
  21. config-y += \
  22. ATH6KL_TRACING \
  23. ATH_TRACEPOINTS \
  24. ATH5K_TRACER
  25. endif
  26. config-$(call config_package,ath) += ATH_CARDS ATH_COMMON ATH_REG_DYNAMIC_USER_REG_HINTS
  27. config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH9K_STATION_STATISTICS
  28. config-$(CONFIG_PACKAGE_ATH_DFS) += ATH9K_DFS_CERTIFIED
  29. config-$(CONFIG_PACKAGE_ATH_SPECTRAL) += ATH9K_COMMON_SPECTRAL
  30. config-$(CONFIG_PACKAGE_ATH_DYNACK) += ATH9K_DYNACK
  31. config-$(call config_package,ath9k) += ATH9K
  32. config-$(call config_package,ath9k-common) += ATH9K_COMMON
  33. config-$(CONFIG_TARGET_ar71xx) += ATH9K_AHB
  34. config-$(CONFIG_TARGET_ath79) += ATH9K_AHB
  35. config-$(CONFIG_PCI) += ATH9K_PCI
  36. config-$(CONFIG_ATH_USER_REGD) += ATH_USER_REGD
  37. config-$(CONFIG_ATH9K_SUPPORT_PCOEM) += ATH9K_PCOEM
  38. config-$(CONFIG_ATH9K_TX99) += ATH9K_TX99
  39. config-$(CONFIG_ATH9K_UBNTHSR) += ATH9K_UBNTHSR
  40. config-$(call config_package,ath9k-htc) += ATH9K_HTC
  41. config-$(call config_package,ath5k) += ATH5K
  42. ifdef CONFIG_TARGET_ath25
  43. config-y += ATH5K_AHB
  44. else
  45. config-y += ATH5K_PCI
  46. endif
  47. config-$(call config_package,ath6kl) += ATH6KL
  48. config-$(call config_package,ath6kl-sdio) += ATH6KL_SDIO
  49. config-$(call config_package,ath6kl-usb) += ATH6KL_USB
  50. config-$(call config_package,carl9170) += CARL9170
  51. define KernelPackage/ath/config
  52. if PACKAGE_kmod-ath
  53. config ATH_USER_REGD
  54. bool "Force Atheros drivers to respect the user's regdomain settings"
  55. default y
  56. help
  57. Atheros' idea of regulatory handling is that the EEPROM of the card defines
  58. the regulatory limits and the user is only allowed to restrict the settings
  59. even further, even if the country allows frequencies or power levels that
  60. are forbidden by the EEPROM settings.
  61. Select this option if you want the driver to respect the user's decision about
  62. regulatory settings.
  63. config PACKAGE_ATH_DEBUG
  64. bool "Atheros wireless debugging"
  65. help
  66. Say Y, if you want to debug atheros wireless drivers.
  67. Only ath9k & ath10k make use of this.
  68. config PACKAGE_ATH_DFS
  69. bool "Enable DFS support"
  70. default y
  71. help
  72. Dynamic frequency selection (DFS) is required for most of the 5 GHz band
  73. channels in Europe, US, and Japan.
  74. Select this option if you want to use such channels.
  75. config PACKAGE_ATH_SPECTRAL
  76. bool "Atheros spectral scan support"
  77. depends on PACKAGE_ATH_DEBUG
  78. select KERNEL_RELAY
  79. help
  80. Say Y to enable access to the FFT/spectral data via debugfs.
  81. config PACKAGE_ATH_DYNACK
  82. bool "Enable Dynack support"
  83. depends on PACKAGE_kmod-ath9k-common
  84. help
  85. Enables support for Dynamic ACK estimation, which allows the fastest possible speed
  86. at any distance automatically by increasing/decreasing the max frame ACK time for
  87. the most remote station detected. It can be enabled by using iw (iw phy0 set distance auto),
  88. or by sending the NL80211_ATTR_WIPHY_DYN_ACK flag to mac80211 driver using netlink.
  89. Select this option if you want to enable this feature
  90. endif
  91. endef
  92. define KernelPackage/ath
  93. $(call KernelPackage/mac80211/Default)
  94. TITLE:=Atheros common driver part
  95. DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx||TARGET_ath79||TARGET_ath25 +kmod-mac80211
  96. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath.ko
  97. MENU:=1
  98. endef
  99. define KernelPackage/ath/description
  100. This module contains some common parts needed by Atheros Wireless drivers.
  101. endef
  102. define KernelPackage/ath5k
  103. $(call KernelPackage/mac80211/Default)
  104. TITLE:=Atheros 5xxx wireless cards support
  105. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath5k
  106. DEPENDS+= @PCI_SUPPORT||@TARGET_ath25 +kmod-ath +@DRIVER_11W_SUPPORT
  107. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath5k/ath5k.ko
  108. AUTOLOAD:=$(call AutoProbe,ath5k)
  109. endef
  110. define KernelPackage/ath5k/description
  111. This module adds support for wireless adapters based on
  112. Atheros 5xxx chipset.
  113. endef
  114. define KernelPackage/ath6kl
  115. $(call KernelPackage/mac80211/Default)
  116. TITLE:=Atheros FullMAC wireless devices (common code for ath6kl_sdio and ath6kl_usb)
  117. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath6kl
  118. HIDDEN:=1
  119. DEPENDS+= +kmod-ath +@DRIVER_11N_SUPPORT
  120. FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath6kl/ath6kl_core.ko
  121. endef
  122. define KernelPackage/ath6kl-sdio
  123. $(call KernelPackage/mac80211/Default)
  124. TITLE:=Atheros 802.11n SDIO wireless cards support
  125. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath6kl
  126. DEPENDS+= +kmod-mmc +kmod-ath6kl
  127. FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath6kl/ath6kl_sdio.ko
  128. AUTOLOAD:=$(call AutoProbe,ath6kl_sdio)
  129. endef
  130. define KernelPackage/ath6kl-sdio/description
  131. This module adds support for wireless adapters based on
  132. Atheros IEEE 802.11n AR6003 and AR6004 family of chipsets.
  133. endef
  134. define KernelPackage/ath6kl-usb
  135. $(call KernelPackage/mac80211/Default)
  136. TITLE:=Atheros 802.11n USB wireless cards support
  137. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath6kl
  138. DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-ath6kl
  139. FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath6kl/ath6kl_usb.ko
  140. AUTOLOAD:=$(call AutoProbe,ath6kl_usb)
  141. endef
  142. define KernelPackage/ath6kl-usb/description
  143. This module adds support for wireless adapters based on the
  144. Atheros IEEE 802.11n AR6004 chipset.
  145. endef
  146. define KernelPackage/ath9k-common
  147. $(call KernelPackage/mac80211/Default)
  148. TITLE:=Atheros 802.11n wireless devices (common code for ath9k and ath9k_htc)
  149. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
  150. HIDDEN:=1
  151. DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx||TARGET_ath79 +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT
  152. FILES:= \
  153. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_common.ko \
  154. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
  155. endef
  156. define KernelPackage/ath9k
  157. $(call KernelPackage/mac80211/Default)
  158. TITLE:=Atheros 802.11n PCI wireless cards support
  159. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
  160. DEPENDS+= @PCI_SUPPORT||TARGET_ar71xx||TARGET_ath79 +kmod-ath9k-common
  161. FILES:= \
  162. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k.ko
  163. AUTOLOAD:=$(call AutoProbe,ath9k)
  164. endef
  165. define KernelPackage/ath9k/description
  166. This module adds support for wireless adapters based on
  167. Atheros IEEE 802.11n AR5008 and AR9001 family of chipsets.
  168. endef
  169. define KernelPackage/ath9k/config
  170. config ATH9K_SUPPORT_PCOEM
  171. bool "Support chips used in PC OEM cards"
  172. depends on PACKAGE_kmod-ath9k
  173. config ATH9K_TX99
  174. bool "Enable TX99 support (WARNING: testing only, breaks normal operation!)"
  175. depends on PACKAGE_kmod-ath9k
  176. config ATH9K_UBNTHSR
  177. bool "Support for Ubiquiti UniFi Outdoor+ access point"
  178. depends on PACKAGE_kmod-ath9k && (TARGET_ar71xx_generic||TARGET_ath79)
  179. default y
  180. endef
  181. define KernelPackage/ath9k-htc
  182. $(call KernelPackage/mac80211/Default)
  183. TITLE:=Atheros 802.11n USB device support
  184. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
  185. DEPENDS+= @USB_SUPPORT +kmod-ath9k-common +kmod-usb-core +ath9k-htc-firmware
  186. FILES:= \
  187. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
  188. AUTOLOAD:=$(call AutoProbe,ath9k_htc)
  189. endef
  190. define KernelPackage/ath9k-htc/description
  191. This module adds support for wireless adapters based on
  192. Atheros USB AR9271 and AR7010 family of chipsets.
  193. endef
  194. define KernelPackage/ath10k
  195. $(call KernelPackage/mac80211/Default)
  196. TITLE:=Atheros 802.11ac wireless cards support
  197. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath10k
  198. DEPENDS+= @PCI_SUPPORT +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT +@DRIVER_11W_SUPPORT \
  199. +ATH10K_THERMAL:kmod-hwmon-core +ATH10K_THERMAL:kmod-thermal
  200. FILES:= \
  201. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_core.ko \
  202. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
  203. AUTOLOAD:=$(call AutoProbe,ath10k_pci)
  204. endef
  205. define KernelPackage/ath10k/description
  206. This module adds support for wireless adapters based on
  207. Atheros IEEE 802.11ac family of chipsets. For now only
  208. PCI is supported.
  209. endef
  210. define KernelPackage/ath10k/config
  211. config ATH10K_LEDS
  212. bool "Enable LED support"
  213. default y
  214. depends on PACKAGE_kmod-ath10k
  215. config ATH10K_THERMAL
  216. bool "Enable thermal sensors and throttling support"
  217. depends on PACKAGE_kmod-ath10k
  218. endef
  219. define KernelPackage/carl9170
  220. $(call KernelPackage/mac80211/Default)
  221. TITLE:=Driver for Atheros AR9170 USB sticks
  222. DEPENDS:=@USB_SUPPORT +kmod-mac80211 +kmod-ath +kmod-usb-core +kmod-input-core +@DRIVER_11N_SUPPORT +carl9170-firmware
  223. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/carl9170/carl9170.ko
  224. AUTOLOAD:=$(call AutoProbe,carl9170)
  225. endef