ath.mk 9.2 KB

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