[rb532] refresh patches
[openwrt.git] / package / kernel / modules / wireless.mk
1 #
2 # Copyright (C) 2006-2008 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 WIRELESS_MENU:=Wireless Drivers
9
10 # NOTE: dependency on 2.6 was removed since it was inherited by kmod-hostap
11 # and prevented it from even showing up in menuconfig on 2.4
12 define KernelPackage/ieee80211
13 SUBMENU:=$(WIRELESS_MENU)
14 TITLE:=802.11 Networking stack
15 DEPENDS:=+kmod-crypto-arc4 +kmod-crypto-aes +kmod-crypto-michael-mic @LINUX_2_4||@LINUX_2_6_21||LINUX_2_6_23||LINUX_2_6_24||LINUX_2_6_25||LINUX_2_6_26||LINUX_2_6_27||LINUX_2_6_28
16 KCONFIG:= \
17 CONFIG_IEEE80211 \
18 CONFIG_IEEE80211_CRYPT_WEP \
19 CONFIG_IEEE80211_CRYPT_CCMP \
20 CONFIG_IEEE80211_CRYPT_TKIP
21 FILES:= \
22 $(LINUX_DIR)/net/ieee80211/ieee80211_crypt.$(LINUX_KMOD_SUFFIX) \
23 $(LINUX_DIR)/net/ieee80211/ieee80211.$(LINUX_KMOD_SUFFIX) \
24 $(LINUX_DIR)/net/ieee80211/ieee80211_crypt_wep.$(LINUX_KMOD_SUFFIX) \
25 $(LINUX_DIR)/net/ieee80211/ieee80211_crypt_tkip.$(LINUX_KMOD_SUFFIX) \
26 $(LINUX_DIR)/net/ieee80211/ieee80211_crypt_ccmp.$(LINUX_KMOD_SUFFIX)
27 AUTOLOAD:=$(call AutoLoad,10, \
28 ieee80211_crypt \
29 ieee80211 \
30 ieee80211_crypt_wep \
31 ieee80211_crypt_tkip \
32 ieee80211_crypt_ccmp \
33 )
34 endef
35
36 define KernelPackage/ieee80211/description
37 Kernel modules for 802.11 Networking stack
38 Includes:
39 - ieee80211_crypt
40 - ieee80211
41 - ieee80211_crypt_wep
42 - ieee80211_crypt_tkip
43 - ieee80211_crytp_ccmp
44 endef
45
46 $(eval $(call KernelPackage,ieee80211))
47
48
49 define KernelPackage/lib80211
50 SUBMENU:=$(WIRELESS_MENU)
51 TITLE:=802.11 Networking stack
52 DEPENDS:=@LINUX_2_6_29||LINUX_2_6_30
53 KCONFIG:= \
54 CONFIG_LIB80211 \
55 CONFIG_LIB80211_CRYPT_WEP \
56 CONFIG_LIB80211_CRYPT_TKIP \
57 CONFIG_LIB80211_CRYPT_CCMP
58 FILES:= \
59 $(LINUX_DIR)/net/wireless/lib80211.$(LINUX_KMOD_SUFFIX) \
60 $(LINUX_DIR)/net/wireless/lib80211_crypt_wep.$(LINUX_KMOD_SUFFIX) \
61 $(LINUX_DIR)/net/wireless/lib80211_crypt_ccmp.$(LINUX_KMOD_SUFFIX) \
62 $(LINUX_DIR)/net/wireless/lib80211_crypt_tkip.$(LINUX_KMOD_SUFFIX)
63 AUTOLOAD:=$(call AutoLoad,10, \
64 lib80211 \
65 lib80211_crypt_wep \
66 lib80211_crypt_ccmp \
67 lib80211_crypt_tkip \
68 )
69 endef
70
71 define KernelPackage/lib80211/description
72 Kernel modules for 802.11 Networking stack
73 Includes:
74 - lib80211
75 - lib80211_crypt_wep
76 - lib80211_crypt_tkip
77 - lib80211_crytp_ccmp
78 endef
79
80 $(eval $(call KernelPackage,lib80211))
81
82
83 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.29)),1)
84 IPW_DIR:=ipw2x00/
85 endif
86
87 define KernelPackage/net-libipw
88 SUBMENU:=$(WIRELESS_MENU)
89 TITLE:=libipw for ipw2100 and ipw2200
90 DEPENDS:=@PCI_SUPPORT +kmod-crypto-arc4 +kmod-crypto-aes +kmod-crypto-michael-mic +kmod-lib80211 @LINUX_2_6_29||LINUX_2_6_30
91 KCONFIG:=CONFIG_LIBIPW
92 FILES:=$(LINUX_DIR)/drivers/net/wireless/$(IPW_DIR)libipw.$(LINUX_KMOD_SUFFIX)
93 AUTOLOAD:=$(call AutoLoad,49,libipw)
94 endef
95
96 define KernelPackage/net-libipw/description
97 Hardware independent IEEE 802.11 networking stack for ipw2100 and ipw2200.
98 endef
99
100 $(eval $(call KernelPackage,net-libipw))
101
102
103 define KernelPackage/net-ipw2100
104 SUBMENU:=$(WIRELESS_MENU)
105 TITLE:=Intel IPW2100 driver
106 DEPENDS:=@PCI_SUPPORT +!LINUX_2_6_29&&!LINUX_2_6_30:kmod-ieee80211 +LINUX_2_6_29||LINUX_2_6_30:kmod-net-libipw
107 KCONFIG:=CONFIG_IPW2100
108 FILES:=$(LINUX_DIR)/drivers/net/wireless/$(IPW_DIR)ipw2100.$(LINUX_KMOD_SUFFIX)
109 AUTOLOAD:=$(call AutoLoad,50,ipw2100)
110 endef
111
112 define KernelPackage/net-ipw2100/description
113 Kernel support for Intel IPW2100
114 Includes:
115 - ipw2100
116 endef
117
118 $(eval $(call KernelPackage,net-ipw2100))
119
120
121 define KernelPackage/net-ipw2200
122 SUBMENU:=$(WIRELESS_MENU)
123 TITLE:=Intel IPW2200 driver
124 DEPENDS:=@PCI_SUPPORT +!LINUX_2_6_29&&!LINUX_2_6_30:kmod-ieee80211 +LINUX_2_6_29||LINUX_2_6_30:kmod-net-libipw
125 KCONFIG:=CONFIG_IPW2200
126 FILES:=$(LINUX_DIR)/drivers/net/wireless/$(IPW_DIR)ipw2200.$(LINUX_KMOD_SUFFIX)
127 AUTOLOAD:=$(call AutoLoad,50,ipw2200)
128 endef
129
130 define KernelPackage/net-ipw2200/description
131 Kernel support for Intel IPW2200
132 Includes:
133 - ipw2200
134 endef
135
136 $(eval $(call KernelPackage,net-ipw2200))
137
138
139 define KernelPackage/net-airo
140 SUBMENU:=$(WIRELESS_MENU)
141 TITLE:=Cisco Aironet driver
142 DEPENDS:=@PCI_SUPPORT
143 KCONFIG:=CONFIG_AIRO
144 FILES:=$(LINUX_DIR)/drivers/net/wireless/airo.$(LINUX_KMOD_SUFFIX)
145 AUTOLOAD:=$(call AutoLoad,50,airo)
146 endef
147
148 define KernelPackage/net-airo/description
149 Kernel support for Cisco Aironet cards
150 endef
151
152 $(eval $(call KernelPackage,net-airo))
153
154
155 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.29)),1)
156 ORINOCO_DIR:=orinoco/
157 endif
158
159 define KernelPackage/net-hermes
160 SUBMENU:=$(WIRELESS_MENU)
161 TITLE:=Hermes 802.11b chipset support
162 DEPENDS:=@LINUX_2_6 @PCI_SUPPORT||PCMCIA_SUPPORT
163 KCONFIG:=CONFIG_HERMES \
164 CONFIG_HERMES_CACHE_FW_ON_INIT=n
165 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.30)),1)
166 FILES:= \
167 $(LINUX_DIR)/drivers/net/wireless/$(ORINOCO_DIR)orinoco.$(LINUX_KMOD_SUFFIX)
168 AUTOLOAD:=$(call AutoLoad,50,orinoco)
169 else
170 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1)
171 FILES:= \
172 $(LINUX_DIR)/drivers/net/wireless/$(ORINOCO_DIR)hermes.$(LINUX_KMOD_SUFFIX) \
173 $(LINUX_DIR)/drivers/net/wireless/$(ORINOCO_DIR)orinoco.$(LINUX_KMOD_SUFFIX) \
174 $(LINUX_DIR)/drivers/net/wireless/$(ORINOCO_DIR)hermes_dld.$(LINUX_KMOD_SUFFIX)
175 AUTOLOAD:=$(call AutoLoad,50,hermes hermes_dld orinoco)
176 else
177 FILES:= \
178 $(LINUX_DIR)/drivers/net/wireless/hermes.$(LINUX_KMOD_SUFFIX) \
179 $(LINUX_DIR)/drivers/net/wireless/orinoco.$(LINUX_KMOD_SUFFIX)
180 AUTOLOAD:=$(call AutoLoad,50,hermes orinoco)
181 endif
182 endif
183 endef
184
185 define KernelPackage/net-hermes/description
186 Kernel support for Hermes 802.11b chipsets
187 endef
188
189 $(eval $(call KernelPackage,net-hermes))
190
191
192 define KernelPackage/net-hermes-pci
193 SUBMENU:=$(WIRELESS_MENU)
194 TITLE:=Intersil Prism 2.5 PCI support
195 DEPENDS:=@PCI_SUPPORT kmod-net-hermes
196 KCONFIG:=CONFIG_PCI_HERMES
197 FILES:=$(LINUX_DIR)/drivers/net/wireless/orinoco_pci.$(LINUX_KMOD_SUFFIX)
198 AUTOLOAD:=$(call AutoLoad,55,orinoco_pci)
199 endef
200
201 define KernelPackage/net-hermes-pci/description
202 Kernel modules for Intersil Prism 2.5 PCI support
203 endef
204
205 $(eval $(call KernelPackage,net-hermes-pci))
206
207
208 define KernelPackage/net-hermes-plx
209 SUBMENU:=$(WIRELESS_MENU)
210 TITLE:=PLX9052 based PCI adaptor
211 DEPENDS:=@PCI_SUPPORT kmod-net-hermes
212 KCONFIG:=CONFIG_PLX_HERMES
213 FILES:=$(LINUX_DIR)/drivers/net/wireless/orinoco_plx.$(LINUX_KMOD_SUFFIX)
214 AUTOLOAD:=$(call AutoLoad,55,orinoco_plx)
215 endef
216
217 define KernelPackage/net-hermes-plx/description
218 Kernel modules for Hermes in PLX9052 based PCI adaptors
219 endef
220
221 $(eval $(call KernelPackage,net-hermes-plx))
222
223
224 define KernelPackage/net-prism54
225 SUBMENU:=$(WIRELESS_MENU)
226 TITLE:=Intersil Prism54 support
227 DEPENDS:=@PCI_SUPPORT
228 KCONFIG:=CONFIG_PRISM54
229 FILES:=$(LINUX_DIR)/drivers/net/wireless/prism54/prism54.$(LINUX_KMOD_SUFFIX)
230 AUTOLOAD:=$(call AutoLoad,60,prism54)
231 endef
232
233 define KernelPackage/net-prism54/description
234 Kernel modules for Intersil Prism54 support
235 endef
236
237 # Prism54 FullMAC firmware (jbnore.free.fr seems to be rather slow, so we use daemonizer.de)
238 PRISM54_FW:=1.0.4.3.arm
239
240 define Download/net-prism54
241 FILE:=$(PRISM54_FW)
242 URL:=http://daemonizer.de/prism54/prism54-fw/fw-fullmac/
243 MD5SUM:=8bd4310971772a486b9784c77f8a6df9
244 endef
245
246 define KernelPackage/net-prism54/install
247 $(INSTALL_DIR) $(1)/lib/firmware
248 $(INSTALL_DATA) $(DL_DIR)/$(PRISM54_FW) $(1)/lib/firmware/isl3890
249 endef
250
251 $(eval $(call Download,net-prism54))
252 $(eval $(call KernelPackage,net-prism54))
253
This page took 0.051854 seconds and 5 git commands to generate.