|
6 | 6 | MODULE_NAME = bcmdhd |
7 | 7 | CONFIG_BCMDHD_SDIO := y |
8 | 8 | #CONFIG_BCMDHD_PCIE := y |
| 9 | +#CONFIG_BCMDHD_USB := y |
9 | 10 | CONFIG_BCMDHD_OOB := y |
10 | 11 | CONFIG_BCMDHD_PROPTXSTATUS := y |
11 | 12 | CONFIG_BCMDHD_AG := y |
12 | 13 | #CONFIG_DHD_USE_STATIC_BUF := y |
13 | 14 | CONFIG_VTS_SUPPORT := y |
| 15 | +#CONFIG_LOGTRACE := y |
14 | 16 |
|
15 | | -DHDCFLAGS = -Wall -Wstrict-prototypes -Dlinux -DBCMDRIVER -DSDTEST \ |
| 17 | +CONFIG_MACH_PLATFORM := y |
| 18 | +#CONFIG_BCMDHD_DTS := y |
| 19 | + |
| 20 | +DHDCFLAGS = -Wall -Wstrict-prototypes -Dlinux -DBCMDRIVER \ |
16 | 21 | -DBCMDONGLEHOST -DUNRELEASEDCHIP -DBCMDMA32 -DBCMFILEIMAGE \ |
17 | 22 | -DDHDTHREAD -DDHD_DEBUG -DSHOW_EVENTS -DBCMDBG -DGET_OTP_MAC_ENABLE \ |
18 | 23 | -DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT -DSUPPORT_PM2_ONLY \ |
19 | 24 | -DKEEP_ALIVE -DPKT_FILTER_SUPPORT -DPNO_SUPPORT -DDHDTCPACK_SUPPRESS \ |
20 | | - -DDHD_DONOT_FORWARD_BCMEVENT_AS_NETWORK_PKT -DRXFRAME_THREAD \ |
21 | | - -DTSQ_MULTIPLIER -DMFP -DWL_EXT_IAPSTA \ |
| 25 | + -DDHD_DONOT_FORWARD_BCMEVENT_AS_NETWORK_PKT \ |
| 26 | + -DMULTIPLE_SUPPLICANT -DTSQ_MULTIPLIER -DMFP \ |
| 27 | + -DWL_EXT_IAPSTA \ |
22 | 28 | -DENABLE_INSMOD_NO_FW_LOAD -DDHD_UNSUPPORT_IF_CNTS \ |
23 | 29 | -Idrivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd \ |
24 | 30 | -Idrivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include |
25 | 31 |
|
26 | | -DHDOFILES = aiutils.o siutils.o sbutils.o bcmutils.o bcmwifi_channels.o \ |
27 | | - dhd_linux.o dhd_linux_platdev.o dhd_linux_sched.o dhd_pno.o \ |
28 | | - dhd_common.o dhd_ip.o dhd_linux_wq.o dhd_custom_gpio.o \ |
29 | | - bcmevent.o hndpmu.o linux_osl.o wldev_common.o wl_android.o \ |
| 32 | +DHDOFILES = aiutils.o siutils.o sbutils.o bcmutils.o bcmwifi_channels.o \ |
| 33 | + dhd_linux.o dhd_linux_platdev.o dhd_linux_sched.o dhd_pno.o \ |
| 34 | + dhd_common.o dhd_ip.o dhd_linux_wq.o dhd_custom_gpio.o \ |
| 35 | + bcmevent.o hndpmu.o linux_osl.o wldev_common.o wl_android.o \ |
30 | 36 | hnd_pktq.o hnd_pktpool.o dhd_config.o wl_android_ext.o |
31 | 37 |
|
| 38 | +#BCMDHD_SDIO |
32 | 39 | ifneq ($(CONFIG_BCMDHD_SDIO),) |
33 | | -DHDCFLAGS += \ |
34 | | - -DBCMSDIO -DMMC_SDIO_ABORT -DBCMLXSDMMC -DUSE_SDIOFIFO_IOVAR \ |
35 | | - -DBDC -DDHD_USE_IDLECOUNT -DBCMSDIOH_TXGLOM -DBCMSDIOH_TXGLOM_EXT \ |
36 | | - -DCUSTOM_SDIO_F2_BLKSIZE=256 |
37 | | - |
38 | | -DHDOFILES += bcmsdh.o bcmsdh_linux.o bcmsdh_sdmmc.o bcmsdh_sdmmc_linux.o \ |
39 | | - dhd_sdio.o dhd_cdc.o dhd_wlfc.o |
40 | | - |
| 40 | +DHDCFLAGS += -DBCMSDIO -DMMC_SDIO_ABORT -DBCMLXSDMMC -DUSE_SDIOFIFO_IOVAR \ |
| 41 | + -DSDTEST -DBDC -DDHD_USE_IDLECOUNT -DCUSTOM_SDIO_F2_BLKSIZE=256 \ |
| 42 | + -DBCMSDIOH_TXGLOM -DBCMSDIOH_TXGLOM_EXT -DRXFRAME_THREAD |
41 | 43 | ifeq ($(CONFIG_BCMDHD_OOB),y) |
42 | | -DHDCFLAGS += -DOOB_INTR_ONLY -DCUSTOMER_OOB -DHW_OOB |
| 44 | + DHDCFLAGS += -DOOB_INTR_ONLY -DCUSTOMER_OOB -DHW_OOB |
43 | 45 | ifeq ($(CONFIG_BCMDHD_DISABLE_WOWLAN),y) |
44 | | -DHDCFLAGS += -DDISABLE_WOWLAN |
| 46 | + DHDCFLAGS += -DDISABLE_WOWLAN |
45 | 47 | endif |
46 | 48 | else |
47 | | -DHDCFLAGS += -DSDIO_ISR_THREAD |
48 | | -endif |
| 49 | + DHDCFLAGS += -DSDIO_ISR_THREAD |
49 | 50 | endif |
50 | 51 |
|
51 | | -ifeq ($(CONFIG_BCMDHD_PROPTXSTATUS),y) |
52 | | -ifneq ($(CONFIG_BCMDHD_SDIO),) |
53 | | -DHDCFLAGS += -DPROP_TXSTATUS |
54 | | -endif |
55 | | -ifneq ($(CONFIG_CFG80211),) |
56 | | -DHDCFLAGS += -DPROP_TXSTATUS_VSDB |
57 | | -endif |
| 52 | +DHDOFILES += bcmsdh.o bcmsdh_linux.o bcmsdh_sdmmc.o bcmsdh_sdmmc_linux.o \ |
| 53 | + dhd_sdio.o dhd_cdc.o dhd_wlfc.o |
58 | 54 | endif |
59 | 55 |
|
| 56 | +#BCMDHD_PCIE |
60 | 57 | ifneq ($(CONFIG_BCMDHD_PCIE),) |
61 | | -DHDCFLAGS += \ |
62 | | - -DPCIE_FULL_DONGLE -DBCMPCIE -DCUSTOM_DPC_PRIO_SETTING=-1 |
| 58 | +DHDCFLAGS += -DPCIE_FULL_DONGLE -DBCMPCIE -DCUSTOM_DPC_PRIO_SETTING=-1 \ |
| 59 | + -DDONGLE_ENABLE_ISOLATION |
| 60 | +ifneq ($(CONFIG_PCI_MSI),) |
| 61 | + DHDCFLAGS += -DDHD_USE_MSI |
| 62 | +endif |
63 | 63 | ifeq ($(CONFIG_DHD_USE_STATIC_BUF),y) |
64 | | -DHDCFLAGS += -DDHD_USE_STATIC_CTRLBUF |
| 64 | + DHDCFLAGS += -DDHD_USE_STATIC_CTRLBUF |
65 | 65 | endif |
66 | 66 |
|
67 | | -DHDOFILES += dhd_pcie.o dhd_pcie_linux.o pcie_core.o dhd_flowring.o \ |
| 67 | +DHDOFILES += dhd_pcie.o dhd_pcie_linux.o pcie_core.o dhd_flowring.o \ |
68 | 68 | dhd_msgbuf.o |
69 | 69 | endif |
70 | 70 |
|
| 71 | +#BCMDHD_USB |
| 72 | +ifneq ($(CONFIG_BCMDHD_USB),) |
| 73 | +DHDCFLAGS += -DUSBOS_TX_THREAD -DBCMDBUS -DBCMTRXV2 -DDBUS_USB_LOOPBACK \ |
| 74 | + -DBDC |
| 75 | +DHDCFLAGS += -DBCM_REQUEST_FW -DEXTERNAL_FW_PATH |
| 76 | +#DHDCFLAGS :=$(filter-out -DENABLE_INSMOD_NO_FW_LOAD,$(DHDCFLAGS)) |
| 77 | + |
| 78 | +DHDOFILES += dbus.o dbus_usb.o dbus_usb_linux.o dhd_cdc.o dhd_wlfc.o |
| 79 | +endif |
| 80 | + |
| 81 | +ifeq ($(CONFIG_BCMDHD_PROPTXSTATUS),y) |
| 82 | +ifneq ($(CONFIG_BCMDHD_USB),) |
| 83 | + DHDCFLAGS += -DPROP_TXSTATUS |
| 84 | +endif |
| 85 | +ifneq ($(CONFIG_BCMDHD_SDIO),) |
| 86 | + DHDCFLAGS += -DPROP_TXSTATUS |
| 87 | +endif |
| 88 | +ifneq ($(CONFIG_CFG80211),) |
| 89 | + DHDCFLAGS += -DPROP_TXSTATUS_VSDB |
| 90 | +endif |
| 91 | +endif |
| 92 | + |
| 93 | +#VTS_SUPPORT |
71 | 94 | ifeq ($(CONFIG_VTS_SUPPORT),y) |
72 | | -DHDCFLAGS += \ |
73 | | - -DGSCAN_SUPPORT -DRTT_SUPPORT -DCUSTOM_FORCE_NODFS_FLAG \ |
74 | | - -DLINKSTAT_SUPPORT -DDEBUGABILITY -DDBG_PKT_MON -DKEEP_ALIVE -DPKT_FILTER_SUPPORT \ |
75 | | - -DAPF -DNDO_CONFIG_SUPPORT -DRSSI_MONITOR_SUPPORT -DDHDTCPACK_SUPPRESS -DDHD_WAKE_STATUS \ |
| 95 | +ifneq ($(CONFIG_CFG80211),) |
| 96 | +DHDCFLAGS += -DGSCAN_SUPPORT -DRTT_SUPPORT -DCUSTOM_FORCE_NODFS_FLAG \ |
| 97 | + -DLINKSTAT_SUPPORT -DDEBUGABILITY -DDBG_PKT_MON -DPKT_FILTER_SUPPORT \ |
| 98 | + -DAPF -DNDO_CONFIG_SUPPORT -DRSSI_MONITOR_SUPPORT -DDHD_WAKE_STATUS \ |
76 | 99 | -DCUSTOM_COUNTRY_CODE -DDHD_FW_COREDUMP -DEXPLICIT_DISCIF_CLEANUP |
77 | 100 |
|
78 | | -DHDOFILES += dhd_debug_linux.o dhd_debug.o bcmxtlv.o \ |
79 | | - dhd_rtt.o bcm_app_utils.o |
| 101 | +DHDOFILES += bcmxtlv.o dhd_rtt.o bcm_app_utils.o |
| 102 | +CONFIG_LOGTRACE := y |
| 103 | +endif |
| 104 | +endif |
| 105 | + |
| 106 | +#LOGTRACE |
| 107 | +ifeq ($(CONFIG_LOGTRACE),y) |
| 108 | + DHDCFLAGS += -DSHOW_LOGTRACE |
| 109 | + DHDOFILES += dhd_debug_linux.o dhd_debug.o dhd_mschdbg.o |
80 | 110 | endif |
81 | 111 |
|
| 112 | +# MESH support for kernel 3.10 later |
| 113 | +ifeq ($(CONFIG_WL_MESH),y) |
| 114 | + DHDCFLAGS += -DWLMESH |
| 115 | +ifneq ($(CONFIG_BCMDHD_PCIE),) |
| 116 | + DHDCFLAGS += -DBCM_HOST_BUF -DDMA_HOST_BUFFER_LEN=0x80000 |
| 117 | +endif |
| 118 | + DHDCFLAGS += -DDHD_UPDATE_INTF_MAC |
| 119 | + DHDCFLAGS :=$(filter-out -DDHD_FW_COREDUMP,$(DHDCFLAGS)) |
| 120 | + DHDCFLAGS :=$(filter-out -DSET_RANDOM_MAC_SOFTAP,$(DHDCFLAGS)) |
| 121 | +endif |
| 122 | + |
| 123 | +#obj-$(CONFIG_RKWIFI) += bcmdhd.o |
82 | 124 | obj-$(CONFIG_AP6XXX) += bcmdhd.o |
83 | 125 | bcmdhd-objs += $(DHDOFILES) |
84 | 126 |
|
85 | | -#ifeq ($(CONFIG_MACH_PLATFORM),y) |
86 | | -DHDOFILES += dhd_gpio.o |
87 | | -DHDCFLAGS += -DCUSTOMER_HW -DDHD_OF_SUPPORT |
88 | | -#DHDCFLAGS += -DBCMWAPI_WPI -DBCMWAPI_WAI |
89 | | -#endif |
| 127 | +ifeq ($(CONFIG_MACH_PLATFORM),y) |
| 128 | + DHDOFILES += dhd_gpio.o |
| 129 | +ifeq ($(CONFIG_BCMDHD_DTS),y) |
| 130 | + DHDCFLAGS += -DCONFIG_DTS |
| 131 | +else |
| 132 | + DHDCFLAGS += -DCUSTOMER_HW -DDHD_OF_SUPPORT |
| 133 | +endif |
| 134 | +# DHDCFLAGS += -DBCMWAPI_WPI -DBCMWAPI_WAI |
| 135 | +endif |
90 | 136 |
|
91 | 137 | ifeq ($(CONFIG_BCMDHD_AG),y) |
92 | | -DHDCFLAGS += -DBAND_AG |
| 138 | + DHDCFLAGS += -DBAND_AG |
93 | 139 | endif |
94 | 140 |
|
95 | 141 | ifeq ($(CONFIG_DHD_USE_STATIC_BUF),y) |
96 | | -obj-m += dhd_static_buf.o |
97 | | -DHDCFLAGS += -DSTATIC_WL_PRIV_STRUCT -DENHANCED_STATIC_BUF |
98 | | -DHDCFLAGS += -DDHD_USE_STATIC_MEMDUMP -DCONFIG_DHD_USE_STATIC_BUF |
| 142 | + obj-m += dhd_static_buf.o |
| 143 | + DHDCFLAGS += -DSTATIC_WL_PRIV_STRUCT -DENHANCED_STATIC_BUF |
| 144 | + DHDCFLAGS += -DDHD_USE_STATIC_MEMDUMP -DCONFIG_DHD_USE_STATIC_BUF |
99 | 145 | endif |
100 | 146 |
|
101 | 147 | ifneq ($(CONFIG_WIRELESS_EXT),) |
102 | | -DHDOFILES += wl_iw.o wl_escan.o |
103 | | -DHDCFLAGS += -DSOFTAP -DWL_WIRELESS_EXT -DUSE_IW -DWL_ESCAN |
| 148 | + DHDOFILES += wl_iw.o wl_escan.o |
| 149 | + DHDCFLAGS += -DSOFTAP -DWL_WIRELESS_EXT -DUSE_IW -DWL_ESCAN |
104 | 150 | endif |
105 | 151 | ifneq ($(CONFIG_CFG80211),) |
106 | | -DHDOFILES += wl_cfg80211.o wl_cfgp2p.o wl_linux_mon.o wl_cfg_btcoex.o wl_cfgvendor.o |
107 | | -DHDOFILES += dhd_cfg80211.o |
108 | | -DHDCFLAGS += -DWL_CFG80211 -DWLP2P -DWL_CFG80211_STA_EVENT -DWL_ENABLE_P2P_IF |
109 | | -#DHDCFLAGS += -DWL_IFACE_COMB_NUM_CHANNELS |
110 | | -DHDCFLAGS += -DCUSTOM_ROAM_TRIGGER_SETTING=-65 |
111 | | -DHDCFLAGS += -DCUSTOM_ROAM_DELTA_SETTING=15 |
112 | | -DHDCFLAGS += -DCUSTOM_KEEP_ALIVE_SETTING=28000 |
113 | | -DHDCFLAGS += -DCUSTOM_PNO_EVENT_LOCK_xTIME=7 |
114 | | -DHDCFLAGS += -DWL_SUPPORT_AUTO_CHANNEL |
115 | | -DHDCFLAGS += -DWL_SUPPORT_BACKPORTED_KPATCHES |
116 | | -DHDCFLAGS += -DESCAN_RESULT_PATCH |
117 | | -DHDCFLAGS += -DVSDB -DWL_CFG80211_VSDB_PRIORITIZE_SCAN_REQUEST |
118 | | -DHDCFLAGS += -DWLTDLS -DMIRACAST_AMPDU_SIZE=8 |
119 | | -DHDCFLAGS += -DWL_VIRTUAL_APSTA |
| 152 | + DHDOFILES += wl_cfg80211.o wl_cfgp2p.o wl_linux_mon.o wl_cfg_btcoex.o wl_cfgvendor.o |
| 153 | + DHDOFILES += dhd_cfg80211.o |
| 154 | + DHDCFLAGS += -DWL_CFG80211 -DWLP2P -DWL_CFG80211_STA_EVENT -DWL_ENABLE_P2P_IF |
| 155 | +# DHDCFLAGS += -DWL_IFACE_COMB_NUM_CHANNELS |
| 156 | + DHDCFLAGS += -DCUSTOM_ROAM_TRIGGER_SETTING=-65 |
| 157 | + DHDCFLAGS += -DCUSTOM_ROAM_DELTA_SETTING=15 |
| 158 | + DHDCFLAGS += -DCUSTOM_KEEP_ALIVE_SETTING=28000 |
| 159 | + DHDCFLAGS += -DCUSTOM_PNO_EVENT_LOCK_xTIME=7 |
| 160 | + DHDCFLAGS += -DWL_SUPPORT_AUTO_CHANNEL |
| 161 | + DHDCFLAGS += -DWL_SUPPORT_BACKPORTED_KPATCHES |
| 162 | + DHDCFLAGS += -DESCAN_RESULT_PATCH -DESCAN_BUF_OVERFLOW_MGMT |
| 163 | + DHDCFLAGS += -DVSDB -DWL_CFG80211_VSDB_PRIORITIZE_SCAN_REQUEST |
| 164 | + DHDCFLAGS += -DWLTDLS -DMIRACAST_AMPDU_SIZE=8 |
| 165 | + DHDCFLAGS += -DWL_VIRTUAL_APSTA |
120 | 166 | endif |
121 | 167 | EXTRA_CFLAGS = $(DHDCFLAGS) |
122 | 168 | ifeq ($(CONFIG_BCMDHD),m) |
123 | | -DHDCFLAGS += -DMULTIPLE_SUPPLICANT |
124 | 169 | EXTRA_LDFLAGS += --strip-debug |
125 | | -else |
126 | | -DHDCFLAGS += -DBUILD_IN_KERNEL |
127 | 170 | endif |
0 commit comments