diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 8ae4c9b614e7..05e75109d842 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -979,7 +979,8 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
979 | !(cmd->flags & CMD_SIZE_HUGE)); | 979 | !(cmd->flags & CMD_SIZE_HUGE)); |
980 | 980 | ||
981 | if (iwl_is_rfkill(priv) || iwl_is_ctkill(priv)) { | 981 | if (iwl_is_rfkill(priv) || iwl_is_ctkill(priv)) { |
982 | IWL_DEBUG_INFO(priv, "Not sending command - RF/CT KILL\n"); | 982 | IWL_WARN(priv, "Not sending command - %s KILL\n", |
983 | iwl_is_rfkill(priv) ? "RF" : "CT"); | ||
983 | return -EIO; | 984 | return -EIO; |
984 | } | 985 | } |
985 | 986 | ||
@@ -1121,11 +1122,6 @@ static void iwl_hcmd_queue_reclaim(struct iwl_priv *priv, int txq_id, | |||
1121 | return; | 1122 | return; |
1122 | } | 1123 | } |
1123 | 1124 | ||
1124 | pci_unmap_single(priv->pci_dev, | ||
1125 | pci_unmap_addr(&txq->meta[cmd_idx], mapping), | ||
1126 | pci_unmap_len(&txq->meta[cmd_idx], len), | ||
1127 | PCI_DMA_BIDIRECTIONAL); | ||
1128 | |||
1129 | for (idx = iwl_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; | 1125 | for (idx = iwl_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx; |
1130 | q->read_ptr = iwl_queue_inc_wrap(q->read_ptr, q->n_bd)) { | 1126 | q->read_ptr = iwl_queue_inc_wrap(q->read_ptr, q->n_bd)) { |
1131 | 1127 | ||
@@ -1173,6 +1169,11 @@ void iwl_tx_cmd_complete(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb) | |||
1173 | cmd = priv->txq[IWL_CMD_QUEUE_NUM].cmd[cmd_index]; | 1169 | cmd = priv->txq[IWL_CMD_QUEUE_NUM].cmd[cmd_index]; |
1174 | meta = &priv->txq[IWL_CMD_QUEUE_NUM].meta[cmd_index]; | 1170 | meta = &priv->txq[IWL_CMD_QUEUE_NUM].meta[cmd_index]; |
1175 | 1171 | ||
1172 | pci_unmap_single(priv->pci_dev, | ||
1173 | pci_unmap_addr(meta, mapping), | ||
1174 | pci_unmap_len(meta, len), | ||
1175 | PCI_DMA_BIDIRECTIONAL); | ||
1176 | |||
1176 | /* Input error checking is done when commands are added to queue. */ | 1177 | /* Input error checking is done when commands are added to queue. */ |
1177 | if (meta->flags & CMD_WANT_SKB) { | 1178 | if (meta->flags & CMD_WANT_SKB) { |
1178 | meta->source->reply_page = (unsigned long)rxb_addr(rxb); | 1179 | meta->source->reply_page = (unsigned long)rxb_addr(rxb); |