GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / wl / config / wl.mk
blob4d7a14a1c1dbcc31b6c820f1e0f16e1d996f66cf
1 # Helper makefile for building Broadcom wl device driver
2 # This file maps wl driver feature flags (import) to WLFLAGS and WLFILES_SRC (export).
4 # Copyright (C) 2012, Broadcom Corporation. All Rights Reserved.
5 #
6 # Permission to use, copy, modify, and/or distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
9 #
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13 # SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
15 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 # $Id: wl.mk 398321 2013-04-24 03:20:39Z $
21 # debug/internal
22 ifeq ($(DEBUG),1)
23 WLFLAGS += -DBCMDBG -DWLTEST -DRWL_WIFI -DWIFI_ACT_FRAME -DWLRWL -DWL_EXPORT_CURPOWER
24 WLRWL = 1
25 else ifeq ($(WLDEBUG),1)
26 BCMUTILS = 1
27 OSLLX = 1
28 WLFLAGS += -DBCMDBG -DWLTEST -DWIFI_ACT_FRAME -DWL_EXPORT_CURPOWER
29 else
30 #ifdef WLTEST
31 # mfgtest builds
32 ifeq ($(WLTEST),1)
33 WLFLAGS += -DWLTEST -DWL_EXPORT_CURPOWER
34 endif
35 #endif
36 endif
38 #ifdef BCMDBG
39 ifeq ($(BCMDBG),1)
40 WLFLAGS += -DWL_EXPORT_CURPOWER
41 endif
42 #endif
44 ifeq ($(HSPOT),1)
45 WLBSSLOAD = 1
46 L2_FILTER = 1
47 WLDLS = 1
48 WLWNM = 1
49 WIFI_ACT_FRAME = 1
50 WL11U = 1
51 WLPROBRESP_SW = 1
52 endif
54 ifeq ($(NPS),1)
55 WLWNM = 1
56 WLNPS = 1
57 ifeq ($(STA),1)
58 KEEP_ALIVE = 1
59 endif
60 endif
62 ifneq ($(MINIAP),1)
63 WLFLAGS += -DENABLE_ACPHY
64 endif
65 WLFLAGS += -DPPR_API
67 #ifdef WL11AC
68 ifneq ($(WL11AC),0)
69 WL11AC := 1
70 WLFLAGS += -DWL11AC
72 ifneq ($(WLTXBF),0)
73 WLFLAGS += -DWL_BEAMFORMING
74 endif
75 endif
76 #endif
78 ifeq ($(WLATF),1)
79 WLATF := 1
80 WLFLAGS += -DWLATF
81 endif
86 #ifdef PKTQ_LOG
87 ifeq ($(PKTQ_LOG),1)
88 WLFLAGS += -DPKTQ_LOG
89 endif
90 #endif
92 #ifdef BCMDBG_TRAP
93 # CPU debug traps (lomem access, divide by 0, etc) are enabled except when mogrified out for
94 # external releases.
95 WLFLAGS += -DBCMDBG_TRAP
96 #endif
98 ## wl driver common
100 ifndef WL_LOW
101 WL_LOW = 1
102 endif
104 ifndef WL_HIGH
105 WL_HIGH = 1
106 endif
108 ## iff one of WLC_LOW and WLC_HIGH is defined, SPLIT is true
109 WL_SPLIT = 0
110 ifeq ($(WL_LOW),1)
111 ifneq ($(WL_HIGH),1)
112 WL_SPLIT = 1
113 endif
114 endif
116 ifeq ($(WL_HIGH),1)
117 ifneq ($(WL_LOW),1)
118 WL_SPLIT = 1
119 ifeq ($(RPC_NOCOPY),1)
120 WLFLAGS += -DBCM_RPC_NOCOPY
121 endif
122 ifeq ($(RPC_RXNOCOPY),1)
123 WLFLAGS += -DBCM_RPC_RXNOCOPY
124 endif
125 ifeq ($(RPC_TXNOCOPY),1)
126 WLFLAGS += -DBCM_RPC_TXNOCOPY
127 endif
128 ifeq ($(RPC_TOC),1)
129 WLFLAGS += -DBCM_RPC_TOC
130 endif
131 ifeq ($(RPC_ROC),1)
132 WLFLAGS += -DBCM_RPC_ROC
133 endif
134 ifeq ($(BMAC_ENABLE_LINUX_HOST_RPCAGG),1)
135 WLFLAGS += -DBMAC_ENABLE_LINUX_HOST_RPCAGG
136 endif
137 ifeq ($(DBUS_LINUX_RXDPC),1)
138 WLFLAGS += -DDBUS_LINUX_RXDPC
139 endif
140 ifneq ($(BCM_RPC_TP_DBUS_NTXQ),)
141 WLFLAGS += -DBCM_RPC_TP_DBUS_NTXQ=$(BCM_RPC_TP_DBUS_NTXQ)
142 endif
143 ifneq ($(BCM_RPC_TP_DBUS_NRXQ),)
144 WLFLAGS += -DBCM_RPC_TP_DBUS_NRXQ=$(BCM_RPC_TP_DBUS_NRXQ)
145 endif
146 ifeq ($(BCMUSBDEV_EP_FOR_RPCRETURN),1)
147 WLFLAGS += -DBCMUSBDEV_EP_FOR_RPCRETURN
148 endif
149 ifeq ($(WLMEDIA_LARGE_DNGL_AGG),1)
150 WLFLAGS += -DWLMEDIA_LARGE_DNGL_AGG
151 endif
152 endif
153 endif
155 ifeq ($(WL_LOW),1)
156 WLFLAGS += -DWLC_LOW
157 ifneq ($(WL_HIGH),1)
158 ifneq ($(BCM_RPC_TP_FLOWCTL_QWM_HIGH),)
159 WLFLAGS += -DBCM_RPC_TP_FLOWCTL_QWM_HIGH=$(BCM_RPC_TP_FLOWCTL_QWM_HIGH)
160 endif
161 endif
162 endif
164 ifeq ($(WL_HIGH),1)
165 WLFLAGS += -DWLC_HIGH
166 endif
168 ifeq ($(GTK_RESET),1)
169 WLFLAGS += -DGTK_RESET
170 endif
172 ifeq ($(USBAP),1)
173 WLFLAGS += -DUSBAP
174 WLFLAGS += -DEHCI_FASTPATH_TX -DEHCI_FASTPATH_RX
175 endif
177 # split driver infrastructure files
178 ifeq ($(WL_SPLIT),1)
179 WLFILES_SRC += src/shared/bcm_xdr.c
180 WLFILES_SRC += src/shared/bcm_rpc.c
181 ifneq ($(USBAP),1)
182 WLFILES_SRC_HI += src/shared/nvramstubs.c
183 endif
184 ifeq ($(OSLLX),1)
185 WLFILES_SRC_HI += src/shared/linux_rpc_osl.c
186 endif
188 ifeq ($(OSLNDIS),1)
189 WLFILES_SRC_HI += src/shared/ndis_rpc_osl.c
190 endif
192 ifeq ($(BCMDBUS),1)
193 WLFILES_SRC_HI += src/shared/bcm_rpc_tp_dbus.c
194 endif
196 WLFILES_SRC_HI += src/wl/sys/wlc_bmac_stubs.c
197 WLFILES_SRC_HI += src/wl/sys/wlc_rpctx.c
198 WLFILES_SRC_LO += src/wl/sys/wlc_high_stubs.c
200 WLFILES_SRC_HI += src/wl/ppr/src/wlc_ppr.c
202 ifeq ($(WL_HIGH),1)
203 ifeq ($(BCMSDIO),1)
204 ifneq ($(WLVISTA)$(WLWIN7)$(WLWIN8),)
205 WLFILES_SRC_HI += src/shared/sdh_ndis.c
206 endif
207 else
208 WLFLAGS += -DBCMBUSTYPE=RPC_BUS
209 WLFLAGS += -DOSLREGOPS
210 ifeq ($(WLNDIS),1)
211 WLFLAGS += -DBCMUSB
212 endif
213 endif
214 endif
215 WLFLAGS += -DPREATTACH_NORECLAIM
216 endif
218 #ifdef WL
219 ifeq ($(WL),1)
220 WLFILES_SRC += src/shared/bcmwifi/src/bcmwifi_channels.c
221 WLFILES_SRC += src/shared/bcmevent.c
222 WLFILES_SRC += src/shared/bcm_mpool.c
223 WLFILES_SRC += src/shared/bcm_notif.c
224 WLFILES_SRC += src/wl/sys/wlc_alloc.c
225 WLFILES_SRC += src/wl/sys/wlc_intr.c
226 WLFILES_SRC += src/wl/sys/wlc_hw.c
228 WLFILES_SRC_LO += src/shared/qmath.c
229 WLFILES_SRC_LO += src/wl/sys/d11ucode_gt15.c
230 WLFILES_SRC_LO += src/wl/sys/d11ucode_ge24.c
231 WLFILES_SRC_LO += src/wl/ppr/src/wlc_ppr.c
232 WLFILES_SRC_LO += src/wl/phy/wlc_phy_cmn.c
233 WLFILES_SRC_LO += src/wl/phy/wlc_phy_ssn.c
234 WLFILES_SRC_LO += src/wl/phy/wlc_phy_n.c
235 WLFILES_SRC_LO += src/wl/phy/wlc_phy_radio_n.c
236 WLFILES_SRC_LO += src/wl/phy/wlc_phytbl_n.c
237 WLFILES_SRC_LO += src/wl/phy/wlc_phytbl_ssn.c
238 WLFILES_SRC_LO += src/wl/sys/wlc_phy_shim.c
239 WLFILES_SRC_LO += src/wl/sys/wlc_bmac.c
241 ifneq ($(MINIAP),1)
242 WLFILES_SRC_LO += src/wl/sys/d11ucode_ge40.c
243 WLFILES_SRC_LO += src/wl/phy/wlc_phytbl_ac.c
244 WLFILES_SRC_LO += src/wl/phy/wlc_phytbl_acdc.c
245 WLFILES_SRC_LO += src/wl/phy/wlc_phy_ac.c
246 WLFILES_SRC_LO += src/wl/sys/d11ucode_le15.c
247 WLFILES_SRC_LO += src/wl/phy/wlc_phy_ht.c
248 WLFILES_SRC_LO += src/wl/phy/wlc_phytbl_ht.c
249 WLFILES_SRC_LO += src/wl/phy/wlc_phy_lcn40.c
250 WLFILES_SRC_LO += src/wl/phy/wlc_phytbl_lcn40.c
251 WLFILES_SRC_LO += src/wl/phy/wlc_phy_lcn.c
252 WLFILES_SRC_LO += src/wl/phy/wlc_phytbl_lcn.c
253 WLFILES_SRC_LO += src/wl/phy/wlc_phy_lp.c
254 WLFILES_SRC_LO += src/wl/phy/wlc_phytbl_lp.c
255 WLFILES_SRC_LO += src/wl/phy/wlc_phy_abg.c
256 endif
258 WLFILES_SRC_HI += src/wl/sys/wlc.c
259 WLFILES_SRC_HI += src/wl/sys/wlc_utils.c
260 WLFILES_SRC_HI += src/wl/sys/wlc_prot.c
261 WLFILES_SRC_HI += src/wl/sys/wlc_prot_g.c
262 WLFILES_SRC_HI += src/wl/sys/wlc_prot_n.c
263 WLFILES_SRC_HI += src/wl/sys/wlc_assoc.c
264 WLFILES_SRC_HI += src/wl/sys/wlc_rate.c
265 WLFILES_SRC_HI += src/wl/sys/wlc_stf.c
266 WLFILES_SRC_HI += src/wl/sys/wlc_lq.c
267 ifneq ($(WLWSEC),0)
268 WLFLAGS += -DWLWSEC
269 WLFILES_SRC_HI += src/wl/sys/wlc_security.c
270 WLFILES_SRC_HI += src/wl/sys/wlc_key.c
271 endif
272 WLFILES_SRC_HI += src/wl/sys/wlc_scb.c
273 WLFILES_SRC_HI += src/wl/sys/wlc_rate_sel.c
274 WLFILES_SRC_HI += src/wl/sys/wlc_scb_ratesel.c
276 #ifdef WL_LPC
277 ifeq ($(WL_LPC),1)
278 WLFLAGS += -DWL_LPC
279 WLFILES_SRC_LO += src/wl/sys/wlc_power_sel.c
280 WLFILES_SRC_LO += src/wl/sys/wlc_scb_powersel.c
281 else
282 ifeq ($(LP_P2P_SOFTAP),1)
283 WLFLAGS += -DLP_P2P_SOFTAP
284 endif
285 endif
286 #ifdef WL_LPC_DEBUG
287 ifeq ($(WL_LPC_DEBUG),1)
288 WLFLAGS += -DWL_LPC_DEBUG
289 endif
290 #endif
291 #endif
292 ifeq ($(WL_RELMCAST),1)
293 WLFLAGS += -DWL_RELMCAST
294 WLFILES_SRC_HI += src/wl/rel_mcast/src/wlc_relmcast.c
295 endif
296 WLFILES_SRC_HI += src/wl/sys/wlc_antsel.c
297 WLFILES_SRC_HI += src/wl/sys/wlc_bsscfg.c
298 WLFILES_SRC_HI += src/wl/sys/wlc_vndr_ie_list.c
299 WLFILES_SRC_HI += src/wl/sys/wlc_scan.c
300 WLFILES_SRC_HI += src/wl/phy/wlc_phy_iovar.c
301 WLFILES_SRC_HI += src/wl/sys/wlc_rm.c
302 WLFILES_SRC_HI += src/wl/sys/wlc_tso.c
303 ifeq ($(WL11AC),1)
304 WLFILES_SRC_HI += src/wl/sys/wlc_vht.c
305 WLFILES_SRC_HI += src/wl/sys/wlc_txbf.c
306 endif
307 ifeq ($(WLATF),1)
308 WLFILES_SRC_HI += src/wl/sys/wlc_airtime.c
309 endif
310 #ifdef WL11H
311 ifeq ($(WL11H),1)
312 WLFLAGS += -DWL11H
313 WLFILES_SRC_HI += src/wl/sys/wlc_11h.c
314 WLFLAGS += -DWLCSA
315 WLFILES_SRC_HI += src/wl/sys/wlc_csa.c
316 WLFLAGS += -DWLQUIET
317 WLFILES_SRC_HI += src/wl/sys/wlc_quiet.c
318 endif
319 #endif /* WL11H */
320 # tpc module is shared by 11h tpc and wl tx power control */
321 WLTPC := 1
322 ifeq ($(WLTPC),1)
323 WLFLAGS += -DWLTPC
324 WLFILES_SRC_HI += src/wl/sys/wlc_tpc.c
325 #ifdef WL_AP_TPC
326 ifeq ($(WL_AP_TPC),1)
327 WLFLAGS += -DWL_AP_TPC
328 endif
329 #endif
330 endif
331 WLFILES_SRC_HI += src/wl/sys/wlc_dfs.c
332 #ifdef WL11D
333 ifeq ($(WL11D),1)
334 WLFLAGS += -DWL11D
335 WLFILES_SRC_HI += src/wl/sys/wlc_11d.c
336 endif
337 #endif /* WL11D */
338 # cntry module is shared by 11h/11d and wl channel */
339 WLCNTRY := 1
340 ifeq ($(WLCNTRY),1)
341 WLFLAGS += -DWLCNTRY
342 WLFILES_SRC_HI += src/wl/sys/wlc_cntry.c
343 endif
344 WLFILES_SRC_HI += src/wl/sys/wlc_event.c
345 ifeq ($(WLCHANNEL_DUMMY),1)
346 WLFILES_SRC_HI += src/wl/sys/wlc_channel_dummy.c
347 else
348 WLFILES_SRC_HI += src/wl/sys/wlc_channel.c
349 WLFILES_SRC_HI += src/wl/clm/src/wlc_clm.c
350 WLFILES_SRC_HI += src/wl/clm/src/wlc_clm_data.c
351 ifeq ($(WLCLMINC),1)
352 WLFILES_SRC_HI += src/wl/clm/src/wlc_clm_data_inc.c
353 endif
354 endif
355 WLFILES_SRC_HI += src/shared/bcmwpa.c
356 #ifndef LINUX_CRYPTO
357 ifneq ($(LINUX_CRYPTO),1)
358 WLFILES_SRC_HI += src/bcmcrypto/rc4.c
359 WLFILES_SRC_HI += src/bcmcrypto/tkhash.c
360 WLFILES_SRC_HI += src/bcmcrypto/tkmic.c
361 WLFILES_SRC_HI += src/bcmcrypto/wep.c
362 endif
363 #endif /* LINUX_CRYPTO */
364 #ifdef WLEXTLOG
365 ifeq ($(WLEXTLOG),1)
366 WLFLAGS += -DWLEXTLOG
367 WLFILES_SRC += src/wl/sys/wlc_extlog.c
368 endif
369 #endif
370 #ifdef WLSCANCACHE
371 ifeq ($(WLSCANCACHE),1)
372 WLFLAGS += -DWLSCANCACHE
373 WLFILES_SRC_HI += src/wl/sys/wlc_scandb.c
374 endif
375 #endif
376 WLFILES_SRC_HI += src/wl/sys/wlc_hrt.c
377 endif
378 #endif /* WL */
380 #ifdef BCMDBUS
381 ifeq ($(BCMDBUS),1)
382 WLFLAGS += -DBCMDBUS
383 WLFILES_SRC += src/shared/dbus.c
385 ifeq ($(BCMTRXV2),1)
386 WLFLAGS += -DBCMTRXV2
387 endif
389 ifeq ($(BCMSDIO),1)
390 ifeq ($(WL_HIGH),1)
391 WLFILES_SRC_HI += src/shared/siutils.c
392 WLFILES_SRC_HI += src/shared/bcmotp.c
393 WLFILES_SRC_HI += src/shared/sbutils.c
394 WLFILES_SRC_HI += src/shared/aiutils.c
395 WLFILES_SRC_HI += src/shared/hndpmu.c
396 endif
397 endif
399 ifeq ($(WLLX),1)
400 ifeq ($(BCMSDIO),1)
401 WLFILES_SRC += src/shared/dbus_sdh.c
402 WLFILES_SRC += src/shared/dbus_sdh_linux.c
403 else
404 WLFILES_SRC += src/shared/dbus_usb.c
405 WLFILES_SRC += src/shared/dbus_usb_linux.c
406 endif
407 else
408 ifeq ($(WLNDIS),1)
409 ifeq ($(BCMSDIO),1)
410 ifneq ($(WLWIN7)$(WLWIN8),)
411 WLFILES_SRC += src/shared/dbus_sdio.c
412 WLFILES_SRC += src/shared/dbus_sdio_ndis.c
413 else
414 WLFILES_SRC += src/shared/dbus_sdh.c
415 WLFILES_SRC += src/shared/dbus_sdh_ndis.c
416 endif
417 else
418 WLFILES_SRC += src/shared/dbus_usb.c
419 WLFILES_SRC += src/shared/dbus_usb_ndis.c
420 endif
421 endif
422 endif
423 endif
424 #endif
426 #ifndef LINUX_HYBRID
427 ifeq ($(BCM_DNGL_EMBEDIMAGE),1)
428 WLFLAGS += -DBCM_DNGL_EMBEDIMAGE
429 endif
430 #endif
432 # For USBAP to select which images to embed
433 ifeq ($(EMBED_IMAGE_4319usb),1)
434 WLFLAGS += -DEMBED_IMAGE_4319usb
435 endif
436 ifeq ($(EMBED_IMAGE_4319sd),1)
437 WLFLAGS += -DEMBED_IMAGE_4319sd
438 endif
439 ifeq ($(EMBED_IMAGE_4322),1)
440 WLFLAGS += -DEMBED_IMAGE_4322
441 endif
443 ifeq ($(EMBED_IMAGE_43236b),1)
444 WLFLAGS += -DEMBED_IMAGE_43236b
445 endif
446 ifeq ($(EMBED_IMAGE_43526a),1)
447 WLFLAGS += -DEMBED_IMAGE_43526a
448 endif
449 ifeq ($(EMBED_IMAGE_43526b),1)
450 WLFLAGS += -DEMBED_IMAGE_43526b
451 endif
452 ifeq ($(EMBED_IMAGE_4325sd),1)
453 WLFLAGS += -DEMBED_IMAGE_4325sd
454 endif
456 ifeq ($(DNGL_WD_KEEP_ALIVE),1)
457 WLFLAGS += -DDNGL_WD_KEEP_ALIVE
458 endif
460 ## wl OSL
461 #ifdef WLVX
462 ifeq ($(WLVX),1)
463 WLFILES_SRC += src/wl/sys/wl_vx.c
464 WLFILES_SRC += src/shared/bcmstdlib.c
465 WLFLAGS += -DSEC_TXC_ENABLED
466 endif
467 #endif
469 #ifdef WLBSD
470 ifeq ($(WLBSD),1)
471 WLFILES_SRC += src/wl/sys/wl_bsd.c
472 endif
473 #endif
475 #ifdef WLLX
476 ifeq ($(WLLX),1)
477 ifneq ($(WL_HIGH),1)
478 WLFILES_SRC_LO += src/wl/sys/wl_linux_bmac.c
479 WLFILES_SRC_LO += src/shared/bcm_rpc_char.c
480 endif
482 WLFILES_SRC_HI += src/wl/sys/wl_linux.c
483 endif
484 #endif
486 #ifdef WLLXIW
487 ifeq ($(WLLXIW),1)
488 WLFILES_SRC_HI += src/wl/sys/wl_iw.c
489 WLFLAGS += -DWLLXIW
490 endif
491 #endif
493 #ifdef WLLXCFG80211
494 ifdef ($(WLLXCFG80211),1)
495 WLFILES_SRC_HI += src/wl/sys/wl_cfg80211_hybrid.c
496 endif
497 #endif
499 ifeq ($(BCM_STA_CFG80211),1)
500 WLFILES_SRC_HI += src/wl/sys/wl_cfg80211.c
501 WLFILES_SRC_HI += src/wl/sys/wl_cfgp2p.c
502 WLFILES_SRC_HI += src/wl/sys/wldev_common.c
503 WLFILES_SRC_HI += src/wl/sys/wl_linux_mon.c
504 endif
506 #ifdef WLCFE
507 ifeq ($(WLCFE),1)
508 WLFILES_SRC += src/wl/sys/wl_cfe.c
509 endif
510 #endif
512 #ifdef WLRTE
513 ifeq ($(WLRTE),1)
514 WLFILES_SRC += src/wl/sys/wl_rte.c
515 ifneq ($(WL_HIGH),1)
516 WLFILES_SRC_LO += src/shared/bcm_rpc_tp_rte.c
517 endif
518 endif
519 #endif
521 ifeq ($(BCMECICOEX),1)
522 WLFLAGS += -DBCMECICOEX
523 endif
525 ifeq ($(DNGL_WD_KEEP_ALIVE),1)
526 WLFLAGS += -DDNGL_WD_KEEP_ALIVE
527 endif
530 ifeq ($(TRAFFIC_MGMT),1)
531 WLFLAGS += -DTRAFFIC_MGMT
532 WLFILES_SRC += src/wl/sys/wlc_traffic_mgmt.c
534 ifeq ($(TRAFFIC_SHAPING),1)
535 WLFLAGS += -DTRAFFIC_SHAPING
536 endif
538 ifeq ($(TRAFFIC_MGMT_RSSI_POLICY),1)
539 WLFLAGS += -DTRAFFIC_MGMT_RSSI_POLICY=$(AP)
540 endif
542 endif
544 #ifdef NDIS
545 # anything Windows/NDIS specific for 2k/xp/vista/windows7
546 ifeq ($(WLNDIS),1)
547 WLFILES_SRC += src/wl/sys/wl_ndis.c
549 ifeq ($(WLNDIS_DHD),)
550 WLFILES_SRC += src/wl/sys/nhd_ndis.c
551 ifeq ($(WL_SPLIT),1)
552 ifdef USEDDK
553 WLFLAGS += -DMEMORY_TAG="'7034'"
554 else
555 WLFLAGS += -DMEMORY_TAG='DWMB'
556 endif
557 else
558 ifdef USEDDK
559 WLFLAGS += -DMEMORY_TAG="'7034'"
560 else
561 WLFLAGS += -DMEMORY_TAG='NWMB'
562 endif
563 endif
564 else
565 WLFILES_SRC += src/dhd/sys/dhd_ndis.c
566 ifdef USEDDK
567 WLFLAGS += -DMEMORY_TAG="'7034'"
568 else
569 WLFLAGS += -DMEMORY_TAG='DWMB'
570 endif
571 endif
573 WLFILES_SRC += src/wl/sys/wl_ndconfig.c
574 WLFILES_SRC += src/shared/bcmwifi/src/bcmwifi_channels.c
575 WLFILES_SRC += src/shared/bcmstdlib.c
577 # support host supplied nvram variables
578 ifeq ($(WLTEST),1)
579 ifeq ($(WLHOSTVARS), 1)
580 WLFLAGS += -DBCMHOSTVARS
581 endif
582 else
583 ifeq ($(BCMEXTNVM),1)
584 ifeq ($(WLHOSTVARS), 1)
585 WLFLAGS += -DBCMHOSTVARS
586 endif
587 endif
588 endif
590 ifneq ($(WLVISTA)$(WLWIN7)$(WLWIN8),)
591 WLFLAGS += -DEXT_STA
592 WLFLAGS += -DWL_MONITOR
593 WLFLAGS += -DIBSS_PEER_GROUP_KEY
594 WLFLAGS += -DIBSS_PEER_DISCOVERY_EVENT
595 WLFLAGS += -DIBSS_PEER_MGMT
596 endif
598 ifneq ($(WLWIN7)$(WLWIN8),)
599 WLFLAGS += -DAP
600 endif
602 ifeq ($(WLXP),1)
603 WLFLAGS += -DWLNOEIND
604 endif
606 ifeq ($(WLVIF),1)
607 WLFLAGS += -DWLVIF
608 endif
610 # HIGH driver for BMAC ?? any ndis/xp/vista ?
611 ifeq ($(WL_SPLIT),1)
612 endif
614 # DHD host: ?? to clean up and to support all other DHD OSes
615 ifeq ($(WLNDIS_DHD),1)
616 WLFLAGS += -DSHOW_EVENTS -DBCMPERFSTATS
617 WLFLAGS += -DBDC -DBCMDONGLEHOST
618 WLFLAGS += -DBCM4325
620 ifneq ($(BCMSDIO),1)
621 WLFLAGS += -DBCMDHDUSB
622 WLFLAGS += -DBCM4328 -DBCM4322
623 endif
625 WLFILES_SRC += src/shared/bcmevent.c
626 WLFILES_SRC += src/dhd/sys/dhd_cdc.c
627 WLFILES_SRC += src/dhd/sys/dhd_common.c
629 BCMPCI = 0
631 ifneq ($(BCMDBUS),1)
632 WLFILES_SRC += src/dhd/sys/dhd_usb_ndis.c
633 endif
635 ifneq ($(WLVISTA)$(WLWIN7)$(WLWIN8),)
636 WLFILES_SRC += src/wl/sys/wlc_rate.c
637 endif
639 ifneq ($(WLWIN7)$(WLWIN8),)
640 WLFILES_SRC += src/wl/sys/wlc_ap.c
641 WLFILES_SRC += src/wl/sys/wlc_apps.c
642 endif
644 ifeq ($(WLXP),1)
645 WLFLAGS += -DNDIS_DMAWAR
646 # move these non-wl flag to makefiles
647 WLFLAGS += -DBINARY_COMPATIBLE -DWIN32_LEAN_AND_MEAN=1
648 endif
650 endif
651 endif
652 #endif
654 ifeq ($(ADV_PS_POLL),1)
655 WLFLAGS += -DADV_PS_POLL
656 endif
658 #ifdef DHDOID
659 ifeq ($(DHDOID),1)
660 WLFLAGS += -DWLC_HOSTOID
661 WLFILES_SRC += src/wl/sys/wlc_hostoid.c
662 endif
663 #endif
666 #ifdef BINOSL
667 ifeq ($(BINOSL),1)
668 WLFLAGS += -DBINOSL
669 endif
670 #endif
672 ## wl features
673 # ACCONF -- 0 is remove from code, else bit mask of supported acphy revs
674 ifneq ($(ACCONF),)
675 WLFLAGS += -DACCONF=$(ACCONF)
676 endif
678 # NCONF -- 0 is remove from code, else bit mask of supported nphy revs
679 ifneq ($(NCONF),)
680 WLFLAGS += -DNCONF=$(NCONF)
681 endif
683 # HTCONF -- 0 is remove from code, else bit mask of supported htphy revs
684 ifneq ($(HTCONF),)
685 WLFLAGS += -DHTCONF=$(HTCONF)
686 endif
688 # ACONF -- 0 is remove from code, else bit mask of supported aphy revs
689 ifneq ($(ACONF),)
690 WLFLAGS += -DACONF=$(ACONF)
691 endif
693 # GCONF -- 0 is remove from code, else bit mask of supported gphy revs
694 ifneq ($(GCONF),)
695 WLFLAGS += -DGCONF=$(GCONF)
696 endif
698 # LPCONF -- 0 is remove from code, else bit mask of supported lpphy revs
699 ifneq ($(LPCONF),)
700 WLFLAGS += -DLPCONF=$(LPCONF)
701 endif
703 # SSLPNCONF -- 0 is remove from code, else bit mask of supported sslpnphy revs
704 ifneq ($(SSLPNCONF),)
705 WLFLAGS += -DSSLPNCONF=$(SSLPNCONF)
706 endif
708 # LCNCONF -- 0 is remove from code, else bit mask of supported lcnphy revs
709 ifneq ($(LCNCONF),)
710 WLFLAGS += -DLCNCONF=$(LCNCONF)
711 endif
713 #ifdef SOFTAP
714 ifeq ($(SOFTAP),1)
715 WLFLAGS += -DSOFTAP
716 endif
717 #endif
719 #ifdef AP
720 # ap
721 ifeq ($(AP),1)
722 WLFILES_SRC_HI += src/wl/sys/wlc_ap.c
723 WLFILES_SRC_HI += src/wl/sys/wlc_apps.c
724 WLFLAGS += -DAP
726 ifeq ($(MBSS),1)
727 WLFLAGS += -DMBSS
728 endif
730 ifeq ($(WDS),1)
731 WLFLAGS += -DWDS
732 endif
734 ifeq ($(DWDS),1)
735 WLFLAGS += -DDWDS
736 endif
738 # Channel Select
739 ifeq ($(APCS),1)
740 WLFILES_SRC_HI += src/wl/sys/wlc_apcs.c
741 WLFLAGS += -DAPCS
742 endif
744 # WME_PER_AC_TX_PARAMS
745 ifeq ($(WME_PER_AC_TX_PARAMS),1)
746 WLFLAGS += -DWME_PER_AC_TX_PARAMS
747 endif
749 # WME_PER_AC_TUNING
750 ifeq ($(WME_PER_AC_TUNING),1)
751 WLFLAGS += -DWME_PER_AC_TUNING
752 endif
754 endif
755 #endif
757 #ifdef STA
758 # sta
759 ifeq ($(STA),1)
760 WLFLAGS += -DSTA
761 endif
762 #endif
764 #ifdef EXT_STA_DONGLE
765 # Microsoft Extensible STA for Dongle
766 ifeq ($(EXT_STA_DONGLE),1)
767 WLFLAGS += -DEXT_STA
768 WLFLAGS += -DIBSS_PEER_GROUP_KEY
769 WLFLAGS += -DIBSS_PEER_DISCOVERY_EVENT
770 WLFLAGS += -DIBSS_PEER_MGMT
771 endif
772 #endif
774 #ifdef APSTA
775 # apsta
776 ifeq ($(APSTA),1)
777 WLFLAGS += -DAPSTA
778 endif
779 # apsta
780 #endif
782 #ifdef WET
783 # wet
784 ifeq ($(WET),1)
785 WLFLAGS += -DWET
786 WLFILES_SRC_HI += src/wl/sys/wlc_wet.c
787 endif
788 #endif
790 #ifdef RXCHAIN_PWRSAVE
791 ifeq ($(RXCHAIN_PWRSAVE), 1)
792 WLFLAGS += -DRXCHAIN_PWRSAVE
793 endif
794 #endif
796 #ifdef RADIO_PWRSAVE
797 ifeq ($(RADIO_PWRSAVE), 1)
798 WLFLAGS += -DRADIO_PWRSAVE
799 endif
800 #endif
802 #ifdef WMF
803 ifeq ($(WMF), 1)
804 WLFILES_SRC_HI += src/wl/sys/wlc_wmf.c
805 WLFLAGS += -DWMF
806 endif
807 ifeq ($(IGMP_UCQUERY), 1)
808 WLFLAGS += -DWL_IGMP_UCQUERY
809 endif
810 ifeq ($(UCAST_UPNP), 1)
811 WLFLAGS += -DWL_UCAST_UPNP
812 endif
813 #endif
815 #ifdef MCAST_REGEN
816 ifeq ($(MCAST_REGEN), 1)
817 WLFLAGS += -DMCAST_REGEN
818 endif
819 #endif
821 #ifdef ROUTER_COMA
822 ifeq ($(ROUTER_COMA), 1)
823 WLFILES_SRC_HI += src/shared/hndmips.c
824 WLFILES_SRC_HI += src/shared/hndchipc.c
825 WLFLAGS += -DROUTER_COMA
826 endif
827 #endif
830 #ifdef WLOVERTHRUSTER
831 ifeq ($(WLOVERTHRUSTER), 1)
832 WLFLAGS += -DWLOVERTHRUSTER
833 endif
834 #endif
836 #ifdef MAC_SPOOF
837 # mac spoof
838 ifeq ($(MAC_SPOOF),1)
839 WLFLAGS += -DMAC_SPOOF
840 endif
841 #endif
843 #ifdef PSTA
844 # Proxy STA
845 ifeq ($(PSTA),1)
846 WLFILES_SRC_HI += src/wl/sys/wlc_psta.c
847 WLFLAGS += -DPSTA
848 endif
849 #endif
851 #ifdef DPSTA
852 # Dualband Proxy STA
853 ifeq ($(DPSTA),1)
854 WLFLAGS += -DDPSTA
855 endif
856 #endif
858 #ifndef LINUX_HYBRID
859 # Router IBSS Security Support
860 ifeq ($(ROUTER_SECURE_IBSS),1)
861 WLFLAGS += -DIBSS_PEER_GROUP_KEY
862 WLFLAGS += -DIBSS_PSK
863 WLFLAGS += -DIBSS_PEER_MGMT
864 WLFLAGS += -DIBSS_PEER_DISCOVERY_EVENT
865 endif
866 #endif
868 #ifdef WLLED
869 # led
870 ifeq ($(WLLED),1)
871 WLFLAGS += -DWLLED
872 WLFILES_SRC_HI += src/wl/sys/wlc_led.c
873 endif
874 #endif
876 #ifdef WL_MONITOR
877 # MONITOR
878 ifeq ($(WL_MONITOR),1)
879 WLFLAGS += -DWL_MONITOR
880 endif
881 #endif
883 #ifdef WL_PROMISC
884 # PROMISC
885 ifeq ($(PROMISC),1)
886 WLFLAGS += -DWL_PROMISC
887 endif
888 #endif
890 ifeq ($(WL_ALL_PASSIVE),1)
891 WLFLAGS += -DWL_ALL_PASSIVE
892 endif
894 #ifdef ND_ALL_PASSIVE
895 ifeq ($(ND_ALL_PASSIVE),1)
896 WLFLAGS += -DND_ALL_PASSIVE
897 endif
898 #endif
900 #ifdef WME
901 # WME
902 ifeq ($(WME),1)
903 WLFLAGS += -DWME
904 ifeq ($(WLCAC), 1)
905 ifeq ($(WL), 1)
906 WLFLAGS += -DWLCAC
907 WLFILES_SRC_HI += src/wl/sys/wlc_cac.c
908 endif
909 endif
910 endif
911 #endif
913 #ifdef WLPIO
914 # WLPIO
915 ifeq ($(WLPIO),1)
916 WLFLAGS += -DWLPIO
917 WLFILES_SRC_LO += src/wl/sys/wlc_pio.c
918 endif
919 #endif
921 #ifdef WL11N
922 # 11N
923 ifeq ($(WL11N),1)
924 WLFLAGS += -DWL11N
925 endif
926 #endif
928 #ifdef WL11N_20MHZONLY
929 # 11N 20MHz only optimization
930 ifeq ($(WL11N_20MHZONLY),1)
931 WLFLAGS += -DWL11N_20MHZONLY
932 endif
933 #endif
935 #ifdef WL11N_SINGLESTREAM
936 # 11N single stream optimization
937 ifeq ($(WL11N_SINGLESTREAM),1)
938 WLFLAGS += -DWL11N_SINGLESTREAM
939 endif
940 #endif
942 #ifdef WL11H
943 # 11H
944 ifeq ($(WL11H),1)
945 WLFLAGS += -DWL11H
946 endif
947 #endif
949 #ifdef WL11D
950 # 11D
951 ifeq ($(WL11D),1)
952 WLFLAGS += -DWL11D
953 endif
954 #endif
956 #ifdef WL11U
957 # 11U
958 ifeq ($(WL11U),1)
959 WLFLAGS += -DWL11U -DWIFI_ACT_FRAME
960 WLFILES_SRC_HI += src/wl/sys/wlc_11u.c
961 endif
962 #endif
964 #ifdef WLPROBRESP_SW
965 # WLPROBRESP_SW
966 ifeq ($(WLPROBRESP_SW),1)
967 WLFLAGS += -DWLPROBRESP_SW
968 WLFILES_SRC_HI += src/wl/sys/wlc_probresp.c
969 endif
970 #endif
972 #ifdef DBAND
973 # DBAND
974 ifeq ($(DBAND),1)
975 WLFLAGS += -DDBAND
976 endif
977 #endif
979 #ifdef WLRM
980 # WLRM
981 ifeq ($(WLRM),1)
982 WLFLAGS += -DWLRM
983 endif
984 #endif
986 #ifdef WLCQ
987 # WLCQ
988 ifeq ($(WLCQ),1)
989 WLFLAGS += -DWLCQ
990 endif
991 #endif
993 #ifdef WLCNT
994 # WLCNT
995 ifeq ($(WLCNT),1)
996 WLFLAGS += -DWLCNT
997 ifndef DELTASTATS
998 DELTASTATS := 1
999 endif
1000 endif
1001 #endif
1003 # DELTASTATS
1004 ifeq ($(DELTASTATS),1)
1005 WLFLAGS += -DDELTASTATS
1006 endif
1008 #ifdef WLCHANIM
1009 # WLCHANIM
1010 ifeq ($(WLCHANIM),1)
1011 WLFLAGS += -DWLCHANIM
1012 endif
1013 #endif
1015 #ifdef WLCNTSCB
1016 # WLCNTSCB
1017 ifeq ($(WLCNTSCB),1)
1018 WLFLAGS += -DWLCNTSCB
1019 endif
1020 #endif
1023 #ifdef WLCOEX
1024 # WLCOEX
1025 ifeq ($(WLCOEX),1)
1026 WLFLAGS += -DWLCOEX
1027 endif
1028 #endif
1030 ## wl security
1031 # external linux supplicant
1032 #ifdef LINUX_CRYPTO
1033 ifeq ($(LINUX_CRYPTO), 1)
1034 WLFLAGS += -DLINUX_CRYPTO
1035 endif
1036 #endif
1038 ifeq ($(WLFBT),1)
1039 WLFLAGS += -DWLFBT
1040 WLFLAGS += -DWLFBTOVERDS
1041 WLFLAGS += -DBCMINTSUP
1042 WLFLAGS += -DWLCAC
1043 WLFILES_SRC_HI += src/wl/sys/wlc_sup.c
1044 WLFILES_SRC_HI += src/bcmcrypto/aes.c
1045 WLFILES_SRC_HI += src/bcmcrypto/aeskeywrap.c
1046 WLFILES_SRC_HI += src/bcmcrypto/prf.c
1047 WLFILES_SRC_HI += src/bcmcrypto/sha1.c
1048 WLFILES_SRC_HI += src/bcmcrypto/hmac_sha256.c
1049 WLFILES_SRC_HI += src/bcmcrypto/sha256.c
1050 WLFILES_SRC_HI += src/wl/sys/wlc_cac.c
1051 # NetBSD 2.0 has MD5 and AES built in
1052 ifneq ($(OSLBSD),1)
1053 WLFILES_SRC_HI += src/bcmcrypto/md5.c
1054 WLFILES_SRC_HI += src/bcmcrypto/rijndael-alg-fst.c
1055 endif
1056 endif
1058 ifeq ($(WLWNM),1)
1059 WLFLAGS += -DWLWNM
1060 endif
1062 ifeq ($(WLNPS),1)
1063 WLFLAGS += -DWLWNM -DWLNPS
1064 endif
1066 #ifdef BCMSUP_PSK
1067 # in-driver supplicant
1068 ifeq ($(BCMSUP_PSK),1)
1069 WLFLAGS += -DBCMSUP_PSK -DBCMINTSUP
1070 WLFILES_SRC_HI += src/wl/sys/wlc_sup.c
1071 WLFILES_SRC_HI += src/bcmcrypto/aes.c
1072 WLFILES_SRC_HI += src/bcmcrypto/aeskeywrap.c
1073 WLFILES_SRC_HI += src/bcmcrypto/hmac.c
1074 WLFILES_SRC_HI += src/bcmcrypto/prf.c
1075 WLFILES_SRC_HI += src/bcmcrypto/sha1.c
1076 ifeq ($(WLFBT),1)
1077 WLFILES_SRC_HI += src/bcmcrypto/hmac_sha256.c
1078 WLFILES_SRC_HI += src/bcmcrypto/sha256.c
1079 endif
1080 # NetBSD 2.0 has MD5 and AES built in
1081 ifneq ($(OSLBSD),1)
1082 WLFILES_SRC_HI += src/bcmcrypto/md5.c
1083 WLFILES_SRC_HI += src/bcmcrypto/rijndael-alg-fst.c
1084 endif
1085 WLFILES_SRC_HI += src/bcmcrypto/passhash.c
1086 endif
1087 #endif
1090 #ifdef BCMAUTH_PSK
1091 # in-driver authenticator
1092 ifeq ($(BCMAUTH_PSK),1)
1093 WLFLAGS += -DBCMAUTH_PSK
1094 WLFILES_SRC_HI += src/wl/sys/wlc_auth.c
1095 endif
1096 #endif
1098 #ifdef WLTDLS
1099 ifeq ($(WLTDLS), 1)
1100 ifndef ($(WLFBT),1)
1101 WLFILES_SRC_HI += src/bcmcrypto/sha256.c
1102 WLFILES_SRC_HI += src/bcmcrypto/hmac_sha256.c
1103 endif
1104 endif
1105 #endif
1107 #ifdef BCMCCMP
1108 # Soft AES CCMP
1109 ifeq ($(BCMCCMP),1)
1110 WLFLAGS += -DBCMCCMP
1111 WLFILES_SRC_HI += src/bcmcrypto/aes.c
1112 # BSD has AES built in
1113 ifneq ($(BSD),1)
1114 WLFILES_SRC_HI += src/bcmcrypto/rijndael-alg-fst.c
1115 endif
1116 endif
1117 #endif
1119 #ifdef MFP
1120 # Management Frame Protection
1121 ifeq ($(MFP),1)
1122 WLFLAGS += -DMFP
1123 WLFILES_SRC_HI += src/bcmcrypto/aes.c
1124 WLFILES_SRC_HI += src/bcmcrypto/sha256.c
1125 WLFILES_SRC_HI += src/bcmcrypto/hmac_sha256.c
1126 WLFILES_SRC_HI += src/bcmcrypto/prf.c
1127 WLFILES_SRC_HI += src/bcmcrypto/sha1.c
1128 WLFILES_SRC_HI += src/wl/sys/wlc_mfp.c
1129 # BSD has AES built in
1130 ifneq ($(BSD),1)
1131 WLFILES_SRC_HI += src/bcmcrypto/rijndael-alg-fst.c
1132 endif
1133 ifeq ($(MFP_TEST),1)
1134 WLFLAGS += -DMFP_TEST
1135 WLFILES_SRC_HI += src/wl/sys/wlc_mfp_test.c
1136 endif
1137 endif
1138 #endif
1142 #ifdef WIFI_ACT_FRAME
1143 # WIFI_ACT_FRAME
1144 ifeq ($(WIFI_ACT_FRAME),1)
1145 WLFLAGS += -DWIFI_ACT_FRAME
1146 endif
1147 #endif
1149 # BCMDMA32
1150 ifeq ($(BCMDMA32),1)
1151 WLFLAGS += -DBCMDMA32
1152 endif
1154 ifeq ($(BCMDMA64OSL),1)
1155 WLFLAGS += -DBCMDMA64OSL
1156 endif
1158 ifeq ($(BCMDMASGLISTOSL),1)
1159 WLFLAGS += -DBCMDMASGLISTOSL
1160 endif
1162 # Early DMA TX Free for LOW driver
1163 ifeq ($(WL_DMA_TX_FREE),1)
1164 ifneq ($(WL_HIGH),1)
1165 ifeq ($(PT_GIANT),1)
1166 WLFLAGS += -DDMA_TX_FREE
1167 endif
1168 endif
1169 endif
1171 ## wl over jtag
1172 #ifdef BCMJTAG
1173 ifeq ($(BCMJTAG),1)
1174 WLFLAGS += -DBCMJTAG -DBCMSLTGT
1175 WLFILES_SRC += src/shared/bcmjtag.c
1176 WLFILES_SRC += src/shared/bcmjtag_linux.c
1177 WLFILES_SRC += src/shared/ejtag.c
1178 WLFILES_SRC += src/shared/jtagm.c
1179 endif
1180 #endif
1182 #ifdef WLAMSDU
1183 ifeq ($(WLAMSDU),1)
1184 WLFLAGS += -DWLAMSDU
1185 WLFILES_SRC_HI += src/wl/sys/wlc_amsdu.c
1186 endif
1187 #endif
1189 #ifdef WLAMSDU_SWDEAGG
1190 ifeq ($(WLAMSDU_SWDEAGG),1)
1191 WLFLAGS += -DWLAMSDU_SWDEAGG
1192 endif
1193 #endif
1195 #ifdef WLNAR
1196 ifeq ($(WLNAR),1)
1197 WLFILES_SRC_HI += src/wl/sys/wlc_nar.c
1198 WLFLAGS += -DWLNAR
1199 endif
1200 #endif
1202 #ifdef WLAMPDU
1203 ifeq ($(WLAMPDU),1)
1204 WLFLAGS += -DWLAMPDU
1205 WLFILES_SRC_HI += src/wl/sys/wlc_ampdu.c
1206 WLFILES_SRC_HI += src/wl/sys/wlc_ampdu_rx.c
1207 WLFILES_SRC_HI += src/wl/sys/wlc_ampdu_cmn.c
1208 ifeq ($(WLAMPDU_UCODE),1)
1209 WLFLAGS += -DWLAMPDU_UCODE -DWLAMPDU_MAC
1210 endif
1211 ifeq ($(WLAMPDU_HW),1)
1212 WLFLAGS += -DWLAMPDU_HW -DWLAMPDU_MAC
1213 endif
1214 ifeq ($(WLAMPDU_AQM),1)
1215 WLFLAGS += -DWLAMPDU_AQM -DWLAMPDU_MAC
1216 endif
1217 ifeq ($(WLAMPDU_PRECEDENCE),1)
1218 WLFLAGS += -DWLAMPDU_PRECEDENCE
1219 endif
1220 endif
1221 #endif
1223 #ifdef WOWL
1224 ifeq ($(WOWL),1)
1225 WLFLAGS += -DWOWL
1226 WLFILES_SRC_HI += src/wl/sys/d11ucode_wowl.c
1227 WLFILES_SRC_HI += src/wl/sys/wlc_wowl.c
1228 WLFILES_SRC_HI += src/wl/sys/wowlaestbls.c
1229 endif
1230 #endif
1232 #ifdef BTC2WIRE
1233 ifeq ($(BTC2WIRE),1)
1234 WLFLAGS += -DBTC2WIRE
1235 WLFILES_SRC_LO += src/wl/sys/d11ucode_2w.c
1236 endif
1237 #endif
1239 #ifdef WL_ASSOC_RECREATE
1240 ifeq ($(WL_ASSOC_RECREATE),1)
1241 ifeq ($(STA),1)
1242 WLFLAGS += -DWL_ASSOC_RECREATE
1243 endif
1244 endif
1245 #endif
1248 #ifdef WLTDLS
1249 ifeq ($(TDLS_TESTBED), 1)
1250 WLFLAGS += -DTDLS_TESTBED
1251 endif
1252 ifeq ($(WLTDLS), 1)
1253 WLFLAGS += -DWLTDLS
1254 WLFILES_SRC_HI += src/wl/sys/wlc_tdls.c
1255 endif
1256 #endif
1258 #ifdef WLDLS
1259 ifeq ($(WLDLS), 1)
1260 WLFLAGS += -DWLDLS
1261 WLFILES_SRC_HI += src/wl/sys/wlc_dls.c
1262 endif
1263 #endif
1265 #ifdef WLBSSLOAD
1266 # WLBSSLOAD
1267 ifeq ($(WLBSSLOAD),1)
1268 WLFLAGS += -DWLBSSLOAD
1269 WLFILES_SRC_HI += src/wl/sys/wlc_bssload.c
1270 endif
1271 #endif
1273 #ifdef L2_FILTER
1274 ifeq ($(L2_FILTER),1)
1275 WLFLAGS += -DL2_FILTER
1276 ifeq ($(L2_FILTER_STA),1)
1277 WLFLAGS += -DL2_FILTER_STA
1278 endif
1279 WLFILES_SRC += src/wl/sys/wlc_l2_filter.c
1280 endif
1281 #endif
1283 #ifdef WLP2P
1284 ifeq ($(WLP2P),1)
1285 WLFLAGS += -DWLP2P
1286 WLFILES_SRC_HI += src/wl/sys/wlc_p2p.c
1287 WLFLAGS += -DWL_BSSCFG_TX_SUPR -DWIFI_ACT_FRAME
1288 WLMCNX := 1
1289 ifndef WLMCHAN
1290 WLMCHAN := 1
1291 endif
1292 endif
1293 #endif /* WLP2P */
1294 #ifdef WLOFFLD
1295 ifeq ($(WLTEST),1)
1296 WLOFFLD=0
1297 endif
1298 ifeq ($(WLOFFLD),1)
1299 ifeq ($(WL_SPLIT),0)
1300 WLFLAGS += -DWLOFFLD
1301 WLFILES_SRC_HI += src/wl/sys/wlc_offloads.c
1302 WLFILES_SRC_HI += src/shared/bcm_ol_msg.c
1303 endif
1304 endif
1305 #endif /* WLOFFLD */
1307 #ifdef WLVSDB
1308 ifeq ($(WLVSDB),1)
1309 WLFLAGS += -DWLVSDB
1310 WLMCNX := 1
1311 ifndef WLMCHAN
1312 WLMCHAN := 1
1313 endif
1314 endif
1315 #endif /*WLVSDB*/
1318 ifeq ($(WLMCNX),1)
1319 WLFLAGS += -DWLP2P_UCODE
1320 WLFILES_SRC_LO += src/wl/sys/d11ucode_p2p.c
1321 WLFLAGS += -DWLMCNX
1322 WLFILES_SRC_HI += src/wl/sys/wlc_mcnx.c
1323 endif
1325 ifeq ($(WLP2P_UCODE_ONLY),1)
1326 WLFLAGS += -DWLP2P_UCODE_ONLY
1327 endif
1329 #ifdef WLMCHAN
1330 ifeq ($(WLMCHAN),1)
1331 WLFLAGS += -DWLMCHAN
1332 WLFILES_SRC_HI += src/wl/sys/wlc_mchan.c
1333 ifndef WLMULTIQUEUE
1334 WLMULTIQUEUE := 1
1335 endif
1336 endif
1337 #endif /* WLMCHAN */
1339 #ifdef WLMULTIQUEUE
1340 ifeq ($(WLMULTIQUEUE), 1)
1341 WLFLAGS += -DWL_MULTIQUEUE
1342 endif
1343 #endif /* WLMULTIQUEUE */
1345 ifeq ($(WLMCHAN), 1)
1346 ifeq ($(WL_SPLIT), 1)
1347 CCA_STATS = 0
1348 endif
1349 endif
1351 ifeq ($(CCA_STATS),1)
1352 WLFLAGS += -DCCA_STATS
1353 WLFILES_SRC_HI += src/wl/sys/wlc_cca.c
1354 ifeq ($(ISID_STATS),1)
1355 WLFLAGS += -DISID_STATS
1356 WLFILES_SRC_HI += src/wl/sys/wlc_interfere.c
1357 endif
1358 endif
1360 #ifdef WLRWL
1361 ifeq ($(WLRWL),1)
1362 WLFLAGS += -DWLRWL -DRWL_WIFI
1363 WLFILES_SRC_HI += src/wl/sys/wlc_rwl.c
1364 endif
1365 #endif
1367 ifneq ($(WLNDIS_DHD),1)
1368 endif
1370 #ifdef WLPLT
1371 ifeq ($(WLPLT),1)
1372 WLFLAGS += -DWLPLT
1373 WLFILES_SRC_HI += src/wl/sys/wlc_plt.c
1374 endif
1375 #endif
1379 #ifdef WLMEDIA
1380 ifeq ($(WLMEDIA),1)
1381 WLFLAGS += -DWLMEDIA_EN
1382 WLFLAGS += -DWLMEDIA_RATESTATS
1383 WLFLAGS += -DWLMEDIA_MULTIQUEUE
1384 WLFLAGS += -DWLMEDIA_TXFIFO_FLUSH_SCB
1385 WLFLAGS += -DWLMEDIA_AMPDUSTATS
1386 WLFLAGS += -DWLMEDIA_TXFAILEVENT
1387 WLFLAGS += -DWLMEDIA_LQSTATS
1388 WLFLAGS += -DWLMEDIA_CALDBG
1389 WLFLAGS += -DWLMEDIA_EXT
1390 WLFLAGS += -DWLMEDIA_TXFILTER_OVERRIDE
1391 WLFLAGS += -DWLMEDIA_TSF
1392 WLFLAGS += -DWLMEDIA_PEAKRATE
1393 endif
1394 #endif
1396 #ifdef WLPKTDLYSTAT
1397 ifeq ($(WLPKTDLYSTAT),1)
1398 WLFLAGS += -DWLPKTDLYSTAT
1399 endif
1400 #endif
1402 #ifdef WLPKTDLYSTAT_IND
1403 ifeq ($(WLPKTDLYSTAT_IND),1)
1404 WLFLAGS += -DWLPKTDLYSTAT_IND
1405 endif
1406 #endif
1408 #ifdef WLINTFERSTAT
1409 ifeq ($(WLINTFERSTAT),1)
1410 WLFLAGS += -DWLINTFERSTAT
1411 endif
1412 #endif
1414 ## --- which buses
1416 # silicon backplane
1418 #ifdef BCMSIBUS
1419 ifeq ($(BCMSIBUS),1)
1420 WLFLAGS += -DBCMBUSTYPE=SI_BUS
1421 BCMPCI = 0
1422 endif
1423 #endif
1425 ifeq ($(SOCI_SB),1)
1426 WLFLAGS += -DBCMCHIPTYPE=SOCI_SB
1427 else
1428 ifeq ($(SOCI_AI),1)
1429 WLFLAGS += -DBCMCHIPTYPE=SOCI_AI
1430 endif
1431 endif
1435 #ifndef LINUX_HYBRID
1436 # AP/ROUTER with SDSTD
1437 ifeq ($(WLAPSDSTD),1)
1438 WLFILES_SRC += src/shared/nvramstubs.c
1439 WLFILES_SRC += src/shared/bcmsrom.c
1440 endif
1441 #endif
1443 ## --- basic shared files
1445 #ifdef BCMHIGHSDIO
1446 ifeq ($(BCMHIGHSDIO),1)
1447 WLFLAGS += -DBCMHIGHSDIO
1448 endif
1449 #endif
1451 #ifdef BCMLOSDIO
1452 ifeq ($(BCMLOSDIO),1)
1453 WLFLAGS += -DBCMLOSDIO
1454 endif
1455 #endif
1457 #ifdef BCMHIGHUSB
1458 ifeq ($(BCMHIGHUSB),1)
1459 WLFLAGS += -DBCMHIGHUSB
1460 endif
1461 #endif
1463 #ifdef BCMLOUSB
1464 ifeq ($(BCMLOUSB),1)
1465 WLFLAGS += -DBCMLOUSB
1466 endif
1467 #endif
1469 #ifdef HNDDMA
1470 ifeq ($(HNDDMA),1)
1471 WLFILES_SRC_LO += src/shared/hnddma.c
1472 endif
1473 #endif
1475 #ifdef MSGTRACE
1476 ifeq ($(MSGTRACE),1)
1477 WLFILES_SRC += src/shared/msgtrace.c
1478 WLFLAGS += -DMSGTRACE
1479 endif
1480 #endif
1482 #ifdef BCMUTILS
1483 ifeq ($(BCMUTILS),1)
1484 WLFILES_SRC += src/shared/bcmutils.c
1485 endif
1486 #endif
1489 #ifdef BCMSROM
1490 ifeq ($(BCMSROM),1)
1491 ifeq ($(BCMSDIO),1)
1492 ifeq ($(WL_HIGH),1)
1493 WLFILES_SRC_HI += src/shared/bcmsrom.c
1494 WLFILES_SRC_HI += src/shared/bcmotp.c
1495 endif
1496 endif
1497 WLFILES_SRC_LO += src/shared/bcmsrom.c
1498 WLFILES_SRC_LO += src/shared/bcmotp.c
1499 endif
1500 #endif
1502 #ifdef BCMOTP
1503 ifeq ($(BCMOTP),1)
1504 WLFILES_SRC_LO += src/shared/bcmotp.c
1505 WLFLAGS += -DBCMNVRAMR
1506 endif
1507 #endif
1509 #ifdef SIUTILS
1510 ifeq ($(SIUTILS),1)
1511 WLFILES_SRC_LO += src/shared/siutils.c
1512 WLFILES_SRC_LO += src/shared/sbutils.c
1513 WLFILES_SRC_LO += src/shared/aiutils.c
1514 WLFILES_SRC_LO += src/shared/hndpmu.c
1515 ifneq ($(BCMPCI), 0)
1516 WLFILES_SRC_LO += src/shared/nicpci.c
1517 endif
1518 endif
1519 #endif /* SIUTILS */
1521 #ifdef SBMIPS
1522 ifeq ($(SBMIPS),1)
1523 WLFLAGS += -DBCMMIPS
1524 WLFILES_SRC_LO += src/shared/hndmips.c
1525 WLFILES_SRC_LO += src/shared/hndchipc.c
1526 endif
1527 #endif
1529 #ifdef SBPCI
1530 ifeq ($(SBPCI),1)
1531 WLFILES_SRC_LO += src/shared/hndpci.c
1532 endif
1533 #endif
1535 #ifdef SFLASH
1536 ifeq ($(SFLASH),1)
1537 WLFILES_SRC_LO += src/shared/sflash.c
1538 endif
1539 #endif
1541 #ifdef FLASHUTL
1542 ifeq ($(FLASHUTL),1)
1543 WLFILES_SRC_LO += src/shared/flashutl.c
1544 endif
1545 #endif
1547 ## --- shared OSL
1548 #ifdef OSLLX
1549 # linux osl
1550 ifeq ($(OSLLX),1)
1551 WLFILES_SRC += src/shared/linux_osl.c
1552 endif
1553 #endif
1555 #ifdef OSLVX
1556 # vx osl
1557 ifeq ($(OSLVX),1)
1558 WLFILES_SRC += src/shared/vx_osl.c
1559 WLFILES_SRC += src/shared/bcmallocache.c
1560 endif
1561 #endif
1563 #ifdef OSLBSD
1564 # bsd osl
1565 ifeq ($(OSLBSD),1)
1566 WLFILES_SRC += src/shared/bsd_osl.c
1567 WLFILES_SRC += src/shared/nvramstubs.c
1568 endif
1569 #endif
1571 #ifdef OSLCFE
1572 ifeq ($(OSLCFE),1)
1573 WLFILES_SRC += src/shared/cfe_osl.c
1574 endif
1575 #endif
1577 #ifdef OSLRTE
1578 ifeq ($(OSLRTE),1)
1579 WLFILES_SRC += src/shared/hndrte_osl.c
1580 endif
1581 #endif
1583 #ifdef OSLNDIS
1584 ifeq ($(OSLNDIS),1)
1585 WLFILES_SRC += src/shared/ndshared.c
1586 WLFILES_SRC += src/shared/ndis_osl.c
1587 endif
1588 #endif
1590 #ifndef LINUX_HYBRID
1591 ifeq ($(CONFIG_USBRNDIS_RETAIL),1)
1592 WLFLAGS += -DCONFIG_USBRNDIS_RETAIL
1593 WLFILES_SRC += src/wl/sys/wl_ndconfig.c
1594 WLFILES_SRC += src/shared/bcmwifi/src/bcmwifi_channels.c
1595 endif
1597 ifeq ($(NVRAM),1)
1598 WLFILES_SRC_LO += src/dongle/rte/test/nvram.c
1599 WLFILES_SRC_LO += src/dongle/rte/sim/nvram.c
1600 WLFILES_SRC_LO += src/shared/nvram.c
1601 endif
1603 ifeq ($(NVRAMVX),1)
1604 WLFILES_SRC_LO += src/shared/nvram_rw.c
1605 endif
1606 #endif /* LINUX_HYBRID */
1608 #ifdef BCMNVRAMR
1609 ifeq ($(BCMNVRAMR),1)
1610 WLFILES_SRC_LO += src/shared/nvram_ro.c
1611 WLFILES_SRC_LO += src/shared/sflash.c
1612 WLFILES_SRC_LO += src/shared/bcmotp.c
1613 WLFLAGS += -DBCMNVRAMR
1614 endif
1615 #else /* !BCMNVRAMR */
1616 ifneq ($(BCMNVRAMR),1)
1617 ifeq ($(WLLXNOMIPSEL),1)
1618 ifneq ($(WLUMK),1)
1619 WLFILES_SRC += src/shared/nvramstubs.c
1620 endif
1621 else
1622 ifeq ($(WLNDIS),1)
1623 WLFILES_SRC += src/shared/nvramstubs.c
1624 else
1625 ifeq ($(BCMNVRAMW),1)
1626 WLFILES_SRC_LO += src/shared/nvram_ro.c
1627 WLFILES_SRC_LO += src/shared/sflash.c
1628 endif
1629 endif
1630 endif
1631 ifeq ($(BCMNVRAMW),1)
1632 WLFILES_SRC_LO += src/shared/bcmotp.c
1633 WLFLAGS += -DBCMNVRAMW
1634 endif
1635 endif
1636 #endif /* !BCMNVRAMR */
1638 # Define one OTP mechanism, or none to support all dynamically
1639 ifeq ($(BCMHNDOTP),1)
1640 WLFLAGS += -DBCMHNDOTP
1641 endif
1642 ifeq ($(BCMIPXOTP),1)
1643 WLFLAGS += -DBCMIPXOTP
1644 endif
1647 #ifdef WLDIAG
1648 ifeq ($(WLDIAG),1)
1649 WLFLAGS += -DWLDIAG
1650 WLFILES_SRC_LO += src/wl/sys/wlc_diag.c
1651 endif
1652 #endif
1654 #ifdef BCMDBG
1655 ifneq ($(BCMDBG),1)
1656 ifeq ($(WLTINYDUMP),1)
1657 WLFLAGS += -DWLTINYDUMP
1658 endif
1659 endif
1660 #endif
1662 #ifdef BCMQT
1663 ifeq ($(BCMQT),1)
1664 # Set flag to indicate emulated chip
1665 WLFLAGS += -DBCMSLTGT -DBCMQT
1666 ifeq ($(WLRTE),1)
1667 # Use of RTE implies embedded (CPU emulated)
1668 WLFLAGS += -DBCMQT_CPU
1669 endif
1670 endif
1671 #endif
1673 #ifdef WLPFN
1674 ifeq ($(WLPFN),1)
1675 WLFLAGS += -DWLPFN
1676 WLFILES_SRC += src/wl/sys/wl_pfn.c
1677 ifeq ($(WLPFN_AUTO_CONNECT),1)
1678 WLFLAGS += -DWLPFN_AUTO_CONNECT
1679 endif
1680 endif
1681 #endif
1683 #ifdef TOE
1684 ifeq ($(TOE),1)
1685 WLFLAGS += -DTOE
1686 WLFILES_SRC += src/wl/sys/wl_toe.c
1687 endif
1688 #endif
1690 #ifdef ARPOE
1691 ifeq ($(ARPOE),1)
1692 WLFLAGS += -DARPOE
1693 WLFILES_SRC += src/wl/sys/wl_arpoe.c
1694 endif
1695 #endif
1697 #ifdef NWOE
1698 ifeq ($(NWOE),1)
1699 WLFLAGS += -DNWOE
1700 WLFILES_SRC += src/wl/sys/wl_nwoe.c
1701 WLFILES_SRC += src/wl/lwip/src/core/def.c
1702 WLFILES_SRC += src/wl/lwip/src/core/dns.c
1703 WLFILES_SRC += src/wl/lwip/src/core/mem.c
1704 WLFILES_SRC += src/wl/lwip/src/core/netif.c
1705 WLFILES_SRC += src/wl/lwip/src/core/raw.c
1706 WLFILES_SRC += src/wl/lwip/src/core/stats.c
1707 WLFILES_SRC += src/wl/lwip/src/core/tcp.c
1708 WLFILES_SRC += src/wl/lwip/src/core/tcp_out.c
1709 WLFILES_SRC += src/wl/lwip/src/core/udp.c
1710 WLFILES_SRC += src/wl/lwip/src/core/dhcp.c
1711 WLFILES_SRC += src/wl/lwip/src/core/init.c
1712 WLFILES_SRC += src/wl/lwip/src/core/memp.c
1713 WLFILES_SRC += src/wl/lwip/src/core/pbuf.c
1714 WLFILES_SRC += src/wl/lwip/src/core/sys.c
1715 WLFILES_SRC += src/wl/lwip/src/core/tcp_in.c
1716 WLFILES_SRC += src/wl/lwip/src/core/timers.c
1717 WLFILES_SRC += src/wl/lwip/src/netif/etharp.c
1718 WLFILES_SRC += src/wl/lwip/src/core/ipv4/autoip.c
1719 WLFILES_SRC += src/wl/lwip/src/core/ipv4/icmp.c
1720 WLFILES_SRC += src/wl/lwip/src/core/ipv4/igmp.c
1721 WLFILES_SRC += src/wl/lwip/src/core/ipv4/inet.c
1722 WLFILES_SRC += src/wl/lwip/src/core/ipv4/inet_chksum.c
1723 WLFILES_SRC += src/wl/lwip/src/core/ipv4/ip_addr.c
1724 WLFILES_SRC += src/wl/lwip/src/core/ipv4/ip.c
1725 WLFILES_SRC += src/wl/lwip/src/core/ipv4/ip_frag.c
1726 endif
1727 #endif
1729 #ifdef WLNDOE
1730 ifeq ($(WLNDOE),1)
1731 WLFLAGS += -DWLNDOE
1732 WLFILES_SRC += src/wl/sys/wl_ndoe.c
1733 endif
1734 #endif
1736 #ifdef PLC
1737 ifeq ($(PLC),1)
1738 WLFLAGS += -DPLC -DPLC_WET
1739 WLFILES_SRC += src/wl/sys/wl_plc_linux.c
1740 endif
1741 #endif
1743 #ifdef PCOEM_LINUXSTA
1744 ifeq ($(PCOEM_LINUXSTA),1)
1745 WLFLAGS += -DPCOEM_LINUXSTA
1746 endif
1747 #endif
1749 #ifdef LINUXSTA_PS
1750 ifeq ($(LINUXSTA_PS),1)
1751 WLFLAGS += -DLINUXSTA_PS
1752 endif
1753 #endif
1755 #ifndef LINUX_HYBRID
1756 ifeq ($(KEEP_ALIVE),1)
1757 WLFLAGS += -DKEEP_ALIVE
1758 WLFILES_SRC += src/wl/sys/wl_keep_alive.c
1759 endif
1761 #ifdef OPENSRC_IOV_IOCTL
1762 ifeq ($(OPENSRC_IOV_IOCTL),1)
1763 WLFLAGS += -DOPENSRC_IOV_IOCTL
1764 endif
1765 #endif
1767 ifeq ($(PACKET_FILTER),1)
1768 WLFLAGS += -DPACKET_FILTER
1769 WLFILES_SRC += src/wl/sys/wlc_pkt_filter.c
1770 endif
1772 ifeq ($(SEQ_CMDS),1)
1773 WLFLAGS += -DSEQ_CMDS
1774 WLFILES_SRC_HI += src/wl/sys/wlc_seq_cmds.c
1775 endif
1777 ifeq ($(RECEIVE_THROTTLE),1)
1778 WLFLAGS += -DWL_PM2_RCV_DUR_LIMIT
1779 endif
1781 ifeq ($(ASYNC_TSTAMPED_LOGS),1)
1782 WLFLAGS += -DBCMTSTAMPEDLOGS
1783 endif
1785 ifeq ($(WL11K),1)
1786 WLFLAGS += -DWL11K
1787 WLFILES_SRC += src/wl/sys/wlc_rrm.c
1788 endif
1789 ifeq ($(WLWNM),1)
1790 WLFLAGS += -DWLWNM
1791 WLFILES_SRC += src/wl/sys/wlc_wnm.c
1792 endif
1793 #endif
1795 # Sort and remove duplicates from WLFILES*
1796 ifeq ($(WL_LOW),1)
1797 WLFILES_SRC += $(sort $(WLFILES_SRC_LO))
1798 endif
1799 ifeq ($(WL_HIGH),1)
1800 WLFILES_SRC += $(sort $(WLFILES_SRC_HI))
1801 endif
1803 # wl patch code
1804 ifneq ($(WLPATCHFILE), )
1805 WLFLAGS += -DWLC_PATCH
1806 WLC_PATCH_IOCTL ?= 1
1807 ifeq ($(WLC_PATCH_IOCTL),1)
1808 WLFLAGS += -DWLC_PATCH_IOCTL
1809 endif
1810 WLFILES_SRC += $(WLPATCHFILE)
1811 endif
1813 ifeq ($(SAMPLE_COLLECT),1)
1814 WLFLAGS += -DSAMPLE_COLLECT
1815 endif
1817 ifeq ($(SMF_STATS),1)
1818 WLFLAGS += -DSMF_STATS
1819 endif
1821 #ifdef PHYMON
1822 ifeq ($(PHYMON),1)
1823 WLFLAGS += -DPHYMON
1824 endif
1825 #endif
1827 #ifdef USBSHIM
1828 ifeq ($(USBSHIM),1)
1829 WLFLAGS += -DUSBSHIM
1830 endif # USBSHIM
1831 #endif
1833 #ifdef BCM_DCS
1834 ifeq ($(BCM_DCS),1)
1835 WLFLAGS += -DBCM_DCS
1836 endif
1837 #endif
1839 ifeq ($(WLMCHAN), 1)
1840 ifeq ($(WL_SPLIT), 1)
1841 WL_THREAD = 1
1842 USBOS_THREAD = 1
1843 endif
1844 endif
1846 ifeq ($(WL_THREAD),1)
1847 WLFLAGS += -DWL_THREAD
1848 endif
1850 ifneq ($(WL_THREADNICE),)
1851 WLFLAGS += -DWL_THREADNICE=$(WL_THREADNICE)
1852 endif
1854 ifeq ($(USBOS_THREAD),1)
1855 WLFLAGS += -DUSBOS_THREAD
1856 endif
1857 ifeq ($(WL_NVRAM_FILE),1)
1858 WLFLAGS += -DWL_NVRAM_FILE
1859 endif
1861 ifeq ($(WL_FW_DECOMP),1)
1862 WLFLAGS += -DWL_FW_DECOMP
1863 WLFILES_SRC_HI += src/shared/zlib/adler32.c
1864 WLFILES_SRC_HI += src/shared/zlib/inffast.c
1865 WLFILES_SRC_HI += src/shared/zlib/inflate.c
1866 WLFILES_SRC_HI += src/shared/zlib/infcodes.c
1867 WLFILES_SRC_HI += src/shared/zlib/infblock.c
1868 WLFILES_SRC_HI += src/shared/zlib/inftrees.c
1869 WLFILES_SRC_HI += src/shared/zlib/infutil.c
1870 WLFILES_SRC_HI += src/shared/zlib/zutil.c
1871 WLFILES_SRC_HI += src/shared/zlib/crc32.c
1872 endif
1874 ifeq ($(WL_WOWL_MEDIA),1)
1875 WLFLAGS += -DWL_WOWL_MEDIA
1876 endif
1878 ifeq ($(WL_USB_ZLP_PAD),1)
1879 WLFLAGS += -DWL_USB_ZLP_PAD
1880 endif
1882 ifeq ($(WL_URB_ZPKT),1)
1883 WLFLAGS += -DWL_URB_ZPKT
1884 endif
1886 #ifdef SAVERESTORE
1887 ifeq ($(SAVERESTORE),1)
1888 WLFLAGS += -DSAVERESTORE
1889 WLFILES_SRC_LO += src/shared/sr_array.c
1890 WLFILES_SRC_LO += src/shared/saverestore.c
1891 endif
1892 #endif
1894 #ifdef BCM_REQUEST_FW
1895 ifeq ($(BCM_REQUEST_FW), 1)
1896 WLFLAGS += -DBCM_REQUEST_FW
1897 endif
1898 #endif
1900 # HW CSO support (D11 rev40 feature)
1901 ifeq ($(WLCSO),1)
1902 WLFLAGS += -DWLCSO
1903 endif
1905 # add a flag to indicate the split to linux kernels
1906 WLFLAGS += -DPHY_HAL
1908 # compile only 1x1 ACPHY related code
1909 ifeq ($(ACPHY_1X1_ONLY),1)
1910 WLFLAGS += -DACPHY_1X1_ONLY
1911 endif
1913 #ifdef WET_TUNNEL
1914 ifeq ($(WET_TUNNEL),1)
1915 WLFLAGS += -DWET_TUNNEL
1916 WLFILES_SRC_HI += src/wl/sys/wlc_wet_tunnel.c
1917 endif
1918 #endif
1920 #ifdef WL_BCN_COALESCING
1921 ifeq ($(WL_BCN_COALESCING),1)
1922 WLFLAGS += -DWL_BCN_COALESCING
1923 WLFILES_SRC += src/wl/sys/wlc_bcn_clsg.c
1924 endif
1925 #endif
1929 # Legacy WLFILES pathless definition, please use new src relative path
1930 # in make files.
1931 WLFILES := $(sort $(notdir $(WLFILES_SRC)))