ath.mk 10.0 KB

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