1 //------------------------------------------------------------------------------
2 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved.
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.
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.
18 //------------------------------------------------------------------------------
19 //==============================================================================
20 // This file contains the tunable configuration items for the WLAN module
22 // Author(s): ="Atheros"
23 //==============================================================================
24 #ifndef _HOST_WLAN_CONFIG_H_
25 #define _HOST_WLAN_CONFIG_H_
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.
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.
35 #define WLAN_CONFIG_DONOT_IGNORE_BARKER_IN_ERP 0
37 /* This config item when defined will not send the power module state transition
38 * failure events that happen during scan, to the host.
40 #define WLAN_CONFIG_IGNORE_POWER_SAVE_FAIL_EVENT_DURING_SCAN 0
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
50 #define WLAN_CONFIG_KEEP_ALIVE_INTERVAL 60
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
60 #define WLAN_CONFIG_DISCONNECT_TIMEOUT 3
62 #define WLAN_CONFIG_DISCONNECT_TIMEOUT 10
63 #endif /* ANDROID_ENV */
66 * This configuration item disables 11n support.
70 #define WLAN_CONFIG_DISABLE_11N 0
73 * This configuration item enable BT clock sharing support
75 * 0 - Disable (Default)
77 #define WLAN_CONFIG_BT_SHARING 0
80 * This configuration item sets WIFI OFF policy
82 * 1 - DEEP_SLEEP (Default)
84 #define WLAN_CONFIG_WLAN_OFF 1
87 * This configuration item sets suspend policy
88 * 0 - CUT_POWER (Default)
91 * 3 - CUT_POWER if BT OFF (clock sharing designs only)
93 #define WLAN_CONFIG_PM_SUSPEND 0
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)
101 * 3 - CUT_POWER if BT OFF (clock sharing designs only)
103 #define WLAN_CONFIG_PM_WOW2 0
106 * Platform specific function to power ON/OFF AR6000
107 * and enable/disable SDIO card detection
109 #define plat_setup_power(on, detect)
111 #endif /* _HOST_WLAN_CONFIG_H_ */