aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2011-01-27 16:01:33 -0500
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-01-31 16:22:25 -0500
commit187bc4f6b2f81e1c8f6b1e9d5dee3e8e9018ebbf (patch)
tree4f458cf0ff3b2e8d0096f377d0e6480d312a254a /drivers
parent96234cc84e0cce55421e981a865a4817db24ba4a (diff)
iwlagn: remove unsupported BT SCO command
During the period of BT coex changes, REPLY_BT_COEX_SCO host command is no longer needed to support SCO/eSCO type of traffic. delete it. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-lib.c24
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c5
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c7
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h1
5 files changed, 4 insertions, 34 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
index c7d03874b380..600f41745b99 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
@@ -1863,21 +1863,6 @@ void iwlagn_send_advance_bt_config(struct iwl_priv *priv)
1863 if (iwl_send_cmd_pdu(priv, REPLY_BT_CONFIG, sizeof(bt_cmd), &bt_cmd)) 1863 if (iwl_send_cmd_pdu(priv, REPLY_BT_CONFIG, sizeof(bt_cmd), &bt_cmd))
1864 IWL_ERR(priv, "failed to send BT Coex Config\n"); 1864 IWL_ERR(priv, "failed to send BT Coex Config\n");
1865 1865
1866 /*
1867 * When we are doing a restart, need to also reconfigure BT
1868 * SCO to the device. If not doing a restart, bt_sco_active
1869 * will always be false, so there's no need to have an extra
1870 * variable to check for it.
1871 */
1872 if (priv->bt_sco_active) {
1873 struct iwlagn_bt_sco_cmd sco_cmd = { .flags = 0 };
1874
1875 if (priv->bt_sco_active)
1876 sco_cmd.flags |= IWLAGN_BT_SCO_ACTIVE;
1877 if (iwl_send_cmd_pdu(priv, REPLY_BT_COEX_SCO,
1878 sizeof(sco_cmd), &sco_cmd))
1879 IWL_ERR(priv, "failed to send BT SCO command\n");
1880 }
1881} 1866}
1882 1867
1883static void iwlagn_bt_traffic_change_work(struct work_struct *work) 1868static void iwlagn_bt_traffic_change_work(struct work_struct *work)
@@ -2069,15 +2054,6 @@ void iwlagn_bt_coex_profile_notif(struct iwl_priv *priv,
2069 queue_work(priv->workqueue, 2054 queue_work(priv->workqueue,
2070 &priv->bt_traffic_change_work); 2055 &priv->bt_traffic_change_work);
2071 } 2056 }
2072 if (priv->bt_sco_active !=
2073 (uart_msg->frame3 & BT_UART_MSG_FRAME3SCOESCO_MSK)) {
2074 priv->bt_sco_active = uart_msg->frame3 &
2075 BT_UART_MSG_FRAME3SCOESCO_MSK;
2076 if (priv->bt_sco_active)
2077 sco_cmd.flags |= IWLAGN_BT_SCO_ACTIVE;
2078 iwl_send_cmd_pdu_async(priv, REPLY_BT_COEX_SCO,
2079 sizeof(sco_cmd), &sco_cmd, NULL);
2080 }
2081 } 2057 }
2082 2058
2083 iwlagn_set_kill_msk(priv, uart_msg); 2059 iwlagn_set_kill_msk(priv, uart_msg);
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index d62e59249667..a5daf6447178 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -2780,7 +2780,6 @@ static void __iwl_down(struct iwl_priv *priv)
2780 priv->cfg->bt_params->bt_init_traffic_load; 2780 priv->cfg->bt_params->bt_init_traffic_load;
2781 else 2781 else
2782 priv->bt_traffic_load = 0; 2782 priv->bt_traffic_load = 0;
2783 priv->bt_sco_active = false;
2784 priv->bt_full_concurrent = false; 2783 priv->bt_full_concurrent = false;
2785 priv->bt_ci_compliance = 0; 2784 priv->bt_ci_compliance = 0;
2786 2785
@@ -3099,7 +3098,7 @@ static void iwl_bg_restart(struct work_struct *data)
3099 3098
3100 if (test_and_clear_bit(STATUS_FW_ERROR, &priv->status)) { 3099 if (test_and_clear_bit(STATUS_FW_ERROR, &priv->status)) {
3101 struct iwl_rxon_context *ctx; 3100 struct iwl_rxon_context *ctx;
3102 bool bt_sco, bt_full_concurrent; 3101 bool bt_full_concurrent;
3103 u8 bt_ci_compliance; 3102 u8 bt_ci_compliance;
3104 u8 bt_load; 3103 u8 bt_load;
3105 u8 bt_status; 3104 u8 bt_status;
@@ -3118,7 +3117,6 @@ static void iwl_bg_restart(struct work_struct *data)
3118 * re-configure the hw when we reconfigure the BT 3117 * re-configure the hw when we reconfigure the BT
3119 * command. 3118 * command.
3120 */ 3119 */
3121 bt_sco = priv->bt_sco_active;
3122 bt_full_concurrent = priv->bt_full_concurrent; 3120 bt_full_concurrent = priv->bt_full_concurrent;
3123 bt_ci_compliance = priv->bt_ci_compliance; 3121 bt_ci_compliance = priv->bt_ci_compliance;
3124 bt_load = priv->bt_traffic_load; 3122 bt_load = priv->bt_traffic_load;
@@ -3126,7 +3124,6 @@ static void iwl_bg_restart(struct work_struct *data)
3126 3124
3127 __iwl_down(priv); 3125 __iwl_down(priv);
3128 3126
3129 priv->bt_sco_active = bt_sco;
3130 priv->bt_full_concurrent = bt_full_concurrent; 3127 priv->bt_full_concurrent = bt_full_concurrent;
3131 priv->bt_ci_compliance = bt_ci_compliance; 3128 priv->bt_ci_compliance = bt_ci_compliance;
3132 priv->bt_traffic_load = bt_load; 3129 priv->bt_traffic_load = bt_load;
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index c3ab6ba5b45a..0a1d4aeb36aa 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -178,7 +178,6 @@ enum {
178 REPLY_BT_COEX_PRIO_TABLE = 0xcc, 178 REPLY_BT_COEX_PRIO_TABLE = 0xcc,
179 REPLY_BT_COEX_PROT_ENV = 0xcd, 179 REPLY_BT_COEX_PROT_ENV = 0xcd,
180 REPLY_BT_COEX_PROFILE_NOTIF = 0xce, 180 REPLY_BT_COEX_PROFILE_NOTIF = 0xce,
181 REPLY_BT_COEX_SCO = 0xcf,
182 181
183 /* PAN commands */ 182 /* PAN commands */
184 REPLY_WIPAN_PARAMS = 0xb2, 183 REPLY_WIPAN_PARAMS = 0xb2,
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index bdcb74279f1e..bc7a965c18f9 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -1587,10 +1587,9 @@ static ssize_t iwl_dbgfs_bt_traffic_read(struct file *file,
1587 "last traffic notif: %d\n", 1587 "last traffic notif: %d\n",
1588 priv->bt_status ? "On" : "Off", priv->last_bt_traffic_load); 1588 priv->bt_status ? "On" : "Off", priv->last_bt_traffic_load);
1589 pos += scnprintf(buf + pos, bufsz - pos, "ch_announcement: %d, " 1589 pos += scnprintf(buf + pos, bufsz - pos, "ch_announcement: %d, "
1590 "sco_active: %d, kill_ack_mask: %x, " 1590 "kill_ack_mask: %x, kill_cts_mask: %x\n",
1591 "kill_cts_mask: %x\n", 1591 priv->bt_ch_announce, priv->kill_ack_mask,
1592 priv->bt_ch_announce, priv->bt_sco_active, 1592 priv->kill_cts_mask);
1593 priv->kill_ack_mask, priv->kill_cts_mask);
1594 1593
1595 pos += scnprintf(buf + pos, bufsz - pos, "bluetooth traffic load: "); 1594 pos += scnprintf(buf + pos, bufsz - pos, "bluetooth traffic load: ");
1596 switch (priv->bt_traffic_load) { 1595 switch (priv->bt_traffic_load) {
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index c56b797e1a1a..ecfbef402781 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -1504,7 +1504,6 @@ struct iwl_priv {
1504 u8 bt_status; 1504 u8 bt_status;
1505 u8 bt_traffic_load, last_bt_traffic_load; 1505 u8 bt_traffic_load, last_bt_traffic_load;
1506 bool bt_ch_announce; 1506 bool bt_ch_announce;
1507 bool bt_sco_active;
1508 bool bt_full_concurrent; 1507 bool bt_full_concurrent;
1509 bool bt_ant_couple_ok; 1508 bool bt_ant_couple_ok;
1510 __le32 kill_ack_mask; 1509 __le32 kill_ack_mask;