mac80211: fix probing of rtl8180
[openwrt/svn-archive/archive.git] / package / kernel / mac80211 / Makefile
1 #
2 # Copyright (C) 2007-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=mac80211
12
13 PKG_VERSION:=2014-05-22
14 PKG_RELEASE:=1
15 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
16 PKG_BACKPORT_VERSION:=
17 PKG_MD5SUM:=367937d4f8c05cb36ca989ee26abc3df
18
19 PKG_SOURCE:=compat-wireless-$(PKG_VERSION)$(PKG_BACKPORT_VERSION).tar.bz2
20 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/compat-wireless-$(PKG_VERSION)
21 PKG_BUILD_PARALLEL:=1
22
23 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
24
25 PKG_DRIVERS = \
26 adm8211 ath5k libertas-usb libertas-sd p54-common p54-pci p54-usb p54-spi \
27 rt2x00-lib rt2x00-pci rt2x00-usb rt2800-lib rt2400-pci rt2500-pci \
28 rt2500-usb rt61-pci rt73-usb rt2800-mmio rt2800-pci rt2800-usb rt2800-soc \
29 rtl8180 rtl8187 zd1211rw mac80211-hwsim carl9170 b43 b43legacy \
30 ath9k-common ath9k ath9k-htc ath10k ath net-libipw net-ipw2100 net-ipw2200 \
31 mwl8k net-hermes net-hermes-pci net-hermes-plx net-hermes-pcmcia \
32 iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \
33 rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
34 rtl8192de rtl8192cu
35
36 PKG_CONFIG_DEPENDS:= \
37 CONFIG_PACKAGE_kmod-mac80211 \
38 $(patsubst %,CONFIG_PACKAGE_kmod-%,$(PKG_DRIVERS)) \
39 CONFIG_PACKAGE_MAC80211_DEBUGFS \
40 CONFIG_PACKAGE_MAC80211_MESH \
41 CONFIG_PACKAGE_ATH_DEBUG \
42 CONFIG_PACKAGE_ATH_DFS \
43 CONFIG_PACKAGE_B43_DEBUG \
44 CONFIG_PACKAGE_B43_PIO \
45 CONFIG_PACKAGE_B43_N_PHY \
46 CONFIG_PACKAGE_RTLWIFI_DEBUG \
47 CONFIG_ATH_USER_REGD \
48
49 include $(INCLUDE_DIR)/package.mk
50
51 WMENU:=Wireless Drivers
52
53 define KernelPackage/mac80211/Default
54 SUBMENU:=$(WMENU)
55 URL:=http://linuxwireless.org/
56 MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
57 DEPENDS:=@(!(TARGET_avr32||TARGET_ps3||TARGET_pxcab)||BROKEN)
58 endef
59
60 define KernelPackage/cfg80211
61 $(call KernelPackage/mac80211/Default)
62 TITLE:=cfg80211 - wireless configuration API
63 DEPENDS+= +iw
64 FILES:= \
65 $(PKG_BUILD_DIR)/compat/compat.ko \
66 $(PKG_BUILD_DIR)/net/wireless/cfg80211.ko
67 endef
68
69 define KernelPackage/cfg80211/description
70 cfg80211 is the Linux wireless LAN (802.11) configuration API.
71 endef
72
73 define KernelPackage/mac80211
74 $(call KernelPackage/mac80211/Default)
75 TITLE:=Linux 802.11 Wireless Networking Stack
76 DEPENDS+= +kmod-crypto-core +kmod-crypto-arc4 +kmod-crypto-aes +kmod-cfg80211 +hostapd-common
77 KCONFIG:=\
78 CONFIG_AVERAGE=y
79 FILES:= $(PKG_BUILD_DIR)/net/mac80211/mac80211.ko
80 MENU:=1
81 endef
82
83 define KernelPackage/mac80211/config
84 if PACKAGE_kmod-mac80211
85
86 config PACKAGE_MAC80211_DEBUGFS
87 bool "Export mac80211 internals in DebugFS"
88 select KERNEL_DEBUG_FS
89 select KERNEL_RELAY if PACKAGE_kmod-ath9k-common
90 default y
91 help
92 Select this to see extensive information about
93 the internal state of mac80211 in debugfs.
94
95 config PACKAGE_MAC80211_MESH
96 bool "Enable 802.11s mesh support"
97 default y
98
99 endif
100 endef
101
102 define KernelPackage/mac80211/description
103 Generic IEEE 802.11 Networking Stack (mac80211)
104 endef
105
106 PKG_LINUX_FIRMWARE_NAME:=linux-firmware
107 PKG_LINUX_FIRMWARE_VERSION:=f8c22c692bdee57a20b092e647464ff6176df3ed
108 PKG_LINUX_FIRMWARE_SOURCE:=$(PKG_LINUX_FIRMWARE_NAME)-$(PKG_LINUX_FIRMWARE_VERSION).tar.bz2
109 PKG_LINUX_FIRMWARE_PROTO:=git
110 PKG_LINUX_FIRMWARE_SOURCE_URL:=git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
111 PKG_LINUX_FIRMWARE_SUBDIR:=$(PKG_LINUX_FIRMWARE_NAME)-$(PKG_LINUX_FIRMWARE_VERSION)
112 PKG_LINUX_FIRMWARE_MIRROR_MD5SUM:=e219333f01835c6e556875a9e0deb3f9
113
114 define Download/linux-firmware
115 FILE:=$(PKG_LINUX_FIRMWARE_SOURCE)
116 URL:=$(PKG_LINUX_FIRMWARE_SOURCE_URL)
117 MD5SUM:=$(PKG_LINUX_FIRMWARE_MD5SUM)
118 PROTO:=$(PKG_LINUX_FIRMWARE_PROTO)
119 VERSION:=$(PKG_LINUX_FIRMWARE_VERSION)
120 SUBDIR:=$(PKG_LINUX_FIRMWARE_SUBDIR)
121 MIRROR_MD5SUM:=$(PKG_LINUX_FIRMWARE_MIRROR_MD5SUM)
122 endef
123 $(eval $(call Download,linux-firmware))
124
125 PKG_ATH10K_LINUX_FIRMWARE_NAME:=ath10k-firmware
126 PKG_ATH10K_LINUX_FIRMWARE_VERSION:=38eeda3ae6f90fde5546bdd48ee4ff3090f238c0
127 PKG_ATH10K_LINUX_FIRMWARE_SOURCE:=$(PKG_ATH10K_LINUX_FIRMWARE_NAME)-$(PKG_ATH10K_LINUX_FIRMWARE_VERSION).tar.bz2
128 PKG_ATH10K_LINUX_FIRMWARE_PROTO:=git
129 PKG_ATH10K_LINUX_FIRMWARE_SOURCE_URL:=https://github.com/kvalo/ath10k-firmware.git
130 PKG_ATH10K_LINUX_FIRMWARE_SUBDIR:=$(PKG_ATH10K_LINUX_FIRMWARE_NAME)-$(PKG_ATH10K_LINUX_FIRMWARE_VERSION)
131 #PKG_ATH10K_LINUX_FIRMWARE_MIRROR_MD5SUM:=?
132
133 define Download/ath10k-firmware
134 FILE:=$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE)
135 URL:=$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE_URL)
136 PROTO:=$(PKG_ATH10K_LINUX_FIRMWARE_PROTO)
137 VERSION:=$(PKG_ATH10K_LINUX_FIRMWARE_VERSION)
138 SUBDIR:=$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)
139 #MIRROR_MD5SUM:=$(PKG_ATH10K_LINUX_FIRMWARE_MIRROR_MD5SUM)
140 endef
141 $(eval $(call Download,ath10k-firmware))
142
143 # Prism54 drivers
144 P54PCIFW:=2.13.12.0.arm
145 P54USBFW:=2.13.24.0.lm87.arm
146 P54SPIFW:=2.13.0.0.a.13.14.arm
147
148 define Download/p54usb
149 FILE:=$(P54USBFW)
150 URL:=http://daemonizer.de/prism54/prism54-fw/fw-usb
151 MD5SUM:=8e8ab005a4f8f0123bcdc51bc25b47f6
152 endef
153 $(eval $(call Download,p54usb))
154
155 define Download/p54pci
156 FILE:=$(P54PCIFW)
157 URL:=http://daemonizer.de/prism54/prism54-fw/fw-softmac
158 MD5SUM:=ff7536af2092b1c4b21315bd103ef4c4
159 endef
160 $(eval $(call Download,p54pci))
161
162 define Download/p54spi
163 FILE:=$(P54SPIFW)
164 URL:=http://daemonizer.de/prism54/prism54-fw/stlc4560
165 MD5SUM:=42661f8ecbadd88012807493f596081d
166 endef
167 $(eval $(call Download,p54spi))
168
169 define KernelPackage/p54/Default
170 $(call KernelPackage/mac80211/Default)
171 TITLE:=Prism54 Drivers
172 endef
173
174 define KernelPackage/p54/description
175 Kernel module for Prism54 chipsets (mac80211)
176 endef
177
178 define KernelPackage/p54-common
179 $(call KernelPackage/p54/Default)
180 DEPENDS+= @PCI_SUPPORT||@USB_SUPPORT||@TARGET_omap24xx +kmod-mac80211 +kmod-lib-crc-ccitt
181 TITLE+= (COMMON)
182 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54common.ko
183 endef
184
185 define KernelPackage/p54-pci
186 $(call KernelPackage/p54/Default)
187 TITLE+= (PCI)
188 DEPENDS+= @PCI_SUPPORT +kmod-p54-common
189 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54pci.ko
190 AUTOLOAD:=$(call AutoProbe,p54pci)
191 endef
192
193 define KernelPackage/p54-usb
194 $(call KernelPackage/p54/Default)
195 TITLE+= (USB)
196 DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-p54-common
197 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54usb.ko
198 AUTOLOAD:=$(call AutoProbe,p54usb)
199 endef
200
201 define KernelPackage/p54-spi
202 $(call KernelPackage/p54/Default)
203 TITLE+= (SPI)
204 DEPENDS+= @TARGET_omap24xx +kmod-p54-common
205 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54spi.ko
206 AUTOLOAD:=$(call AutoProbe,p54spi)
207 endef
208
209 define KernelPackage/rt2x00/Default
210 $(call KernelPackage/mac80211/Default)
211 TITLE:=Ralink Drivers for RT2x00 cards
212 endef
213
214 define KernelPackage/rt2x00-lib
215 $(call KernelPackage/rt2x00/Default)
216 DEPENDS+= @(PCI_SUPPORT||USB_SUPPORT||TARGET_ramips) +kmod-mac80211 +kmod-lib-crc-itu-t
217 TITLE+= (LIB)
218 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00lib.ko
219 MENU:=1
220 endef
221
222 define KernelPackage/rt2x00-lib/config
223 if PACKAGE_kmod-rt2x00-lib
224
225 config PACKAGE_RT2X00_LIB_DEBUGFS
226 bool "Enable rt2x00 debugfs support"
227 depends on PACKAGE_MAC80211_DEBUGFS
228 help
229 Enable creation of debugfs files for the rt2x00 drivers.
230 These debugfs files support both reading and writing of the
231 most important register types of the rt2x00 hardware.
232
233 config PACKAGE_RT2X00_DEBUG
234 bool "Enable rt2x00 debug output"
235 help
236 Enable debugging output for all rt2x00 modules
237
238 endif
239 endef
240
241 define KernelPackage/rt2x00-mmio
242 $(call KernelPackage/rt2x00/Default)
243 DEPENDS+= @(PCI_SUPPORT||TARGET_ramips) +kmod-rt2x00-lib +kmod-eeprom-93cx6
244 HIDDEN:=1
245 TITLE+= (MMIO)
246 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00mmio.ko
247 endef
248
249 define KernelPackage/rt2x00-pci
250 $(call KernelPackage/rt2x00/Default)
251 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-mmio +kmod-rt2x00-lib
252 HIDDEN:=1
253 TITLE+= (PCI)
254 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00pci.ko
255 AUTOLOAD:=$(call AutoProbe,rt2x00pci)
256 endef
257
258 define KernelPackage/rt2x00-usb
259 $(call KernelPackage/rt2x00/Default)
260 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-lib +kmod-usb-core
261 HIDDEN:=1
262 TITLE+= (USB)
263 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00usb.ko
264 AUTOLOAD:=$(call AutoProbe,rt2x00usb)
265 endef
266
267 define KernelPackage/rt2800-lib
268 $(call KernelPackage/rt2x00/Default)
269 DEPENDS+= @(PCI_SUPPORT||USB_SUPPORT||TARGET_ramips) +kmod-rt2x00-lib +kmod-lib-crc-ccitt +@DRIVER_11N_SUPPORT
270 HIDDEN:=1
271 TITLE+= (rt2800 LIB)
272 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800lib.ko
273 endef
274
275 define KernelPackage/rt2400-pci
276 $(call KernelPackage/rt2x00/Default)
277 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
278 TITLE+= (RT2400 PCI)
279 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2400pci.ko
280 AUTOLOAD:=$(call AutoProbe,rt2400pci)
281 endef
282
283 define KernelPackage/rt2500-pci
284 $(call KernelPackage/rt2x00/Default)
285 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
286 TITLE+= (RT2500 PCI)
287 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2500pci.ko
288 AUTOLOAD:=$(call AutoProbe,rt2500pci)
289 endef
290
291 define KernelPackage/rt2500-usb
292 $(call KernelPackage/rt2x00/Default)
293 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb
294 TITLE+= (RT2500 USB)
295 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2500usb.ko
296 AUTOLOAD:=$(call AutoProbe,rt2500usb)
297 endef
298
299 define KernelPackage/rt61-pci
300 $(call KernelPackage/rt2x00/Default)
301 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci
302 TITLE+= (RT2x61 PCI)
303 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt61pci.ko
304 AUTOLOAD:=$(call AutoProbe,rt61pci)
305 endef
306
307 define KernelPackage/rt73-usb
308 $(call KernelPackage/rt2x00/Default)
309 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb
310 TITLE+= (RT73 USB)
311 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt73usb.ko
312 AUTOLOAD:=$(call AutoProbe,rt73usb)
313 endef
314
315 define KernelPackage/rt2800-mmio
316 $(call KernelPackage/rt2x00/Default)
317 TITLE += (RT28xx/RT3xxx MMIO)
318 DEPENDS += +kmod-rt2800-lib +kmod-rt2x00-mmio
319 HIDDEN:=1
320 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800mmio.ko
321 endef
322
323 define KernelPackage/rt2800-soc
324 $(call KernelPackage/rt2x00/Default)
325 DEPENDS += @(TARGET_ramips_rt288x||TARGET_ramips_rt305x||TARGET_ramips_rt3883) +kmod-rt2800-mmio +kmod-rt2800-lib
326 TITLE += (RT28xx/RT3xxx SoC)
327 FILES := \
328 $(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2x00soc.ko \
329 $(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800soc.ko
330 AUTOLOAD:=$(call AutoProbe,rt2800soc)
331 endef
332
333 define KernelPackage/rt2800-pci
334 $(call KernelPackage/rt2x00/Default)
335 DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci +kmod-rt2800-lib +kmod-rt2800-mmio
336 TITLE+= (RT2860 PCI)
337 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800pci.ko
338 AUTOLOAD:=$(call AutoProbe,rt2800pci)
339 endef
340
341 define KernelPackage/rt2800-usb
342 $(call KernelPackage/rt2x00/Default)
343 DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb +kmod-rt2800-lib +kmod-lib-crc-ccitt
344 TITLE+= (RT2870 USB)
345 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800usb.ko
346 AUTOLOAD:=$(call AutoProbe,rt2800usb)
347 endef
348
349 define KernelPackage/rtl818x/Default
350 $(call KernelPackage/mac80211/Default)
351 TITLE:=Realtek Drivers for RTL818x devices
352 URL:=http://wireless.kernel.org/en/users/Drivers/rtl8187
353 DEPENDS+= +kmod-eeprom-93cx6 +kmod-mac80211
354 endef
355
356 define KernelPackage/rtl8180
357 $(call KernelPackage/rtl818x/Default)
358 DEPENDS+= @PCI_SUPPORT
359 TITLE+= (RTL8180 PCI)
360 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtl818x/rtl8180/rtl818x_pci.ko
361 AUTOLOAD:=$(call AutoProbe,rtl818x_pci)
362 endef
363
364 define KernelPackage/rtl8187
365 $(call KernelPackage/rtl818x/Default)
366 DEPENDS+= @USB_SUPPORT +kmod-usb-core
367 TITLE+= (RTL8187 USB)
368 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko
369 AUTOLOAD:=$(call AutoProbe,rtl8187)
370 endef
371
372 define KernelPackage/rtlwifi/config
373 menu "Configuration"
374 depends on PACKAGE_kmod-rtlwifi
375
376 config PACKAGE_RTLWIFI_DEBUG
377 bool "Realtek wireless debugging"
378 help
379 Say Y, if you want to debug realtek wireless drivers.
380
381 endmenu
382 endef
383
384 define KernelPackage/rtlwifi
385 $(call KernelPackage/mac80211/Default)
386 TITLE:=Realtek common driver part
387 DEPENDS+= @(PCI_SUPPORT||USB_SUPPORT) +kmod-mac80211 +@DRIVER_11N_SUPPORT
388 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtlwifi/rtlwifi.ko
389 MENU:=1
390 endef
391
392 define KernelPackage/rtlwifi-pci
393 $(call KernelPackage/mac80211/Default)
394 TITLE:=Realtek common driver part (PCI support)
395 DEPENDS+= @PCI_SUPPORT +kmod-rtlwifi
396 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtlwifi/rtl_pci.ko
397 AUTOLOAD:=$(call AutoProbe,rtl_pci)
398 HIDDEN:=1
399 endef
400
401 define KernelPackage/rtlwifi-usb
402 $(call KernelPackage/mac80211/Default)
403 TITLE:=Realtek common driver part (USB support)
404 DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-rtlwifi
405 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtlwifi/rtl_usb.ko
406 AUTOLOAD:=$(call AutoProbe,rtl_usb)
407 HIDDEN:=1
408 endef
409
410 define KernelPackage/rtl8192c-common
411 $(call KernelPackage/mac80211/Default)
412 TITLE:=Realtek RTL8192CE/RTL8192CU common support module
413 DEPENDS+= +kmod-rtlwifi
414 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
415 HIDDEN:=1
416 endef
417
418 define KernelPackage/rtl8192ce
419 $(call KernelPackage/mac80211/Default)
420 TITLE:=Realtek RTL8192CE/RTL8188CE support
421 DEPENDS+= +kmod-rtlwifi-pci +kmod-rtl8192c-common
422 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko
423 AUTOLOAD:=$(call AutoProbe,rtl8192ce)
424 endef
425
426 define KernelPackage/rtl8192ce/install
427 $(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
428 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rtlwifi/rtl8192cfw.bin $(1)/lib/firmware/rtlwifi
429 endef
430
431 define KernelPackage/rtl8192se
432 $(call KernelPackage/mac80211/Default)
433 TITLE:=Realtek RTL8192SE/RTL8191SE support
434 DEPENDS+= +kmod-rtlwifi-pci
435 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtlwifi/rtl8192se/rtl8192se.ko
436 AUTOLOAD:=$(call AutoProbe,rtl8192se)
437 endef
438
439 define KernelPackage/rtl8192se/install
440 $(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
441 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rtlwifi/rtl8192sefw.bin $(1)/lib/firmware/rtlwifi
442 endef
443
444 define KernelPackage/rtl8192de
445 $(call KernelPackage/mac80211/Default)
446 TITLE:=Realtek RTL8192DE/RTL8188DE support
447 DEPENDS+= +kmod-rtlwifi-pci
448 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/rtlwifi/rtl8192de/rtl8192de.ko
449 AUTOLOAD:=$(call AutoProbe,rtl8192de)
450 endef
451
452 define KernelPackage/rtl8192de/install
453 $(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
454 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rtlwifi/rtl8192defw.bin $(1)/lib/firmware/rtlwifi
455 endef
456
457 define KernelPackage/rtl8192cu
458 $(call KernelPackage/mac80211/Default)
459 TITLE:=Realtek RTL8192CU/RTL8188CU support
460 DEPENDS+= +kmod-rtlwifi-usb +kmod-rtl8192c-common
461 FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
462 AUTOLOAD:=$(call AutoProbe,rtl8192cu)
463 endef
464
465 define KernelPackage/rtl8192cu/install
466 $(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
467 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rtlwifi/rtl8192cufw.bin $(1)/lib/firmware/rtlwifi
468 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rtlwifi/rtl8192cufw_TMSC.bin $(1)/lib/firmware/rtlwifi
469 endef
470
471 ZD1211FW_NAME:=zd1211-firmware
472 ZD1211FW_VERSION:=1.4
473 define Download/zd1211rw
474 FILE:=$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
475 URL:=@SF/zd1211/
476 MD5SUM:=19f28781d76569af8551c9d11294c870
477 endef
478 $(eval $(call Download,zd1211rw))
479
480 define KernelPackage/zd1211rw
481 $(call KernelPackage/mac80211/Default)
482 TITLE:=Zydas ZD1211 support
483 DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-mac80211
484 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/zd1211rw/zd1211rw.ko
485 AUTOLOAD:=$(call AutoProbe,zd1211rw)
486 endef
487
488 define KernelPackage/adm8211
489 $(call KernelPackage/mac80211/Default)
490 TITLE:=ADMTek 8211 support
491 DEPENDS+=@PCI_SUPPORT +kmod-mac80211 +kmod-eeprom-93cx6
492 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/adm8211.ko
493 AUTOLOAD:=$(call AutoProbe,adm8211)
494 endef
495
496 define KernelPackage/ath/config
497 if PACKAGE_kmod-ath
498 config ATH_USER_REGD
499 bool "Force Atheros drivers to respect the user's regdomain settings"
500 help
501 Atheros' idea of regulatory handling is that the EEPROM of the card defines
502 the regulatory limits and the user is only allowed to restrict the settings
503 even further, even if the country allows frequencies or power levels that
504 are forbidden by the EEPROM settings.
505
506 Select this option if you want the driver to respect the user's decision about
507 regulatory settings.
508
509 config PACKAGE_ATH_DEBUG
510 bool "Atheros wireless debugging"
511 help
512 Say Y, if you want to debug atheros wireless drivers.
513 Right now only ath9k makes use of this.
514
515 config PACKAGE_ATH_DFS
516 bool "Enable DFS support"
517 help
518 Dynamic frequency selection (DFS) is required for most of the 5 GHz band
519 channels in Europe, US, and Japan.
520
521 Select this option if you want to use such channels. Only EU (ETSI) DFS
522 is supported at the moment.
523
524 endif
525 endef
526
527 define KernelPackage/ath
528 $(call KernelPackage/mac80211/Default)
529 TITLE:=Atheros common driver part
530 DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx||TARGET_atheros +kmod-mac80211
531 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath.ko
532 MENU:=1
533 endef
534
535 define KernelPackage/ath/description
536 This module contains some common parts needed by Atheros Wireless drivers.
537 endef
538
539 define KernelPackage/ath5k
540 $(call KernelPackage/mac80211/Default)
541 TITLE:=Atheros 5xxx wireless cards support
542 URL:=http://linuxwireless.org/en/users/Drivers/ath5k
543 DEPENDS+= @PCI_SUPPORT||@TARGET_atheros +kmod-ath
544 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath5k/ath5k.ko
545 AUTOLOAD:=$(call AutoProbe,ath5k)
546 endef
547
548 define KernelPackage/ath5k/description
549 This module adds support for wireless adapters based on
550 Atheros 5xxx chipset.
551 endef
552
553 define KernelPackage/ath9k-common
554 $(call KernelPackage/mac80211/Default)
555 TITLE:=Atheros 802.11n wireless devices (common code for ath9k and ath9k_htc)
556 URL:=http://linuxwireless.org/en/users/Drivers/ath9k
557 DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx +kmod-ath +@DRIVER_11N_SUPPORT
558 FILES:= \
559 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_common.ko \
560 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
561 endef
562
563 define KernelPackage/ath9k
564 $(call KernelPackage/mac80211/Default)
565 TITLE:=Atheros 802.11n PCI wireless cards support
566 URL:=http://linuxwireless.org/en/users/Drivers/ath9k
567 DEPENDS+= @PCI_SUPPORT||TARGET_ar71xx +kmod-ath9k-common
568 FILES:= \
569 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k.ko
570 AUTOLOAD:=$(call AutoProbe,ath9k)
571 endef
572
573 define KernelPackage/ath9k/description
574 This module adds support for wireless adapters based on
575 Atheros IEEE 802.11n AR5008 and AR9001 family of chipsets.
576 endef
577
578 define KernelPackage/ath9k-htc
579 $(call KernelPackage/mac80211/Default)
580 TITLE:=Atheros 802.11n USB device support
581 URL:=http://linuxwireless.org/en/users/Drivers/ath9k
582 DEPENDS+= @USB_SUPPORT +kmod-ath9k-common +kmod-usb-core
583 FILES:= \
584 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
585 AUTOLOAD:=$(call AutoProbe,ath9k_htc)
586 endef
587
588 define KernelPackage/ath9k-htc/description
589 This module adds support for wireless adapters based on
590 Atheros USB AR9271 and AR7010 family of chipsets.
591 endef
592
593 define KernelPackage/ath10k
594 $(call KernelPackage/mac80211/Default)
595 TITLE:=Atheros 802.11ac wireless cards support
596 URL:=http://wireless.kernel.org/en/users/Drivers/ath10k
597 DEPENDS+= @PCI_SUPPORT +kmod-ath +@DRIVER_11N_SUPPORT
598 FILES:= \
599 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_core.ko \
600 $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
601 AUTOLOAD:=$(call AutoLoad,55,ath10k_core ath10k_pci)
602 endef
603
604 define KernelPackage/ath10k/description
605 This module adds support for wireless adapters based on
606 Atheros IEEE 802.11ac family of chipsets. For now only
607 PCI is supported.
608 endef
609
610 define KernelPackage/ath10k/config
611 if PACKAGE_kmod-ath10k
612
613 config ATH10K_STA_FW
614 bool "Firmware optimized for STA operation"
615 default n
616 help
617 Use the ath10k firmware optimized for wireless client instead
618 of access point operation.
619
620 endif
621 endef
622
623 define KernelPackage/carl9170
624 $(call KernelPackage/mac80211/Default)
625 TITLE:=Driver for Atheros AR9170 USB sticks
626 DEPENDS:=@USB_SUPPORT +kmod-mac80211 +kmod-ath +kmod-usb-core +kmod-input-core +@DRIVER_11N_SUPPORT
627 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/carl9170/carl9170.ko
628 AUTOLOAD:=$(call AutoProbe,carl9170)
629 endef
630
631 define KernelPackage/lib80211
632 $(call KernelPackage/mac80211/Default)
633 TITLE:=802.11 Networking stack
634 DEPENDS:=+kmod-cfg80211
635 FILES:= \
636 $(PKG_BUILD_DIR)/net/wireless/lib80211.ko \
637 $(PKG_BUILD_DIR)/net/wireless/lib80211_crypt_wep.ko \
638 $(PKG_BUILD_DIR)/net/wireless/lib80211_crypt_ccmp.ko \
639 $(PKG_BUILD_DIR)/net/wireless/lib80211_crypt_tkip.ko
640 AUTOLOAD:=$(call AutoProbe, \
641 lib80211 \
642 lib80211_crypt_wep \
643 lib80211_crypt_ccmp \
644 lib80211_crypt_tkip \
645 )
646 endef
647
648 define KernelPackage/lib80211/description
649 Kernel modules for 802.11 Networking stack
650 Includes:
651 - lib80211
652 - lib80211_crypt_wep
653 - lib80211_crypt_tkip
654 - lib80211_crytp_ccmp
655 endef
656
657 define KernelPackage/libertas-usb
658 $(call KernelPackage/mac80211/Default)
659 DEPENDS+= @USB_SUPPORT +kmod-cfg80211 +kmod-usb-core +kmod-lib80211 +@DRIVER_WEXT_SUPPORT
660 TITLE:=Marvell 88W8015 Wireless Driver
661 FILES:= \
662 $(PKG_BUILD_DIR)/drivers/net/wireless/libertas/libertas.ko \
663 $(PKG_BUILD_DIR)/drivers/net/wireless/libertas/usb8xxx.ko
664 AUTOLOAD:=$(call AutoProbe,libertas usb8xxx)
665 endef
666
667 define KernelPackage/libertas-sd
668 $(call KernelPackage/mac80211/Default)
669 DEPENDS+= +kmod-cfg80211 +kmod-lib80211 +kmod-mmc +@DRIVER_WEXT_SUPPORT @!TARGET_uml
670 TITLE:=Marvell 88W8686 Wireless Driver
671 FILES:= \
672 $(PKG_BUILD_DIR)/drivers/net/wireless/libertas/libertas.ko \
673 $(PKG_BUILD_DIR)/drivers/net/wireless/libertas/libertas_sdio.ko
674 AUTOLOAD:=$(call AutoProbe,libertas libertas_sdio)
675 endef
676
677 define KernelPackage/mac80211-hwsim
678 $(call KernelPackage/mac80211/Default)
679 TITLE:=mac80211 HW simulation device
680 DEPENDS+= +kmod-mac80211
681 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mac80211_hwsim.ko
682 AUTOLOAD:=$(call AutoProbe,mac80211_hwsim)
683 endef
684
685 define KernelPackage/net-libipw
686 $(call KernelPackage/mac80211/Default)
687 TITLE:=libipw for ipw2100 and ipw2200
688 DEPENDS:=@PCI_SUPPORT +kmod-crypto-core +kmod-crypto-arc4 +kmod-crypto-aes +kmod-crypto-michael-mic +kmod-lib80211 +kmod-cfg80211 +@DRIVER_WEXT_SUPPORT
689 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ipw2x00/libipw.ko
690 AUTOLOAD:=$(call AutoProbe,libipw)
691 endef
692
693 define KernelPackage/net-libipw/description
694 Hardware independent IEEE 802.11 networking stack for ipw2100 and ipw2200.
695 endef
696
697 IPW2100_NAME:=ipw2100-fw
698 IPW2100_VERSION:=1.3
699
700 define Download/net-ipw2100
701 URL:=http://bughost.org/firmware/
702 FILE:=$(IPW2100_NAME)-$(IPW2100_VERSION).tgz
703 MD5SUM=46aa75bcda1a00efa841f9707bbbd113
704 endef
705 $(eval $(call Download,net-ipw2100))
706
707 define KernelPackage/net-ipw2100
708 $(call KernelPackage/mac80211/Default)
709 TITLE:=Intel IPW2100 driver
710 DEPENDS:=@PCI_SUPPORT +kmod-net-libipw
711 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ipw2x00/ipw2100.ko
712 AUTOLOAD:=$(call AutoProbe,ipw2100)
713 endef
714
715 define KernelPackage/net-ipw2100/description
716 Kernel support for Intel IPW2100
717 Includes:
718 - ipw2100
719 endef
720
721 IPW2200_NAME:=ipw2200-fw
722 IPW2200_VERSION:=3.1
723
724 define Download/net-ipw2200
725 URL:=http://bughost.org/firmware/
726 FILE:=$(IPW2200_NAME)-$(IPW2200_VERSION).tgz
727 MD5SUM=eaba788643c7cc7483dd67ace70f6e99
728 endef
729 $(eval $(call Download,net-ipw2200))
730
731 define KernelPackage/net-ipw2200
732 $(call KernelPackage/mac80211/Default)
733 TITLE:=Intel IPW2200 driver
734 DEPENDS:=@PCI_SUPPORT +kmod-net-libipw
735 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ipw2x00/ipw2200.ko
736 AUTOLOAD:=$(call AutoProbe,ipw2200)
737 endef
738
739 define KernelPackage/net-ipw2200/description
740 Kernel support for Intel IPW2200
741 Includes:
742 - ipw2200
743 endef
744
745
746 define KernelPackage/net-hermes
747 $(call KernelPackage/mac80211/Default)
748 TITLE:=Hermes 802.11b chipset support
749 DEPENDS:=@PCI_SUPPORT||PCMCIA_SUPPORT +kmod-cfg80211 +@DRIVER_WEXT_SUPPORT
750 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco.ko
751 AUTOLOAD:=$(call AutoProbe,orinoco)
752 endef
753
754 define KernelPackage/net-hermes/description
755 Kernel support for Hermes 802.11b chipsets
756 endef
757
758 define KernelPackage/net-hermes-pci
759 $(call KernelPackage/mac80211/Default)
760 TITLE:=Intersil Prism 2.5 PCI support
761 DEPENDS:=@PCI_SUPPORT +kmod-net-hermes
762 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco_pci.ko
763 AUTOLOAD:=$(call AutoProbe,orinoco_pci)
764 endef
765
766 define KernelPackage/net-hermes-pci/description
767 Kernel modules for Intersil Prism 2.5 PCI support
768 endef
769
770 define KernelPackage/net-hermes-plx
771 $(call KernelPackage/mac80211/Default)
772 TITLE:=PLX9052 based PCI adaptor
773 DEPENDS:=@PCI_SUPPORT +kmod-net-hermes
774 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco_plx.ko
775 AUTOLOAD:=$(call AutoProbe,orinoco_plx)
776 endef
777
778 define KernelPackage/net-hermes-plx/description
779 Kernel modules for Hermes in PLX9052 based PCI adaptors
780 endef
781
782 define KernelPackage/net-hermes-pcmcia
783 $(call KernelPackage/mac80211/Default)
784 TITLE:=Hermes based PCMCIA adaptors
785 DEPENDS:=@PCMCIA_SUPPORT +kmod-net-hermes @BROKEN
786 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco_cs.ko
787 AUTOLOAD:=$(call AutoProbe,orinoco_cs)
788 endef
789
790 define KernelPackage/net-hermes-pcmcia/description
791 Kernel modules for Hermes based PCMCIA adaptors
792 endef
793
794 define KernelPackage/iwlagn
795 $(call KernelPackage/mac80211/Default)
796 DEPENDS:= +kmod-mac80211 @PCI_SUPPORT +@DRIVER_11N_SUPPORT
797 TITLE:=Intel AGN Wireless support
798 FILES:= \
799 $(PKG_BUILD_DIR)/drivers/net/wireless/iwlwifi/iwlwifi.ko \
800 $(PKG_BUILD_DIR)/drivers/net/wireless/iwlwifi/dvm/iwldvm.ko
801 AUTOLOAD:=$(call AutoProbe,iwlwifi iwldvm)
802 MENU:=1
803 endef
804
805 define KernelPackage/iwlagn/description
806 iwlagn kernel module for Intel 5000/5150/1000/6000/6050/6005/6030/100 support
807 endef
808
809 define KernelPackage/iwlagn/config
810 if PACKAGE_kmod-iwlagn
811
812 config IWL5000_FW
813 bool "Intel 5000 Firmware"
814 default y
815 help
816 Download and install firmware for:
817 Intel Wireless WiFi 5100AGN, 5300AGN, and 5350AGN
818
819 config IWL5150_FW
820 bool "Intel 5150 Firmware"
821 default y
822 help
823 Download and install firmware for:
824 Intel Wireless WiFi 5150AGN
825
826 config IWL1000_FW
827 bool "Intel 1000 Firmware"
828 default y
829 help
830 Download and install firmware for:
831 Intel Centrino Wireless-N 1000
832
833 config IWL6000_FW
834 bool "Intel 6000 Firmware"
835 default y
836 help
837 Download and install firmware for:
838 Intel Centrino Ultimate-N 6300 and Advanced-N 6200
839
840 config IWL6050_FW
841 bool "Intel 6050 Firmware"
842 default y
843 help
844 Download and install firmware for:
845 Intel Centrino Advanced-N + WiMAX 6250 and Wireless-N + WiMAX 6150
846
847 config IWL6005_FW
848 bool "Intel 6005 Firmware"
849 default y
850 help
851 Download and install firmware for:
852 Intel Centrino Advanced-N 6205
853
854 config IWL6030_FW
855 bool "Intel 6030 Firmware"
856 default y
857 help
858 Download and install firmware for:
859 Intel Centrino Advanced-N 6230, Wireless-N 1030, Wireless-N 130 and Advanced-N 6235
860
861 config IWL7260_FW
862 bool "Intel 7260 Firmware"
863 default y
864 help
865 Download and install firmware for:
866 Intel Dual Band Wireless-N 7260 and Intel Dual Band Wireless-AC 7260
867
868 config IWL100_FW
869 bool "Intel 100 Firmware"
870 default y
871 help
872 Download and install firmware for:
873 Intel Centrino Wireless-N 100
874
875 config IWL2000_FW
876 bool "Intel 2000 Firmware"
877 default y
878 help
879 Download and install firmware for:
880 Intel Centrino Wireless-N 2200
881
882 config IWL2030_FW
883 bool "Intel 2030 Firmware"
884 default y
885 help
886 Download and install firmware for:
887 Intel Centrino Wireless-N 2230
888
889 config IWL105_FW
890 bool "Intel 105 Firmware"
891 default y
892 help
893 Download and install firmware for:
894 Intel Centrino Wireless-N 105
895
896 config IWL135_FW
897 bool "Intel 135 Firmware"
898 default y
899 help
900 Download and install firmware for:
901 Intel Centrino Wireless-N 135
902 endif
903 endef
904
905 define KernelPackage/iwl-legacy
906 $(call KernelPackage/mac80211/Default)
907 DEPENDS:= +kmod-mac80211 @PCI_SUPPORT
908 TITLE:=Intel legacy Wireless support
909 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/iwlegacy/iwlegacy.ko
910 AUTOLOAD:=$(call AutoProbe,iwlegacy)
911 endef
912
913 define KernelPackage/iwl-legacy/description
914 iwl-legacy kernel module for legacy Intel wireless support
915 endef
916
917 define KernelPackage/iwl3945
918 $(call KernelPackage/mac80211/Default)
919 DEPENDS:= +kmod-mac80211 +kmod-iwl-legacy
920 TITLE:=Intel iwl3945 Wireless support
921 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/iwlegacy/iwl3945.ko
922 AUTOLOAD:=$(call AutoProbe,iwl3945)
923 endef
924
925 define KernelPackage/iwl3945/description
926 iwl3945 kernel module for Intel 3945 support
927 endef
928
929 define KernelPackage/iwl4965
930 $(call KernelPackage/mac80211/Default)
931 DEPENDS:= +kmod-mac80211 +kmod-iwl-legacy +@DRIVER_11N_SUPPORT
932 TITLE:=Intel iwl4965 Wireless support
933 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/iwlegacy/iwl4965.ko
934 AUTOLOAD:=$(call AutoProbe,iwl4965)
935 endef
936
937 define KernelPackage/iwl4965/description
938 iwl4965 kernel module for Intel 4965 support
939 endef
940
941
942 define KernelPackage/mwl8k
943 $(call KernelPackage/mac80211/Default)
944 TITLE:=Driver for Marvell TOPDOG 802.11 Wireless cards
945 URL:=http://wireless.kernel.org/en/users/Drivers/mwl8k
946 DEPENDS+= @PCI_SUPPORT +kmod-mac80211 +@DRIVER_11N_SUPPORT
947 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mwl8k.ko
948 AUTOLOAD:=$(call AutoProbe,mwl8k)
949 endef
950
951 define KernelPackage/mwl8k/description
952 Kernel modules for Marvell TOPDOG 802.11 Wireless cards
953 endef
954
955
956 define KernelPackage/wlcore
957 $(call KernelPackage/mac80211/Default)
958 TITLE:=TI common driver part
959 DEPENDS+= @TARGET_omap +kmod-mac80211 +@DRIVER_11N_SUPPORT
960 FILES:= \
961 $(PKG_BUILD_DIR)/drivers/net/wireless/ti/wlcore/wlcore.ko \
962 $(PKG_BUILD_DIR)/drivers/net/wireless/ti/wlcore/wlcore_sdio.ko
963 AUTOLOAD:=$(call AutoProbe,wlcore wlcore_sdio)
964 endef
965
966 define KernelPackage/wlcore/description
967 This module contains some common parts needed by TI Wireless drivers.
968 endef
969
970 define KernelPackage/wl12xx
971 $(call KernelPackage/mac80211/Default)
972 TITLE:=Driver for TI WL12xx
973 URL:=http://wireless.kernel.org/en/users/Drivers/wl12xx
974 DEPENDS+= +kmod-wlcore
975 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ti/wl12xx/wl12xx.ko
976 AUTOLOAD:=$(call AutoProbe,wl12xx)
977 endef
978
979 define KernelPackage/wl12xx/description
980 Kernel modules for TI WL12xx
981 endef
982
983 define KernelPackage/wl18xx
984 $(call KernelPackage/mac80211/Default)
985 TITLE:=Driver for TI WL18xx
986 URL:=http://wireless.kernel.org/en/users/Drivers/wl18xx
987 DEPENDS+= +kmod-wlcore
988 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ti/wl18xx/wl18xx.ko
989 AUTOLOAD:=$(call AutoProbe,wl18xx)
990 endef
991
992 define KernelPackage/wl18xx/description
993 Kernel modules for TI WL18xx
994 endef
995
996
997 #Broadcom firmware
998 ifneq ($(CONFIG_B43_FW_5_10),)
999 PKG_B43_FWV4_NAME:=broadcom-wl
1000 PKG_B43_FWV4_VERSION:=5.10.56.27.3
1001 PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/driver/wl_apsta/wl_prebuilt.o
1002 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)_mipsel.tar.bz2
1003 PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/
1004 PKG_B43_FWV4_MD5SUM:=3363e3a6b3d9d73c49dea870c7834eac
1005 else
1006 ifneq ($(CONFIG_B43_FW_4_178),)
1007 PKG_B43_FWV4_NAME:=broadcom-wl
1008 PKG_B43_FWV4_VERSION:=4.178.10.4
1009 PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/linux/wl_apsta.o
1010 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
1011 PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/
1012 PKG_B43_FWV4_MD5SUM:=14477e8cbbb91b11896affac9b219fdb
1013 else
1014 ifneq ($(CONFIG_B43_FW_5_100_138),)
1015 PKG_B43_FWV4_NAME:=broadcom-wl
1016 PKG_B43_FWV4_VERSION:=5.100.138
1017 PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/linux/wl_apsta.o
1018 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
1019 PKG_B43_FWV4_SOURCE_URL:=http://www.lwfinger.com/b43-firmware/
1020 PKG_B43_FWV4_MD5SUM:=f4e357b09eaf5d8b1f1920cf3493a555
1021 else
1022 PKG_B43_FWV4_NAME:=broadcom-wl
1023 PKG_B43_FWV4_VERSION:=4.150.10.5
1024 PKG_B43_FWV4_OBJECT:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION)/driver/wl_apsta_mimo.o
1025 PKG_B43_FWV4_SOURCE:=$(PKG_B43_FWV4_NAME)-$(PKG_B43_FWV4_VERSION).tar.bz2
1026 PKG_B43_FWV4_SOURCE_URL:=http://mirror2.openwrt.org/sources/
1027 PKG_B43_FWV4_MD5SUM:=0c6ba9687114c6b598e8019e262d9a60
1028 endif
1029 endif
1030 endif
1031 ifneq ($(CONFIG_B43_OPENFIRMWARE),)
1032 PKG_B43_FWV4_NAME:=broadcom-wl
1033 PKG_B43_FWV4_VERSION:=5.2
1034 PKG_B43_FWV4_OBJECT:=openfwwf-$(PKG_B43_FWV4_VERSION)
1035 PKG_B43_FWV4_SOURCE:=openfwwf-$(PKG_B43_FWV4_VERSION).tar.gz
1036 PKG_B43_FWV4_SOURCE_URL:=http://www.ing.unibs.it/openfwwf/firmware/
1037 PKG_B43_FWV4_MD5SUM:=e045a135453274e439ae183f8498b0fa
1038 endif
1039
1040
1041 PKG_B43_FWV3_NAME:=wl_apsta
1042 PKG_B43_FWV3_VERSION:=3.130.20.0
1043 PKG_B43_FWV3_SOURCE:=$(PKG_B43_FWV3_NAME)-$(PKG_B43_FWV3_VERSION).o
1044 PKG_B43_FWV3_SOURCE_URL:=http://downloads.openwrt.org/sources/
1045 PKG_B43_FWV3_MD5SUM:=e08665c5c5b66beb9c3b2dd54aa80cb3
1046
1047 define Download/b43
1048 FILE:=$(PKG_B43_FWV4_SOURCE)
1049 URL:=$(PKG_B43_FWV4_SOURCE_URL)
1050 MD5SUM:=$(PKG_B43_FWV4_MD5SUM)
1051 endef
1052 $(eval $(call Download,b43))
1053
1054 define Download/b43legacy
1055 FILE:=$(PKG_B43_FWV3_SOURCE)
1056 URL:=$(PKG_B43_FWV3_SOURCE_URL)
1057 MD5SUM:=$(PKG_B43_FWV3_MD5SUM)
1058 endef
1059 $(eval $(call Download,b43legacy))
1060
1061
1062 define KernelPackage/b43
1063 $(call KernelPackage/mac80211/Default)
1064 TITLE:=Broadcom 43xx wireless support
1065 URL:=http://linuxwireless.org/en/users/Drivers/b43
1066 KCONFIG:= \
1067 CONFIG_HW_RANDOM=y
1068 DEPENDS+= +kmod-mac80211 +!TARGET_brcm47xx:kmod-bcma +!(TARGET_brcm47xx||TARGET_brcm63xx):kmod-ssb
1069 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/b43/b43.ko
1070 AUTOLOAD:=$(call AutoProbe,b43)
1071 MENU:=1
1072 endef
1073
1074 define KernelPackage/b43/config
1075 if PACKAGE_kmod-b43
1076
1077 choice
1078 prompt "b43 firmware version"
1079 default B43_FW_5_100_138
1080 help
1081 This option allows you to select the version of the b43 firmware.
1082
1083 config B43_FW_4_150
1084 bool "Firmware 410.2160 from driver 4.150.10.5 (old stable)"
1085 help
1086 Stable firmware for BCM43xx devices.
1087
1088 If unsure, select this.
1089
1090 config B43_FW_4_178
1091 bool "Firmware 478.104 from driver 4.178.10.4"
1092 help
1093 Experimental firmware for BCM43xx devices.
1094
1095 This firmware is not tested as much as the "stable" firmware.
1096
1097 If unsure, select the "stable" firmware.
1098
1099 config B43_FW_5_10
1100 bool "Firmware 508.1084 from driver 5.10.56.27"
1101 help
1102 Newer experimental firmware for BCM43xx devices.
1103
1104 This firmware is mostly untested. It is needed for some N-PHY devices.
1105
1106 If unsure, select the "stable" firmware.
1107
1108 config B43_FW_5_100_138
1109 bool "Firmware 666.2 from driver 5.100.138 (stable)"
1110 help
1111 Newer experimental firmware for BCM43xx devices.
1112
1113 This firmware is mostly untested. It is needed for some N-PHY devices.
1114
1115 If unsure, select the "stable" firmware.
1116
1117 config B43_OPENFIRMWARE
1118 bool "Open FirmWare for WiFi networks"
1119 help
1120 Opensource firmware for BCM43xx devices.
1121
1122 Do _not_ select this, unless you know what you are doing.
1123 The Opensource firmware is not suitable for embedded devices, yet.
1124 It does not support QoS, which is bad for AccessPoints.
1125 It does not support hardware crypto acceleration, which is a showstopper
1126 for embedded devices with low CPU resources.
1127
1128 If unsure, select the "stable" firmware.
1129
1130 endchoice
1131
1132 config B43_FW_SQUASH
1133 bool "Remove unnecessary firmware files"
1134 depends on !B43_OPENFIRMWARE
1135 default y
1136 help
1137 This options allows you to remove unnecessary b43 firmware files
1138 from the final rootfs image. This can reduce the rootfs size by
1139 up to 200k.
1140
1141 If unsure, say Y.
1142
1143 config B43_FW_SQUASH_COREREVS
1144 string "Core revisions to include"
1145 depends on B43_FW_SQUASH
1146 default "5,6,7,8,9,10,11,13,15,16,29"
1147 help
1148 This is a comma seperated list of core revision numbers.
1149
1150 Example (keep files for rev5 only):
1151 5
1152
1153 Example (keep files for rev5 and rev11):
1154 5,11
1155
1156 config B43_FW_SQUASH_PHYTYPES
1157 string "PHY types to include"
1158 depends on B43_FW_SQUASH
1159 default "G,LP,N,HT"
1160 help
1161 This is a comma seperated list of PHY types:
1162 A => A-PHY
1163 AG => Dual A-PHY G-PHY
1164 G => G-PHY
1165 LP => LP-PHY
1166 N => N-PHY
1167 HT => HT-PHY
1168 LCN => LCN-PHY
1169
1170 Example (keep files for G-PHY only):
1171 G
1172
1173 Example (keep files for G-PHY and N-PHY):
1174 G,N
1175
1176 config PACKAGE_B43_DEBUG
1177 bool "Enable debug output and debugfs for b43"
1178 default n
1179 help
1180 Enable additional debug output and runtime sanity checks for b43
1181 and enables the debugfs interface.
1182
1183 If unsure, say N.
1184
1185 config PACKAGE_B43_PIO
1186 bool "Enable support for PIO transfer mode"
1187 default n
1188 help
1189 Enable support for using PIO instead of DMA. Unless you have DMA
1190 transfer problems you don't need this.
1191
1192 If unsure, say N.
1193
1194 config PACKAGE_B43_PHY_N
1195 bool "Enable support for N-PHYs"
1196 default y
1197 help
1198 Enable support for N-PHY. This includes support for the following devices:
1199 PCI: BCM4321, BCM4322, BCM43222, BCM43224, BCM43225
1200 SoC: BCM4716, BCM4717, BCM4718
1201
1202 Currently only 11g speed is available.
1203
1204 If unsure, say Y.
1205
1206 config PACKAGE_B43_PHY_HT
1207 bool "Enable support for HT-PHYs"
1208 default y
1209 help
1210 Enable support for HT-PHY. This includes support for the following devices:
1211 PCI: BCM4331
1212
1213 Currently only 11g speed is available.
1214
1215 If unsure, say Y.
1216
1217 config PACKAGE_B43_PHY_LCN
1218 bool "Enable support for LCN-PHYs"
1219 depends on BROKEN
1220 default n
1221 help
1222 Currently broken.
1223
1224 If unsure, say N.
1225
1226 endif
1227 endef
1228
1229 define KernelPackage/b43/description
1230 Kernel module for Broadcom 43xx wireless support (mac80211 stack) new
1231 endef
1232
1233 define KernelPackage/b43legacy
1234 $(call KernelPackage/mac80211/Default)
1235 TITLE:=Broadcom 43xx-legacy wireless support
1236 URL:=http://linuxwireless.org/en/users/Drivers/b43
1237 KCONFIG:= \
1238 CONFIG_HW_RANDOM=y
1239 DEPENDS+= +kmod-mac80211 +!(TARGET_brcm47xx||TARGET_brcm63xx):kmod-ssb
1240 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/b43legacy/b43legacy.ko
1241 AUTOLOAD:=$(call AutoProbe,b43legacy)
1242 MENU:=1
1243 endef
1244
1245 define KernelPackage/b43legacy/config
1246 if PACKAGE_kmod-b43legacy
1247
1248 config B43LEGACY_FW_SQUASH
1249 bool "Remove unnecessary firmware files"
1250 default y
1251 help
1252 This options allows you to remove unnecessary b43legacy firmware files
1253 from the final rootfs image. This can reduce the rootfs size by
1254 up to 50k.
1255
1256 If unsure, say Y.
1257
1258 config B43LEGACY_FW_SQUASH_COREREVS
1259 string "Core revisions to include"
1260 depends on B43LEGACY_FW_SQUASH
1261 default "1,2,3,4"
1262 help
1263 This is a comma seperated list of core revision numbers.
1264
1265 Example (keep files for rev4 only):
1266 4
1267
1268 Example (keep files for rev2 and rev4):
1269 2,4
1270
1271 endif
1272 endef
1273
1274 define KernelPackage/b43legacy/description
1275 Kernel module for Broadcom 43xx-legacy wireless support (mac80211 stack) new
1276 endef
1277
1278
1279 define KernelPackage/brcmutil
1280 $(call KernelPackage/mac80211/Default)
1281 TITLE:=Broadcom IEEE802.11n common driver parts
1282 URL:=http://linuxwireless.org/en/users/Drivers/brcm80211
1283 DEPENDS+=@PCI_SUPPORT||USB_SUPPORT
1284 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/brcm80211/brcmutil/brcmutil.ko
1285 AUTOLOAD:=$(call AutoProbe,brcmutil)
1286 MENU:=1
1287 endef
1288
1289 define KernelPackage/brcmutil/description
1290 This module contains some common parts needed by Broadcom Wireless drivers brcmsmac and brcmfmac.
1291 endef
1292
1293 define KernelPackage/brcmutil/config
1294 if PACKAGE_kmod-brcmutil
1295
1296 config PACKAGE_BRCM80211_DEBUG
1297 bool "Broadcom wireless driver debugging"
1298 help
1299 Say Y, if you want to debug brcmsmac and brcmfmac wireless driver.
1300
1301 endif
1302 endef
1303
1304 PKG_BRCMSMAC_FW_NAME:=broadcom-wl
1305 PKG_BRCMSMAC_FW_VERSION:=5.100.138
1306 PKG_BRCMSMAC_FW_OBJECT:=$(PKG_BRCMSMAC_FW_NAME)-$(PKG_BRCMSMAC_FW_VERSION)/linux/wl_apsta.o
1307 PKG_BRCMSMAC_FW_SOURCE:=$(PKG_BRCMSMAC_FW_NAME)-$(PKG_BRCMSMAC_FW_VERSION).tar.bz2
1308 PKG_BRCMSMAC_FW_SOURCE_URL:=http://www.lwfinger.com/b43-firmware/
1309 PKG_BRCMSMAC_FW_MD5SUM:=f4e357b09eaf5d8b1f1920cf3493a555
1310
1311 define Download/brcmsmac
1312 FILE:=$(PKG_BRCMSMAC_FW_SOURCE)
1313 URL:=$(PKG_BRCMSMAC_FW_SOURCE_URL)
1314 MD5SUM:=$(PKG_BRCMSMAC_FW_MD5SUM)
1315 endef
1316 $(eval $(call Download,brcmsmac))
1317
1318 define KernelPackage/brcmsmac
1319 $(call KernelPackage/mac80211/Default)
1320 TITLE:=Broadcom IEEE802.11n PCIe SoftMAC WLAN driver
1321 URL:=http://linuxwireless.org/en/users/Drivers/brcm80211
1322 DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT +!TARGET_brcm47xx:kmod-bcma +kmod-lib-cordic +kmod-lib-crc8 +kmod-brcmutil
1323 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/brcm80211/brcmsmac/brcmsmac.ko
1324 AUTOLOAD:=$(call AutoProbe,brcmsmac)
1325 MENU:=1
1326 endef
1327
1328 define KernelPackage/brcmsmac/description
1329 Kernel module for Broadcom IEEE802.11n PCIe Wireless cards
1330 endef
1331
1332 define KernelPackage/brcmsmac/config
1333 if PACKAGE_kmod-brcmsmac
1334
1335 config BRCMSMAC_USE_FW_FROM_WL
1336 bool "Use firmware extracted from broadcom proprietary driver"
1337 default y
1338 help
1339 Instead of using the official brcmsmac firmware a firmware
1340 version 666.2 extracted from the proprietary Broadcom driver
1341 is used. This is needed to get core rev 17 used in bcm4716
1342 to work.
1343
1344 If unsure, say Y.
1345
1346 endif
1347 endef
1348
1349
1350 define KernelPackage/brcmfmac
1351 $(call KernelPackage/mac80211/Default)
1352 TITLE:=Broadcom IEEE802.11n USB FullMAC WLAN driver
1353 URL:=http://linuxwireless.org/en/users/Drivers/brcm80211
1354 DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-cfg80211 +@DRIVER_11N_SUPPORT +kmod-brcmutil
1355 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko
1356 AUTOLOAD:=$(call AutoProbe,brcmfmac)
1357 endef
1358
1359 define KernelPackage/brcmfmac/description
1360 Kernel module for Broadcom IEEE802.11n USB Wireless cards
1361 endef
1362
1363 config_package=$(if $(CONFIG_PACKAGE_kmod-$(1)),m)
1364
1365 config-y:= \
1366 WLAN \
1367 NL80211_TESTMODE \
1368 CFG80211_WEXT \
1369 CFG80211_INTERNAL_REGDB \
1370 CFG80211_CERTIFICATION_ONUS \
1371 MAC80211_RC_MINSTREL \
1372 MAC80211_RC_MINSTREL_HT \
1373 MAC80211_RC_DEFAULT_MINSTREL \
1374
1375 config-$(call config_package,cfg80211) += CFG80211
1376
1377 config-$(call config_package,mac80211) += MAC80211
1378 config-$(CONFIG_PACKAGE_MAC80211_MESH) += MAC80211_MESH
1379 ifdef CONFIG_PACKAGE_MAC80211_DEBUGFS
1380 config-y += \
1381 CFG80211_DEBUGFS \
1382 MAC80211_DEBUGFS \
1383 ATH9K_DEBUGFS \
1384 ATH9K_HTC_DEBUGFS \
1385 ATH10K_DEBUGFS \
1386 CARL9170_DEBUGFS \
1387 ATH5K_DEBUG
1388 endif
1389
1390 config-$(call config_package,lib80211) += LIB80211 LIB80211_CRYPT_WEP LIB80211_CRYPT_CCMP LIB80211_CRYPT_TKIP
1391
1392 config-$(call config_package,ath) += ATH_CARDS ATH_COMMON
1393 config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH10K_DEBUG
1394 config-$(CONFIG_PACKAGE_ATH_DFS) += ATH9K_DFS_CERTIFIED ATH10K_DFS_CERTIFIED
1395
1396 config-$(call config_package,ath9k) += ATH9K
1397 config-$(call config_package,ath9k-common) += ATH9K_COMMON
1398 config-$(CONFIG_TARGET_ar71xx) += ATH9K_AHB
1399 config-$(CONFIG_PCI) += ATH9K_PCI
1400 config-$(CONFIG_ATH_USER_REGD) += ATH_USER_REGD
1401
1402 config-$(call config_package,ath9k-htc) += ATH9K_HTC
1403 config-$(call config_package,ath10k) += ATH10K ATH10K_PCI
1404
1405 config-$(call config_package,ath5k) += ATH5K
1406 ifdef CONFIG_TARGET_atheros
1407 config-y += ATH5K_AHB
1408 else
1409 config-y += ATH5K_PCI
1410 endif
1411
1412 config-$(call config_package,carl9170) += CARL9170
1413
1414 config-$(call config_package,b43) += B43
1415 config-y += B43_SSB B43_BCMA B43_PHY_LP
1416 config-$(CONFIG_PACKAGE_B43_PHY_N) += B43_PHY_N
1417 config-$(CONFIG_PACKAGE_B43_PHY_HT) += B43_PHY_HT
1418 config-$(CONFIG_PACKAGE_B43_PIO) += B43_PIO
1419 config-$(CONFIG_PACKAGE_B43_DEBUG) += B43_DEBUG
1420
1421 config-$(call config_package,b43legacy) += B43LEGACY
1422 config-y += B43LEGACY_DMA_MODE
1423
1424 config-$(call config_package,brcmutil) += BRCMUTIL
1425 config-$(call config_package,brcmsmac) += BRCMSMAC
1426 config-$(call config_package,brcmfmac) += BRCMFMAC
1427 config-y += BRCMFMAC_USB
1428 config-$(CONFIG_PACKAGE_BRCM80211_DEBUG) += BRCMDBG
1429
1430 config-$(call config_package,mac80211-hwsim) += MAC80211_HWSIM
1431
1432 config-$(call config_package,rt2x00-lib) += RT2X00 RT2X00_LIB
1433 config-$(call config_package,rt2x00-pci) += RT2X00_LIB_PCI
1434 config-$(call config_package,rt2x00-mmio) += RT2X00_LIB_MMIO
1435 config-$(call config_package,rt2x00-usb) += RT2X00_LIB_USB
1436 config-$(CONFIG_PACKAGE_RT2X00_LIB_DEBUGFS) += RT2X00_LIB_DEBUGFS
1437 config-$(CONFIG_PACKAGE_RT2X00_DEBUG) += RT2X00_DEBUG
1438
1439 config-$(call config_package,rt2400-pci) += RT2400PCI
1440 config-$(call config_package,rt2500-pci) += RT2500PCI
1441 config-$(call config_package,rt2500-usb) += RT2500USB
1442 config-$(call config_package,rt61-pci) += RT61PCI
1443 config-$(call config_package,rt73-usb) += RT73USB
1444
1445 config-$(call config_package,rt2800-lib) += RT2800_LIB
1446
1447 config-$(call config_package,rt2800-soc) += RT2800SOC
1448 config-$(call config_package,rt2800-pci) += RT2800PCI
1449 config-y += RT2800PCI_RT33XX RT2800PCI_RT35XX RT2800PCI_RT53XX RT2800PCI_RT3290
1450
1451 config-$(call config_package,rt2800-usb) += RT2800USB
1452 config-y += RT2800USB_RT33XX RT2800USB_RT35XX RT2800USB_RT3573 RT2800USB_RT53XX RT2800USB_RT55XX
1453
1454 config-$(call config_package,iwl-legacy) += IWLEGACY
1455 config-$(call config_package,iwl3945) += IWL3945
1456 config-$(call config_package,iwl4965) += IWL4965
1457 config-$(call config_package,iwlagn) += IWLWIFI IWLDVM
1458
1459 config-$(call config_package,net-libipw) += LIBIPW
1460 config-$(call config_package,net-ipw2100) += IPW2100
1461 config-$(call config_package,net-ipw2200) += IPW2200
1462
1463 config-$(call config_package,p54-common) += P54_COMMON
1464 config-$(call config_package,p54-pci) += P54_PCI
1465 config-$(call config_package,p54-usb) += P54_USB
1466 config-$(call config_package,p54-spi) += P54_SPI
1467
1468 config-$(call config_package,net-hermes) += HERMES
1469 config-$(call config_package,net-hermes-pci) += PCI_HERMES
1470 config-$(call config_package,net-hermes-plx) += PLX_HERMES
1471 config-$(call config_package,net-hermes-pcmcia) += PCMCIA_HERMES
1472 config-y += HERMES_PRISM
1473
1474 config-$(call config_package,adm8211) += ADM8211
1475 config-$(call config_package,libertas-sd) += LIBERTAS LIBERTAS_SDIO
1476 config-$(call config_package,libertas-usb) += LIBERTAS LIBERTAS_USB
1477 config-$(call config_package,mwl8k) += MWL8K
1478 config-$(call config_package,rtl8180) += RTL8180
1479 config-$(call config_package,rtl8187) += RTL8187
1480 config-$(call config_package,wlcore) += WLCORE WLCORE_SDIO
1481 config-$(call config_package,wl12xx) += WL12XX
1482 config-$(call config_package,wl18xx) += WL18XX
1483 config-y += WL_TI WILINK_PLATFORM_DATA
1484 config-$(call config_package,zd1211rw) += ZD1211RW
1485
1486 config-$(call config_package,rtlwifi) += RTL_CARDS RTLWIFI
1487 config-$(call config_package,rtlwifi-pci) += RTLWIFI_PCI
1488 config-$(call config_package,rtlwifi-usb) += RTLWIFI_USB
1489 config-$(call config_package,rtl8192c-common) += RTL8192C_COMMON
1490 config-$(call config_package,rtl8192ce) += RTL8192CE
1491 config-$(call config_package,rtl8192se) += RTL8192SE
1492 config-$(call config_package,rtl8192de) += RTL8192DE
1493 config-$(call config_package,rtl8192cu) += RTL8192CU
1494 config-$(CONFIG_PACKAGE_RTLWIFI_DEBUG) += RTLWIFI_DEBUG
1495
1496 config-$(CONFIG_LEDS_TRIGGERS) += MAC80211_LEDS B43_LEDS B43LEGACY_LEDS
1497
1498 MAKE_OPTS:= -C "$(PKG_BUILD_DIR)" \
1499 CROSS_COMPILE="$(KERNEL_CROSS)" \
1500 ARCH="$(LINUX_KARCH)" \
1501 EXTRA_CFLAGS="-I$(PKG_BUILD_DIR)/include" \
1502 KLIB_BUILD="$(LINUX_DIR)" \
1503 MODPROBE=true \
1504 KLIB=$(TARGET_MODULES_DIR) \
1505 KERNEL_SUBLEVEL=$(lastword $(subst ., ,$(KERNEL_PATCHVER))) \
1506 KBUILD_LDFLAGS_MODULE_PREREQ=
1507
1508 ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)
1509 MAKE_OPTS += V=1
1510 endif
1511
1512 define ConfigVars
1513 $(subst $(space),,$(foreach opt,$(config-$(1)),CPTCFG_$(opt)=$(1)
1514 ))
1515 endef
1516
1517 define mac80211_config
1518 $(call ConfigVars,m)$(call ConfigVars,y)
1519 endef
1520 $(eval $(call shexport,mac80211_config))
1521
1522 define Build/Prepare
1523 rm -rf $(PKG_BUILD_DIR)
1524 mkdir -p $(PKG_BUILD_DIR)
1525 $(PKG_UNPACK)
1526 $(Build/Patch)
1527 $(TAR) -C $(PKG_BUILD_DIR) -xzf $(DL_DIR)/$(IPW2100_NAME)-$(IPW2100_VERSION).tgz
1528 $(TAR) -C $(PKG_BUILD_DIR) -xzf $(DL_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION).tgz
1529 $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
1530 $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_LINUX_FIRMWARE_SOURCE)
1531 $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE)
1532 rm -rf \
1533 $(PKG_BUILD_DIR)/include/linux/ssb \
1534 $(PKG_BUILD_DIR)/include/linux/bcma \
1535 $(PKG_BUILD_DIR)/include/net/bluetooth
1536
1537 rm -f \
1538 $(PKG_BUILD_DIR)/include/linux/cordic.h \
1539 $(PKG_BUILD_DIR)/include/linux/crc8.h \
1540 $(PKG_BUILD_DIR)/include/linux/eeprom_93cx6.h \
1541 $(PKG_BUILD_DIR)/include/linux/wl12xx.h \
1542 $(PKG_BUILD_DIR)/include/linux/spi/libertas_spi.h \
1543 $(PKG_BUILD_DIR)/include/net/ieee80211.h
1544
1545 echo 'compat-wireless-$(PKG_VERSION)-$(PKG_RELEASE)-$(REVISION)' > $(PKG_BUILD_DIR)/compat_version
1546 $(CP) ./files/regdb.txt $(PKG_BUILD_DIR)/net/wireless/db.txt
1547 endef
1548
1549 ifneq ($(CONFIG_PACKAGE_kmod-cfg80211)$(CONFIG_PACKAGE_kmod-lib80211),)
1550 define Build/Compile/kmod
1551 rm -rf $(PKG_BUILD_DIR)/modules
1552 +$(MAKE) $(PKG_JOBS) $(MAKE_OPTS) modules
1553 endef
1554 endif
1555
1556 define Build/Configure
1557 cmp $(PKG_BUILD_DIR)/include/linux/ath9k_platform.h $(LINUX_DIR)/include/linux/ath9k_platform.h
1558 cmp $(PKG_BUILD_DIR)/include/linux/ath5k_platform.h $(LINUX_DIR)/include/linux/ath5k_platform.h
1559 cmp $(PKG_BUILD_DIR)/include/linux/rt2x00_platform.h $(LINUX_DIR)/include/linux/rt2x00_platform.h
1560 endef
1561
1562 define Build/Compile
1563 $(SH_FUNC) var2file "$(call shvar,mac80211_config)" $(PKG_BUILD_DIR)/.config
1564 $(MAKE) $(MAKE_OPTS) allnoconfig
1565 $(call Build/Compile/kmod)
1566 endef
1567
1568 define Build/InstallDev
1569 mkdir -p \
1570 $(1)/usr/include/mac80211 \
1571 $(1)/usr/include/mac80211-backport \
1572 $(1)/usr/include/mac80211/ath \
1573 $(1)/usr/include/net/mac80211
1574 $(CP) $(PKG_BUILD_DIR)/net/mac80211/*.h $(PKG_BUILD_DIR)/include/* $(1)/usr/include/mac80211/
1575 $(CP) $(PKG_BUILD_DIR)/backport-include/* $(1)/usr/include/mac80211-backport/
1576 $(CP) $(PKG_BUILD_DIR)/net/mac80211/rate.h $(1)/usr/include/net/mac80211/
1577 $(CP) $(PKG_BUILD_DIR)/drivers/net/wireless/ath/*.h $(1)/usr/include/mac80211/ath/
1578 endef
1579
1580 define KernelPackage/libertas-usb/install
1581 $(INSTALL_DIR) $(1)/lib/firmware/libertas
1582 $(INSTALL_DATA) \
1583 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/usb8388_v9.bin \
1584 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/usb8682.bin \
1585 $(1)/lib/firmware/libertas/
1586 endef
1587
1588 define KernelPackage/libertas-sd/install
1589 $(INSTALL_DIR) $(1)/lib/firmware/libertas
1590 $(INSTALL_DATA) \
1591 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8385_helper.bin \
1592 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8385.bin \
1593 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8686_v9_helper.bin \
1594 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8686_v9.bin \
1595 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8688_helper.bin \
1596 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/libertas/sd8688.bin \
1597 $(1)/lib/firmware/libertas
1598 endef
1599
1600 define KernelPackage/cfg80211/install
1601 $(INSTALL_DIR) $(1)/lib/wifi $(1)/lib/netifd/wireless
1602 $(INSTALL_DATA) ./files/lib/wifi/mac80211.sh $(1)/lib/wifi
1603 $(INSTALL_BIN) ./files/lib/netifd/wireless/mac80211.sh $(1)/lib/netifd/wireless
1604 endef
1605
1606 define KernelPackage/p54-pci/install
1607 $(INSTALL_DIR) $(1)/lib/firmware
1608 $(INSTALL_DATA) $(DL_DIR)/$(P54PCIFW) $(1)/lib/firmware/isl3886pci
1609 endef
1610
1611 define KernelPackage/p54-usb/install
1612 $(INSTALL_DIR) $(1)/lib/firmware
1613 $(INSTALL_DATA) $(DL_DIR)/$(P54USBFW) $(1)/lib/firmware/isl3887usb
1614 endef
1615
1616 define KernelPackage/p54-spi/install
1617 $(INSTALL_DIR) $(1)/lib/firmware
1618 $(INSTALL_DATA) $(DL_DIR)/$(P54SPIFW) $(1)/lib/firmware/3826.arm
1619 endef
1620
1621 define KernelPackage/rt61-pci/install
1622 $(INSTALL_DIR) $(1)/lib/firmware
1623 $(INSTALL_DATA) \
1624 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2561.bin \
1625 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2561s.bin \
1626 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2661.bin \
1627 $(1)/lib/firmware/
1628 endef
1629
1630 define KernelPackage/rt73-usb/install
1631 $(INSTALL_DIR) $(1)/lib/firmware
1632 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt73.bin $(1)/lib/firmware/
1633 endef
1634
1635 define KernelPackage/rt2800-pci/install
1636 $(INSTALL_DIR) $(1)/lib/firmware
1637 $(INSTALL_DATA) \
1638 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2860.bin \
1639 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt3290.bin \
1640 $(1)/lib/firmware
1641 endef
1642
1643 define KernelPackage/rt2800-usb/install
1644 $(INSTALL_DIR) $(1)/lib/firmware
1645 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/rt2870.bin $(1)/lib/firmware/
1646 endef
1647
1648 define KernelPackage/wl12xx/install
1649 $(INSTALL_DIR) $(1)/lib/firmware/ti-connectivity
1650 $(INSTALL_DATA) \
1651 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl127x-fw-5-mr.bin \
1652 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl127x-fw-5-plt.bin \
1653 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl127x-fw-5-sr.bin \
1654 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl1271-nvs.bin \
1655 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl128x-fw-5-mr.bin \
1656 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl128x-fw-5-plt.bin \
1657 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl128x-fw-5-sr.bin \
1658 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl128x-nvs.bin \
1659 $(1)/lib/firmware/ti-connectivity
1660 endef
1661
1662 define KernelPackage/wl18xx/install
1663 $(INSTALL_DIR) $(1)/lib/firmware/ti-connectivity
1664 $(INSTALL_DATA) \
1665 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl18xx-conf.bin \
1666 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/ti-connectivity/wl18xx-fw-3.bin \
1667 $(1)/lib/firmware/ti-connectivity
1668 endef
1669
1670 define KernelPackage/zd1211rw/install
1671 $(INSTALL_DIR) $(1)/lib/firmware/zd1211
1672 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(ZD1211FW_NAME)/zd1211* $(1)/lib/firmware/zd1211
1673 endef
1674
1675 define KernelPackage/carl9170/install
1676 $(INSTALL_DIR) $(1)/lib/firmware
1677 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/carl9170-1.fw $(1)/lib/firmware
1678 endef
1679
1680 define KernelPackage/ath9k-htc/install
1681 $(INSTALL_DIR) $(1)/lib/firmware
1682 $(INSTALL_DATA) \
1683 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/htc_9271.fw \
1684 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/htc_7010.fw \
1685 $(1)/lib/firmware/
1686 endef
1687
1688 define KernelPackage/ath10k/install
1689 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
1690 ifeq ($(CONFIG_ATH10K_STA_FW),y)
1691 $(INSTALL_DATA) \
1692 $(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/ath10k/QCA988X/hw2.0/board.bin \
1693 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
1694 $(INSTALL_DATA) \
1695 $(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/main/firmware-2.bin_999.999.0.636 \
1696 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
1697 else
1698 $(INSTALL_DATA) \
1699 $(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/ath10k/QCA988X/hw2.0/board.bin \
1700 $(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/ath10k/QCA988X/hw2.0/firmware-2.bin \
1701 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
1702 endif
1703 endef
1704
1705 define KernelPackage/mwl8k/install
1706 $(INSTALL_DIR) $(1)/lib/firmware/mwl8k
1707 $(INSTALL_DATA) \
1708 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/fmimage_8366_ap-3.fw \
1709 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/fmimage_8366.fw \
1710 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/helper_8366.fw \
1711 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/fmimage_8687.fw \
1712 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mwl8k/helper_8687.fw \
1713 $(1)/lib/firmware/mwl8k/
1714 endef
1715
1716 define KernelPackage/net-ipw2100/install
1717 $(INSTALL_DIR) $(1)/lib/firmware
1718 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ipw2100-$(IPW2100_VERSION)*.fw $(1)/lib/firmware
1719 endef
1720
1721 define KernelPackage/net-ipw2200/install
1722 $(INSTALL_DIR) $(1)/lib/firmware
1723 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION)/ipw2200*.fw $(1)/lib/firmware
1724 endef
1725
1726 define KernelPackage/iwlagn/install
1727 $(INSTALL_DIR) $(1)/lib/firmware
1728 ifneq ($(CONFIG_IWL5000_FW),)
1729 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-5000-5.ucode $(1)/lib/firmware
1730 endif
1731 ifneq ($(CONFIG_IWL5150_FW),)
1732 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-5150-2.ucode $(1)/lib/firmware
1733 endif
1734 ifneq ($(CONFIG_IWL1000_FW),)
1735 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-1000-5.ucode $(1)/lib/firmware
1736 endif
1737 ifneq ($(CONFIG_IWL6000_FW),)
1738 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-6000-4.ucode $(1)/lib/firmware
1739 endif
1740 ifneq ($(CONFIG_IWL6050_FW),)
1741 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-6050-5.ucode $(1)/lib/firmware
1742 endif
1743 ifneq ($(CONFIG_IWL6005_FW),)
1744 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-6000g2a-6.ucode $(1)/lib/firmware
1745 endif
1746 ifneq ($(CONFIG_IWL6030_FW),)
1747 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-6000g2b-6.ucode $(1)/lib/firmware
1748 endif
1749 ifneq ($(CONFIG_IWL7260_FW),)
1750 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-7260-7.ucode $(1)/lib/firmware
1751 endif
1752 ifneq ($(CONFIG_IWL100_FW),)
1753 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-100-5.ucode $(1)/lib/firmware
1754 endif
1755 ifneq ($(CONFIG_IWL2000_FW),)
1756 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-2000-6.ucode $(1)/lib/firmware
1757 endif
1758 ifneq ($(CONFIG_IWL2030_FW),)
1759 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-2030-6.ucode $(1)/lib/firmware
1760 endif
1761 ifneq ($(CONFIG_IWL105_FW),)
1762 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-105-6.ucode $(1)/lib/firmware
1763 endif
1764 ifneq ($(CONFIG_IWL135_FW),)
1765 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-135-6.ucode $(1)/lib/firmware
1766 endif
1767 endef
1768
1769 define KernelPackage/iwl3945/install
1770 $(INSTALL_DIR) $(1)/lib/firmware
1771 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-3945-2.ucode $(1)/lib/firmware
1772 endef
1773
1774 define KernelPackage/iwl4965/install
1775 $(INSTALL_DIR) $(1)/lib/firmware
1776 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-4965-2.ucode $(1)/lib/firmware
1777 endef
1778
1779 define KernelPackage/b43/install
1780 rm -rf $(1)/lib/firmware/
1781 ifeq ($(CONFIG_B43_OPENFIRMWARE),y)
1782 tar xzf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
1783 else
1784 tar xjf "$(DL_DIR)/$(PKG_B43_FWV4_SOURCE)" -C "$(PKG_BUILD_DIR)"
1785 endif
1786 $(INSTALL_DIR) $(1)/lib/firmware/
1787 ifeq ($(CONFIG_B43_OPENFIRMWARE),y)
1788 $(MAKE) -C "$(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/"
1789 $(INSTALL_DIR) $(1)/lib/firmware/b43-open/
1790 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/ucode5.fw $(1)/lib/firmware/b43-open/ucode5.fw
1791 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0bsinitvals5.fw $(1)/lib/firmware/b43-open/b0g0bsinitvals5.fw
1792 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)/b0g0initvals5.fw $(1)/lib/firmware/b43-open/b0g0initvals5.fw
1793 else
1794 b43-fwcutter -w $(1)/lib/firmware/ $(PKG_BUILD_DIR)/$(PKG_B43_FWV4_OBJECT)
1795 endif
1796 ifneq ($(CONFIG_B43_FW_SQUASH),)
1797 b43-fwsquash.py "$(CONFIG_B43_FW_SQUASH_PHYTYPES)" "$(CONFIG_B43_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43"
1798 endif
1799 endef
1800
1801 define KernelPackage/b43legacy/install
1802 $(INSTALL_DIR) $(1)/lib/firmware/
1803 b43-fwcutter --unsupported -w $(1)/lib/firmware/ $(DL_DIR)/$(PKG_B43_FWV3_SOURCE)
1804 ifneq ($(CONFIG_B43LEGACY_FW_SQUASH),)
1805 b43-fwsquash.py "G" "$(CONFIG_B43LEGACY_FW_SQUASH_COREREVS)" "$(1)/lib/firmware/b43legacy"
1806 endif
1807 endef
1808
1809 define KernelPackage/brcmsmac/install
1810 $(INSTALL_DIR) $(1)/lib/firmware/brcm
1811 ifeq ($(CONFIG_BRCMSMAC_USE_FW_FROM_WL),y)
1812 tar xjf "$(DL_DIR)/$(PKG_BRCMSMAC_FW_SOURCE)" -C "$(PKG_BUILD_DIR)"
1813 b43-fwcutter --brcmsmac -w $(1)/lib/firmware/ $(PKG_BUILD_DIR)/$(PKG_BRCMSMAC_FW_OBJECT)
1814 else
1815 $(INSTALL_DATA) \
1816 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/bcm43xx-0.fw \
1817 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/bcm43xx_hdr-0.fw \
1818 $(1)/lib/firmware/brcm/
1819 endif
1820 endef
1821
1822 define KernelPackage/brcmfmac/install
1823 $(INSTALL_DIR) $(1)/lib/firmware/brcm
1824 $(INSTALL_DATA) \
1825 $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac43236b.bin \
1826 $(1)/lib/firmware/brcm/
1827 endef
1828
1829 $(eval $(call KernelPackage,adm8211))
1830 $(eval $(call KernelPackage,ath5k))
1831 $(eval $(call KernelPackage,lib80211))
1832 $(eval $(call KernelPackage,libertas-usb))
1833 $(eval $(call KernelPackage,libertas-sd))
1834 $(eval $(call KernelPackage,cfg80211))
1835 $(eval $(call KernelPackage,mac80211))
1836 $(eval $(call KernelPackage,p54-common))
1837 $(eval $(call KernelPackage,p54-pci))
1838 $(eval $(call KernelPackage,p54-usb))
1839 $(eval $(call KernelPackage,p54-spi))
1840 $(eval $(call KernelPackage,rt2x00-lib))
1841 $(eval $(call KernelPackage,rt2x00-mmio))
1842 $(eval $(call KernelPackage,rt2x00-pci))
1843 $(eval $(call KernelPackage,rt2x00-usb))
1844 $(eval $(call KernelPackage,rt2800-lib))
1845 $(eval $(call KernelPackage,rt2400-pci))
1846 $(eval $(call KernelPackage,rt2500-pci))
1847 $(eval $(call KernelPackage,rt2500-usb))
1848 $(eval $(call KernelPackage,rt61-pci))
1849 $(eval $(call KernelPackage,rt73-usb))
1850 $(eval $(call KernelPackage,rt2800-mmio))
1851 $(eval $(call KernelPackage,rt2800-soc))
1852 $(eval $(call KernelPackage,rt2800-pci))
1853 $(eval $(call KernelPackage,rt2800-usb))
1854 $(eval $(call KernelPackage,rtl8180))
1855 $(eval $(call KernelPackage,rtl8187))
1856 $(eval $(call KernelPackage,rtlwifi))
1857 $(eval $(call KernelPackage,rtlwifi-pci))
1858 $(eval $(call KernelPackage,rtlwifi-usb))
1859 $(eval $(call KernelPackage,rtl8192c-common))
1860 $(eval $(call KernelPackage,rtl8192ce))
1861 $(eval $(call KernelPackage,rtl8192se))
1862 $(eval $(call KernelPackage,rtl8192de))
1863 $(eval $(call KernelPackage,rtl8192cu))
1864 $(eval $(call KernelPackage,zd1211rw))
1865 $(eval $(call KernelPackage,mac80211-hwsim))
1866 $(eval $(call KernelPackage,ath9k-common))
1867 $(eval $(call KernelPackage,ath9k))
1868 $(eval $(call KernelPackage,ath9k-htc))
1869 $(eval $(call KernelPackage,ath10k))
1870 $(eval $(call KernelPackage,ath))
1871 $(eval $(call KernelPackage,carl9170))
1872 $(eval $(call KernelPackage,b43))
1873 $(eval $(call KernelPackage,b43legacy))
1874 $(eval $(call KernelPackage,brcmutil))
1875 $(eval $(call KernelPackage,brcmsmac))
1876 $(eval $(call KernelPackage,brcmfmac))
1877 $(eval $(call KernelPackage,net-libipw))
1878 $(eval $(call KernelPackage,net-ipw2100))
1879 $(eval $(call KernelPackage,net-ipw2200))
1880 $(eval $(call KernelPackage,iwlagn))
1881 $(eval $(call KernelPackage,iwl-legacy))
1882 $(eval $(call KernelPackage,iwl4965))
1883 $(eval $(call KernelPackage,iwl3945))
1884 $(eval $(call KernelPackage,mwl8k))
1885 $(eval $(call KernelPackage,net-hermes))
1886 $(eval $(call KernelPackage,net-hermes-pci))
1887 $(eval $(call KernelPackage,net-hermes-plx))
1888 $(eval $(call KernelPackage,net-hermes-pcmcia))
1889 $(eval $(call KernelPackage,wlcore))
1890 $(eval $(call KernelPackage,wl12xx))
1891 $(eval $(call KernelPackage,wl18xx))