Index: chromeos/drivers/ath6kl/os/linux/include/wlan_config.h |
diff --git a/chromeos/drivers/ath6kl/os/linux/include/wlan_config.h b/chromeos/drivers/ath6kl/os/linux/include/wlan_config.h |
index 97e090f95481021a9be66c1abd1d7d0b7062ffeb..f7d048722226927b40aab690481bbd0ee6667979 100644 |
--- a/chromeos/drivers/ath6kl/os/linux/include/wlan_config.h |
+++ b/chromeos/drivers/ath6kl/os/linux/include/wlan_config.h |
@@ -1,15 +1,18 @@ |
//------------------------------------------------------------------------------ |
-// <copyright file="wlan_config.h" company="Atheros"> |
-// Copyright (c) 2004-2010 Atheros Corporation. All rights reserved. |
+// Copyright (c) 2004-2010 Atheros Corporation. All rights reserved. |
// |
-// This program is free software; you can redistribute it and/or modify |
-// it under the terms of the GNU General Public License version 2 as |
-// published by the Free Software Foundation; |
// |
-// Software distributed under the License is distributed on an "AS |
-// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
-// implied. See the License for the specific language governing |
-// rights and limitations under the License. |
+// Permission to use, copy, modify, and/or distribute this software for any |
+// purpose with or without fee is hereby granted, provided that the above |
+// copyright notice and this permission notice appear in all copies. |
+// |
+// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
+// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
+// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
+// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
+// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
+// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
+// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
// |
// |
//------------------------------------------------------------------------------ |
@@ -46,5 +49,63 @@ |
*/ |
#define WLAN_CONFIG_KEEP_ALIVE_INTERVAL 60 |
+/* |
+ * This configuration item sets the value of disconnect timeout |
+ * Firmware delays sending the disconnec event to the host for this |
+ * timeout after is gets disconnected from the current AP. |
+ * If the firmware successly roams within the disconnect timeout |
+ * it sends a new connect event |
+ */ |
+#ifdef ANDROID_ENV |
+#define WLAN_CONFIG_DISCONNECT_TIMEOUT 3 |
+#else |
+#define WLAN_CONFIG_DISCONNECT_TIMEOUT 10 |
+#endif /* ANDROID_ENV */ |
+ |
+/* |
+ * This configuration item disables 11n support. |
+ * 0 - Enable |
+ * 1 - Disable |
+ */ |
+#define WLAN_CONFIG_DISABLE_11N 0 |
+ |
+/* |
+ * This configuration item enable BT clock sharing support |
+ * 1 - Enable |
+ * 0 - Disable (Default) |
+ */ |
+#define WLAN_CONFIG_BT_SHARING 0 |
+ |
+/* |
+ * This configuration item sets WIFI OFF policy |
+ * 0 - CUT_POWER |
+ * 1 - DEEP_SLEEP (Default) |
+ */ |
+#define WLAN_CONFIG_WLAN_OFF 1 |
+ |
+/* |
+ * This configuration item sets suspend policy |
+ * 0 - CUT_POWER (Default) |
+ * 1 - DEEP_SLEEP |
+ * 2 - WoW |
+ * 3 - CUT_POWER if BT OFF (clock sharing designs only) |
+ */ |
+#define WLAN_CONFIG_PM_SUSPEND 0 |
+ |
+/* |
+ * This configuration item sets suspend policy to use if PM_SUSPEND is |
+ * set to WoW and device is not connected at the time of suspend |
+ * 0 - CUT_POWER (Default) |
+ * 1 - DEEP_SLEEP |
+ * 2 - WoW |
+ * 3 - CUT_POWER if BT OFF (clock sharing designs only) |
+ */ |
+#define WLAN_CONFIG_PM_WOW2 0 |
+ |
+/* |
+ * Platform specific function to power ON/OFF AR6000 |
+ * and enable/disable SDIO card detection |
+ */ |
+#define plat_setup_power(on, detect) |
#endif /* _HOST_WLAN_CONFIG_H_ */ |