0e567e1b4af142f9ea2fe008a9b037e994c96e0e
[linux-3.10.git] / drivers / net / wireless / bcmdhd / Makefile
1 # bcmdhd
2
3 DHDCFLAGS = -Wall -Wstrict-prototypes -Dlinux -DBCMDRIVER                 \
4         -DBCMDONGLEHOST -DUNRELEASEDCHIP -DBCMDMA32 -DBCMFILEIMAGE            \
5         -DDHDTHREAD -DDHD_DEBUG -DSDTEST -DBDC -DTOE                          \
6         -DDHD_BCMEVENTS -DSHOW_EVENTS -DPROP_TXSTATUS -DBCMDBG                \
7         -DCUSTOMER_HW2                                                        \
8         -DMMC_SDIO_ABORT -DBCMSDIO -DBCMLXSDMMC -DBCMPLATFORM_BUS -DWLP2P     \
9         -DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT                                \
10         -DKEEP_ALIVE -DGET_CUSTOM_MAC_ENABLE -DPKT_FILTER_SUPPORT             \
11         -DEMBEDDED_PLATFORM -DPNO_SUPPORT                                     \
12         -DDHD_USE_IDLECOUNT -DSET_RANDOM_MAC_SOFTAP -DROAM_ENABLE -DVSDB      \
13         -DWL_CFG80211_VSDB_PRIORITIZE_SCAN_REQUEST                            \
14         -DESCAN_RESULT_PATCH -DHT40_GO -DPASS_ARP_PACKET                      \
15         -DDHD_DONOT_FORWARD_BCMEVENT_AS_NETWORK_PKT -DSUPPORT_PM2_ONLY        \
16         -DMIRACAST_AMPDU_SIZE=8                                               \
17         -Idrivers/net/wireless/bcmdhd -Idrivers/net/wireless/bcmdhd/include
18
19 DHDCFLAGS += -DWL_CFG80211 -DWL_CFG80211_STA_EVENT
20 DHDCFLAGS += -DDEBUGFS_CFG80211
21 DHDCFLAGS += -DUSE_KTHREAD_API
22 DHDCFLAGS += -DCUSTOM_DPC_CPUCORE=0
23 DHDCFLAGS += -DCUSTOM_DPC_PRIO_SETTING=99
24 DHDCFLAGS += -DIOCTL_RESP_TIMEOUT=5000
25
26 ifeq ($(CONFIG_BCMDHD_HW_OOB),y)
27  DHDCFLAGS += -DHW_OOB -DOOB_INTR_ONLY
28 else
29  DHDCFLAGS += -DSDIO_ISR_THREAD
30 endif
31
32 ifeq ($(CONFIG_BCMDHD_INSMOD_NO_FW_LOAD),y)
33  DHDCFLAGS += -DENABLE_INSMOD_NO_FW_LOAD
34 endif
35
36 ifneq ($(CONFIG_DHD_USE_SCHED_SCAN),)
37  DHDCFLAGS += -DWL_SCHED_SCAN
38 endif
39
40 #ifeq ($(CONFIG_BCM43241),y)
41 # DHDCFLAGS += -DBCM43241_CHIP
42 # DHDCFLAGS += -DSDIO_CRC_ERROR_FIX
43 # DHDCFLAGS += -DCUSTOM_SDIO_F2_BLKSIZE=128
44 # DHDCFLAGS += -DCUSTOM_ROAM_TRIGGER_SETTING=-65
45 # DHDCFLAGS += -DCUSTOM_ROAM_DELTA_SETTING=15
46 # DHDCFLAGS += -DCUSTOM_KEEP_ALIVE_SETTING=28000
47 # DHDCFLAGS += -DCUSTOM_PNO_EVENT_LOCK_xTIME=7
48 # DHDCFLAGS += -DVSDB_BW_ALLOCATE_ENABLE
49 # DHDCFLAGS += -DQMONITOR
50 # DHDCFLAGS += -DDISABLE_CHIPACTIVE_BUSSLEEP
51 # DHDCFLAGS += -DP2P_DISCOVERY_WAR
52 #endif
53
54 #ifeq ($(CONFIG_BCM43341),y)
55 # DHDCFLAGS += -DBCM43341_CHIP
56 # DHDCFLAGS += -DVSDB_BW_ALLOCATE_ENABLE
57 # DHDCFLAGS += -DQMONITOR
58 # DHDCFLAGS += -DNV_BCM943341_WBFGN_MULTI_MODULE_SUPPORT
59 #endif
60
61 #BCMDHD for BCM4335 and BCM4339 chip
62 ifneq ($(CONFIG_BCMDHD),)
63  DHDCFLAGS += -DBCM4335_CHIP
64  DHDCFLAGS += -DSDIO_CRC_ERROR_FIX
65  DHDCFLAGS += -DPROP_TXSTATUS_VSDB
66  DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=40
67  DHDCFLAGS += -DCUSTOM_GLOM_SETTING=8 -DCUSTOM_RXCHAIN=1
68  DHDCFLAGS += -DBCMSDIOH_TXGLOM -DCUSTOM_TXGLOM=1 -DBCMSDIOH_TXGLOM_HIGHSPEED
69  DHDCFLAGS += -DCUSTOM_MAX_TXGLOM_SIZE=32
70  DHDCFLAGS += -DRXFRAME_THREAD
71  DHDCFLAGS += -DDHDTCPACK_SUPPRESS
72  DHDCFLAGS += -DUSE_WL_TXBF
73  DHDCFLAGS += -DUSE_WL_FRAMEBURST
74  DHDCFLAGS += -DDHD_ENABLE_LPC
75  DHDCFLAGS += -DVSDB_BW_ALLOCATE_ENABLE
76  DHDCFLAGS += -DQMONITOR
77 # DHDCFLAGS += -DENABLE_4335BT_WAR
78 endif
79
80 #ifeq ($(CONFIG_BCM4339),y)
81 # DHDCFLAGS += -DBCM4339_CHIP
82 # DHDCFLAGS += -DSDIO_CRC_ERROR_FIX
83 # DHDCFLAGS += -DPROP_TXSTATUS_VSDB
84 # DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=40
85 # DHDCFLAGS += -DCUSTOM_GLOM_SETTING=8 -DCUSTOM_RXCHAIN=1
86 # DHDCFLAGS += -DBCMSDIOH_TXGLOM -DCUSTOM_TXGLOM=1 -DBCMSDIOH_TXGLOM_HIGHSPEED
87 # DHDCFLAGS += -DCUSTOM_MAX_TXGLOM_SIZE=32
88 # DHDCFLAGS += -DRXFRAME_THREAD
89 # DHDCFLAGS += -DDHDTCPACK_SUPPRESS
90 # DHDCFLAGS += -DUSE_WL_TXBF
91 # DHDCFLAGS += -DUSE_WL_FRAMEBURST
92 # DHDCFLAGS += -DDHD_ENABLE_LPC
93 # DHDCFLAGS += -DVSDB_BW_ALLOCATE_ENABLE
94 # DHDCFLAGS += -DQMONITOR
95 #endif
96
97 DHDOFILES = bcmsdh.o bcmsdh_linux.o bcmsdh_sdmmc.o bcmsdh_sdmmc_linux.o \
98         dhd_cdc.o dhd_cfg80211.o dhd_common.o dhd_custom_gpio.o dhd_ip.o    \
99         dhd_linux.o dhd_linux_sched.o dhd_sdio.o dhd_wlfc.o aiutils.o       \
100         bcmevent.o bcmutils.o bcmwifi_channels.o hndpmu.o linux_osl.o       \
101         sbutils.o siutils.o wldev_common.o wl_android.o wl_cfg80211.o       \
102         wl_cfgp2p.o wl_linux_mon.o
103
104 ifneq ($(findstring QMONITOR, $(DHDCFLAGS)),)
105  DHDOFILES += dhd_qmon.o
106 endif
107
108 obj-$(CONFIG_BCMDHD) += bcmdhd.o
109 bcmdhd-objs += $(DHDOFILES)
110
111 EXTRA_CFLAGS = $(DHDCFLAGS)
112 ifeq ($(CONFIG_BCMDHD),m)
113  EXTRA_LDFLAGS += --strip-debug
114 endif