Merge branch 'sh-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal...
[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 #define WLAN_CONFIG_DISCONNECT_TIMEOUT 10
60
61 /*
62  * This configuration item disables 11n support. 
63  * 0 - Enable
64  * 1 - Disable
65  */
66 #define WLAN_CONFIG_DISABLE_11N         0
67
68 /*
69  * This configuration item enable BT clock sharing support
70  * 1 - Enable
71  * 0 - Disable (Default)
72  */
73 #define WLAN_CONFIG_BT_SHARING          0
74
75 /*
76  * This configuration item sets WIFI OFF policy
77  * 0 - CUT_POWER
78  * 1 - DEEP_SLEEP (Default)
79  */
80 #define WLAN_CONFIG_WLAN_OFF                1
81
82 /*
83  * This configuration item sets suspend policy
84  * 0 - CUT_POWER (Default)
85  * 1 - DEEP_SLEEP
86  * 2 - WoW
87  * 3 - CUT_POWER if BT OFF (clock sharing designs only)
88  */
89 #define WLAN_CONFIG_PM_SUSPEND              0
90
91 /*
92  * This configuration item sets suspend policy to use if PM_SUSPEND is
93  * set to WoW and device is not connected at the time of suspend
94  * 0 - CUT_POWER (Default)
95  * 1 - DEEP_SLEEP
96  * 2 - WoW
97  * 3 - CUT_POWER if BT OFF (clock sharing designs only)
98  */
99 #define WLAN_CONFIG_PM_WOW2                 0
100
101 /*
102  * This configuration item enables/disables transmit bursting 
103  * 0 - Enable tx Bursting (default)
104  * 1 - Disable tx bursting 
105  */
106 #define WLAN_CONFIG_DISABLE_TX_BURSTING     0
107
108 #endif /* _HOST_WLAN_CONFIG_H_ */