mac80211: Update to version 5.5.19
[oweals/openwrt.git] / package / kernel / mac80211 / intel.mk
1 PKG_DRIVERS += \
2         iwl-legacy iwl3945 iwl4965 iwlwifi \
3         libipw ipw2100 ipw2200 \
4
5 config-$(call config_package,iwl-legacy) += IWLEGACY
6 config-$(call config_package,iwl3945) += IWL3945
7 config-$(call config_package,iwl4965) += IWL4965
8 config-$(call config_package,iwlwifi) += IWLWIFI IWLDVM IWLMVM
9 config-$(CONFIG_PACKAGE_IWLWIFI_DEBUG)+= IWLWIFI_DEBUG
10 config-$(CONFIG_PACKAGE_IWLWIFI_DEBUGFS)+= IWLWIFI_DEBUGFS
11
12 config-$(call config_package,libipw) += LIBIPW
13 config-$(call config_package,ipw2100) += IPW2100
14 config-$(call config_package,ipw2200) += IPW2200
15
16 define KernelPackage/iwlwifi
17   $(call KernelPackage/mac80211/Default)
18   DEPENDS:= +kmod-mac80211 @PCI_SUPPORT +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT +@DRIVER_11W_SUPPORT
19   TITLE:=Intel AGN Wireless support
20   FILES:= \
21         $(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko \
22         $(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlwifi/dvm/iwldvm.ko \
23         $(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko
24   AUTOLOAD:=$(call AutoProbe,iwlwifi iwldvm iwlmvm)
25   MENU:=1
26 endef
27
28 define KernelPackage/iwlwifi/description
29  iwlwifi kernel module for
30  Intel Wireless WiFi Link 6250AGN Adapter
31  Intel 6000 Series Wi-Fi Adapters (6200AGN and 6300AGN)
32  Intel WiFi Link 1000BGN
33  Intel Wireless WiFi 5150AGN
34  Intel Wireless WiFi 5100AGN, 5300AGN, and 5350AGN
35  Intel 6005 Series Wi-Fi Adapters
36  Intel 6030 Series Wi-Fi Adapters
37  Intel Wireless WiFi Link 6150BGN 2 Adapter
38  Intel 100 Series Wi-Fi Adapters (100BGN and 130BGN)
39  Intel 2000 Series Wi-Fi Adapters
40  Intel 7260 Wi-Fi Adapter
41  Intel 3160 Wi-Fi Adapter
42  Intel 7265 Wi-Fi Adapter
43  Intel 8260 Wi-Fi Adapter
44  Intel 3165 Wi-Fi Adapter
45 endef
46
47 define KernelPackage/iwlwifi/config
48   if PACKAGE_kmod-iwlwifi
49
50         config PACKAGE_IWLWIFI_DEBUG
51                 bool "Enable full debugging output in the iwlwifi driver"
52                 default n
53                 help
54                   This option will enable debug tracing output for the iwlwifi drivers
55
56                   This will result in the kernel module being ~100k larger.  You can
57                   control which debug output is sent to the kernel log by setting the
58                   value in
59
60                         /sys/module/iwlwifi/parameters/debug
61
62                   This entry will only exist if this option is enabled.
63
64                   To set a value, simply echo an 8-byte hex value to the same file:
65
66                           % echo 0x43fff > /sys/module/iwlwifi/parameters/debug
67
68                   You can find the list of debug mask values in:
69                           drivers/net/wireless/intel/iwlwifi/iwl-debug.h
70
71                   If this is your first time using this driver, you should say Y here
72                   as the debug information can assist others in helping you resolve
73                   any problems you may encounter.
74
75         config PACKAGE_IWLWIFI_DEBUGFS
76                 bool "iwlwifi debugfs support"
77                 depends on PACKAGE_MAC80211_DEBUGFS
78                 default n
79                 help
80                   Enable creation of debugfs files for the iwlwifi drivers. This
81                   is a low-impact option that allows getting insight into the
82                   driver's state at runtime.
83
84   endif
85 endef
86
87 define KernelPackage/iwl-legacy
88   $(call KernelPackage/mac80211/Default)
89   DEPENDS:= +kmod-mac80211 @PCI_SUPPORT
90   TITLE:=Intel legacy Wireless support
91   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlegacy/iwlegacy.ko
92   AUTOLOAD:=$(call AutoProbe,iwlegacy)
93 endef
94
95 define KernelPackage/iwl-legacy/description
96  iwl-legacy kernel module for legacy Intel wireless support
97 endef
98
99 define KernelPackage/iwl3945
100   $(call KernelPackage/mac80211/Default)
101   DEPENDS:= +kmod-mac80211 +kmod-iwl-legacy +iwl3945-firmware
102   TITLE:=Intel iwl3945 Wireless support
103   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlegacy/iwl3945.ko
104   AUTOLOAD:=$(call AutoProbe,iwl3945)
105 endef
106
107 define KernelPackage/iwl3945/description
108  iwl3945 kernel module for Intel 3945 support
109 endef
110
111 define KernelPackage/iwl4965
112   $(call KernelPackage/mac80211/Default)
113   DEPENDS:= +kmod-mac80211 +kmod-iwl-legacy +@DRIVER_11N_SUPPORT +iwl4965-firmware
114   TITLE:=Intel iwl4965 Wireless support
115   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/iwlegacy/iwl4965.ko
116   AUTOLOAD:=$(call AutoProbe,iwl4965)
117 endef
118
119 define KernelPackage/iwl4965/description
120  iwl4965 kernel module for Intel 4965 support
121 endef
122
123
124 define KernelPackage/libipw
125   $(call KernelPackage/mac80211/Default)
126   TITLE:=libipw for ipw2100 and ipw2200
127   DEPENDS:=@PCI_SUPPORT +kmod-crypto-michael-mic +kmod-crypto-ecb +kmod-lib80211 +kmod-cfg80211 +@DRIVER_WEXT_SUPPORT @!BIG_ENDIAN
128   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/ipw2x00/libipw.ko
129   AUTOLOAD:=$(call AutoProbe,libipw)
130 endef
131
132 define KernelPackage/libipw/description
133  Hardware independent IEEE 802.11 networking stack for ipw2100 and ipw2200.
134 endef
135
136 IPW2100_NAME:=ipw2100-fw
137 IPW2100_VERSION:=1.3
138
139 define Download/ipw2100
140   URL:= \
141         https://src.fedoraproject.org/repo/pkgs/ipw2100-firmware/ipw2100-fw-1.3.tgz/46aa75bcda1a00efa841f9707bbbd113/ \
142         https://archlinux.mirror.pkern.at/other/packages/ipw2100-fw/ \
143         http://mirror.ox.ac.uk/sites/ftp.openbsd.org/pub/OpenBSD/distfiles/firmware/ \
144         http://firmware.openbsd.org/firmware-dist/
145   FILE:=$(IPW2100_NAME)-$(IPW2100_VERSION).tgz
146   HASH:=e1107c455e48d324a616b47a622593bc8413dcce72026f72731c0b03dae3a7a2
147 endef
148 $(eval $(call Download,ipw2100))
149
150 define KernelPackage/ipw2100
151   $(call KernelPackage/mac80211/Default)
152   TITLE:=Intel IPW2100 driver
153   DEPENDS:=@PCI_SUPPORT +kmod-libipw
154   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/ipw2x00/ipw2100.ko
155   AUTOLOAD:=$(call AutoProbe,ipw2100)
156 endef
157
158 define KernelPackage/ipw2100/description
159  Kernel support for Intel IPW2100
160  Includes:
161  - ipw2100
162 endef
163
164 IPW2200_NAME:=ipw2200-fw
165 IPW2200_VERSION:=3.1
166
167 define Download/ipw2200
168   URL:= \
169         https://src.fedoraproject.org/repo/pkgs/ipw2200-firmware/ipw2200-fw-3.1.tgz/eaba788643c7cc7483dd67ace70f6e99/ \
170         https://archlinux.mirror.pkern.at/other/packages/ipw2200-fw/ \
171         http://mirror.ox.ac.uk/sites/ftp.openbsd.org/pub/OpenBSD/distfiles/firmware/ \
172         http://firmware.openbsd.org/firmware-dist/
173   FILE:=$(IPW2200_NAME)-$(IPW2200_VERSION).tgz
174   HASH:=c6818c11c18cc030d55ff83f64b2bad8feef485e7742f84f94a61d811a6258bd
175 endef
176 $(eval $(call Download,ipw2200))
177
178 define KernelPackage/ipw2200
179   $(call KernelPackage/mac80211/Default)
180   TITLE:=Intel IPW2200 driver
181   DEPENDS:=@PCI_SUPPORT +kmod-libipw
182   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/intel/ipw2x00/ipw2200.ko
183   AUTOLOAD:=$(call AutoProbe,ipw2200)
184 endef
185
186 define KernelPackage/ipw2200/description
187  Kernel support for Intel IPW2200
188  Includes:
189  - ipw2200
190 endef
191
192 define KernelPackage/ipw2100/install
193         $(INSTALL_DIR) $(1)/lib/firmware
194         $(INSTALL_DATA) $(PKG_BUILD_DIR)/ipw2100-$(IPW2100_VERSION)*.fw $(1)/lib/firmware
195 endef
196
197 define KernelPackage/ipw2200/install
198         $(INSTALL_DIR) $(1)/lib/firmware
199         $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION)/ipw2200*.fw $(1)/lib/firmware
200 endef