summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-commands.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-08-23 16:56:55 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-08-25 20:33:21 +0200
commit670245ed4515cbc5e39e39d44965cb7add2c8aa9 (patch)
tree2cea9f64dba71f0aed837812eefc26e96425c05f /drivers/net/wireless/iwlwifi/iwl-commands.h
parentiwlwifi: add 6000g2b BT coexist API (diff)
downloadlinux-670245ed4515cbc5e39e39d44965cb7add2c8aa9.tar.xz
linux-670245ed4515cbc5e39e39d44965cb7add2c8aa9.zip
iwlagn: implement advance BT config command
6000g2b hardware implements advance bluetooth coexist command, implement base on the new API command strucutre. Also increment the API 5 to support the advance BT/WIfi coex. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index 78086ad6b72e..69fc7745edaa 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -2394,6 +2394,68 @@ struct iwl_bt_cmd {
__le32 kill_cts_mask;
} __packed;
+#define IWL6000G2B_BT_FLAG_CHANNEL_INHIBITION BIT(0)
+
+#define IWL6000G2B_BT_FLAG_COEX_MODE_MASK (BIT(3)|BIT(4)|BIT(5))
+#define IWL6000G2B_BT_FLAG_COEX_MODE_SHIFT 3
+#define IWL6000G2B_BT_FLAG_COEX_MODE_DISABLED 0
+#define IWL6000G2B_BT_FLAG_COEX_MODE_LEGACY_2W 1
+#define IWL6000G2B_BT_FLAG_COEX_MODE_3W 2
+#define IWL6000G2B_BT_FLAG_COEX_MODE_4W 3
+
+#define IWL6000G2B_BT_FLAG_UCODE_DEFAULT BIT(6)
+#define IWL6000G2B_BT_FLAG_NOCOEX_NOTIF BIT(7)
+
+#define IWL6000G2B_BT_PRIO_BOOST_MAX 0xFF
+#define IWL6000G2B_BT_PRIO_BOOST_MIN 0x00
+#define IWL6000G2B_BT_PRIO_BOOST_DEFAULT 0x00
+
+#define IWL6000G2B_BT_MAX_KILL_DEFAULT 5
+
+#define IWL6000G2B_BT3_T7_DEFAULT 1
+
+#define IWL6000G2B_BT_KILL_ACK_MASK_DEFAULT cpu_to_le32(0xffffffff)
+#define IWL6000G2B_BT_KILL_CTS_MASK_DEFAULT cpu_to_le32(0xffffffff)
+
+#define IWL6000G2B_BT3_PRIO_SAMPLE_DEFAULT 2
+
+#define IWL6000G2B_BT3_T2_DEFAULT 0xc
+
+#define IWL6000G2B_BT_VALID_ENABLE_FLAGS cpu_to_le16(BIT(0))
+#define IWL6000G2B_BT_VALID_BOOST cpu_to_le16(BIT(1))
+#define IWL6000G2B_BT_VALID_MAX_KILL cpu_to_le16(BIT(2))
+#define IWL6000G2B_BT_VALID_3W_TIMERS cpu_to_le16(BIT(3))
+#define IWL6000G2B_BT_VALID_KILL_ACK_MASK cpu_to_le16(BIT(4))
+#define IWL6000G2B_BT_VALID_KILL_CTS_MASK cpu_to_le16(BIT(5))
+#define IWL6000G2B_BT_VALID_BT4_TIMES cpu_to_le16(BIT(6))
+#define IWL6000G2B_BT_VALID_3W_LUT cpu_to_le16(BIT(7))
+
+#define IWL6000G2B_BT_ALL_VALID_MSK (IWL6000G2B_BT_VALID_ENABLE_FLAGS | \
+ IWL6000G2B_BT_VALID_BOOST | \
+ IWL6000G2B_BT_VALID_MAX_KILL | \
+ IWL6000G2B_BT_VALID_3W_TIMERS | \
+ IWL6000G2B_BT_VALID_KILL_ACK_MASK | \
+ IWL6000G2B_BT_VALID_KILL_CTS_MASK | \
+ IWL6000G2B_BT_VALID_BT4_TIMES | \
+ IWL6000G2B_BT_VALID_3W_LUT)
+
+struct iwl6000g2b_bt_cmd {
+ u8 flags;
+ u8 ledtime; /* unused */
+ u8 max_kill;
+ u8 bt3_timer_t7_value;
+ __le32 kill_ack_mask;
+ __le32 kill_cts_mask;
+ u8 bt3_prio_sample_time;
+ u8 bt3_timer_t2_value;
+ __le16 bt4_reaction_time; /* unused */
+ __le32 bt3_lookup_table[12];
+ __le16 bt4_decision_time; /* unused */
+ __le16 valid;
+ u8 prio_boost;
+ u8 reserved[3];
+};
+
/******************************************************************************
* (6)
* Spectrum Management (802.11h) Commands, Responses, Notifications: