diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-09-28 10:28:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-28 10:28:09 -0400 |
commit | 0874073570d9184a169a4ae2abbe8dbcb71878e9 (patch) | |
tree | 81af47abc50641f911e3b5833850357a48a82be8 /drivers/net/wireless/iwlegacy | |
parent | cd32984f64cb4fdd84e33f30da1f10582fc43cbf (diff) | |
parent | ba54238552625aad2d75f455a4d3db18ea7dec68 (diff) |
Merge branch 'master' of git://git.infradead.org/users/linville/wireless
Conflicts:
drivers/net/wireless/iwlwifi/iwl-scan.c
net/wireless/nl80211.c
Diffstat (limited to 'drivers/net/wireless/iwlegacy')
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-core.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-hcmd.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-tx.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl3945-base.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl4965-base.c | 10 |
5 files changed, 15 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-core.c b/drivers/net/wireless/iwlegacy/iwl-core.c index c4921911c6d1..8928d47432df 100644 --- a/drivers/net/wireless/iwlegacy/iwl-core.c +++ b/drivers/net/wireless/iwlegacy/iwl-core.c | |||
@@ -937,7 +937,7 @@ void iwl_legacy_irq_handle_error(struct iwl_priv *priv) | |||
937 | &priv->contexts[IWL_RXON_CTX_BSS]); | 937 | &priv->contexts[IWL_RXON_CTX_BSS]); |
938 | #endif | 938 | #endif |
939 | 939 | ||
940 | wake_up_interruptible(&priv->wait_command_queue); | 940 | wake_up(&priv->wait_command_queue); |
941 | 941 | ||
942 | /* Keep the restart process from trying to send host | 942 | /* Keep the restart process from trying to send host |
943 | * commands by clearing the INIT status bit */ | 943 | * commands by clearing the INIT status bit */ |
@@ -1746,7 +1746,7 @@ int iwl_legacy_force_reset(struct iwl_priv *priv, bool external) | |||
1746 | 1746 | ||
1747 | /* Set the FW error flag -- cleared on iwl_down */ | 1747 | /* Set the FW error flag -- cleared on iwl_down */ |
1748 | set_bit(STATUS_FW_ERROR, &priv->status); | 1748 | set_bit(STATUS_FW_ERROR, &priv->status); |
1749 | wake_up_interruptible(&priv->wait_command_queue); | 1749 | wake_up(&priv->wait_command_queue); |
1750 | /* | 1750 | /* |
1751 | * Keep the restart process from trying to send host | 1751 | * Keep the restart process from trying to send host |
1752 | * commands by clearing the INIT status bit | 1752 | * commands by clearing the INIT status bit |
diff --git a/drivers/net/wireless/iwlegacy/iwl-hcmd.c b/drivers/net/wireless/iwlegacy/iwl-hcmd.c index 62b4b09122cb..ce1fc9feb61f 100644 --- a/drivers/net/wireless/iwlegacy/iwl-hcmd.c +++ b/drivers/net/wireless/iwlegacy/iwl-hcmd.c | |||
@@ -167,7 +167,7 @@ int iwl_legacy_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
167 | goto out; | 167 | goto out; |
168 | } | 168 | } |
169 | 169 | ||
170 | ret = wait_event_interruptible_timeout(priv->wait_command_queue, | 170 | ret = wait_event_timeout(priv->wait_command_queue, |
171 | !test_bit(STATUS_HCMD_ACTIVE, &priv->status), | 171 | !test_bit(STATUS_HCMD_ACTIVE, &priv->status), |
172 | HOST_COMPLETE_TIMEOUT); | 172 | HOST_COMPLETE_TIMEOUT); |
173 | if (!ret) { | 173 | if (!ret) { |
diff --git a/drivers/net/wireless/iwlegacy/iwl-tx.c b/drivers/net/wireless/iwlegacy/iwl-tx.c index 4fff995c6f3e..ef9e268bf8a0 100644 --- a/drivers/net/wireless/iwlegacy/iwl-tx.c +++ b/drivers/net/wireless/iwlegacy/iwl-tx.c | |||
@@ -625,6 +625,8 @@ iwl_legacy_tx_cmd_complete(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb) | |||
625 | cmd = txq->cmd[cmd_index]; | 625 | cmd = txq->cmd[cmd_index]; |
626 | meta = &txq->meta[cmd_index]; | 626 | meta = &txq->meta[cmd_index]; |
627 | 627 | ||
628 | txq->time_stamp = jiffies; | ||
629 | |||
628 | pci_unmap_single(priv->pci_dev, | 630 | pci_unmap_single(priv->pci_dev, |
629 | dma_unmap_addr(meta, mapping), | 631 | dma_unmap_addr(meta, mapping), |
630 | dma_unmap_len(meta, len), | 632 | dma_unmap_len(meta, len), |
@@ -645,7 +647,7 @@ iwl_legacy_tx_cmd_complete(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb) | |||
645 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); | 647 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); |
646 | IWL_DEBUG_INFO(priv, "Clearing HCMD_ACTIVE for command %s\n", | 648 | IWL_DEBUG_INFO(priv, "Clearing HCMD_ACTIVE for command %s\n", |
647 | iwl_legacy_get_cmd_string(cmd->hdr.cmd)); | 649 | iwl_legacy_get_cmd_string(cmd->hdr.cmd)); |
648 | wake_up_interruptible(&priv->wait_command_queue); | 650 | wake_up(&priv->wait_command_queue); |
649 | } | 651 | } |
650 | 652 | ||
651 | /* Mark as unmapped */ | 653 | /* Mark as unmapped */ |
diff --git a/drivers/net/wireless/iwlegacy/iwl3945-base.c b/drivers/net/wireless/iwlegacy/iwl3945-base.c index 015739d204f2..b282d869a546 100644 --- a/drivers/net/wireless/iwlegacy/iwl3945-base.c +++ b/drivers/net/wireless/iwlegacy/iwl3945-base.c | |||
@@ -840,7 +840,7 @@ static void iwl3945_rx_card_state_notif(struct iwl_priv *priv, | |||
840 | wiphy_rfkill_set_hw_state(priv->hw->wiphy, | 840 | wiphy_rfkill_set_hw_state(priv->hw->wiphy, |
841 | test_bit(STATUS_RF_KILL_HW, &priv->status)); | 841 | test_bit(STATUS_RF_KILL_HW, &priv->status)); |
842 | else | 842 | else |
843 | wake_up_interruptible(&priv->wait_command_queue); | 843 | wake_up(&priv->wait_command_queue); |
844 | } | 844 | } |
845 | 845 | ||
846 | /** | 846 | /** |
@@ -2268,7 +2268,7 @@ static void iwl3945_alive_start(struct iwl_priv *priv) | |||
2268 | iwl3945_reg_txpower_periodic(priv); | 2268 | iwl3945_reg_txpower_periodic(priv); |
2269 | 2269 | ||
2270 | IWL_DEBUG_INFO(priv, "ALIVE processing complete.\n"); | 2270 | IWL_DEBUG_INFO(priv, "ALIVE processing complete.\n"); |
2271 | wake_up_interruptible(&priv->wait_command_queue); | 2271 | wake_up(&priv->wait_command_queue); |
2272 | 2272 | ||
2273 | return; | 2273 | return; |
2274 | 2274 | ||
@@ -2299,7 +2299,7 @@ static void __iwl3945_down(struct iwl_priv *priv) | |||
2299 | iwl_legacy_clear_driver_stations(priv); | 2299 | iwl_legacy_clear_driver_stations(priv); |
2300 | 2300 | ||
2301 | /* Unblock any waiting calls */ | 2301 | /* Unblock any waiting calls */ |
2302 | wake_up_interruptible_all(&priv->wait_command_queue); | 2302 | wake_up_all(&priv->wait_command_queue); |
2303 | 2303 | ||
2304 | /* Wipe out the EXIT_PENDING status bit if we are not actually | 2304 | /* Wipe out the EXIT_PENDING status bit if we are not actually |
2305 | * exiting the module */ | 2305 | * exiting the module */ |
@@ -2852,7 +2852,7 @@ static int iwl3945_mac_start(struct ieee80211_hw *hw) | |||
2852 | 2852 | ||
2853 | /* Wait for START_ALIVE from ucode. Otherwise callbacks from | 2853 | /* Wait for START_ALIVE from ucode. Otherwise callbacks from |
2854 | * mac80211 will not be run successfully. */ | 2854 | * mac80211 will not be run successfully. */ |
2855 | ret = wait_event_interruptible_timeout(priv->wait_command_queue, | 2855 | ret = wait_event_timeout(priv->wait_command_queue, |
2856 | test_bit(STATUS_READY, &priv->status), | 2856 | test_bit(STATUS_READY, &priv->status), |
2857 | UCODE_READY_TIMEOUT); | 2857 | UCODE_READY_TIMEOUT); |
2858 | if (!ret) { | 2858 | if (!ret) { |
diff --git a/drivers/net/wireless/iwlegacy/iwl4965-base.c b/drivers/net/wireless/iwlegacy/iwl4965-base.c index 6bc5575c8dff..d2fba9eae153 100644 --- a/drivers/net/wireless/iwlegacy/iwl4965-base.c +++ b/drivers/net/wireless/iwlegacy/iwl4965-base.c | |||
@@ -575,7 +575,7 @@ static void iwl4965_rx_card_state_notif(struct iwl_priv *priv, | |||
575 | wiphy_rfkill_set_hw_state(priv->hw->wiphy, | 575 | wiphy_rfkill_set_hw_state(priv->hw->wiphy, |
576 | test_bit(STATUS_RF_KILL_HW, &priv->status)); | 576 | test_bit(STATUS_RF_KILL_HW, &priv->status)); |
577 | else | 577 | else |
578 | wake_up_interruptible(&priv->wait_command_queue); | 578 | wake_up(&priv->wait_command_queue); |
579 | } | 579 | } |
580 | 580 | ||
581 | /** | 581 | /** |
@@ -925,7 +925,7 @@ static void iwl4965_irq_tasklet(struct iwl_priv *priv) | |||
925 | handled |= CSR_INT_BIT_FH_TX; | 925 | handled |= CSR_INT_BIT_FH_TX; |
926 | /* Wake up uCode load routine, now that load is complete */ | 926 | /* Wake up uCode load routine, now that load is complete */ |
927 | priv->ucode_write_complete = 1; | 927 | priv->ucode_write_complete = 1; |
928 | wake_up_interruptible(&priv->wait_command_queue); | 928 | wake_up(&priv->wait_command_queue); |
929 | } | 929 | } |
930 | 930 | ||
931 | if (inta & ~handled) { | 931 | if (inta & ~handled) { |
@@ -1794,7 +1794,7 @@ static void iwl4965_alive_start(struct iwl_priv *priv) | |||
1794 | iwl4965_rf_kill_ct_config(priv); | 1794 | iwl4965_rf_kill_ct_config(priv); |
1795 | 1795 | ||
1796 | IWL_DEBUG_INFO(priv, "ALIVE processing complete.\n"); | 1796 | IWL_DEBUG_INFO(priv, "ALIVE processing complete.\n"); |
1797 | wake_up_interruptible(&priv->wait_command_queue); | 1797 | wake_up(&priv->wait_command_queue); |
1798 | 1798 | ||
1799 | iwl_legacy_power_update_mode(priv, true); | 1799 | iwl_legacy_power_update_mode(priv, true); |
1800 | IWL_DEBUG_INFO(priv, "Updated power mode\n"); | 1800 | IWL_DEBUG_INFO(priv, "Updated power mode\n"); |
@@ -1827,7 +1827,7 @@ static void __iwl4965_down(struct iwl_priv *priv) | |||
1827 | iwl_legacy_clear_driver_stations(priv); | 1827 | iwl_legacy_clear_driver_stations(priv); |
1828 | 1828 | ||
1829 | /* Unblock any waiting calls */ | 1829 | /* Unblock any waiting calls */ |
1830 | wake_up_interruptible_all(&priv->wait_command_queue); | 1830 | wake_up_all(&priv->wait_command_queue); |
1831 | 1831 | ||
1832 | /* Wipe out the EXIT_PENDING status bit if we are not actually | 1832 | /* Wipe out the EXIT_PENDING status bit if we are not actually |
1833 | * exiting the module */ | 1833 | * exiting the module */ |
@@ -2265,7 +2265,7 @@ int iwl4965_mac_start(struct ieee80211_hw *hw) | |||
2265 | 2265 | ||
2266 | /* Wait for START_ALIVE from Run Time ucode. Otherwise callbacks from | 2266 | /* Wait for START_ALIVE from Run Time ucode. Otherwise callbacks from |
2267 | * mac80211 will not be run successfully. */ | 2267 | * mac80211 will not be run successfully. */ |
2268 | ret = wait_event_interruptible_timeout(priv->wait_command_queue, | 2268 | ret = wait_event_timeout(priv->wait_command_queue, |
2269 | test_bit(STATUS_READY, &priv->status), | 2269 | test_bit(STATUS_READY, &priv->status), |
2270 | UCODE_READY_TIMEOUT); | 2270 | UCODE_READY_TIMEOUT); |
2271 | if (!ret) { | 2271 | if (!ret) { |