• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1##################### XRADIO Wi-Fi Config #######################
2CONFIG_XRMAC_RC_DEFAULT = "minstrel_ht"
3CONFIG_XRMAC_RC_PID = n
4CONFIG_XRMAC_RC_MINSTREL = y
5CONFIG_XRMAC_RC_MINSTREL_HT = y
6CONFIG_XRMAC_DEBUGFS = n
7CONFIG_XRADIO_SDIO = y
8CONFIG_XRADIO_NON_POWER_OF_TWO_BLOCKSIZES = y
9CONFIG_XRADIO_USE_GPIO_IRQ = y
10CONFIG_XRADIO_SUSPEND_POWER_OFF = n
11CONFIG_XRADIO_EXTEND_SUSPEND = n
12CONFIG_XRADIO_NOMAL_SUSPEND_FORCE = n
13CONFIG_XRADIO_DEBUG = y
14CONFIG_XRADIO_ETF = y
15CONFIG_XRADIO_DUMP_ON_ERROR = n
16CONFIG_XRADIO_DEBUGFS = y
17CONFIG_XRMAC_VERBOSE_DEBUG = y
18CONFIG_XRMAC_DRIVER_API_TRACER = y
19CONFIG_MODULE_NAME = xr829
20
21define boolen_flag
22$(strip $(if $(findstring $($(1)),$(2)),-D$(1)))
23endef
24
25define string_flag
26$(strip $(if $($(1)),-D$(1)=\"$($(1))\"))
27endef
28
29DRV_FLAGS += $(call string_flag,CONFIG_XRMAC_RC_DEFAULT)
30DRV_FLAGS += $(call boolen_flag,CONFIG_XRMAC_RC_PID,y)
31DRV_FLAGS += $(call boolen_flag,CONFIG_XRMAC_RC_MINSTREL,y)
32DRV_FLAGS += $(call boolen_flag,CONFIG_XRMAC_RC_MINSTREL_HT,y)
33DRV_FLAGS += $(call boolen_flag,CONFIG_XRMAC_DEBUGFS,y)
34DRV_FLAGS += $(call boolen_flag,CONFIG_XRMAC_VERBOSE_DEBUG,y)
35DRV_FLAGS += $(call boolen_flag,CONFIG_XRADIO_SDIO,y)
36DRV_FLAGS += $(call boolen_flag,CONFIG_XRADIO_NON_POWER_OF_TWO_BLOCKSIZES,y)
37DRV_FLAGS += $(call boolen_flag,CONFIG_XRADIO_USE_GPIO_IRQ,y)
38DRV_FLAGS += $(call boolen_flag,CONFIG_XRADIO_SUSPEND_POWER_OFF,y)
39DRV_FLAGS += $(call boolen_flag,CONFIG_XRADIO_EXTEND_SUSPEND,y)
40DRV_FLAGS += $(call boolen_flag,CONFIG_XRADIO_NOMAL_SUSPEND_FORCE,y)
41DRV_FLAGS += $(call boolen_flag,CONFIG_XRADIO_DEBUG,y)
42DRV_FLAGS += $(call boolen_flag,CONFIG_XRADIO_ETF,y)
43DRV_FLAGS += $(call boolen_flag,CONFIG_XRADIO_DUMP_ON_ERROR,y)
44DRV_FLAGS += $(call boolen_flag,CONFIG_XRADIO_DEBUGFS,y)
45
46ccflags-y += $(DRV_FLAGS)
47
48NOSTDINC_FLAGS := -I$(srctree)/$(src)/include/
49#NOSTDINC_FLAGS += -I$(srctree)/$(src)/include/uapi/
50
51ldflags-y += --strip-debug
52
53# xradio_mac objects
54xradio_mac-y := \
55	umac/main.o \
56	umac/status.o \
57	umac/sta_info.o \
58	umac/wep.o \
59	umac/wpa.o \
60	umac/scan.o \
61	umac/offchannel.o \
62	umac/ht.o \
63	umac/vht.o \
64	umac/he.o \
65	umac/agg-tx.o \
66	umac/agg-rx.o \
67	umac/ibss.o \
68	umac/mlme.o \
69	umac/iface.o \
70	umac/rate.o \
71	umac/michael.o \
72	umac/tkip.o \
73	umac/aead_api.o \
74	umac/aes_gmac.o \
75	umac/aes_cmac.o \
76	umac/fils_aead.o \
77	umac/cfg.o \
78	umac/rx.o \
79	umac/spectmgmt.o \
80	umac/tx.o \
81	umac/key.o \
82	umac/util.o \
83	umac/wme.o \
84	umac/chan.o \
85	umac/ethtool.o \
86	umac/ocb.o \
87	umac/tdls.o \
88	umac/trace.o \
89
90xradio_mac-$(CONFIG_XRMAC_LEDS) += umac/led.o
91xradio_mac-$(CONFIG_XRMAC_DEBUGFS) += \
92	umac/debugfs.o \
93	umac/debugfs_sta.o \
94	umac/debugfs_netdev.o \
95	umac/debugfs_key.o
96
97xradio_mac-$(CONFIG_XRMAC_MESH) += \
98	umac/mesh.o \
99	umac/mesh_pathtbl.o \
100	umac/mesh_plink.o \
101	umac/mesh_hwmp.o \
102	umac/mesh_ps.o \
103	umac/mesh_sync.o
104
105xradio_mac-$(CONFIG_PM) += umac/pm.o
106
107xradio_mac-$(CONFIG_XRMAC_DRIVER_API_TRACER) += umac/driver-ops.o
108CFLAGS_driver-trace.o := -I$(src)
109
110# objects for PID algorithm
111#rc80211_pid-y := umac/rc80211_pid_algo.o
112#rc80211_pid-$(CONFIG_XRMAC_DEBUGFS) += umac/rc80211_pid_debugfs.o
113
114rc80211_minstrel-y := umac/rc80211_minstrel.o
115rc80211_minstrel-$(CONFIG_XRMAC_DEBUGFS) += umac/rc80211_minstrel_debugfs.o
116
117rc80211_minstrel_ht-y := umac/rc80211_minstrel_ht.o
118rc80211_minstrel_ht-$(CONFIG_XRMAC_DEBUGFS) += umac/rc80211_minstrel_ht_debugfs.o
119
120#xradio_mac-$(CONFIG_XRMAC_RC_PID) += $(rc80211_pid-y)
121xradio_mac-$(CONFIG_XRMAC_RC_MINSTREL) += $(rc80211_minstrel-y)
122xradio_mac-$(CONFIG_XRMAC_RC_MINSTREL_HT) += $(rc80211_minstrel_ht-y)
123
124ccflags-y += -D__CHECK_ENDIAN__
125# Extra IE for probe response from upper layer is needed in P2P GO
126# For offloading probe response to FW, the extra IE must be included
127# in the probe response template
128ccflags-y += -DPROBE_RESP_EXTRA_IE
129ccflags-y += -DIPV6_FILTERING
130#ccflags-y += -DCONFIG_XRMAC_XR_ROAMING_CHANGES
131ccflags-y += -DUSE_RSSI_SMOOTH
132
133#This is use for old p2p mode, say yes to add P2P0 interface
134#ccflags-y += -DOLD_P2P_MODE
135
136######## xradio_core objects ########
137xradio_core-y := \
138	wlan/fwio.o \
139	wlan/txrx.o \
140	wlan/vendor.o \
141	wlan/main.o \
142	wlan/queue.o \
143	wlan/hwio.o \
144	wlan/bh.o \
145	wlan/wsm.o \
146	wlan/sta.o \
147	wlan/ap.o \
148	wlan/scan.o \
149	wlan/platform.o
150
151xradio_core-$(CONFIG_PM)            += wlan/pm.o
152xradio_core-$(CONFIG_XRADIO_SDIO)   += wlan/sdio.o
153xradio_core-$(CONFIG_XRADIO_DEBUG)  += wlan/debug.o
154xradio_core-$(CONFIG_XRADIO_ITP)    += wlan/itp.o
155xradio_core-$(CONFIG_XRADIO_ETF)    += wlan/etf.o
156
157$(CONFIG_MODULE_NAME)-y := $(xradio_mac-y)
158$(CONFIG_MODULE_NAME)-y += $(xradio_core-y)
159$(CONFIG_MODULE_NAME)-y += wlan/wlan_init.o
160
161obj-$(CONFIG_XR829_WLAN) += $(CONFIG_MODULE_NAME).o
162
163##=======  User Options =======
164## Mac addr config, disable hex for default.
165#ccflags-y += -DXRADIO_MACPARAM_HEX
166ccflags-y += -DMONITOR_MODE
167
168##======= Follows just for xradio internal, Don't change these macro if not ensure. =======
169ccflags-y += -DCONFIG_XRADIO_USE_EXTENSIONS
170ccflags-y += -DP2P_MULTIVIF
171ccflags-y += -DMCAST_FWDING
172ccflags-y += -DXRADIO_SUSPEND_RESUME_FILTER_ENABLE
173ccflags-y += -DAP_AGGREGATE_FW_FIX
174ccflags-y += -DAP_HT_CAP_UPDATE
175ccflags-y += -DAP_HT_COMPAT_FIX
176#ccflags-y += -DAP_ARP_COMPAT_FIX
177ccflags-y += -DENHANCE_ANTI_INTERFERE
178#ccflags-y += -DUSE_RSSI_OFFSET
179ccflags-y += -DSCAN_FAILED_WORKAROUND_OF_FW_EXCEPTION
180ccflags-y += -DHW_RESTART
181ccflags-y += -DHW_ERROR_WIFI_RESET
182
183## Use semaphore to sync bh txrx.
184#ccflags-y += -DBH_USE_SEMAPHORE
185ccflags-y += -DBH_PROC_THREAD
186ccflags-y += -DBH_COMINGRX_FORECAST
187#ccflags-y += -H
188
189# Modified for power save.
190#ccflags-y += -DXRADIO_USE_LONG_DTIM_PERIOD
191ccflags-y += -DXRADIO_USE_LONG_KEEP_ALIVE_PERIOD
192
193## Extra IE for probe response from upper layer is needed in P2P GO
194## For offloading probe response to FW, the extra IE must be included
195## in the probe response template
196ccflags-y += -DPROBE_RESP_EXTRA_IE
197ccflags-y += -DIPV6_FILTERING
198
199## Modified for P2P stability.
200ccflags-y += -DTES_P2P_0002_ROC_RESTART
201ccflags-y += -DTES_P2P_000B_EXTEND_INACTIVITY_CNT
202ccflags-y += -DTES_P2P_000B_DISABLE_EAPOL_FILTER
203
204## for chips.
205ccflags-y += -DSUPPORT_HT40
206ccflags-y += -DSUPPORT_EPTA
207ccflags-y += -DSUPPORT_DPLL_CHECK
208#ccflags-y += -DSUPPORT_NON_HT40_CHIP
209ccflags-y += -DBOOT_NOT_READY_FIX
210
211## for interal debug.
212#ccflags-y += -DSUPPORT_FW_DBG_INF
213#ccflags-y += -DERROR_HANG_DRIVER
214ccflags-y += -DQUEUE_GEN_IF_TABLE
215# Debug for hwx_BUG12:P2P setting crash
216ccflags-y += -DDEBUG_P2P_SETTING_CRASH
217
218EXTRA_CFLAGS += -Wno-error=date-time
219EXTRA_CFLAGS +=-Wno-date-time
220
221clean-files += Module.symvers Module.markers modules modules.order
222