1
1
# bcmdhd
2
2
#
3
- # Copyright (C) 2023, Broadcom.
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.
4
23
#
5
24
# Unless you and Broadcom execute a separate written software license
6
25
# agreement governing use of this software, this software is licensed to you
@@ -31,10 +50,9 @@ CONFIG_BCMDHD_OOB := y
31
50
# CONFIG_BCMDHD_CUSB := y
32
51
# CONFIG_BCMDHD_NO_POWER_OFF := y
33
52
CONFIG_BCMDHD_PROPTXSTATUS := y
34
- CONFIG_BCMDHD_AG := y
35
53
CONFIG_DHD_USE_STATIC_BUF := y
36
54
CONFIG_BCMDHD_STATIC_BUF_IN_DHD := y
37
- # CONFIG_BCMDHD_ANDROID_VERSION := 14
55
+ CONFIG_BCMDHD_ANDROID_VERSION := 14
38
56
CONFIG_BCMDHD_AUTO_SELECT := y
39
57
CONFIG_BCMDHD_DEBUG := y
40
58
# CONFIG_BCMDHD_RECONNECT := y
@@ -62,7 +80,7 @@ DHDCFLAGS = -Wall -Wstrict-prototypes -Wno-date-time -Wno-strict-prototypes \
62
80
-DKEEP_ALIVE -DPKT_FILTER_SUPPORT -DDHDTCPACK_SUPPRESS \
63
81
-DDHD_DONOT_FORWARD_BCMEVENT_AS_NETWORK_PKT -DOEM_ANDROID \
64
82
-DMULTIPLE_SUPPLICANT -DTSQ_MULTIPLIER -DMFP -DDHD_8021X_DUMP \
65
- -DPOWERUP_MAX_RETRY=0 -DIFACE_HANG_FORCE_DEV_CLOSE -DWAIT_DEQUEUE \
83
+ -DPOWERUP_MAX_RETRY=1 -DIFACE_HANG_FORCE_DEV_CLOSE -DWAIT_DEQUEUE \
66
84
-DUSE_NEW_RSPEC_DEFS \
67
85
-DWL_EXT_IAPSTA -DWL_ESCAN -DCCODE_LIST -DSUSPEND_EVENT \
68
86
-DKEY_INSTALL_CHECK \
@@ -90,7 +108,11 @@ ifneq ($(CONFIG_CFG80211),)
90
108
DHDOFILES += dhd_cfg80211.o wl_cfgvif.o wl_roam.o
91
109
DHDCFLAGS += -DWL_CFG80211 -DWLP2P -DWL_CFG80211_STA_EVENT
92
110
DHDCFLAGS += -DWL_CFG80211_GON_COLLISION
93
- DHDCFLAGS += -DWL_CAP_HE -DWL_6G_BAND -DWL_5P9G
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
94
116
# DHDCFLAGS += -DCONFIG_6GHZ_BKPORT
95
117
DHDCFLAGS += -DWL_IFACE_COMB_NUM_CHANNELS
96
118
DHDCFLAGS += -DCUSTOM_PNO_EVENT_LOCK_xTIME=10
@@ -99,21 +121,24 @@ ifneq ($(CONFIG_CFG80211),)
99
121
DHDCFLAGS += -DESCAN_RESULT_PATCH -DESCAN_BUF_OVERFLOW_MGMT
100
122
DHDCFLAGS += -DVSDB -DWL_CFG80211_VSDB_PRIORITIZE_SCAN_REQUEST
101
123
DHDCFLAGS += -DWLTDLS -DMIRACAST_AMPDU_SIZE=8
102
- # DHDCFLAGS += -DHOSTAPD_BW_SUPPORT
103
- DHDCFLAGS += -DWL_VIRTUAL_APSTA -DSTA_MGMT -DSOFTAP_UAPSD_OFF
104
- DHDCFLAGS += -DWL_SOFTAP_ACS
124
+ # DHDCFLAGS += -DHOSTAPD_BW_SUPPORT
125
+ DHDCFLAGS += -DWL_VIRTUAL_APSTA -DSOFTAP_UAPSD_OFF # -DSTA_MGMT
126
+ DHDCFLAGS += -DWL_SOFTAP_ACS # -DACS_MONITOR
105
127
DHDCFLAGS += -DNUM_SCB_MAX_PROBE=3
106
128
DHDCFLAGS += -DWL_SCB_TIMEOUT=10
129
+ # DHDCFLAGS += -DWL_BEACON_RATE
107
130
DHDCFLAGS += -DEXPLICIT_DISCIF_CLEANUP
108
- DHDCFLAGS += -DDHD_USE_SCAN_WAKELOCK
131
+ DHDCFLAGS += -DDHD_USE_SCAN_WAKELOCK # DHD_DEBUG_SCAN_WAKELOCK
109
132
DHDCFLAGS += -DSPECIFIC_MAC_GEN_SCHEME
110
133
DHDCFLAGS += -DWL_IFACE_MGMT
111
134
DHDCFLAGS += -DSUPPORT_RSSI_SUM_REPORT
112
135
DHDCFLAGS += -DWLFBT -DWL_GCMP_SUPPORT -DWL_OWE -DWL_SAE_FT
113
136
DHDCFLAGS += -DROAM_CHANNEL_CACHE -DDHD_LOSSLESS_ROAMING
137
+ # DHDCFLAGS += -DWL_SKIP_CONNECT_HINTS
114
138
# DHDCFLAGS += -DWL_CFGVENDOR_SEND_HANG_EVENT
115
139
DHDCFLAGS += -DGTK_OFFLOAD_SUPPORT
116
- # DHDCFLAGS += -DWL_STATIC_IF #-DDHD_MAX_STATIC_IFS=2
140
+ # DHDCFLAGS += -DWL_STATIC_IF #-DDHD_MAX_STATIC_IFS=2
141
+ # DHDCFLAGS += -DWL_STATIC_IFNAME_PREFIX=\"sap%d\"
117
142
DHDCFLAGS += -DWL_CLIENT_SAE
118
143
DHDCFLAGS += -DCONNECT_INFO_WAR -DWL_ROAM_WAR
119
144
DHDCFLAGS += -DVNDR_IE_WAR
@@ -125,11 +150,12 @@ ifneq ($(CONFIG_BCMDHD_SDIO),)
125
150
BUS_TYPE := sdio
126
151
DHDCFLAGS += -DBCMSDIO -DMMC_SDIO_ABORT -DUSE_SDIOFIFO_IOVAR -DBCMLXSDMMC \
127
152
-DSDTEST -DBDC -DDHD_USE_IDLECOUNT -DCUSTOM_SDIO_F2_BLKSIZE=256 \
128
- -DBCMSDIOH_TXGLOM -DBCMSDIOH_TXGLOM_EXT -DBCMSDIOH_STATIC_COPY_BUF \
153
+ -DBCMSDIOH_TXGLOM -DDHD_SI_WD_RESET -DBCMSDIOH_STATIC_COPY_BUF \
129
154
-DRXFRAME_THREAD -DDHDENABLE_TAILPAD -DSUPPORT_P2P_GO_PS \
130
155
-DBCMSDIO_RXLIM_POST -DBCMSDIO_TXSEQ_SYNC -DCONSOLE_DPC \
131
156
-DBCMSDIO_INTSTATUS_WAR
132
157
DHDCFLAGS += -DMMC_HW_RESET # -DMMC_SW_RESET #-DBUS_POWER_RESTORE
158
+ # DHDCFLAGS += -DDEVICE_PM_CALLBACK
133
159
ifeq ($(CONFIG_BCMDHD_OOB ) ,y)
134
160
DHDCFLAGS += -DOOB_INTR_ONLY -DCUSTOMER_OOB -DHW_OOB
135
161
ifeq ($(CONFIG_BCMDHD_DISABLE_WOWLAN ) ,y)
@@ -150,6 +176,7 @@ BUS_TYPE := pcie
150
176
DHDCFLAGS += -DDHD_LB -DDHD_LB_RXP -DDHD_LB_STATS -DDHD_LB_TXP
151
177
DHDCFLAGS += -DDHD_LB_PRIMARY_CPUS=0xF0 -DDHD_LB_SECONDARY_CPUS=0x0E
152
178
# DHDCFLAGS += -DDHD_PKTID_AUDIT_ENABLED
179
+ DHDCFLAGS += -DBCMPCIE_CTO_PREVENTION
153
180
DHDCFLAGS += -DEAPOL_PKT_PRIO -DENABLE_DHD_GRO
154
181
DHDCFLAGS += -DDHD_SKIP_DONGLE_RESET_IN_ATTACH
155
182
DHDCFLAGS += -DDHD_DONGLE_TRAP_IN_DETACH
@@ -234,8 +261,8 @@ endif
234
261
endif
235
262
236
263
ifeq ($(CONFIG_64BIT ) ,y)
237
- DHDCFLAGS := $(filter-out -DBCMDMA32,$(DHDCFLAGS ) )
238
- DHDCFLAGS += -DBCMDMA64OSL
264
+ DHDCFLAGS := $(filter-out -DBCMDMA32,$(DHDCFLAGS))
265
+ DHDCFLAGS += -DBCMDMA64OSL
239
266
endif
240
267
241
268
# For Android VTS
@@ -245,19 +272,21 @@ ifneq ($(CONFIG_BCMDHD_ANDROID_VERSION),)
245
272
DHDCFLAGS += -DANDROID_BKPORT
246
273
ifneq ($(CONFIG_CFG80211 ) ,)
247
274
DHDCFLAGS += -DPNO_SUPPORT
248
- DHDCFLAGS += -DWL_SCHED_SCAN
275
+ DHDCFLAGS += -DWL_SCHED_SCAN
249
276
DHDCFLAGS += -DWL_P2P_RAND
250
277
DHDCFLAGS += -DGSCAN_SUPPORT -DRTT_SUPPORT
251
278
DHDCFLAGS += -DLINKSTAT_SUPPORT -DLINKSTAT_EXT_SUPPORT
252
279
DHDCFLAGS += -DCUSTOM_COUNTRY_CODE -DDHD_GET_VALID_CHANNELS
253
- DHDCFLAGS += -DDEBUGABILITY -DDEBUGABILITY_DISABLE_MEMDUMP -DDBG_PKT_MON
280
+ DHDCFLAGS += -DDEBUGABILITY -DDBG_PKT_MON -DDEBUGABILITY_DISABLE_MEMDUMP
254
281
DHDCFLAGS += -DDHD_LOG_DUMP -DDHD_FW_COREDUMP
255
- # DHDCFLAGS += -DDHD_PKT_LOGGING_DBGRING
282
+ DHDCFLAGS += -DWIFI_TURNON_USE_HALINIT
283
+ DHDCFLAGS += -DDHD_PKT_LOGGING_DBGRING -DDHD_PKT_LOGGING
256
284
DHDCFLAGS += -DAPF -DNDO_CONFIG_SUPPORT -DRSSI_MONITOR_SUPPORT
257
285
DHDCFLAGS += -DDHD_WAKE_STATUS
258
- DHDCFLAGS += -DWL_LATENCY_MODE
286
+ DHDCFLAGS += -DWL_LATENCY_MODE -DWL_USABLE_CHAN -DWL_SAR_TX_POWER
259
287
DHDOFILES += dhd_rtt.o
260
288
DHDOFILES += dhd_log_dump.o
289
+ DHDOFILES += dhd_pktlog.o
261
290
endif
262
291
else
263
292
DHDCFLAGS += -DANDROID_VERSION=0
@@ -321,7 +350,7 @@ ifneq ($(CONFIG_CFG80211),)
321
350
ifneq ($(CONFIG_BCMDHD_SDIO ) ,)
322
351
DHDCFLAGS += -DRXF_DEQUEUE_ON_BUSY
323
352
endif
324
- # DHDCFLAGS += -DWL_STATIC_IF
353
+ DHDCFLAGS += -DWL_STATIC_IF
325
354
endif
326
355
endif
327
356
@@ -364,10 +393,8 @@ endif
364
393
# For WAPI
365
394
ifeq ($(CONFIG_BCMDHD_WAPI ) ,y)
366
395
DHDCFLAGS += -DBCMWAPI_WPI -DBCMWAPI_WAI
367
- ifeq ($(CONFIG_BCMDHD_ANDROID_VERSION ) ,11)
368
396
DHDCFLAGS += -DCFG80211_WAPI_BKPORT
369
397
endif
370
- endif
371
398
372
399
# For scan random mac
373
400
ifneq ($(CONFIG_BCMDHD_RANDOM_MAC ) ,)
@@ -410,12 +437,13 @@ ifeq ($(CONFIG_BCMDHD_DTS),y)
410
437
endif
411
438
DHDCFLAGS += -DCUSTOMER_HW -DDHD_OF_SUPPORT
412
439
DHDCFLAGS += -DCUSTOMER_HW_ROCKCHIP
413
- # DHDCFLAGS += -DCUSTOMER_HW_ROCKCHIP_RK3588
440
+ DHDCFLAGS += -DBLOCK_IPV6_PACKET
414
441
DHDCFLAGS += -DBCM_USE_PLATFORM_STRLCPY
442
+ # DHDCFLAGS += -DGET_CUSTOM_MAC_ENABLE
415
443
endif
416
444
417
445
ifneq ($(CONFIG_BCMDHD_PCIE ) ,)
418
- ifneq ($(filter -DCUSTOMER_HW_ROCKCHIP_RK3588, $( DHDCFLAGS ) ) , )
446
+ ifeq ($(CONFIG_PCIEASPM_ROCKCHIP_WIFI_EXTENSION ) ,y )
419
447
DHDCFLAGS += -DDHD_CONTROL_PCIE_ASPM_WIFI_TURNON
420
448
endif
421
449
endif
@@ -442,10 +470,6 @@ ifeq ($(CONFIG_BCMDHD_FW_SIGNATURE),y)
442
470
DHDCFLAGS += -DBL_HEAP_START_GAP_SIZE=0x1000 -DBL_HEAP_SIZE=0x10000
443
471
endif
444
472
445
- ifeq ($(CONFIG_BCMDHD_AG ) ,y)
446
- DHDCFLAGS += -DBAND_AG
447
- endif
448
-
449
473
ifeq ($(CONFIG_DHD_USE_STATIC_BUF ) ,y)
450
474
ifeq ($(CONFIG_BCMDHD_STATIC_BUF_IN_DHD ) ,y)
451
475
DHDOFILES += dhd_static_buf.o
0 commit comments