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