hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
 
KVERSION="`uname -r`"
#DRVPATH=/lib/modules/$(KVERSION)/kernel/drivers/net/wireless/ssv6200
DRVPATH=kernel/drivers/net/wireless/ssv6200
KCFLAG += -Werror
EXTRA_CFLAGS := -I$(KBUILD_TOP) -I$(KBUILD_TOP)/include
 
CONFIG_SSV6200_CORE=m
#ccflags-y += -DCONFIG_SSV6200_CORE
 
###########################################################################
# Compiler options                                                        #
###########################################################################
ccflags-y += -Werror
 
# Enable -g to help debug. Deassembly from .o to .S would help to track to 
# the problomatic line from call stack dump.
ccflags-y += -g
 
############################################################
# If you change the settings, please change the file synchronization
# smac\firmware\include\config.h & compiler firmware
############################################################
#ccflags-y += -DCONFIG_SSV_CABRIO_A
#ccflags-y += -DSDIO_USE_SLOW_CLOCK
ccflags-y += -DCONFIG_SSV_CABRIO_E
 
#CONFIG_SSV_SUPPORT_BTCX=y
 
ccflags-y += -DCONFIG_SSV6200_CLI_ENABLE
 
#ccflags-y += -DCONFIG_SSV_BUILD_AS_ONE_KO
 
 
############################################################
# Options should be able to set as parameters.             #
############################################################
 
#PADPD
#ccflags-y += -DCONFIG_SSV_DPD
 
#ccflags-y += -DCONFIG_SSV_CABRIO_MB_DEBUG
ccflags-y += -DCONFIG_SSV6XXX_DEBUGFS
 
#SDIO
ccflags-y += -DCONFIG_SSV_TX_LOWTHRESHOLD
 
############################################################
# Rate control update for MPDU.
############################################################
ccflags-y += -DRATE_CONTROL_REALTIME_UPDATA
 
#workaround
#ccflags-y += -DCONFIG_SSV_CABRIO_EXT_PA
 
############################################################
# NOTE:
#    Only one of the following flags could be turned on.
# It also turned off the following flags. In this case, 
# pure software security or pure hardware security is used.
#
############################################################
#ccflags-y += -DCONFIG_SSV_SW_ENCRYPT_HW_DECRYPT
#ccflags-y += -DCONFIG_SSV_HW_ENCRYPT_SW_DECRYPT
 
# FOR WFA
#ccflags-y += -DWIFI_CERTIFIED
 
#ccflags-y += -DCONFIG_SSV_SDIO_EXT_INT
 
#######################################################
ccflags-y += -DCONFIG_SSV6200_HAS_RX_WORKQUEUE
#ccflags-y += -DUSE_THREAD_RX
ccflags-y += -DUSE_THREAD_TX
ccflags-y += -DENABLE_AGGREGATE_IN_TIME
ccflags-y += -DENABLE_INCREMENTAL_AGGREGATION
 
# Generic decision table applicable to both AP and STA modes.
ccflags-y += -DUSE_GENERIC_DECI_TBL
 
# Use crypto in SSV driver.
ccflags-y += -DUSE_LOCAL_CRYPTO
ccflags-y += -DUSE_LOCAL_WEP_CRYPTO
ccflags-y += -DUSE_LOCAL_TKIP_CRYPTO
ccflags-y += -DUSE_LOCAL_CCMP_CRYPTO
ccflags-y += -DUSE_LOCAL_SMS4_CRYPTO
 
ccflags-y += -DCONFIG_SSV_WAPI
 
ccflags-y += -DMULTI_THREAD_ENCRYPT
ccflags-y += -DKTHREAD_BIND
ccflags-y += -DFW_WSID_WATCH_LIST
#ccflags-y += -DUSE_BATCH_RX
#ccflags-y += -DCONFIG_IRQ_DEBUG_COUNT
#ccflags-y += -DCONFIG_SSV_SUPPORT_AES_ASM
 
 
ccflags-y += -DSSV6200_ECO
#ccflags-y += -DENABLE_WAKE_IO_ISR_WHEN_HCI_ENQUEUE
ccflags-y += -DHAS_CRYPTO_LOCK
ccflags-y += -DENABLE_TX_Q_FLOW_CONTROL
 
#ccflags-y += -DCONFIG_DEBUG_SKB_TIMESTAMP
 
 
###########################################################
# option to :qswitch driver between relay device and sw mac device
# Enable ->Relay device    (CHAR)
# Disable->SW MAC device(NET)
 
#DRV_OPT = HUW_DRV
#For HUW to define some resources
ifeq ($(DRV_OPT), HUW_DRV)
ccflags-y += -DHUW_DRV
endif
 
#enable p2p client to parse GO broadcast noa
#ccflags-y += -DCONFIG_P2P_NOA
 
#enable rx management frame check
#ccflags-y += -DCONFIG_RX_MGMT_CHECK
 
ccflags-y += -DCONFIG_SSV_RSSI