2 ** $Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/include/precomp.h#2 $
6 \brief Collection of most compiler flags are described here.
8 In this file we collect all compiler flags and detail the driver behavior if
9 enable/disable such switch or adjust numeric parameters.
17 * 07 17 2012 yuche.tsai
19 * Compile no error before trial run.
21 * 01 05 2012 tsaiyuan.hsu
22 * [WCXRP00001157] [MT6620 Wi-Fi][FW][DRV] add timing measurement support for 802.11v
23 * add timing measurement support for 802.11v.
26 * [WCXRP00000851] [MT6628 Wi-Fi][Driver] Add HIFSYS related definition to driver source tree
27 * add MT6628-specific definitions.
30 * [WCXRP00000660] [MT6620 Wi-Fi][Driver] Remove flag CFG_WIFI_DIRECT_MOVED
31 * Remove flag CFG_WIFI_DIRECT_MOVED.
33 * 03 15 2011 eddie.chen
34 * [WCXRP00000554] [MT6620 Wi-Fi][DRV] Add sw control debug counter
35 * Add sw debug counter for QM.
37 * 01 27 2011 tsaiyuan.hsu
38 * [WCXRP00000392] [MT6620 Wi-Fi][Driver] Add Roaming Support
40 * 1. not support 11r, only use strength of signal to determine roaming.
41 * 2. not enable CFG_SUPPORT_ROAMING until completion of full test.
42 * 3. in 6620, adopt work-around to avoid sign extension problem of cck of hw
43 * 4. assume that change of link quality in smooth way.
46 * [WCXRP00000260] [MT6620 Wi-Fi][Driver][Firmware] Create V1.1 branch for both firmware and driver
47 * create branch for Wi-Fi driver v1.1
50 * [WCXRP00000083] [MT5931][Driver][FW] Add necessary logic for MT5931 first connection
51 * add firmware download for MT5931.
54 * [WCXRP00000056] [MT6620 Wi-Fi][Driver] NVRAM implementation with Version Check
55 * 1) add NVRAM access API
56 * 2) fake scanning result when NVRAM doesn't exist and/or version mismatch. (off by compiler option)
57 * 3) add OID implementation for NVRAM read/write service
59 * 09 21 2010 kevin.huang
60 * [WCXRP00000052] [MT6620 Wi-Fi][Driver] Eliminate Linux Compile Warning
61 * Isolate P2P related function for Hardware Software Bundle
63 * 09 14 2010 chinghwa.yu
65 * Fix BOW_FSM_INFO_T dependence.
67 * 09 03 2010 kevin.huang
69 * Refine #include sequence and solve recursive/nested #include issue
73 * adding the wapi code.
77 * [WPD00003833] [MT6620 and MT5931] Driver migration - move to new repository.
80 * [WPD00003841][LITE Driver] Migrate RLM/CNM to host driver
81 * Check draft RLM code for HT cap
84 * [WPD00003841][LITE Driver] Migrate RLM/CNM to host driver
85 * Modify CNM message handler for new flow
88 * [WPD00003841][LITE Driver] Migrate RLM/CNM to host driver
89 * 1st draft code for RLM module
92 * [WPD00003840][MT6620 5931] Security migration
93 * consdier the concurrent network setting.
96 * [WPD00003840][MT6620 5931] Security migration
97 * migration the security related function from firmware.
100 * [WPD00003840][MT6620 5931] Security migration
101 * migration from MT6620 firmware.
104 * [WPD00003833][MT6620 and MT5931] Driver migration
105 * add hem_mbox.c and cnm_mem.h (but disabled some feature) for further migration
108 * [WPD00003833][MT6620 and MT5931] Driver migration
109 * merge cnm_scan.h and hem_mbox.h
112 * [WPD00003833][MT6620 and MT5931] Driver migration
113 * merge wifi_var.h, precomp.h, cnm_timer.h (data type only)
115 * 06 06 2010 kevin.huang
116 * [WPD00003832][MT6620 5931] Create driver base
117 * [MT6620 5931] Create driver base
120 * [WPD00003831][MT6620 Wi-Fi] Add framework for Wi-Fi Direct support
121 * 1) add timeout handler mechanism for pending command packets
122 * 2) add p2p add/removal key
125 * [WPD00003823][MT6620 Wi-Fi] Add Bluetooth-over-Wi-Fi support
126 * add framework for BT-over-Wi-Fi support.
127 * * * * * * * * * * * 1) prPendingCmdInfo is replaced by queue for multiple handler capability
128 * * * * * * * * * * * 2) command sequence number is now increased atomically
129 * * * * * * * * * * * 3) private data could be hold and taken use for other purpose
132 * [WPD00003823][MT6620 Wi-Fi] Add Bluetooth-over-Wi-Fi support
133 * build up basic data structure and definitions to support BT-over-WiFi
136 * [WPD00001943]Create WiFi test driver framework on WinXP
137 * prepare for implementing fw download logic
140 * [WPD00003816][MT6620 Wi-Fi] Adding the security support
142 ** \main\maintrunk.MT6620WiFiDriver_Prj\9 2009-12-08 11:30:58 GMT mtk02752
143 ** add rftest.h for implementing RF test mode in driver land
144 ** \main\maintrunk.MT6620WiFiDriver_Prj\8 2009-11-23 22:02:00 GMT mtk02468
146 ** \main\maintrunk.MT6620WiFiDriver_Prj\7 2009-10-13 21:58:36 GMT mtk01084
147 ** update for new macro define
148 ** \main\maintrunk.MT6620WiFiDriver_Prj\6 2009-04-21 09:40:11 GMT mtk01461
149 ** Add nic_cmd_event.h
150 ** \main\maintrunk.MT6620WiFiDriver_Prj\5 2009-04-17 20:00:26 GMT mtk01461
152 ** \main\maintrunk.MT6620WiFiDriver_Prj\4 2009-03-19 18:32:44 GMT mtk01084
153 ** update for basic power management functions
154 ** \main\maintrunk.MT6620WiFiDriver_Prj\3 2009-03-16 09:08:25 GMT mtk01461
155 ** Update TX PATH API
156 ** \main\maintrunk.MT6620WiFiDriver_Prj\2 2009-03-10 20:11:38 GMT mtk01426
164 /*******************************************************************************
165 * C O M P I L E R F L A G S
166 ********************************************************************************
169 /*******************************************************************************
170 * E X T E R N A L R E F E R E N C E S
171 ********************************************************************************
173 #include "gl_os.h" // Include "config.h"
175 #if CFG_ENABLE_WIFI_DIRECT
176 #include "gl_p2p_os.h"
185 /*------------------------------------------------------------------------------
187 *------------------------------------------------------------------------------
189 #include "wlan_typedef.h"
193 /* Dependency: mac.h (MAC_ADDR_LEN) */
194 #include "wlan_def.h"
200 /*------------------------------------------------------------------------------
202 *------------------------------------------------------------------------------
204 /* Dependency: wlan_def.h (ENUM_NETWORK_TYPE_T) */
207 /* Dependency: mac.h (MAC_ADDR_LEN) */
208 #include "nic_cmd_event.h"
210 /* Dependency: nic_cmd_event.h (P_EVENT_CONNECTION_STATUS) */
213 #include "nic_init_cmd_event.h"
220 /* Dependency: hif_rx.h (P_HIF_RX_HEADER_T) */
225 #if CFG_ENABLE_WIFI_DIRECT
226 #include "p2p_typedef.h"
227 #include "p2p_cmd_buf.h"
228 #include "p2p_nic_cmd_event.h"
234 /*------------------------------------------------------------------------------
236 *------------------------------------------------------------------------------
239 #include "hem_mbox.h"
244 #include "wlan_lib.h"
245 #include "wlan_oid.h"
246 #include "wlan_bow.h"
248 #if CFG_ENABLE_WIFI_DIRECT
249 #include "wlan_p2p.h"
255 #include "mt6620_reg.h"
256 #elif defined(MT5931)
257 #include "mt5931_reg.h"
258 #elif defined(MT6628)
259 #include "mt6628_reg.h"
263 #include "rlm_domain.h"
264 #include "rlm_protection.h"
265 #include "rlm_obss.h"
267 #if CFG_SUPPORT_802_11V
273 #include "cnm_timer.h"
276 #if CFG_ENABLE_BT_OVER_WIFI
285 /* Dependency: aa_fsm.h (ENUM_AA_STATE_T), p2p_fsm.h (WPS_ATTRI_MAX_LEN_DEVICE_NAME) */
287 #include "cnm_scan.h"
290 #if CFG_ENABLE_WIFI_DIRECT
291 #include "p2p_rlm_obss.h"
295 #include "p2p_scan.h"
296 #include "p2p_state.h"
297 #include "p2p_func.h"
299 #include "p2p_assoc.h"
310 #if CFG_SUPPORT_ROAMING
311 #include "roaming_fsm.h"
312 #endif /* CFG_SUPPORT_ROAMING */
324 #if CFG_RSN_MIGRATION
333 /*------------------------------------------------------------------------------
335 *------------------------------------------------------------------------------
337 #include "CFG_Wifi_File.h"
339 #if CFG_ENABLE_WIFI_DIRECT
340 #include "gl_p2p_kal.h"
343 /*******************************************************************************
345 ********************************************************************************
348 /*******************************************************************************
350 ********************************************************************************
353 /*******************************************************************************
354 * P U B L I C D A T A
355 ********************************************************************************
358 /*******************************************************************************
359 * P R I V A T E D A T A
360 ********************************************************************************
363 /*******************************************************************************
365 ********************************************************************************
368 /*******************************************************************************
369 * F U N C T I O N D E C L A R A T I O N S
370 ********************************************************************************
373 /*******************************************************************************
375 ********************************************************************************
378 #endif /* _PRECOMP_H */