c4c7723b71211db16b0a5b77d85c83e7b636cfb5
[linux-3.10.git] / drivers / net / wireless / bcm43241 / 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 #ifeq ($(CONFIG_BCM4335),y)
62 # DHDCFLAGS += -DBCM4335_CHIP
63 # DHDCFLAGS += -DSDIO_CRC_ERROR_FIX
64 # DHDCFLAGS += -DPROP_TXSTATUS_VSDB
65 # DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=40
66 # DHDCFLAGS += -DCUSTOM_GLOM_SETTING=8 -DCUSTOM_RXCHAIN=1
67 # DHDCFLAGS += -DBCMSDIOH_TXGLOM -DCUSTOM_TXGLOM=1 -DBCMSDIOH_TXGLOM_HIGHSPEED
68 # DHDCFLAGS += -DCUSTOM_MAX_TXGLOM_SIZE=32
69 # DHDCFLAGS += -DRXFRAME_THREAD
70 # DHDCFLAGS += -DDHDTCPACK_SUPPRESS
71 # DHDCFLAGS += -DUSE_WL_TXBF
72 # DHDCFLAGS += -DUSE_WL_FRAMEBURST
73 # DHDCFLAGS += -DDHD_ENABLE_LPC
74 # DHDCFLAGS += -DVSDB_BW_ALLOCATE_ENABLE
75 # DHDCFLAGS += -DQMONITOR
76 # DHDCFLAGS += -DENABLE_4335BT_WAR
77 #endif
78
79 #ifeq ($(CONFIG_BCM4339),y)
80 # DHDCFLAGS += -DBCM4339_CHIP
81 # DHDCFLAGS += -DSDIO_CRC_ERROR_FIX
82 # DHDCFLAGS += -DPROP_TXSTATUS_VSDB
83 # DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=40
84 # DHDCFLAGS += -DCUSTOM_GLOM_SETTING=8 -DCUSTOM_RXCHAIN=1
85 # DHDCFLAGS += -DBCMSDIOH_TXGLOM -DCUSTOM_TXGLOM=1 -DBCMSDIOH_TXGLOM_HIGHSPEED
86 # DHDCFLAGS += -DCUSTOM_MAX_TXGLOM_SIZE=32
87 # DHDCFLAGS += -DRXFRAME_THREAD
88 # DHDCFLAGS += -DDHDTCPACK_SUPPRESS
89 # DHDCFLAGS += -DUSE_WL_TXBF
90 # DHDCFLAGS += -DUSE_WL_FRAMEBURST
91 # DHDCFLAGS += -DDHD_ENABLE_LPC
92 # DHDCFLAGS += -DVSDB_BW_ALLOCATE_ENABLE
93 # DHDCFLAGS += -DQMONITOR
94 #endif
95
96 DHDOFILES = src/bcmsdh.o src/bcmsdh_linux.o src/bcmsdh_sdmmc.o src/bcmsdh_sdmmc_linux.o \
97         src/dhd_cdc.o src/dhd_cfg80211.o src/dhd_common.o src/dhd_custom_gpio.o src/dhd_ip.o    \
98         src/dhd_linux.o src/dhd_linux_sched.o src/dhd_sdio.o src/dhd_wlfc.o src/aiutils.o       \
99         src/bcmevent.o src/bcmutils.o src/bcmwifi_channels.o src/hndpmu.o src/linux_osl.o       \
100         src/sbutils.o src/siutils.o src/wldev_common.o src/wl_android.o src/wl_cfg80211.o       \
101         src/wl_cfgp2p.o src/wl_linux_mon.o
102
103 ifneq ($(findstring QMONITOR, $(DHDCFLAGS)),)
104  DHDOFILES += src/dhd_qmon.o
105 endif
106
107 obj-$(CONFIG_BCMDHD) += bcm43241.o
108 bcm43241-objs += $(DHDOFILES)
109
110 EXTRA_CFLAGS = $(DHDCFLAGS)
111 ifeq ($(CONFIG_BCMDHD),m)
112  EXTRA_LDFLAGS += --strip-debug
113 endif