ath.mk 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. PKG_DRIVERS += \
  2. ath ath5k ath9k ath9k-common ath9k-htc \
  3. carl9170 owl-loader ar5523
  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_ATH_USER_REGD
  13. ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS
  14. config-y += \
  15. ATH9K_DEBUGFS \
  16. ATH9K_HTC_DEBUGFS \
  17. CARL9170_DEBUGFS \
  18. ATH5K_DEBUG
  19. endif
  20. ifdef CONFIG_PACKAGE_MAC80211_TRACING
  21. config-y += \
  22. ATH_TRACEPOINTS \
  23. ATH5K_TRACER
  24. endif
  25. config-$(call config_package,ath) += ATH_CARDS ATH_COMMON
  26. config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH9K_STATION_STATISTICS
  27. config-$(CONFIG_PACKAGE_ATH_DFS) += ATH9K_DFS_CERTIFIED
  28. config-$(CONFIG_PACKAGE_ATH_SPECTRAL) += ATH9K_COMMON_SPECTRAL
  29. config-$(CONFIG_PACKAGE_ATH_DYNACK) += ATH9K_DYNACK
  30. config-$(call config_package,ath9k) += ATH9K
  31. config-$(call config_package,ath9k-common) += ATH9K_COMMON
  32. config-$(call config_package,owl-loader) += ATH9K_PCI_NO_EEPROM
  33. config-$(CONFIG_TARGET_ath79) += ATH9K_AHB
  34. config-$(CONFIG_PCI) += ATH9K_PCI
  35. config-$(CONFIG_ATH_USER_REGD) += ATH_USER_REGD ATH_REG_DYNAMIC_USER_REG_HINTS
  36. config-$(CONFIG_ATH9K_HWRNG) += ATH9K_HWRNG
  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,carl9170) += CARL9170
  48. config-$(call config_package,ar5523) += AR5523
  49. define KernelPackage/ath/config
  50. if PACKAGE_kmod-ath
  51. config ATH_USER_REGD
  52. bool "Force Atheros drivers to respect the user's regdomain settings"
  53. default y
  54. help
  55. Atheros' idea of regulatory handling is that the EEPROM of the card defines
  56. the regulatory limits and the user is only allowed to restrict the settings
  57. even further, even if the country allows frequencies or power levels that
  58. are forbidden by the EEPROM settings.
  59. Select this option if you want the driver to respect the user's decision about
  60. regulatory settings.
  61. config PACKAGE_ATH_DEBUG
  62. bool "Atheros wireless debugging"
  63. help
  64. Say Y, if you want to debug atheros wireless drivers.
  65. Only ath9k makes use of this.
  66. config PACKAGE_ATH_DFS
  67. bool "Enable DFS support"
  68. default y
  69. help
  70. Dynamic frequency selection (DFS) is required for most of the 5 GHz band
  71. channels in Europe, US, and Japan.
  72. Select this option if you want to use such channels.
  73. config PACKAGE_ATH_SPECTRAL
  74. bool "Atheros spectral scan support"
  75. depends on PACKAGE_ATH_DEBUG
  76. select KERNEL_RELAY
  77. help
  78. Say Y to enable access to the FFT/spectral data via debugfs.
  79. config PACKAGE_ATH_DYNACK
  80. bool "Enable Dynack support"
  81. depends on PACKAGE_kmod-ath9k-common
  82. help
  83. Enables support for Dynamic ACK estimation, which allows the fastest possible speed
  84. at any distance automatically by increasing/decreasing the max frame ACK time for
  85. the most remote station detected. It can be enabled by using iw (iw phy0 set distance auto),
  86. or by sending the NL80211_ATTR_WIPHY_DYN_ACK flag to mac80211 driver using netlink.
  87. Select this option if you want to enable this feature
  88. endif
  89. endef
  90. define KernelPackage/ath
  91. $(call KernelPackage/mac80211/Default)
  92. TITLE:=Atheros common driver part
  93. DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ath79||TARGET_ath25 +kmod-mac80211
  94. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath.ko
  95. MENU:=1
  96. endef
  97. define KernelPackage/ath/description
  98. This module contains some common parts needed by Atheros Wireless drivers.
  99. endef
  100. define KernelPackage/ath5k
  101. $(call KernelPackage/mac80211/Default)
  102. TITLE:=Atheros 5xxx wireless cards support
  103. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath5k
  104. DEPENDS+= @(PCI_SUPPORT||TARGET_ath25) +kmod-ath
  105. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath5k/ath5k.ko
  106. AUTOLOAD:=$(call AutoProbe,ath5k)
  107. endef
  108. define KernelPackage/ath5k/description
  109. This module adds support for wireless adapters based on
  110. Atheros 5xxx chipset.
  111. endef
  112. define KernelPackage/ath9k-common
  113. $(call KernelPackage/mac80211/Default)
  114. TITLE:=Atheros 802.11n wireless devices (common code for ath9k and ath9k_htc)
  115. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
  116. HIDDEN:=1
  117. DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ath79 +kmod-ath +kmod-random-core
  118. FILES:= \
  119. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_common.ko \
  120. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
  121. endef
  122. define KernelPackage/ath9k
  123. $(call KernelPackage/mac80211/Default)
  124. TITLE:=Atheros 802.11n PCI wireless cards support
  125. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
  126. DEPENDS+= @PCI_SUPPORT||TARGET_ath79 +kmod-ath9k-common
  127. FILES:= \
  128. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k.ko
  129. AUTOLOAD:=$(call AutoProbe,ath9k)
  130. endef
  131. define KernelPackage/ath9k/description
  132. This module adds support for wireless adapters based on
  133. Atheros IEEE 802.11n AR5008 and AR9001 family of chipsets.
  134. endef
  135. define KernelPackage/ath9k/config
  136. config ATH9K_HWRNG
  137. bool "Add wireless noise as source of randomness to kernel entropy pool"
  138. depends on PACKAGE_kmod-ath9k
  139. select PACKAGE_kmod-random-core
  140. default y
  141. config ATH9K_SUPPORT_PCOEM
  142. bool "Support chips used in PC OEM cards"
  143. depends on PACKAGE_kmod-ath9k
  144. default y if (x86_64 || i386)
  145. config ATH9K_TX99
  146. bool "Enable TX99 support (WARNING: testing only, breaks normal operation!)"
  147. depends on PACKAGE_kmod-ath9k
  148. config ATH9K_UBNTHSR
  149. bool "Support for Ubiquiti UniFi Outdoor+ access point"
  150. depends on PACKAGE_kmod-ath9k && TARGET_ath79
  151. default y
  152. endef
  153. define KernelPackage/ath9k-htc
  154. $(call KernelPackage/mac80211/Default)
  155. TITLE:=Atheros 802.11n USB device support
  156. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
  157. DEPENDS+= @USB_SUPPORT +kmod-ath9k-common +kmod-usb-core +ath9k-htc-firmware
  158. FILES:= \
  159. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
  160. AUTOLOAD:=$(call AutoProbe,ath9k_htc)
  161. endef
  162. define KernelPackage/ath9k-htc/description
  163. This module adds support for wireless adapters based on
  164. Atheros USB AR9271 and AR7010 family of chipsets.
  165. endef
  166. define KernelPackage/carl9170
  167. $(call KernelPackage/mac80211/Default)
  168. TITLE:=Driver for Atheros AR9170 USB sticks
  169. DEPENDS:=@USB_SUPPORT +kmod-mac80211 +kmod-ath +kmod-usb-core +kmod-input-core +carl9170-firmware
  170. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/carl9170/carl9170.ko
  171. AUTOLOAD:=$(call AutoProbe,carl9170)
  172. endef
  173. define KernelPackage/owl-loader
  174. $(call KernelPackage/mac80211/Default)
  175. TITLE:=Owl loader for initializing Atheros PCI(e) Wifi chips
  176. DEPENDS:=@PCI_SUPPORT +kmod-ath9k
  177. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.ko
  178. AUTOLOAD:=$(call AutoProbe,ath9k_pci_owl_loader)
  179. endef
  180. define KernelPackage/owl-loader/description
  181. Kernel module that helps to initialize certain Qualcomm
  182. Atheros' PCI(e) Wifi chips, which have the init data
  183. (which contains the PCI device ID for example) stored
  184. together with the calibration data in the file system.
  185. This is necessary for devices like the Cisco Meraki Z1.
  186. endef
  187. define KernelPackage/ar5523
  188. $(call KernelPackage/mac80211/Default)
  189. TITLE:=Driver for Atheros AR5523 USB sticks
  190. DEPENDS:=@USB_SUPPORT +kmod-mac80211 +kmod-ath +kmod-usb-core +kmod-input-core
  191. FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ar5523/ar5523.ko
  192. AUTOLOAD:=$(call AutoProbe,ar5523)
  193. endef