1
1
# bcmdhd
2
2
#
3
- # Copyright (C) 2024 Synaptics Incorporated. All rights reserved.
4
- #
5
- # This software is licensed to you under the terms of the
6
- # GNU General Public License version 2 (the "GPL") with Broadcom special exception.
7
- #
8
- # INFORMATION CONTAINED IN THIS DOCUMENT IS PROVIDED "AS-IS," AND SYNAPTICS
9
- # EXPRESSLY DISCLAIMS ALL EXPRESS AND IMPLIED WARRANTIES, INCLUDING ANY
10
- # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE,
11
- # AND ANY WARRANTIES OF NON-INFRINGEMENT OF ANY INTELLECTUAL PROPERTY RIGHTS.
12
- # IN NO EVENT SHALL SYNAPTICS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
13
- # SPECIAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR IN CONNECTION
14
- # WITH THE USE OF THE INFORMATION CONTAINED IN THIS DOCUMENT, HOWEVER CAUSED
15
- # AND BASED ON ANY THEORY OF LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
16
- # NEGLIGENCE OR OTHER TORTIOUS ACTION, AND EVEN IF SYNAPTICS WAS ADVISED OF
17
- # THE POSSIBILITY OF SUCH DAMAGE. IF A TRIBUNAL OF COMPETENT JURISDICTION
18
- # DOES NOT PERMIT THE DISCLAIMER OF DIRECT DAMAGES OR ANY OTHER DAMAGES,
19
- # SYNAPTICS' TOTAL CUMULATIVE LIABILITY TO ANY PARTY SHALL NOT
20
- # EXCEED ONE HUNDRED U.S. DOLLARS
21
- #
22
- # Copyright (C) 2024, Broadcom.
3
+ # Copyright (C) 2023, Broadcom.
23
4
#
24
5
# Unless you and Broadcom execute a separate written software license
25
6
# agreement governing use of this software, this software is licensed to you
@@ -50,9 +31,10 @@ CONFIG_BCMDHD_OOB := y
50
31
# CONFIG_BCMDHD_CUSB := y
51
32
# CONFIG_BCMDHD_NO_POWER_OFF := y
52
33
CONFIG_BCMDHD_PROPTXSTATUS := y
34
+ CONFIG_BCMDHD_AG := y
53
35
CONFIG_DHD_USE_STATIC_BUF := y
54
36
CONFIG_BCMDHD_STATIC_BUF_IN_DHD := y
55
- CONFIG_BCMDHD_ANDROID_VERSION := 14
37
+ # CONFIG_BCMDHD_ANDROID_VERSION := 14
56
38
CONFIG_BCMDHD_AUTO_SELECT := y
57
39
CONFIG_BCMDHD_DEBUG := y
58
40
# CONFIG_BCMDHD_RECONNECT := y
@@ -80,7 +62,7 @@ DHDCFLAGS = -Wall -Wstrict-prototypes -Wno-date-time -Wno-strict-prototypes \
80
62
-DKEEP_ALIVE -DPKT_FILTER_SUPPORT -DDHDTCPACK_SUPPRESS \
81
63
-DDHD_DONOT_FORWARD_BCMEVENT_AS_NETWORK_PKT -DOEM_ANDROID \
82
64
-DMULTIPLE_SUPPLICANT -DTSQ_MULTIPLIER -DMFP -DDHD_8021X_DUMP \
83
- -DPOWERUP_MAX_RETRY=1 -DIFACE_HANG_FORCE_DEV_CLOSE -DWAIT_DEQUEUE \
65
+ -DPOWERUP_MAX_RETRY=0 -DIFACE_HANG_FORCE_DEV_CLOSE -DWAIT_DEQUEUE \
84
66
-DUSE_NEW_RSPEC_DEFS \
85
67
-DWL_EXT_IAPSTA -DWL_ESCAN -DCCODE_LIST -DSUSPEND_EVENT \
86
68
-DKEY_INSTALL_CHECK \
@@ -108,11 +90,7 @@ ifneq ($(CONFIG_CFG80211),)
108
90
DHDOFILES += dhd_cfg80211.o wl_cfgvif.o wl_roam.o
109
91
DHDCFLAGS += -DWL_CFG80211 -DWLP2P -DWL_CFG80211_STA_EVENT
110
92
DHDCFLAGS += -DWL_CFG80211_GON_COLLISION
111
- # DHDCFLAGS += -DCFG80211_INFO_CHANDEF
112
- # DHDCFLAGS += -DAP_P2P_CONCURRENT
113
- DHDCFLAGS += -DCONFIG_CFG80211_INTERNAL_REGDB # -DEXT_REG_INFO
114
- DHDCFLAGS += -DWL_CAP_HE -DWL_6G_BAND -DWL_5P9G -DWL_P2P_6G
115
- DHDCFLAGS += -DWL11U
93
+ DHDCFLAGS += -DWL_CAP_HE -DWL_6G_BAND -DWL_5P9G
116
94
# DHDCFLAGS += -DCONFIG_6GHZ_BKPORT
117
95
DHDCFLAGS += -DWL_IFACE_COMB_NUM_CHANNELS
118
96
DHDCFLAGS += -DCUSTOM_PNO_EVENT_LOCK_xTIME=10
@@ -121,24 +99,20 @@ ifneq ($(CONFIG_CFG80211),)
121
99
DHDCFLAGS += -DESCAN_RESULT_PATCH -DESCAN_BUF_OVERFLOW_MGMT
122
100
DHDCFLAGS += -DVSDB -DWL_CFG80211_VSDB_PRIORITIZE_SCAN_REQUEST
123
101
DHDCFLAGS += -DWLTDLS -DMIRACAST_AMPDU_SIZE=8
124
- # DHDCFLAGS += -DHOSTAPD_BW_SUPPORT
125
- DHDCFLAGS += -DWL_VIRTUAL_APSTA -DSOFTAP_UAPSD_OFF # -DSTA_MGMT
126
- DHDCFLAGS += -DWL_SOFTAP_ACS # -DACS_MONITOR
102
+ # DHDCFLAGS += -DHOSTAPD_BW_SUPPORT
103
+ DHDCFLAGS += -DWL_VIRTUAL_APSTA -DSTA_MGMT -DSOFTAP_UAPSD_OFF
127
104
DHDCFLAGS += -DNUM_SCB_MAX_PROBE=3
128
105
DHDCFLAGS += -DWL_SCB_TIMEOUT=10
129
- # DHDCFLAGS += -DWL_BEACON_RATE
130
106
DHDCFLAGS += -DEXPLICIT_DISCIF_CLEANUP
131
- DHDCFLAGS += -DDHD_USE_SCAN_WAKELOCK # DHD_DEBUG_SCAN_WAKELOCK
107
+ DHDCFLAGS += -DDHD_USE_SCAN_WAKELOCK
132
108
DHDCFLAGS += -DSPECIFIC_MAC_GEN_SCHEME
133
109
DHDCFLAGS += -DWL_IFACE_MGMT
134
110
DHDCFLAGS += -DSUPPORT_RSSI_SUM_REPORT
135
111
DHDCFLAGS += -DWLFBT -DWL_GCMP_SUPPORT -DWL_OWE -DWL_SAE_FT
136
112
DHDCFLAGS += -DROAM_CHANNEL_CACHE -DDHD_LOSSLESS_ROAMING
137
- # DHDCFLAGS += -DWL_SKIP_CONNECT_HINTS
138
113
# DHDCFLAGS += -DWL_CFGVENDOR_SEND_HANG_EVENT
139
114
DHDCFLAGS += -DGTK_OFFLOAD_SUPPORT
140
115
# DHDCFLAGS += -DWL_STATIC_IF #-DDHD_MAX_STATIC_IFS=2
141
- # DHDCFLAGS += -DWL_STATIC_IFNAME_PREFIX=\"sap%d\"
142
116
DHDCFLAGS += -DWL_CLIENT_SAE
143
117
DHDCFLAGS += -DCONNECT_INFO_WAR -DWL_ROAM_WAR
144
118
DHDCFLAGS += -DVNDR_IE_WAR
@@ -150,12 +124,11 @@ ifneq ($(CONFIG_BCMDHD_SDIO),)
150
124
BUS_TYPE := sdio
151
125
DHDCFLAGS += -DBCMSDIO -DMMC_SDIO_ABORT -DUSE_SDIOFIFO_IOVAR -DBCMLXSDMMC \
152
126
-DSDTEST -DBDC -DDHD_USE_IDLECOUNT -DCUSTOM_SDIO_F2_BLKSIZE=256 \
153
- -DBCMSDIOH_TXGLOM -DDHD_SI_WD_RESET -DBCMSDIOH_STATIC_COPY_BUF \
127
+ -DBCMSDIOH_TXGLOM -DBCMSDIOH_TXGLOM_EXT -DBCMSDIOH_STATIC_COPY_BUF \
154
128
-DRXFRAME_THREAD -DDHDENABLE_TAILPAD -DSUPPORT_P2P_GO_PS \
155
129
-DBCMSDIO_RXLIM_POST -DBCMSDIO_TXSEQ_SYNC -DCONSOLE_DPC \
156
130
-DBCMSDIO_INTSTATUS_WAR
157
- DHDCFLAGS += -DMMC_HW_RESET # -DMMC_SW_RESET #-DBUS_POWER_RESTORE
158
- # DHDCFLAGS += -DDEVICE_PM_CALLBACK
131
+ DHDCFLAGS += -DMMC_HW_RESET -DMMC_SW_RESET # -DBUS_POWER_RESTORE
159
132
ifeq ($(CONFIG_BCMDHD_OOB ) ,y)
160
133
DHDCFLAGS += -DOOB_INTR_ONLY -DCUSTOMER_OOB -DHW_OOB
161
134
ifeq ($(CONFIG_BCMDHD_DISABLE_WOWLAN ) ,y)
@@ -176,7 +149,6 @@ BUS_TYPE := pcie
176
149
DHDCFLAGS += -DDHD_LB -DDHD_LB_RXP -DDHD_LB_STATS -DDHD_LB_TXP
177
150
DHDCFLAGS += -DDHD_LB_PRIMARY_CPUS=0xF0 -DDHD_LB_SECONDARY_CPUS=0x0E
178
151
# DHDCFLAGS += -DDHD_PKTID_AUDIT_ENABLED
179
- DHDCFLAGS += -DBCMPCIE_CTO_PREVENTION
180
152
DHDCFLAGS += -DEAPOL_PKT_PRIO -DENABLE_DHD_GRO
181
153
DHDCFLAGS += -DDHD_SKIP_DONGLE_RESET_IN_ATTACH
182
154
DHDCFLAGS += -DDHD_DONGLE_TRAP_IN_DETACH
@@ -261,8 +233,8 @@ endif
261
233
endif
262
234
263
235
ifeq ($(CONFIG_64BIT ) ,y)
264
- DHDCFLAGS := $(filter-out -DBCMDMA32,$(DHDCFLAGS))
265
- DHDCFLAGS += -DBCMDMA64OSL
236
+ DHDCFLAGS := $(filter-out -DBCMDMA32,$(DHDCFLAGS ) )
237
+ DHDCFLAGS += -DBCMDMA64OSL
266
238
endif
267
239
268
240
# For Android VTS
@@ -277,16 +249,14 @@ ifneq ($(CONFIG_CFG80211),)
277
249
DHDCFLAGS += -DGSCAN_SUPPORT -DRTT_SUPPORT
278
250
DHDCFLAGS += -DLINKSTAT_SUPPORT -DLINKSTAT_EXT_SUPPORT
279
251
DHDCFLAGS += -DCUSTOM_COUNTRY_CODE -DDHD_GET_VALID_CHANNELS
280
- DHDCFLAGS += -DDEBUGABILITY -DDBG_PKT_MON -DDEBUGABILITY_DISABLE_MEMDUMP
252
+ DHDCFLAGS += -DDEBUGABILITY -DDBG_PKT_MON
281
253
DHDCFLAGS += -DDHD_LOG_DUMP -DDHD_FW_COREDUMP
282
- DHDCFLAGS += -DWIFI_TURNON_USE_HALINIT
283
- DHDCFLAGS += -DDHD_PKT_LOGGING_DBGRING -DDHD_PKT_LOGGING
284
254
DHDCFLAGS += -DAPF -DNDO_CONFIG_SUPPORT -DRSSI_MONITOR_SUPPORT
285
255
DHDCFLAGS += -DDHD_WAKE_STATUS
286
- DHDCFLAGS += -DWL_LATENCY_MODE -DWL_USABLE_CHAN -DWL_SAR_TX_POWER
256
+ DHDCFLAGS += -DWL_SOFTAP_ACS
257
+ DHDCFLAGS += -DWL_LATENCY_MODE
287
258
DHDOFILES += dhd_rtt.o
288
259
DHDOFILES += dhd_log_dump.o
289
- DHDOFILES += dhd_pktlog.o
290
260
endif
291
261
else
292
262
DHDCFLAGS += -DANDROID_VERSION=0
@@ -350,7 +320,7 @@ ifneq ($(CONFIG_CFG80211),)
350
320
ifneq ($(CONFIG_BCMDHD_SDIO ) ,)
351
321
DHDCFLAGS += -DRXF_DEQUEUE_ON_BUSY
352
322
endif
353
- DHDCFLAGS += -DWL_STATIC_IF
323
+ # DHDCFLAGS += -DWL_STATIC_IF
354
324
endif
355
325
endif
356
326
@@ -393,8 +363,10 @@ endif
393
363
# For WAPI
394
364
ifeq ($(CONFIG_BCMDHD_WAPI ) ,y)
395
365
DHDCFLAGS += -DBCMWAPI_WPI -DBCMWAPI_WAI
366
+ ifeq ($(CONFIG_BCMDHD_ANDROID_VERSION ) ,11)
396
367
DHDCFLAGS += -DCFG80211_WAPI_BKPORT
397
368
endif
369
+ endif
398
370
399
371
# For scan random mac
400
372
ifneq ($(CONFIG_BCMDHD_RANDOM_MAC ) ,)
@@ -437,13 +409,12 @@ ifeq ($(CONFIG_BCMDHD_DTS),y)
437
409
endif
438
410
DHDCFLAGS += -DCUSTOMER_HW -DDHD_OF_SUPPORT
439
411
DHDCFLAGS += -DCUSTOMER_HW_ROCKCHIP
440
- DHDCFLAGS += -DBLOCK_IPV6_PACKET
412
+ # DHDCFLAGS += -DCUSTOMER_HW_ROCKCHIP_RK3588
441
413
DHDCFLAGS += -DBCM_USE_PLATFORM_STRLCPY
442
- # DHDCFLAGS += -DGET_CUSTOM_MAC_ENABLE
443
414
endif
444
415
445
416
ifneq ($(CONFIG_BCMDHD_PCIE ) ,)
446
- ifeq ($(CONFIG_PCIEASPM_ROCKCHIP_WIFI_EXTENSION ) ,y )
417
+ ifneq ($(filter -DCUSTOMER_HW_ROCKCHIP_RK3588, $( DHDCFLAGS ) ) , )
447
418
DHDCFLAGS += -DDHD_CONTROL_PCIE_ASPM_WIFI_TURNON
448
419
endif
449
420
endif
@@ -470,6 +441,10 @@ ifeq ($(CONFIG_BCMDHD_FW_SIGNATURE),y)
470
441
DHDCFLAGS += -DBL_HEAP_START_GAP_SIZE=0x1000 -DBL_HEAP_SIZE=0x10000
471
442
endif
472
443
444
+ ifeq ($(CONFIG_BCMDHD_AG ) ,y)
445
+ DHDCFLAGS += -DBAND_AG
446
+ endif
447
+
473
448
ifeq ($(CONFIG_DHD_USE_STATIC_BUF ) ,y)
474
449
ifeq ($(CONFIG_BCMDHD_STATIC_BUF_IN_DHD ) ,y)
475
450
DHDOFILES += dhd_static_buf.o
@@ -495,7 +470,7 @@ BCMDHD_ROOT = $(src)
495
470
# $(warning "BCMDHD_ROOT=$(BCMDHD_ROOT)")
496
471
EXTRA_CFLAGS = $(DHDCFLAGS )
497
472
EXTRA_CFLAGS += -DDHD_COMPILED=\"$(BCMDHD_ROOT ) \"
498
- EXTRA_CFLAGS += -I$(BCMDHD_ROOT ) /include/ -I$(BCMDHD_ROOT ) /
473
+ EXTRA_CFLAGS += -I$(srctree ) / $( BCMDHD_ROOT ) /include/ -I$( srctree ) / $(BCMDHD_ROOT ) /
499
474
ifeq ($(CONFIG_AP6XXX ) ,m)
500
475
EXTRA_LDFLAGS += --strip-debug
501
476
endif
0 commit comments