Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelv...
[pandora-kernel.git] / drivers / staging / ath6kl / os / linux / include / wlan_config.h
1 //------------------------------------------------------------------------------
2 // Copyright (c) 2004-2010 Atheros Corporation.  All rights reserved.
3 // 
4 //
5 // Permission to use, copy, modify, and/or distribute this software for any
6 // purpose with or without fee is hereby granted, provided that the above
7 // copyright notice and this permission notice appear in all copies.
8 //
9 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 //
17 //
18 //------------------------------------------------------------------------------
19 //==============================================================================
20 // This file contains the tunable configuration items for the WLAN module
21 //
22 // Author(s): ="Atheros"
23 //==============================================================================
24 #ifndef _HOST_WLAN_CONFIG_H_
25 #define _HOST_WLAN_CONFIG_H_
26
27 /* Include definitions here that can be used to tune the WLAN module behavior.
28  * Different customers can tune the behavior as per their needs, here. 
29  */
30
31 /* This configuration item when defined will consider the barker preamble 
32  * mentioned in the ERP IE of the beacons from the AP to determine the short 
33  * preamble support sent in the (Re)Assoc request frames.
34  */
35 #define WLAN_CONFIG_DONOT_IGNORE_BARKER_IN_ERP 0
36
37 /* This config item when defined will not send the power module state transition
38  * failure events that happen during scan, to the host. 
39  */
40 #define WLAN_CONFIG_IGNORE_POWER_SAVE_FAIL_EVENT_DURING_SCAN 0
41
42 /*
43  * This configuration item enable/disable keepalive support.
44  * Keepalive support: In the absence of any data traffic to AP, null 
45  * frames will be sent to the AP at periodic interval, to keep the association
46  * active. This configuration item defines the periodic interval.
47  * Use value of zero to disable keepalive support
48  * Default: 60 seconds
49  */
50 #define WLAN_CONFIG_KEEP_ALIVE_INTERVAL 60 
51
52 /*
53  * This configuration item sets the value of disconnect timeout
54  * Firmware delays sending the disconnec event to the host for this
55  * timeout after is gets disconnected from the current AP.
56  * If the firmware successly roams within the disconnect timeout
57  * it sends a new connect event
58  */
59 #ifdef ANDROID_ENV
60 #define WLAN_CONFIG_DISCONNECT_TIMEOUT 3
61 #else
62 #define WLAN_CONFIG_DISCONNECT_TIMEOUT 10
63 #endif /* ANDROID_ENV */ 
64
65 /*
66  * This configuration item disables 11n support. 
67  * 0 - Enable
68  * 1 - Disable
69  */
70 #define WLAN_CONFIG_DISABLE_11N         0
71
72 /*
73  * This configuration item enable BT clock sharing support
74  * 1 - Enable
75  * 0 - Disable (Default)
76  */
77 #define WLAN_CONFIG_BT_SHARING          0
78
79 /*
80  * This configuration item sets WIFI OFF policy
81  * 0 - CUT_POWER
82  * 1 - DEEP_SLEEP (Default)
83  */
84 #define WLAN_CONFIG_WLAN_OFF                1
85
86 /*
87  * This configuration item sets suspend policy
88  * 0 - CUT_POWER (Default)
89  * 1 - DEEP_SLEEP
90  * 2 - WoW
91  * 3 - CUT_POWER if BT OFF (clock sharing designs only)
92  */
93 #define WLAN_CONFIG_PM_SUSPEND              0
94
95 /*
96  * This configuration item sets suspend policy to use if PM_SUSPEND is
97  * set to WoW and device is not connected at the time of suspend
98  * 0 - CUT_POWER (Default)
99  * 1 - DEEP_SLEEP
100  * 2 - WoW
101  * 3 - CUT_POWER if BT OFF (clock sharing designs only)
102  */
103 #define WLAN_CONFIG_PM_WOW2                 0
104
105 /*
106  * Platform specific function to power ON/OFF AR6000 
107  * and enable/disable SDIO card detection
108  */
109 #define plat_setup_power(on, detect)
110
111 #endif /* _HOST_WLAN_CONFIG_H_ */