ath.mk 11 KB

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