OLD | NEW |
1 //------------------------------------------------------------------------------ | 1 //------------------------------------------------------------------------------ |
2 // <copyright file="wlan_config.h" company="Atheros"> | 2 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved. |
3 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved. | |
4 // | 3 // |
5 // This program is free software; you can redistribute it and/or modify | |
6 // it under the terms of the GNU General Public License version 2 as | |
7 // published by the Free Software Foundation; | |
8 // | 4 // |
9 // Software distributed under the License is distributed on an "AS | 5 // Permission to use, copy, modify, and/or distribute this software for any |
10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | 6 // purpose with or without fee is hereby granted, provided that the above |
11 // implied. See the License for the specific language governing | 7 // copyright notice and this permission notice appear in all copies. |
12 // rights and limitations under the License. | 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. |
13 // | 16 // |
14 // | 17 // |
15 //------------------------------------------------------------------------------ | 18 //------------------------------------------------------------------------------ |
16 //============================================================================== | 19 //============================================================================== |
17 // This file contains the tunable configuration items for the WLAN module | 20 // This file contains the tunable configuration items for the WLAN module |
18 // | 21 // |
19 // Author(s): ="Atheros" | 22 // Author(s): ="Atheros" |
20 //============================================================================== | 23 //============================================================================== |
21 #ifndef _HOST_WLAN_CONFIG_H_ | 24 #ifndef _HOST_WLAN_CONFIG_H_ |
22 #define _HOST_WLAN_CONFIG_H_ | 25 #define _HOST_WLAN_CONFIG_H_ |
(...skipping 16 matching lines...) Expand all Loading... |
39 /* | 42 /* |
40 * This configuration item enable/disable keepalive support. | 43 * This configuration item enable/disable keepalive support. |
41 * Keepalive support: In the absence of any data traffic to AP, null | 44 * Keepalive support: In the absence of any data traffic to AP, null |
42 * frames will be sent to the AP at periodic interval, to keep the association | 45 * frames will be sent to the AP at periodic interval, to keep the association |
43 * active. This configuration item defines the periodic interval. | 46 * active. This configuration item defines the periodic interval. |
44 * Use value of zero to disable keepalive support | 47 * Use value of zero to disable keepalive support |
45 * Default: 60 seconds | 48 * Default: 60 seconds |
46 */ | 49 */ |
47 #define WLAN_CONFIG_KEEP_ALIVE_INTERVAL 60 | 50 #define WLAN_CONFIG_KEEP_ALIVE_INTERVAL 60 |
48 | 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) |
49 | 110 |
50 #endif /* _HOST_WLAN_CONFIG_H_ */ | 111 #endif /* _HOST_WLAN_CONFIG_H_ */ |
OLD | NEW |